News for hackers. Stuff that matters.
Re:A pure JavaScript implementation of Git for Node and brow... by erikpukinskis on Thursday May 17, 2018 @03:03AM (#17089373)
When people say “The Browser” they mean “that thing which is on literally every computer where you instantly load that one kind of software”.

People think the web is a technology, or that JavaScript is a language.

They’re not. It’s not. The web is an idea: it’s the idea that every computer in the world already has the runtime on it that can run your next app. Whatever that is—whatever that runtime is—that’s “The Browser”.

WASM is not that. Maybe in 10 years.

Re:A pure JavaScript implementation of Git for Node and brow... by nulagrithom on Thursday May 17, 2018 @11:37AM (#17092238)
What are you babbling about? The web is technology. JavaScript is a language. And WASM is shipping in all major browsers already.

You don't have to wait 10 years. You can start using WASM today.

Re:A pure JavaScript implementation of Git for Node and brow... by erikpukinskis on Friday May 18, 2018 @01:30AM (#17098952)
It hurts my feelings that you think I’m babbling. I’m trying to be as articulate as I can.

I don’t want to write software just for people with 2 year old iPhones. I write software for everyone, especially people who can’t afford anything but the hardware they’re stuck with. That’s why I’m not going to target WASM.

That’s my point: to me, “The Web” isn’t just modern browsers on newish devices. It’s the whole world as an audience. I think that’s why so many people target the web.

I also think WASM is premature optimization in almost all situations.

That said, I totally support anyone who wants to target it. It’s dope technology. If you love Rust and you want to write browser apps with it, and limit your audience a little, knock yourself out. I don’t think you’re embracing what the web is for, but there’s no law that says you have to.

Re:A pure JavaScript implementation of Git for Node and brow... by somenewacc on Thursday May 17, 2018 @06:37AM (#17090164)
emscripten can compile to both wasm and asm.js and load them depending on browser support. this seems good enough.
Re:A pure JavaScript implementation of Git for Node and brow... by erikpukinskis on Friday May 18, 2018 @01:35AM (#17098965)
Performance won’t be as good as hand tuned JavaScript with native DOM calls.
Re:A pure JavaScript implementation of Git for Node and brow... by abiox on Friday May 18, 2018 @12:02PM (#17102499)
webassembly has vastly improved performance in a variety of situations.
Re:A pure JavaScript implementation of Git for Node and brow... by abiox on Thursday May 17, 2018 @12:24PM (#17092740)
afaik webassembly has shipped in all major browsers - edge, firefox, opera, chrome and safari... including mobile versions.
Re:A pure JavaScript implementation of Git for Node and brow... by erikpukinskis on Friday May 18, 2018 @01:36AM (#17098971)
If your audience can exclude the very poor and people with extreme bandwidth limitations ( for updating OS, etc), or you can afford to just tell people “no” then that’s certainly a decision you can make. But you’ll be saying no to a lot of people.
Re:A pure JavaScript implementation of Git for Node and brow... by abiox on Friday May 18, 2018 @12:00PM (#17102484)
i'm sorry but i don't quite follow what you're trying to say.
Re:A pure JavaScript implementation of Git for Node and brow... by erikpukinskis on Saturday May 19, 2018 @03:00PM (#17109208)
I’m getting a lot of pushback in this thread so I’ll put this in the “maybe I’m wrong bucket”.

I’ll wait to talk about it again until after I have experience doing browser compatiblility testing with a WASM toolchain.