@15:40 i was surprised that literal numbers could be used as ordinary defined words, i expected Forth would interpret numbers as numbers and put them on the stack and not search it in the dictionary, but appearantly that is incorrect. I would however not be recomendable to use numbers as words, because the code would become less readable.
That would likely be because that workshop has ended. It's not hard to find a Forth to play with yourself; e.g. someone linked one that runs in a browser in another comment here.
I don't quite know what's going on here, but 5! is 120 not 78. I tried your code using Win32Forth and it returned the correct answer so I don't see how you got 78? I tried values from 1 to 15 and they all seem to be correct so you must have suffered some kind of glitch.
Some are, many are not. There are many different Forths; e.g. gforth and yforth have portions implemented in C, while durexForth is implemented in 6502 assembly. Often most of the vocabulary is in Forth itself, and it's far easier to write a new implementation than for C. There are also some processors designed specifically to run Forth. Your assertion that anything implemented once in C would fail strikes me as rather strange, though. Does it have any basis? E.g. have you decided that Python, Java and C++ all failed?
@Rob Scovell I am not a Javascript specialist - but it is all in github - as alternative there is now Ting's jeForth, see it tonight in the Zoom meeting
I'm hooked ! Thanks for recording this video and making it available. 👍
Interesting talk, Thanks. Reminded me of several thing long forgotten.
Very good information about using and programming in FORTH. Many Thanks for the nice presentation.
OK I figured it out. you were using hex mode and 120d is 0x78h so in fact the answer was correct, just in an unexpected format.
@15:40 i was surprised that literal numbers could be used as ordinary defined words, i expected Forth would interpret numbers as numbers and put them on the stack and not search it in the dictionary, but appearantly that is incorrect. I would however not be recomendable to use numbers as words, because the code would become less readable.
Thanks Very much quite enlightening. : - ))
Amazing! Thank you.
This was really interesting, thanks. Did you export the presentation from org-mode?
The Forth terminal link in first slide is not working
That would likely be because that workshop has ended. It's not hard to find a Forth to play with yourself; e.g. someone linked one that runs in a browser in another comment here.
I don't quite know what's going on here, but 5! is 120 not 78. I tried your code using Win32Forth and it returned the correct answer so I don't see how you got 78? I tried values from 1 to 15 and they all seem to be correct so you must have suffered some kind of glitch.
I also reacted and checked in GForth and the code given works on my system as expected. No idea what happened.
@@niclash: Yea, I frequently use gforth myself and it works just fine.😁
@@niclash Also see my second post frm back when, the answer was given in hex!😁
it should be FILO not FIFO. FIFO is actually queue.
🙂FYI; We normally call it LIFO and not FILO.
@@niclash i usually call it sugondeez
cube root
where can I download forth so I can reaplce freebsd icewm firefox and usb3 disk with forth in 1% the code?
Is the compiler written with any C code?
If so, it is bound to fail.
Some are, many are not. There are many different Forths; e.g. gforth and yforth have portions implemented in C, while durexForth is implemented in 6502 assembly. Often most of the vocabulary is in Forth itself, and it's far easier to write a new implementation than for C. There are also some processors designed specifically to run Forth.
Your assertion that anything implemented once in C would fail strikes me as rather strange, though. Does it have any basis? E.g. have you decided that Python, Java and C++ all failed?
@@0LoneTech Yes: For safety-critical applications, certainly they are failures.
I now now know why you cower behind a fake infantile name.
@@MichaelKingsfordGray Ah, you're just stirring up trouble. Infantile indeed.
@@0LoneTech Says the infantile anonymous coward, stirring up trouble!
Alanis Morrissette, THAT is irony!
@@0LoneTech So what programming languages are the safest? And please mention other ones than Rust or Ada.
And Easyforth there is a Forth written in Javascript - try it online - no download or installation required.
@Rob Scovell I am not a Javascript specialist - but it is all in github
- as alternative there is now Ting's jeForth, see it tonight in the Zoom meeting
note to computer forth people gods we want web browser! rest is blah balh
????