HNHacker News
TopNewBestAskShowJobs

gr4vityWall

930 karma · joined March 5, 2024

submissionscomments
gr4vityWall··on The Useless UseCallback
Whenever I see articles like that, I can't help but feel the migration from Class components to functional components with hooks was a big complexity jump for little gain.
gr4vityWall··on Let me pay for Firefox
> hating Mozilla is becoming a hacker tribal signifier

I respectfully disagree. It's one of the conclusions one can reach upon following Firefox development over the last decade. I'm not going to imply it's the "correct" one. It is a common one in hacker communities.

> It almost feel like each commenter is competing to out-hate the others or to add a layer of “in fact its so bad that we should (consequences)”

Unfortunately, I can't say much besides that this isn't my intention at all, and that I don't sense anything like that from the comments. I can't know for sure the intent behind other poster.

gr4vityWall··on Let me pay for Firefox
Wouldn't the ones in charge of firing the C-suite be exactly themselves?

I have no idea how to solve such an organizational problem.

gr4vityWall··on Let me pay for Firefox
I used to want to donate to Mozilla Foundation, but I've long lost any hope that the corporation would spend that money in a way that makes sense to me. The pessimist on me would expect donated money to be spent on more built-in "campaigns", "studies" or ads. Or maybe a bonus for their executives.

I just want Firefox to be faster. I'm donating to Floorp (a Firefox fork), at least they seem focused on making the browser better.

gr4vityWall··on Show HN: BinaryRPC – Lightweight WebSocket-based RPC framework in modern C++
Congrats on your project. Did you get to replace the old Java prototype you were using at work? It'd be interesting to see how the performance compares.
gr4vityWall··on Show HN: BinaryRPC – Lightweight WebSocket-based RPC framework in modern C++
Shouldn't WebSockets be comparable to raw TCP + a simple message protocol on top of it once you're done with the initial handshaking and protocol upgrade?

I wouldn't expect latency to be an issue for long lived connections, compared to TCP.

gr4vityWall··on Ceramic: A cross-platform and open-source 2D framework in Haxe
I have played with it a bit on side-projects. TL;DR: would not recommend it unless you're building a game or is in unique circumstances. Pick something with a faster feedback loop for development GUIs.

While HaxeUI is usable, you'll be on your own a lot: * Documentation is scarce * You'll likely run into bugs the moment you try to go beyond hello world examples * No promises of regular releases or API stability whatsoever. You're expected to run versions directly from GitHub * wxWidgets backend sometimes segfaults with the examples from its HaxeUI's website * tooling is subpar for GUI apps in Haxe; forget having anything as good as any modern frontend framework with Vite. Hot-reload somewhat works on HashLink, but there's almost no documentation on how to use it.

It's maintained by a very nice dude, who does a good job considering the coverage of his libraries, the fact that he does that by himself, and the fact that the OpenFL-based backends work well. HaxeUI is used in production by a few people who work with the HaxeUI developer.

FeathersUI is another option, with much, much better documentation (probably one of the best for Haxe libraries), but smaller component coverage than HaxeUI. I ran into less bugs with it in general, and the dev seems more focused on consistent, well-tested releases. Also a really nice guy from my experience, just like the HaxeUI dev.

But overall, iteration times of GUI applications is just not good with Haxe. You'll suffer if you are used to modern frontend tooling. The accessibility story is nonexistent. And I'm not sure the performance would even be better than just opening a WebView. Definitely not on mobile.

I would only recommend using those two libraries in three circumstances: * You are building a one-off GUI tool that has a simple interface. Think something like LunarIPS. In that case, you can get something usable pretty quickly which will look good if you don't care about following the native toolkit (don't go the hxWidgets path, it's guaranteed suffering). * You are building some interface which will be used inside a game made with Haxe. Say, a login form inside your multiplayer game. In that case, it makes perfect sense to use one of those two libraries. * Your application, for whatever reason (personal taste included), will have a more game-y UI, and it makes more sense to code it in a game engine than the DOM or Qt or whatever.

A fourth reason that is valid for anything is if you're in a Haxe shop, and want to maintain a single language for all projects. Those places do exist (like Shiro Games).

