Open drom opened 8 years ago
Wonderful! I remembered a presentation about an in-browser js-Forth years ago but could not find it any more. So I started my own, as I wanted to have Forth running with jqconsole to allow interactive for tutorials directly in the browser. But you have clearly progressed further, and your repl is fun to use. I've never tried browserify, but I'll give it a try.
I made a clone and read the code. Different person different design that interests me and I want to try to run it but found I need some more hints. Thank you in advance.
By the way, FYR jeforth kernel (project-k) https://github.com/hcchengithub/project-k jeforth.3we https://github.com/hcchengithub/jeforth.3we
On Mon, Nov 16, 2015 at 6:07 AM, GeraldWodni notifications@github.com wrote:
Wonderful! I remembered a presentation about an in-browser js-Forth years ago but could not find it any more. So I started my own, as I wanted to have Forth running with jqconsole to allow interactive for tutorials directly in the browser. But you have clearly progressed further, and your repl is fun to use. I've never tried browserify, but I'll give it a try.
— Reply to this email directly or view it on GitHub https://github.com/ForthHub/discussion/issues/15#issuecomment-156861129.
Just undo it! 陳厚成 H.C. Chen Nothing real can be threatened. Nothing unreal exists. Herein lies the peace of God. JavaScript Forth http://github.com/hcchengithub/jeforth.3we
@GeraldWodni @hcchengithub great to hear from you. I am working on ANS94 Core compliance this week, and then documenting the usage.
Here are a few more: https://github.com/search?q=javascript+forth
And some online: https://repl.it/languages/forth http://skilldrick.github.io/easyforth/
Thanks @larsbrinkhoff , for the links. Correct me if I am wrong, but most of them Forth-like languages. Let me know if any of them passes ANS94 of Forth200x complaint suit.
Not jeforth. Passing ANS94 of Forth200x complaint suit would make your work a great reference to understand the standards.
Here's mine:
http://larsbrinkhoff.github.io/lbForth/forth.html
Credit where credit is due: the port was done by @pipcet.
I also made a FORTH that runs in a modern browser with only JavaScript. It works in Phosphorus, but w/o showing stacks as lists: http://phosphorus.github.io/#137676871 http://phosphorus.github.io/app.html?id=137676871&turbo=true&full-screen=true
You can run the original version if you have Flash (e.g. Chrome). The instructions are there. The keyboard is rather difficult to use, but is explained there. You don't need Flash to read the instructions. https://scratch.mit.edu/projects/137676871/
I have transferred this project to ForthHub organization here: https://github.com/ForthHub/forth
Me tooo - https://github.com/mitra42/webforth - JS based on eForth - just adding file management at the moment for when used with node, and will add fetching of files via http for the version that runs in the browser ( https://mitra.biz/forth/console.html is live instance, but not always the current version ).
The node version also has a cross-compiler and can output sketches for Arduino Uno or ESP8266 currently.
Note - doesnt' use browserify or webpack - there are zero external dependencies that need compiling, just what the browser or node already come with.
I have implemented Forth interpreter in JavaScript: https://github.com/drom/forth Can be used with node.js (cli / library / streams) or in the browser. Goal: to be ANS94 / Forth2012 compatible.