News for hackers. Stuff that matters.
Re:React VR by Rusky on Tuesday March 14, 2017 @04:53PM (#13871359)
> asm.js

But then you're no longer using the language. The performance-hostile semantics are still there, you're just not using that part of the language, and thus losing out on all their benefits.

Re:React VR by Sammi on Tuesday March 14, 2017 @04:58PM (#13871401)
Yeah the whole reason asm.js is fast is because it strips out the performance hostile parts of js.
Re:React VR by frandroid on Tuesday March 14, 2017 @05:32PM (#13871654)
The ReactVR framework can use asm.js to gain acceleration but you as a front-end developer could stick to best JS VR practices to not get in the way of the performance ReactVR with asm.js brings you (if it uses it now or in the future).
Re:React VR by javajosh on Tuesday March 14, 2017 @05:09PM (#13871502)
Any language that uses LLVM isn't using the language either, by this definition. That would be a shock to most C++, CUDA and Swift developers.
Re:React VR by Rusky on Tuesday March 14, 2017 @11:14PM (#13873541)
How so? LLVM is used to implement language features, performance-hostile ones included. asm.js is a codified way to avoid language features.

You may be confusing layers here. asm.js as a compilation target is used the same way as LLVM- it is used to implement the source language's features, while simultaneously avoiding some of JS's.

Re:React VR by javajosh on Wednesday March 15, 2017 @07:04PM (#13880754)
I'm sorry, I didn't think I needed to spell it out: LLVM front-end compiles a high-level language into an intermediate representation ("IR") which is then transformed by the backend into machine code. A compiler targeting wasm occupies the same space as the LLVM front-end. Now, in a browser there is not as obvious a back-end, but it's there: it's the JSVM JIT code.
Re:React VR by Rusky on Thursday March 16, 2017 @12:41AM (#13882553)
That's not at all relevant.