Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In case it's new to anyone, I recommend going through the jones forth "literate program" - even if you don't understand assembly. You can try porting it to a language you know, it gives a good understanding of how forth works

https://github.com/nornagon/jonesforth/blob/master/jonesfort...



Oh, nice, Jones forth! I second the recommendation to read through it. I ported this to ARM assembly years ago, and it was a lot of fun. No idea where that program is now, unfortunately.

Now that I'm using Apple Silicon day to day, maybe it's time I try rewriting it for ARM64.


It gets hard when you discover that apple has mostly disallowed self modifying code on their arm architecture. You can, with lots of hoops, but a straightforward assembler in forth becomes all but impossible.


Also just learn assembly. The basics take a half hour to grasp if you have any exposure to programming :)


And make it a fun ASM. Like 6502 [0].

[0] https://skilldrick.github.io/easy6502/


My favorite learning assembly. It all mostly applies to every other Von Neumann machine too.


There are at least 2 ports to C that I'm aware of. Here's the older one: http://www.dst-corp.com/james/JonesForthInC-V148.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: