News for hackers. Stuff that matters.
Re:The Forth Methodology of Charles Moore by stephen_cagle on Friday July 12, 2024 @04:00PM (#40948871)
One other weakness that I sometimes wonder about in relation to Forth is that modern processors are just much more complicated to reason about internally. I am not sure how much efficiency I can pull out of them at reasonable cost considering they likely have.

1) Out of order execution 2) Multiple levels of caches 3) Branch predictors

Forth has several neat advantages. I think it might be a better way to reason about a complex problem. It can be bootstrapped on almost any piece of hardware. It can be made to be very memory efficient in its runtime.

Those things were true in the past and they are still true now. But I do wonder whether the performance part of it is still true. Not because Forth has changed, but simply due to the fact that modern hardware (+ compilers) can take mediocre code and make it into pretty damn performant code.

Re:The Forth Methodology of Charles Moore by coliveira on Friday July 12, 2024 @05:34PM (#40949650)
That's correct, but Forth can always be made to run faster with enough additional work (a more robust compiler for example). That's what commercial Forth still do nowadays.