News for hackers. Stuff that matters.
Re:The FORTH code for Chipwits is released in the game's 40t... by Someone on Friday November 22, 2024 @04:54AM (#42212501)
> Very fast (faster than naive assembler)

Depends on how naive the assembler programmer is, and, I would think rarely, if ever, on modern hardware because the many subroutine calls kill branch prediction benefits. Also, on lots of old 8-bit hardware, defaulting to 16-bit integers will kill performance relative to native assembly in cases where 8-bit integers suffice.

(Of course, you can fairly easily replace hot loops by assembly or (more difficult) change the forth compiler to compile parts to native code, fuse words, etc)

There are no comments on this comment yet.