HNHacker News
TopNewBestAskShowJobs

foresterre

414 karma · joined July 29, 2021

submissionscomments
foresterre··on GitHub's Fake Star Economy
With the advent of AI, these "life" events are probably even simpler to fake than AI though, and unlike the faking of stars not against the ToS.
foresterre··on Starfling: A one-tap endless orbital slingshot game in a single HTML file
Fun :)

Small idea for improvement: the "fast" text is often over the same space as the ball, which makes it harder to see where the ball would be going.

foresterre··on Show HN: Is Hormuz open yet?
According to the Financial Times (1), the straight is "open" but Iran is extorting fees for passing ships.

> "Iran will demand that shipping companies pay tolls in cryptocurrency for oil tankers passing through the Strait of Hormuz, as it seeks to retain control over passage through the key waterway during the two-week ceasefire."

If they really will start doing so for all shipping, that would be odd since the straight itself is in Oman's territorial waters. Even so, the UNCLOS convention (2) requires free transit:

> Article 44 > Duties of States bordering straits > > States bordering straits shall not hamper transit passage and shall give appropriate publicity to any danger to navigation or overflight within or over the strait of which they have knowledge. There shall be no suspension of transit passage.

It would be unprecedented and unlawful, but I guess previous actions of Israel, the US and Iran have shown our world is beyond adhering to laws and agreements now.

(1) https://www.ft.com/content/02aefac4-ea62-48db-9326-c0da373b1... (2) United Nations Convention on Law of the Sea: https://www.un.org/depts/los/convention_agreements/texts/unc...

foresterre··on Cursor 3
I am a developer by profession and this is the opposite of what I would want. The code is your ground truth. If all else fails, the code should reasonably be able to tell you why, and by being able to read it, it makes me independent from some closed model.
foresterre··on The Claude Code Leak
But even that is vague and possibly not true. If they used LLM's to generate all of the code, then it may not fall under copyright, by the requirement of human authorship (which for code I think has not been tested yet in court) [1].

[1] https://www.congress.gov/crs-product/LSB10922

foresterre··on ChatGPT won't let you type until Cloudflare reads your React state
I think opt-outs are a bit backwards, ethically speaking. Instead of asking for permission, they take unless you tell them to no longer do it from now on.

I can imagine their models have been trained on a lot of websites before opt outs became a thing, and the models will probably incorporate that for forever.

But at least for websites there's an opt-out, even if only for the big AI companies. Open source code never even got that option ;).

foresterre··on Apple Business
This is annoying, but that they use user-agent solely to check irritates me even more; even (alternative) Chromium based browser like Vivaldi don't work out of the box. I usually use Vivaldi as an alternative when Firefox doesn't work.

It's 2026. I think we can expect more from Apple. It's not a small indie company after all.

foresterre··on Explain it like I'm 5: Why is everyone on speakerphone in public?
I see this happening multiple times a week on my daily commute (by train) in The Netherlands.

It's not just people calling, although that's often the case, it's also people just watching social media videos on speaker

foresterre··on Temporal: The 9-year journey to fix time in JavaScript
Depending on your needs (i.e. how you would otherwise use your output jspn), using the reviver can have a significant impact on performance. JSON.parse itself is hyper-optimized. At the company I work we used the reviver for almost exactly this, but profiling showed that using the reviver had enormous impact on performance. We cut it out, and won in the seconds of performance for some large json's.
foresterre··on Redox OS has adopted a Certificate of Origin policy and a strict no-LLM policy
That's a rather unkind comment.

For the parent there's immaterial value knowing that is written by a human. From what I read in your comment, you see code more as a means to an end. I think I understand where the parent is coming from. Writing code myself, and accomplishing what I set out to build sometimes feels like a form of art, and knowing that I build it, gives me a sense of accomplishment. And gives me energy. Writing code solely as a means to an end, or letting it be generated by some model, doesn't give that same energy.

This thinking has nothing to do with not caring about being a good teammate or the business. I've no idea why you put that on the same pile.

foresterre··on Leaving Google has actively improved my life
I think that DDG's search resulrs worsened from the moment they've dropped the Yandex index, a few years back.

That, and they seem to havr focussed more on localized results, which makes searches related to software development worse. This is also a problem with Google's search engine, but it's much harder to work around on Google.

foresterre··on Ask HN: Share your personal website
https://gribnau.dev
foresterre··on Build Android apps using Rust and Iced
If you do it via React Native turbo modules, it is already possible, either using craby (1) or using uniffi-bindgen-react-native (2).

(1) https://github.com/leegeunhyeok/craby

