HNHacker News
TopNewBestAskShowJobs

fayten

275 karma · joined September 19, 2019

submissionscomments
fayten··on Nier Automata for Switch is a miracle port
You cannot buy one outright currently, but you can still reserve one on Steam and from the looks of it you'll most likely get it by December. The steam deck is pretty incredible and I have greatly enjoyed tinkering with it.

https://www.gamespot.com/articles/steam-deck-is-speeding-up-...

fayten··on Dolt's new storage format is now live and 2x faster
Performance benchmarks can be found here: https://docs.dolthub.com/sql-reference/benchmarks/latency
fayten··on Declarative GUI with constraints-based layout engine for Python
Nucleic also makes Kiwi one of the fastest Cassowary Constraint implementations. It is very useful for implementing custom GUIs as it can make building internal component layouts and general layout systems fairly straightforward and it’s very performant.

I highly encourage taking a look at it and it has also been ported to a wide range of language.

I’m using Nim kiwi with my own GUI library now. I’ll have to take a peak at how enaml is using kiwi for its layouts.

https://kiwisolver.readthedocs.io/en/latest/

https://github.com/alexbirkett/kiwi-java

https://github.com/PongoEngine/jasper

https://github.com/yglukhov/kiwi

fayten··on Why am I excited about WebAssembly?
I have not been able to get excited about WASM due to the poor memory management situation. It’s been years since the MVP and we are still in limbo about freeing memory.

A great issue documenting a lot of the pain points around this is here: https://github.com/WebAssembly/design/issues/1397

Until this is solved WASM is dead in the water for a huge variety of applications. I am rooting for WASM, but it has been discouraging to watch this go unsolved over the years.

fayten··on WxWidgets 3.2
I'm working on a native wrapper for SWT with GraalVM. The resulting library with base SWT is about 18M, which is fairly large, but definitely workable.

I have successfully used the wrapper from C and Zig as a proof of concept. The main goal was to originally expose SWT for Nim, but I got pretty side tracked. I'll probably make a show HN later this year when I have it in a usable state. I haven't gotten callbacks working quite yet, which makes it pretty useless.

I'm a bit worried about performance, but I'll throw a cassowary constraint manager on top of a ton of widgets and see how it does. Memory usage with an empty window is ~35mb at 1920x1080. It successfully works on Windows, Linux, and MacOS x86 and aarch64.

fayten··on College Was the Biggest Mistake of My Life
I know in parts of the US there are community colleges starting to offer Bachelor's Degrees. I wonder how much that will add to the cost of those schools. Hopefully it will lower the barrier of entry for thousands of students.

Also I am curious what HN's thoughts are on general education requirements in the US. It was something put in place in the 60's[1] in an attempt to prevent specialization[2] in education. I am wondering if it's time to reduce that requirement and go with more focused degrees similar to the UK.

Also Gen Ed courses seem like a real money makers for US Universities since there is not scaled tuition. A human lit class costs the same as a STEM course that could require very expressive lab equipment. I am not trying to down play the importance of human literature in this scenario. It just seems odd that it would cost the same as a organic chemistry class that requires a multi million dollar lab, a wide assortment of chemicals, and a staff equipped to maintain it throughout the day.

[1]. https://eric.ed.gov/?id=EJ1090127 [2]. https://www.encyclopedia.com/education/encyclopedias-almanac...

fayten··on The chicken you are eating has increased 364% in size over the last 50 years
As far as I am aware the water content reducing flavor is a myth. For fruits and vegtables it comes down to ripening and temperature control. The majority of fruit we purchase from the super market is picked far before it's rip and is either sitting in storage/transport long enough to get acceptable flavor, gassed with certain hormones to speed up rippening before final arrival, or just straight up dyed.

Oranges from warm climates are actually green and are dyed in a lot of cases in the US. A cooler climate is needed to kill of the green pigments in the fall turning them orange.

Fate of food is an interesting book on the food supply chain: https://www.amandalittle.com/fateoffood

Food dying and our perception of flavor: https://www.youtube.com/watch?v=6FPnag_rvU8

A fun video with Paul Hollywood trying the most expensive strawberries: https://youtu.be/895DfGuoqvU

fayten··on Americans do not want to return to urban living
There are quite a few factors, I'd encourage checking out the following videos by Not Just Bikes and Climate Towns that cover a broad range of city planning and zoning in the US.

Strong Towns Play List by Not Just Bikes (This heavily covers city planning issues in the US):

https://youtube.com/playlist?list=PLJp5q-R0lZ0_FCUbeVWK6OGLN...

The Suburbs Are Bleeding America Dry by Climate Towns (This covers zoning):

https://www.youtube.com/watch?v=SfsCniN7Nsc

How The Auto Industry Carjacked The American Dream (This covers the auto industries impact on US cities.):