I think that if I __had__ to build a GUI program in Haxe these days, I'd build a prototype with vanilla JS or React first, iterate on it, and only start a HaxeUI/FeathersUI version later.

gr4vityWall··on Ceramic: A cross-platform and open-source 2D framework in Haxe
> Then what is it good for? Just simple apps?

It fits the niche of people who have legacy applications written in Flash, and want to rewrite them in a modern stack. There's a battle tested, free, cross-platform implementation of the Flash API called OpenFL. For people who were familiar with that stack, Haxe offers a natural path to migrate.

So, tl;dr its typical use cases are game development and making legacy Flash projects maintainable.

The C++, JS and Hashlink VM targets are generally well maintained. The situation with libraries is meh, mostly due to being a not-so-mainstream programming language that is almost 20 years old. So, there are a lot of libraries that weren't updated in a decade. Some of them may work on new Haxe versions, some won't. Some have been consistently maintained for very long, but are a one man show and the documentation is often subpar. Ceramic is one of such libraries, although the documentation for it is better than the usual for Haxe, IMO.

Overall I find the language itself amazing and pleasant to use. Kinda wish the C# target was still a thing with first-class support, so we could enjoy their hot reloading.

gr4vityWall··on Ceramic: A cross-platform and open-source 2D framework in Haxe
I played with Ceramic a bit and it was nice to have built-in imgui support out of the box.

Haxe is a fun language. It could have taken TypeScript's place, if they focused on improving the tooling and ergonomics for Web developement instead of game development 15 years ago.

gr4vityWall··on The messy reality of SIMD (vector) functions
Have you checked Odin out? I think it has what you want. https://odin-lang.org/docs/overview/#soa-struct-arrays
gr4vityWall··on Deno 2.4
I think bflesch's reasoning comes from the idea that the website developers may not hold their website to the same security standards as their software, and not from a trust issue. Nor from thinking the author themselves are malicious.

FWIW, I don't have a strong opinion here, besides that I like Debian's model the most. Just felt that it was worth to point out the above.

gr4vityWall··on Deno 2.4
Node.js is (maybe surprisingly) used a lot in less common operating systems like FreeBSD and Illumos.
gr4vityWall··on A list is a monad
Yes, your understanding is correct. It's literally calling map() on an array, followed by a flat().

Sorry, I should have added more context to my post. I edited my post and added a link to the MDN definition of the flatMap function.

gr4vityWall··on A list is a monad
something that you can call flatMap() on.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

gr4vityWall··on A list is a monad
I think the most intuitive description for a monad I've ever seen is 'flatMappable'.

Context: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Usually articles that describe them in a very Math-y way go above my head. But the definition above was immediately clear (I saw it on HN).

I think this article is a bit more approachable than others I've read, but it still gets very confusing near the end.

gr4vityWall··on Ruby on Rails: The Open-Source Blueprint
Is this article generated by AI? It seems to lack any substance.
gr4vityWall··on New Firefox Add-On Policies
> which usable browser do you believe provides better assurances than Firefox?

I think they meant that they are not going back to publishing Firefox extensions/add-ons. That doesn't imply they started writing extensions for another browser.

gr4vityWall··on Helion: A modern fast paced Doom FPS engine in C#
Yes. Only requirement is that your game code is Free Software (GPLv3).
gr4vityWall··on Trying to teach in the age of the AI homework machine
> Some thesises had hallucinated sources, some had AI slop blogs as sources, the texts are robotic and boring. But should I fail them, out of principle on what the ideal University should be?

I don't think you should fail them - instead, give them feedback on how to improve their thesis themselves, and how to make better use of tools like ChatGPT.

If instead of flat out failing to turn in their thesis, instead they are submitting work that needs more iteration due to bad use of AI, that sounds like a net win to me. The latter can be turned into something useful.

gr4vityWall··on Why I no longer have an old-school cert on my HTTPS site
I loved how she explained it in a tutorial-like way at the end. But I didn't enjoy the disdain and the tone of the rest of the article.
gr4vityWall··on Making Video Games (Without an Engine) in 2025
That was a great post. I had no idea modern .NET had hot-reloading built-in like that. From my experience programming games, that's the biggest time saver you can ask for. Does it work well (or at all) with Godot/C#?