(2) https://github.com/jhugman/uniffi-bindgen-react-native

foresterre··on Germany's train service is one of Europe's worst. How did it get so bad?
> Waning reliability is but one of many problems for state-owned Deutsche Bahn, which is operating at a loss and regularly subjects its passengers to poor or no Wi-Fi access, seat reservation mix-ups, missing train cars and "technical problems" — a catch-all reason commonly cited by conductors over the train intercom.

As someone who fairly often travels by German ICE (not their regional trains), I've only ever experienced the timetable unreliability.

WiFi is fairly reliable and much much better than for example the Dutch railway (NS) WiFi which never seems to work, and I can't remember the last time it didn't work on an ICE. I've never had any seat reservation mix ups or (knowingly) missing train cars; the last two I've experienced only once in Europe, on a cross border train from Slovenia to Austria, with the seat booked via the ÖBB on a Slovenian train.

When these ICE's are on time and show up, I like them a lot. The seats are very comfortable, there's food service in the train, the seat reservations aren't thát high, and are optional (unlike say high speed rail in Italy, where there's a 15 euro required seat reservation on top of the ticket price), the staff is consistently friendly and so far (I think) they haven't joined the annoying recent trend to put digital ads on the same monitor as the in train timetable.

More so, I really really like the Deutsche Bahn app and use it for trains all over Europe.

Reading this article makes me ask myself if the route and type of train matters, but also that the article didn't really add anything new from what wasn't already known. With their ongoing frequent delays DB made them an easy target for anything under the sun, but comparatively to other trains in Europe, at least for DB ICE's, delays aside, I feel they're doing quite alright.

foresterre··on Google unkills JPEG XL?
This actually seems to use the encoder/decoder from the Rust image crate (1), which would bring the opportunity for more memory safe formats once BMP would be accepted.

(1) https://crates.io/crates/image

foresterre··on Pikaday: A friendly guide to front-end date pickers
I was quite confused too. I thought these were Pikaday implementations, partly because I usually use UK language in browsers, and then you get exclusively these (annoying to me) AM/PM date input pickers, and this time I didn't.

I tried some of the inputs and found that they worked well for initial input, but editing inputs didn't (e.g. the masked date input cursor just jumps over previous decimals, when typing a new number)

I made a reproduction video and tried to report it to the Pikaday issue tracker after which I found out it's deprecated.

Going back, and comparing the readme with the page, does show that the post uses native inputs. ... I feel that could have been more explicit; in this post I expected Pikaday to have the option to use native pickers with some component styling.

foresterre··on Show HN: I scraped 3B Goodreads reviews to train a better recommendation model
It seems to work decently even with just one or two titles for popular titles, but less so for the niche.

For example, the title "Impro: Improvisation and the Theatre" by Keith Johnstone, linked by another article posted to HN today gives back the following suggestions:

- Truth in Comedy: The Manual of Improvisation by Charna Halpern - Steve Jobs by Walter Isaacson - 1984 by George Orwell - Harry Potter and the Sorcerer's Stone (Harry Potter, #1) by J.K. Rowling - Sapiens: A Brief History of Humankind by Yuval Noah Harari - The Alchemist by Paulo Coelho - The Tipping Point: How Little Things Can Make a Big Difference by Malcolm Gladwell - Dune (Dune, #1) by Frank Herbert

It's a bit unfortunate that all suggestions are fairly popular titles, which are fairly easy to find, while the unpopular or niche may be just as well written but a lot harder to find.

Within niche topics or books, it is also usually harder to provide multiple similar enough titles up front.

foresterre··on Tell HN: Azure outage
Here is an article in English:

https://nltimes.nl/2025/10/29/ns-hit-microsoft-cloud-outage-...

It should be noted that the article isn't complete: while the travel planner and ticket machines were the first to fail, trains were cancelled soon after; it took a few hours before everything restarted.

Based on what the conductors said, I would speculate that the train drivers digital schedule was not operative, so they didn't know where to go next.

foresterre··on Uv is the best thing to happen to the Python ecosystem in a decade
On compile time for Typescript: when projects have large unioned or conditional types, Typescript's compilation time isn't all that fast, and sometimes even slower than Rust, more often when Rust will be compiling incrementally (I write both Rust and Typescript extensively).

Worse, typescript may even run out of it's allocated memory sometimes.

foresterre··on Tell HN: Azure outage
It still surprises me how much essential services like public transport are completely reliant on cloud providers, and don't seem to have backups in place.

