3 ms·
Show HN: A playground for in-browser interpreters
- fatiherikli 11y agoCurrently supports Python, Ruby and Brainfuck. Guide to adding new interpreter: https://github.com/fatiherikli/fil#adding-new-interpreter https://github.com/fatiherikli/fil#adding-new-interpreter
- colonelxc 11y agoVery nice. I really like how it pretty prints python objects. I wish it was a bit more "repl"-y, but the quick auto-evaluation helps make up for that. I currently use https://repl.it/ https://repl.it/ for an in browser interpreter/repl.
- amelius 11y agoDoes it re-evaluate the complete thing at every change? Or is it smarter, and only recomputes things that need recomputation?
- fatiherikli 11y agoYes, source code is re-evaluating for every change now. It may be improved in the future.
- vortico 11y agoThe interface of the text editor is beautiful, and it's done using a surprisingly minimal amount of CSS.
- RodgerTheGreat 11y agoThe BrainFuck interpreter doesn't seem to work properly. For example, I tried ++++++++++[->+++++++<]. Which multiplies 10x7 and should print "F" (ascii 70). Nothing appears to print. I have a K interpreter[1] that could be adapted fairly easy to a system like this. Other good candidates include JSForth[2] and NGN APL[3]. [1] https://github.com/JohnEarnest/ok https://github.com/JohnEarnest/ok [2] http://home.diphi.com/users/jeffr/forth/jsforth.html http://home.diphi.com/users/jeffr/forth/jsforth.html [3] https://github.com/ngn/apl https://github.com/ngn/apl
- TazeTSchnitzel 11y ago> Nothing appears to print. Maybe this is a line buffering issue?
- stuaxo 11y agoOh, nice ... it might be worth having Brython too, since it and Skulpt both cover different areas of python (and use different methodologies).