Hacker News new | ask | show | jobs
by chownie 2575 days ago
Because libmysql.wasm runs on any platform whereas libmysql.so has to be replaced with libmysql.dll on windows.
1 comments

Just like libmysql.dll, that libmysql.wasm will only run on Windows, if there is a Windows application that knows what to do with it.
Yea, that's generally how code works - no?

This is simply an abstraction "everyone" has agreed on. Conceptually no different than if everyone had agreed on Java, or Python, or Brainfuck.

Exactly, and neither the first not the last at it.
But that's not a bad thing. To me it appears better than previous attempts, I heavily look forward to it.

The HN drama around WASM and cries of the days of Java always leave me perplexed. Makes me wish Java didn't suck so bad so these convos could end haha.

All previous attempts, starting all way the back to UNCOL in 1958?

WASM only exists due to political reasons of Mozilla not embracing PNaCL.

If Chrome already had the current market share back then, we wouldn't be seeing such adoration, as if no one ever done it before.

And if Java managed to get a hold we'd be asking why this is better than Java (which doesn't exist with these features in this manner).

That's the point. It's seemingly good, and available. Why the pushback? I don't get your (or anyones) objections.

> If Chrome already had the current market share back then, we wouldn't be seeing such adoration, as if no one ever done it before.

I think you misunderstand the adoration. It's not as if this has never been done before. It's that this isn't done now. What else can I use? Nothing. I remember 10 years ago dying for a way to run Python in the browser and having no reasonable options for general web.

Even now, what other option do I have? ASM.js is the only thing that comes to mind, which has significant downsides.

It feels like the dislike/complaints are pointed in the wrong direction. If you're upset that this isn't Java (not that you are), complain about why Java can't be used right now like WASM can. Complain that Java didn't manage to hold favor 10 years ago.