Here in The Netherlands, almost all trains were first delayed significantly, and then cancelled for a few hours because of this, which had real impact because today is also the day we got to vote for the next parlement (I know some who can't get home in time before the polls close, and they left for work before they opened).

foresterre··on Tell HN: Azure outage
AWS' UI is similarly messy, and to this day. They regularly remove useful data from the UI, or change stuff like the default sort order of database snapshots from last created to initial instance created date.

I never understood why a clear and consistent UI and improved UX isn't more of a priority for the big three cloud providers. Even though you talk mostly via platform SDK's, I would consider better UI especially initially, a good way to bind new customers and pick your platform over others.

I guess with their bottom line they don't need it (or cynically, you don't want to learn and invest in another cloud if you did it once).

foresterre··on Tell HN: Azure outage
GitHub doesn't use Azure yet, but has just published their migration path to azure a few days ago.

I would link to that article, but that one does seem down ;)

foresterre··on Meow.camera
In his book Sapiens, Yuval Noah Harari called the farming of animals by humans "Nature's biggest fraud", which I always found to be an apt description.

It makes me wonder if humans are the only animals who "farm" other animals in some way (not on the same scale as humans do of course).

At the same time, it makes me wonder, "is being a parasitic animal socially better or worse than animals who farm fellow animals" ;).

foresterre··on Rating 26 years of Java changes
They're a bit verbose, the interfaces are slightly convoluted and some basic operations are missing from the standard library.

It's also a little convoluted to work with different types of data.

For this one, I wish they would have taken a bit more inspiration from other languages and spent the time to make it more readable.

That said, I generally like streams a lot, and they do reduce the amount of branching, and having less possible code execution points makes testing easier too.

foresterre··on Vite+ – Unified toolchain for the web
On the other hand, with Node on the server we're now jumping into the ESM and nodenext/esnext mess with its .js imports.

This less a problem when your project is on the web though, because vite (and I think under the hood esbuild) transforms the imports gracefully.

foresterre··on Resilient Homes Program data breach
> What happened?

> Between 12 and 15 March 2025, personal information held for the Resilient Homes Program (RHP) was uploaded to the AI platform ChatGPT by a former RA contractor.

foresterre··on A comparison of Ada and Rust, using solutions to the Advent of Code
Rain showed that not all may be as simple as it seems to do it correctly.

In her presentation on async cancellation in Rust, she spoke pretty extensively on cancel safety and correctness, and I would recommend giving it a watch or read.

https://sunshowers.io/posts/cancelling-async-rust/

foresterre··on Leaked Apple M5 9 core Geekbench scores
I find this usually doesn't matter as much as you seem to suggest.

I've been running linux laptops with AMD/intel for years, and while some focus on more battery life would be welcome, the cpu never bothered me.

My primary limiation is available RAM (esp. when debugging react native against a complete local docker setup), which unfortunately on both AMD/Intel but far more so on Apple is usually limited to higher compute CPU's, which drives up cost of laptop (not even including the extra cost of RAM on Apple).

The only really locally CPU intensive processes I run on a laptop are Rust builds, and then still I would prioritize RAM over CPU if that would be possible, because Rust builds are fast enough, especially when incrementally compiling (and I almost never do lto release-like builds locally unless doing benchmarking or profiling work)

foresterre··on Play snake in the URL address bar
For those that missed it initially, and didn't quite got how it works the first time, there is a small cyan question mark at the top left, which states:

> Use the arrow keys or WASD to control the snake on the URL. Click here if you can't see the page URL or if it looks messed up with some weird slashes

Additionally: you need a browser window where you're address bar is long enough to see the world ;).

Love the concept, it works quite well!

foresterre··on Migrating to React Native's new architecture
At my company we have been using react-native for years without Expo, and aside from some performance issues here or there it has mostly been great (we also use Android auto so that's my reference to "native-ish mobile").

Recently we've been trialling Expo again, and I think it has much approved from where it was a few years ago (when we went in the opposite direction). It mostly saves you time on the build side and gives you some known to work 'good' libraries to depend on, and if you want it, a file based router (we just kept using react-navigation directly, on which the router is built).

The biggest pain in react-native are the major version updates which are regularly breaking (and the lack of css grid , you'll have to make do with flex)

With Expo, that's not necessarily gone, but the updates are usually smaller compared to respective Android updates (but you still need to comply with new rules for app stores), and usually less painful because with Expo (unlike react-native directly) there's less to manually update within the platform native files which is error prone, even when you use Microsoft's upgrade tool. When you are some versions behind it was sometimes easier to bootstrap from scratch and copy over your own code.

One thing to say about Expo is that, here too, it's easier to start with a newly created app than to add expo later on, partly because Expo's docs assumed you did that.

← PreviousPage 2 of 3Next →