News for hackers. Stuff that matters.
Re:Stack-Oriented Programming by n4r9 on Tuesday January 14, 2020 @02:43PM (#22048468)
I went through a basic Forth tutorial [0] a couple of years ago and really enjoyed the process. It gets you to the point of building a real game of "snake", although it slightly glosses over the actual canvas interface.

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

Re:Stack-Oriented Programming by int_19h on Tuesday January 14, 2020 @10:05PM (#22051438)
The really interesting thing about Forth is just how minimalistic a bare-metal Forth implementation can be - not even an interpreter, but literally a few words handcoded in machine code, and the rest built from there (and then possibly optimized with more machine code, if you need that).

Given the ease with which Forth can be ported to other platforms and architectures, I often wonder why there's no C-to-Forth translator - it seems like it would be just about the easiest way to bootstrap things.

Re:Stack-Oriented Programming by pjmlp on Wednesday January 15, 2020 @05:57AM (#22053233)
Re:Stack-Oriented Programming by ngcc_hk on Tuesday January 14, 2020 @10:02PM (#22051424)
Interesting. But in iphone we do not have arrow keys sadly. Possibly can hack ... but not forth.
Re:Stack-Oriented Programming by ngcc_hk on Wednesday January 15, 2020 @10:24PM (#22061417)
I try to find a better way to try this and after reading hackaday on Forth 2017 which highlight the latest (2017) update on Forth development:

https://hackaday.com/tag/forth/ (mainly this: https://hackaday.com/2017/08/04/take-the-blue-pill-and-go-fo... )

I find this and you can run the whole thing on my MacBook in 5 minutes. It is great:

https://jeelabs.org/article/1720b/