Top
Best
New

Posted by setheron 6 hours ago

2035 Came Early(fzakaria.com)
376 points | 132 commentspage 3
rcymerys 3 hours ago|
At the same time, we can now use AI to rebuild anything as a native desktop app written in Rust.
petterroea 3 hours ago||
It's cool but doesn't even run `bb`[1] with decent performance, which is a shame.

[1]: https://www.pouet.net/prod.php?which=6176

F117-DK 2 hours ago||
Pooya is the ! Just hope he won’t leave Nitro behind. But what a time to be alive!
boxed 3 hours ago||
Well.. the prediction was about JavaScript. This is WebAssembly. A big part of the reason the timeline accelerated is that the goal post was moved. A lot.
swiftcoder 3 hours ago||
I don't think anyone draws a particular distinction between asm.js (the "javascript" of the presentation) and WASM.

WASM is an optimisation of something that, while technically javascript, was already unreadable compressed bytecode...

rob74 3 hours ago|||
If they don't, they should. asm.js was a subset of JS that other languages could be compiled to and was optimized so it would run faster. Ok, it was minified and unreadable, but still JS. WASM is real bytecode, no JS involved anymore.
egeozcan 3 hours ago||||
Same OS thread, same event loop and it shares its memory, but a completely different runtime. I really love JS but OP has a point.

So philosophically yes, its the same thing, but that talk has so much emphasis on something so quirky being the universal runtime. WASM isn't JS-level quirky.

swiftcoder 2 hours ago||
> WASM isn't JS-level quirky

I mean, WASM-in-JS kind of still is that quirky. Since we constantly have failed to expose a native WASM browser API, all of our WASM is glued together with weird generated javascript hacks...

iberator 1 hour ago|||
huge difference - you can port existing executable programs to it. and they will work. WASM is Java Applets 2.0 but with near native performance and better security design
yread 2 hours ago|||
Yeah, almost none of this is actually written in JavaScript. It's transpiled to it, but not written in it
boxed 13 minutes ago||
Not even that. It's WASM.
RobotToaster 3 hours ago|||
Isn't WebAssembly just transpilation to a subset of JS?
Alghranokk 3 hours ago|||
asm.js is a subset of javascript, Webassembly is its own bytecode format.
boxed 12 minutes ago||
Was. That project has been shut down for years.
jampekka 3 hours ago|||
No.
llm_nerd 1 hour ago||
While it's neat that we have tools to port stuff from one Turing complete runtime to another, the whole "JavaScript" element of the linked page is tenuous. WASM is a virtual machine made to run in web browsers. We had an asm.js that was the precursor to more easily transpile other languages -- transpiling between Turing complete languages has been a thing forever -- but extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness.

It's a legitimately funny basis for a piece, but it's intellectually misleading.

And of course none of this is remotely new. We've had emscripten to compile LLVM intermediate code to WASM, or JavaScript for that matter, for about a decade and half.

lifestyleguru 3 hours ago||
None of that thing is loading. I don't see anywhere "browser inside a browser". Do I need 2k EUR of RAM for it?
yorwba 2 hours ago|
Firefox launched in about 5 minutes (much of which appeared to be spent downloading dependencies) in Firefox for Android on my phone with 8 GB RAM. It didn't react to input, though. Not sure whether that's because the CPU is too slow or simply touch input not being wired up.

Check the settings to see whether unkernel is supported on your browser.

taf2 3 hours ago||
trynix is pretty nice... gcc package installed and 118MB download later... vi and a quick:

``` ~ # ls

hello.c

~ # gcc hello.c -o hello

~ # ./hello

hello world

~ #

```

markasoftware 3 hours ago||
LMAO HE'S USING WISP https://github.com/MercuryWorkshop/wisp-protocol

Wisp is a component of a sketchy but impressive pre-AI project created by high schoolers to develop state of the art html5 based proxies to bypass restrictions on school networks that block game sites, etc. By "HTML5 based", I mean you don't get to run a socks proxy, change your browser settings, etc (many schools just distribute Chromebooks). Instead, you have to be able to navigate to the proxy site, type in the blocked destination URL, and then the Javascript on the website makes it act like the other website. The rough architecture is that it loads a proxied version of the site's homepage, with a pretty fancy rewriter that modifies some asset urls and stuff, uses service workers to intercept ajax requests, and then overrides js functions to even intercept and proxy websockets. This is what it takes for modern SPAs to work. Supposedly their latest proxy Scramjet https://github.com/MercuryWorkshop/scramjet is actually good enough to stream desktop games via the GeForce NOW website. I think this is an instance of it running: https://invisiproxy.com/browsing

Anyway, WISP is a bad protocol. Its essentially meant to be a very shitty http2-like protocol that multiplexes tcp streams over a single tcp/websocket stream. This is fundamentally not very hard, all you really need to do is be able to tell which data comes from which stream and do flow control. They fucked up the flow control, though: The CONTINUE message indicates how much buffer space is available / how many more bytes can be accepted on a given stream at the time the CONTINUE message was generated. Every respectable protocol for flow control would instead transmit an absolute offset (eg, the sequence number in TCP). Because of this flaw, you can never be quite sure in WISP how many more bytes the other side is willing to accept on a stream: If you receive a CONTINUE frame while you were in the middle of sending packets on the same stream, you don't know which of your inflight packets should count against the remaining flow control budget transmitted in the CONTINUE frame. They made two different versions of the protocol over time, and both suffer the same issue. I tried to tell them on their Discord but the only one who understood the flaw didn't seem to care that much. https://github.com/MercuryWorkshop/wisp-protocol/blob/v2/pro...

Regardless, I'm very proud that high schoolers are still up to the same sorts of shenanigans I was.

panny 2 hours ago||
>Any application that can be written in JavaScript, will eventually be written in JavaScript.

False. JavaScript is still not written in JavaScript.

dtf 2 hours ago|
ahem..

https://engine262.js.org/

throwaway27448 3 hours ago||
I know there is some use of webassembly in the browser, but I'm not sure what the last time I actually used it was. I really hate using the browser if I can avoid it and pretty much everything that can be compiled to webassembly works fine natively.

Plus, with LLMs, the advantage of having a single mediocre common ground disappears. Anything with actual user interfaces will benefit from native targeting.

revengerwizard 2 hours ago|
WASM ported demos for games are pretty useful as an easy first try; after all, almost everyone uses a browser, one way or another. The alternative would be handing out executables.

There are certainly many more other applications.

diath 2 hours ago|||
Gamers have this prejudice that if a game runs in the browser, it feels cheap, potentially de-valuating your project. And if you want to ship a demo to your players, you can do it through Steam without just yet releasing the full version of the game.
throwaway27448 2 hours ago|||
Yea, I think games and apps with similar profiles (low interface, high CPU/GPU/Memory demand) are the obvious applications here—quake arena was a decent example.
revengerwizard 1 hour ago||
Yea, it's pretty nice for non-demanding 2D games, or even 3D I guess. PICO-8's website for example lets you play carts uploaded directly on the browser. I also tried with a simple C pixel framework I made which uses my scripting language and it's pretty cool that it runs all in browser (far from perfect, though): https://revengerwizard.github.io/micro-wasm/
ravivarmat 29 minutes ago|
[flagged]
More comments...