News for hackers. Stuff that matters.
Re:A pure JavaScript implementation of Git for Node and brow... by mortdeus on Wednesday May 16, 2018 @09:30PM (#17087951)
we have wasm now. why is anybody writing anything in javascript ever nowadays? some form of religious self chastisement?
Re:A pure JavaScript implementation of Git for Node and brow... by krapp on Wednesday May 16, 2018 @09:38PM (#17087999)
wasm isn't quite ready yet. It requires a javascript layer for interacting with the DOM, which is slower than plain javascript, and it doesn't support features like garbage collection which would make it a good target for some languages.

Also, javascript is plaintext and doesn't require a compile step, even though for some reason (cough Node) javascript development usually does, which makes it much more convenient for its original intended use case (a scripting language for the web) than wasm.

Re:A pure JavaScript implementation of Git for Node and brow... by always_good on Thursday May 17, 2018 @12:37PM (#17092895)
It's funny how everyone damns web technology for changing too fast.

But now that wasm is slightly available, the same people wonder why it's not self-evident that everyone should've jumped ship immediately to such fledgling tech that isn't even a drop-in replacement for Javascript.

Re:A pure JavaScript implementation of Git for Node and brow... by TeMPOraL on Wednesday May 16, 2018 @11:40PM (#17088539)
Doesn't compiling a non-JS language into WASM require compiling a fat language runtime as well? That would put the output in couple-dozen-megabytes category.
Re:A pure JavaScript implementation of Git for Node and brow... by dragonwriter on Thursday May 17, 2018 @11:06AM (#17091914)
> Doesn't compiling a non-JS language into WASM require compiling a fat language runtime as well?

Not necessarily. For a language with a large runtime that is either irreducibly large (perhaps because you need to support unrestricted eval) or for which you don't wish to spend the effort to allow your build toolchain to bundle only as much as your program actually uses, sure.

Re:A pure JavaScript implementation of Git for Node and brow... by regularfry on Thursday May 17, 2018 @02:20PM (#17093952)
Because we have to support IE 11.
Re:A pure JavaScript implementation of Git for Node and brow... by MrL567 on Thursday May 17, 2018 @11:00AM (#17091845)
Some of us don't want to use a C/C++ inspired language for web development when there is a simpler solution offered.