giesse / Project-SnowBall

This project is getting less misterious than it used to be...
http://www.colellachiara.com/soft/topaz/try-topaz.html
MIT License
43 stars 3 forks source link

Call native js functions from topaz #3

Open neimanpinchas opened 1 year ago

neimanpinchas commented 1 year ago

Hi

I played arround a little with Topaz, and I like the language, (as i like rebol), I would like to start using it in place of coofffeescript, for web.

I am wondering how its possible to call native javascript code (getElementById, fetch, + many other js libs) from withn the rebol interpreter.

I am sure its possible as this is what the interpreter is doing to survive, but I wasn't able to get how to execute my own js code from the console

giesse commented 1 year ago

Unfortunately, due to unrelated things, I stopped working on this back in 2011. It wouldn't be too hard to add a way to run JS code, but I'm not sure it's worth it given that a ton of other things are missing.

There's an active project though you may want to look at: https://github.com/ALANVF/Red.js