A few years ago, a notorious developer in the GameMaker community wrote a tool that added live reloading to it, and immediately it got widely adopted by big projects.

In terms of prototyping, I think an 'ideal' engine for extremely fast iteration would be something like GameMaker 8.1, but with hot reloading and slightly better window management inside the editor itself.

I don't share the core needs of the author though, I prefer using an engine with a built-in editor, specially in the beginning of a project. I really wanted to like Godot, by the abstractions it provides never 'clicked' with me. I can't think of a game like a bunch of nodes. That's unfortunate for me as Godot it the most popular free game engine AFAIK, with all the goods that comes with that.

I also really don't want to spend years mastering a proprietary tool again.

gr4vityWall··on Ditching Obsidian and building my own
> 1000$ over 10 years is nothing

It's a non-trivial amount of money to a lot of people (myself included). I spend way more than that on Free Software, but I'm not throwing money to a proprietary program if I can choose.

gr4vityWall··on WASM 2.0
> If you want to run code written in other languages in the browser, you could just as well compile to JavaScript.

That's how asm.js was conceived. You can compile other languages to a subset of JS that is super JIT-friendly and performs stupidly well.

I think WASM came to be due to a desire to run that resulting code in a heavily sandboxed environment, with much more limited access to certain APIs than the rest of your JavaScript code.

Unrelated, but it's not clear to me why you're getting downvoted. Your point sounded genuine and didn't look like flamewar bait.

gr4vityWall··on Implementing a Struct of Arrays
Interesting article. It does show how modern C++ can be quite scary.

It reminded me of a Haxe macro used by the Dune: Spice Wars devs to transform an AoS into a SoA at compile time to increase performance: https://youtu.be/pZcKyqLcjzc?t=941

The end result is quite cool, though those compile time type generation macros always look too magical to me. Makes me wonder if just getting values using an index wouldn't end up being more readable.

gr4vityWall··on WebMonkeys: parallel GPU programming in JavaScript (2016)
Ahh, my bad. That makes sense.

I wonder if QuickJS not having JIT capabilities could have a noticeable impact in a bigger game.

gr4vityWall··on Migrating a JavaScript Project from Prettier and ESLint to BiomeJS
I'm willing to use a new project like that if there's a commitment to not introduce breaking changes unless absolutely necessary.

ESLint introduced a new configuration format a while ago which rendered almost all existing guides online obsolete, and I don't see the benefit for the end users. I assume the devs had a good reason. But god, it's painful.

gr4vityWall··on WebMonkeys: parallel GPU programming in JavaScript
You can use Node.js or Bun with bindings for stuff like raylib or SDL.

Examples:

https://github.com/RobLoach/node-raylib https://github.com/kmamal/node-sdl

gr4vityWall··on Just redesigned my personal site with a TTY-style interface
I like it. It felt personal and non-intrusive.
gr4vityWall··on Deno's Decline
I like the idea behind Deno. I hope the runtime stays relevant.

JSR sounded amazing on paper, but in practice, it seemed to have a lot of papercuts. You still can't make an account there without a GitHub account, I think.

I wish they made a stronger push for its standard library to be used outside Deno. Such a push would clash with their original goal of not depending on npm, I guess. A well-maintained set of common functionality implemented in a cross-runtime way is still needed by the ecosystem, I think.

gr4vityWall··on Deno's Decline
I think 9rx agrees with you. Node.js shines as a web server. It can be made fast at CPU-bound tasks as well, but you wouldn't be writing idiomatic JS/TS.

The recent tsc port from TS to Go is a good example of that. The TypeScript code in the compiler relied a lot on polymorphism, which made it really hard for the JIT to do a good job.

The Go port enabled them to 'rewrite' it keeping the logic more-or-less 1:1 and land a good performance increase. IMO it was a good decision, specially the language choice, and much saner than what a JIT-friendly TS compiler would be.

← PreviousPage 5 of 10Next →