172 points setheron 3 hours ago 29 comments

boxed 58 minutes ago | parent

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 49 minutes ago | parent

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...

egeozcan 44 minutes ago | parent

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.

rob74 15 minutes ago | parent

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.

RobotToaster 35 minutes ago | parent

Isn't WebAssembly just transpilation to a subset of JS?

jampekka 32 minutes ago | parent

No.

Alghranokk 25 minutes ago | parent

asm.js is a subset of javascript, Webassembly is its own bytecode format.

whacked_new 57 minutes ago | parent

This is so insane and so awesome in a pre-AI way. Tokens well spent!

Cu3PO42 56 minutes ago | parent

Farid has been on an absolute roll recently. If you enjoyed this, I highly recommend his other blog posts.

While I'm not sure about the practical utility of this, I love it as a demonstration of what is possible.

ebourgess 26 minutes ago | parent

I just went through some of his blog posts and decided that it deserves a place in my RSS Feed

swiftcoder 48 minutes ago | parent

I did not expect someone to get the nested browser-in-a-browser running this soon. Bravo!

dude250711 47 minutes ago | parent

JavaScript, HTML and CSS are an absolute trash and the fact that AI can insulate me from them makes me very happy.

supersparrow 29 minutes ago | parent

lol no they’re not

throwaway27448 47 minutes ago | parent

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.

saagarjha 40 minutes ago | parent

Part of the justification in the talk was that people did this not just because it was funny, but because it ended up faster because of the investment in web engines. Well, is it?

atillaisik 22 minutes ago | parent

Well it is obvious this is not the only fact that its faster and better to investments for the web engines...

sheepscreek 29 minutes ago | parent

FYI this is a wrapper around https://unkernel.dev which is the OG GOAT.

UPDATE: for context, trynix had been around until unkernel showed up and the author switched to it from qemu.

markasoftware 15 minutes ago | parent

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.

lifestyleguru 14 minutes ago | parent

None of that thing is loading. I don't see anywhere "browser inside a browser". Do I need 2k EUR of RAM for it?

glimshe 13 minutes ago | parent

Around 5 years into my career, I became a tech lead. Over the following years, I slowly drifted towards roles that had less hands-on technical work and more managerial responsibilities.

I've always struggled with leaving hands-on work behind but what made it at first tolerable, and then a blessing, was the rise of Javascript. I think Javascript is so awful, and until recently so prevalent in the roles available to me, that it made me want to not be a Software Engineer anymore. I felt that Javascript was some sort of joke that stayed around long enough until it became a cancer to Software Engineering.

I only stayed in the profession because I like dealing with people and still found "human problems" intellectually challenging and rewarding.

Every day you read many comments here from people who believe that AI took the fun away from their work and lives. It destroyed the reason that made them want to be Software Engineers. That's exactly how I felt about Javascript.

But I feel the complete opposite about AI. In fact, AI brought back the fun that was stolen from my life by Javascript. I'm now retired and spend a good amount of my day working my own programming projects. And I'm absolutely happy to vibecode all the Javascript parts (which isn't a lot in my projects) so I don't ever have to see this damn thing in front of me again.

amosj 11 minutes ago | parent

Thank you for saying it like it is. JavaScript is such a curse (or possibly a joke) on humanity

petterroea 13 minutes ago | parent

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

momojo 12 minutes ago | parent

I asked on the original unkernel thread[0] but I'll ask again:

What do people foresee this being used for? `trynix` is only 1 fork downstream. What's 2 forks away? 3?

This interests me the way V8 isolates or pyodide originally but I've since learned to curb my enthusiasm bc it always turns out "oh its not actually realistic to use this in production because..."

[0] https://news.ycombinator.com/item?id=50533945#50598791

forcedtolinux 6 minutes ago | parent

For me, personally, it is super useful when I am using a company pc or someone's pc with windows, and I would like to do some linux magic to process files or do some shell magic.

Maybe you can do it with windows, but opening a browser tab and being able to be in an almost limitless ephemeral environment is amazing.

I asked as a top comment too... if you can download files from the filesystem, then it'd be great

taf2 11 minutes ago | parent

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

~ #

```

forcedtolinux 9 minutes ago | parent

Is there any way you can download files from the filesystem?

rcymerys 4 minutes ago | parent

At the same time, we can now use AI to rebuild anything as a native desktop app written in Rust.