News for hackers. Stuff that matters.
Re:Niklaus Wirth has died by amelius on Wednesday January 03, 2024 @03:52PM (#38859736)
Hmm, but what if the compiler doesn't use the optimized constructs, e.g. floating point optimizations targeting numerical algorithms?
Re:Niklaus Wirth has died by bunderbunder on Wednesday January 03, 2024 @04:31PM (#38860214)
Life was different in the '80s. Oberon targeted the NS32000, which didn't have a floating point unit. Let alone most the other modern niceties that could lead to a large difference between CPU features used by the compiler itself, and CPU features used by other programs written using the compiler.

That said, even if the exact heuristic Wirth used is no longer tenable, there's still a lot of wisdom in the pragmatic way of thinking that inspired it.

Re:Niklaus Wirth has died by whartung on Wednesday January 03, 2024 @10:34PM (#38862669)
Speaking of that, if you were ever curious how computers do floating point math, I think the first Oberon book explains it in a couple of pages. It’s very succinct and, for me, one of the clearest explanations I’ve found.
Re:Niklaus Wirth has died by kragen on Wednesday January 03, 2024 @03:53PM (#38859752)
probably use a fortran compiler for that instead of oberon
Re:Niklaus Wirth has died by hoosieree on Wednesday January 03, 2024 @06:44PM (#38861333)
Simple fix: floating-point indexes to all your tries. Or switch to base π or increment every counter by e.
Re:Niklaus Wirth has died by Someone on Wednesday January 03, 2024 @07:26PM (#38861631)
That’s not a simple fix in this context. Try making it without slowing down the compiler.

You could try to game the system by combining such a change that slows down compilation with one that compensates for it, though, but I think code reviewers of the time wouldn’t accept that.

Re:Niklaus Wirth has died by samus on Thursday January 04, 2024 @12:39AM (#38863470)
Rewrite the compiler to use a LLM for complication. I'm only half joking! The biggest remaining technical problem is the context length, which is severely limiting the input size right now. Also, the required humongous model size.