this post was submitted on 18 Jul 2023
19 points (91.3% liked)
No Stupid Questions (Developer Edition)
896 readers
1 users here now
This is a place where you can ask any programming / topic related to the instance questions you want!
For a more general version of this concept check out !nostupidquestions@lemmy.world
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you want lightweight it's probably better to stick with js or some language that compiles directly to wasm.
That's being said, there are libraries for running python/lua/ruby in a browser and interacting with the dom. I've only personally used python, which is great for running scientific computation things in browser since python has such an ecosystem for that type of thing. It is a pretty big addition to bundle size initially iirc, so I'm not sure how useful it is as a general purpose replacement for js.
Python Lua Ruby
Opal also compiles Ruby to JavaScript https://opalrb.com/