-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: jsBeeb and WebAssembly #150
Comments
Heyas! It can definitely use Most |
Thanks for your input @mattgodbolt . I guess my suggestion came from this weird, and possibly terrifying thought - that websites won't need HTML, CSS and Javascript anymore. Instead, you'll get proprietary websites built entirely in WASM, using their language of choice. Or this - a website built in MODE1 with PLOT codes and VDU23 character definitions instead of CSS, and BASIC PROCedures and FNs for back/front end code! 😧 |
Interesting comment about wasm: https://news.ycombinator.com/item?id=20458624 and here's Chuckie Egg on an Acorn Atom in wasm!
|
Judging by this video from the 2019 Chrome Developers Summit, a lot of work has been done to support threads, yielding significant performance improvements. |
Hey folks! I don't know that jsbeeb will ever do wasm! I have one experiment using asm.js (a similar but different technology) - #177. WebAssembly isn't designed to be hand-written: it's made for being a target for compilation. So, like I said up above it's not really a goal for jsbeeb. With respect to threads: I don't know how I could use threading to speed up jsbeeb: there's only one logical thread of execution: the CPU. Everything else is synchronized at the cycle level with that, so it's not like I can have one thread for video, one for CPU, one for sound etc -- they all would end up locked waiting for each other. I'm not saying it can't be done, but it's not a simple thing :) |
@mattgodbolt have you seen AssemblyScript? Maybe that's a way forward with some refactoring rather than a rewrite??? https://www.assemblyscript.org/ |
Ooh! thanks @murkle !! I'll take a look! :) yes! |
on man this is a rabbit hole...one that looks far too fun to get in to :D |
Hi,
This WebAssembly lark looks interesting. Wondering whether jsBeeb can utilise wasm in the future. It would be an interesting diversion. In theory, JS is one of many options for compiling to WASM.
Your thoughts?
The text was updated successfully, but these errors were encountered: