2 ms·
I wonder how hard it would be to rewrite the JIT to generate Javascript that can be JITed by JavaScriptCore. Presumably it'd be a lot less dynamic than JS norma
by throwup238 3y ago
I wonder how hard it would be to rewrite the JIT to generate Javascript that can be JITed by JavaScriptCore. Presumably it'd be a lot less dynamic than JS normally is, allowing for better performance.
The web will eat everything.
- Cloudef 3y agoThat would be incredibly slow and error prone for the level of things they need to emulate. I can't even imagine the nightmare of emulating the different floating point operations and rules using javascript.
- olliej 3y agoThe ability to use a JIT is not determined by the framework being used. It is a sandbox property for the process. If you use JSC in a process that cannot use a JIT it will just use the interpreter, that has always been the case. But more to the point, if you’re going to use JS (or WASM) why not just make it a webpage, that’s what the “web eats everything” means. We’ll ignore for now the whole reason the web is so great is that webpages cannot screw with your system. The fact that people keep trying to make a web page as powerful as an installed app just means every web page becomes dangerous.
- ec109685 3y agoProbably not make sense to target JavaScript, but it could target web assembly. At least in the EU alternative browser are allowed to use the JIT, so an Arc browser that runs emulators should be allowed. https://developer.apple.com/support/alternative-browser-engines/ https://developer.apple.com/support/alternative-browser-engi...