https://www.youtube.com/watch?v=oOttvpjJvAo

Dutch Cities are Better for the Climate (and my sanity) by Not Just Bikes (Not super relevant to zoning, but it's part 1 of The Suburbs Are Bleeding America Dry so I figured I'd link it.):

https://www.youtube.com/watch?v=cO6txCZpbsQ

These are pretty snarky, but fun videos and the authors list their sources. Their video descriptions are worth checking out just to find a ton of reading material on each topic.

fayten··on Yes, ‘Elden Ring’ Is Perfectly Playable on Linux (Including Online Features)
The performance is bad across Linux and Windows. Digital foundry did a decent review on it[1]. In certain areas a friend's rig with an 11th gen i7 and rtx 3070 is dipping down to mid 30 fps in certain areas on Windows 10 with "high" settings.

The game is pretty sweet though, and it's incredible that it worked within a few hours of launch on Linux!

[1] https://www.youtube.com/watch?v=5EtcrUrsl38

fayten··on Aro: A C compiler written in Zig
Well well well, I guess it's time to brush off the ol' dmd.
fayten··on Aro: A C compiler written in Zig
Does this mean you can directly import C headers in D?
fayten··on Turbo: The speed of a SPA without writing JavaScript
A similar alternative that does not rely on web sockets is https://htmx.org. I have greatly enjoyed using it with some simpler web frameworks like https://javalin.io to do some prototyping and smaller projects. I'm sure if someone made a plug and play UI library like material UI for Angular on top of htmx you could absolutely fly through MVPs.
fayten··on RPG Paper Maker
Since their website appears to be down for now check out their steam page: https://store.steampowered.com/app/1066860/RPG_Paper_Maker/
fayten··on Ask HN: Anyone making a living building desktop applications?
I installed beekeeper[1], an electron AppImage, this afternoon on a 11th gen Acer spin 713 chromebook. You just need to have linux support enabled in the Dev settings. Only newer, higher end chromebooks have the linux support feature. I prefer dbeaver, but there appears to be some kind of GTK dpi scaling issue with it.

1.https://www.beekeeperstudio.io/

fayten··on The Lazarus team is glad to announce the release of Lazarus 2.2
Has anyone tried mold[1] with Free Pascal yet? FPC compiles insanely fast, but larger projects can still get caught up with the linker.

[1]https://github.com/rui314/mold/tree/v1.0.0

fayten··on Sublime Clojure
I really enjoy the color scheme of their site. As some work arounds though, the site works well with reader mode in Safari and Firefox. Also check out Dark Reader by Alexander Shutau for Firefox. That may help alleviate some eye pain. https://addons.mozilla.org/en-US/firefox/addon/darkreader/
fayten··on The First Pancake Always Sucks
I second this. A good onboarding process is a patient one. It should involve lots of mentorship and paired programming. Agile shops can easily onboard people during an active sprint. Then they pair with others, QA other tickets, and sit in on some code reviews. After all that they know what the expectations are and can join in on the next sprint.
fayten··on My Emacs Lisp book is finished
Unfortunately it looks like it's a dead project, but https://github.com/kiwanami/emacs-epc builds out an RPC framework for emacs. This would theoretically allow you to use any language you want. The repo shows node.js, python, and ruby integration.
fayten··on Setting up Gmail in Doom Emacs using mbsync and mu4e
I did, I used spacemacs for a few years, but switched to Doom at the beginning of 2020. It is dramatically faster in start up and usage. I also find the configuration a lot easier and straightforward. I did the initial switch because Java LSP was stalling out spacemacs constantly.
fayten··on Structure and Interpretation of Computer Programs: JavaScript Edition
I would be interested in seeing a side by side comparison of two classes taught in Scheme SICP and JavaScript SICP.

Let's say each version is taught in a CS 101 class and then the study could follow how well the students learn the rest of their CS curriculum based on the SICP version they started with. Outside embedded and system programming classes the remaining CS curriculum could allow most classes be complete in Scheme or JavaScript.

fayten··on Nazca – New GUI for the Web
I agree, in fact I wish there was one more layer that separated layout from styling. Keep padding, but tear out flex box, grid, margin, etc and have a VFL like language instead.

Too be fair flex box and grid are pretty good. I just wish I didn't have to sometimes skim through huge CSS or SASS files to make layout changes.

fayten··on 14-inch MacBook Pro review: A Mac Pro in your backpack
Yes, but it's very rare now a days. I live in JVM land and there are quite a few native JNA libraries that I have run into issues with. One example is vlcj [1] I just ran into yesterday. I have yet to dig deeply into the issue just yet, but it's giving me the fun "no compatible architecture found error". SWT and JavaFX both fully works with arm now though, so I am pretty happy on that front. GraalVM native-image also does not support building ARM on Mac yet either. On the C/C++ side of things I have not ran into any incompatibility issues in the last 5 months. I'd say 99% of my time is smooth sailing at this point.

[1] https://github.com/caprica/vlcj

fayten··on The Emacs-28 release branch has been created
It's fantastic! If you are on a mac you can try it right now with emacs-plus[1]. Emacs plus even works natively with apple m1. Doom[2] with CIDER[3] is such an incredible dev experience and I've only recently started using clojure. Native comp makea everything so snappy.

[1]https://github.com/d12frosted/homebrew-emacs-plus

[2]https://github.com/hlissner/doom-emacs

[3]https://github.com/clojure-emacs/cider

fayten··on Scotland’s four-day week trial is fatally flawed
What are you basing these opinions on? Why do you think UBI is a bad thing and that it would institute a slave class?
fayten··on The Framework is the most exciting laptop I've used
I'm not sure how common it is, but at my old job devs and business analysts would regularly go on site to work with clients. Larger teams would have build boxes for CI and VMs that we could remote into if need be, but other than that laptops were absolutely required.

I'm currently writing this at a coffee shop surrounded by others all working on various things. I really like the option to work from anywhere.

fayten··on I ruin developers’ lives with my code reviews and I'm sorry
Yup! I have been very fortunate to work with extremely kind and empathetic senior engineers in the past. They have done wonderful jobs at using the code review process to teach instead of tear anyone down. I am always shocked at how many programmers become so aggressive about development. It might be silly, but I think the xkcd comic Ten Thousand is a great mantra: https://xkcd.com/1053/

Teaching people cool new ways to code should be fun, not an exercise in showing everyone the size of your ego.

fayten··on I ruin developers’ lives with my code reviews and I'm sorry
That line also annoyed me. I think this person has a lot more self reflection to do about their insecurities. I am glad he has begun to recognize there are some issues and I hope he is able to continue to improve himself.
fayten··on Racket GUI Screenshots
So I tried it out a little. It's a really nice api, buuuuuuut I am really disappointed in the resource consumption. A simple form with a few fields and a submit button was consuming 238mb of ram on my macbook m1 air. Then when I used raco exe the resulting executable size was 65mb! So for maybe large scale app it would be fine, but that feels really heavy for something small.

Its still smaller and less resource intensive than say electron, but man that executable size is pretty brutal for a native app.

For reference the same form made with Haxe + SWT + GraalVM on an intel mac(graalvm native image is not supported on m1 yet) is about 13mb and uses 100mb of ram. Also A jlinked and packaged swt app would probably have better memory management, and end up with a package size in the ball park of 70mb as well.

Again though the Racket API seems nice, but it doesn't expose the native window handle like SWT does which would prevent you from embedding a third party graphics context like GLFW which is kind of a bummer. I've done that with Nim+Tcl to have ab opengl context with Tcltk controls as well as Haxe + SWT + GLFW to have bgfx with native controls.

fayten··on Racket GUI Screenshots
Oh wow I'm kind of shocked this is the first time I am seeing this. I have mostly gravitated to eclipse SWT with a bit of dabbling in JavaFX.

I just started playing around with clojure last week, but I have yet to do any GUI work with it.

I intended to try out Racket at some point, but this GUI library looks so nice I might start soon.

I wonder if anyone has implemented cassowary contraints yet for Racket and combined the two.

fayten··on Ask HN: Why Did Pascal Fail?
I'm not sure Pascal entirely lost due to just C. Borland's Turbo Pascal was quite popular and was broadly used in the mid 80s. Apple even used their own Object Pascal variant through-out the 80s. Pascal was primarily used for application development and for this case it was leagues ahead of C and C++. Turbo Pascal thrived up until Delphi was released in 1995, which then became the new lead Pascal. Unfortunately, Delphi would come to face it's killer within a year.

When Java came out in 1996 it became an overnight juggernaut in application development. Java had a ton of hype when it was still in beta in 1995 and TIME magazine even listed it as one of the best products of the year--when it wasn't even released yet.

Microsoft poached Anders Hejlsberg, the primary language designer of Turbo Pascal and Delphi, from Borland in 1996 to have him work J++ their variant of Java. J++ followed the Sun Java spec with a few deviations, but it was just another testament to how quickly Java was taking over.

Borland was now competing with something that was free and they needed to pivot and well...they didn't.

Random articles for further reading: https://en.wikipedia.org/wiki/Anders_Hejlsberg

https://en.wikipedia.org/wiki/Visual_J%2B%2B

http://content.time.com/time/subscriber/article/0,33009,9839...

https://en.wikipedia.org/wiki/Turbo_Pascal

https://stackoverflow.com/questions/8460037/list-of-delphi-l...

← PreviousPage 2 of 3Next →