Hacker News new | ask | show | jobs
by vishnuharidas 104 days ago
Nothing can't be first-class as long as it is not *directly* replacing the existing first-class citizens.

If Wasm modules can be loaded like this:

    <wasm src="/module.wasm" start="main" data="..." />
...and if Wasm could access the DOM like this:

    import dom, json, re, html, urllib.parse
    from datetime import datetime
    
    params = urllib.parse.urlencode({"category": "news", "limit": 10})
    data = json.loads(await (await fetch(f"https://api.example.com/data?{params}")).string())
    container = js.document.getElementById("app")
    container.innerHTML = "".join(f"..." for i in data["items"])

...then developers would have jumped in right away.
1 comments

The oldest story in tech standards; a play in three acts:

> "We've developed Foo 2.0. It does not have feature parity with Foo 1.0, but it's more architecturally elegant in ways that are meaningless to the public. It took ten thousand man hours and was done instead of much needed upgrades to Foo 1.0."

*one year later*

> "Why is no one adopting Foo 2.0? Yes, it doesn't have feature parity with Foo 1.0, but it's frankly irresponsible of the public not to understand that 2.0 is a higher number than 1.0."

*ten years later*

> "Remember Foo? What a mess. Thank god Bar came along."

*eleven years later*

> "Announcing Bar 2.0... "