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, eventually as a manager, 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.
I don't get the Js hate. I have meaningful experience working in many languages (C++,Js,Ts,C# to name the biggest by LOC written). I've shipped nontrivial software in all of these.
I think Js is.. okay? I can name some strengths and weaknesses,both of the language itself and the culture/ecosystem, but I certainly don't hate it.
Same. I actually very much enjoy JS compared to most other languages. It's always been cool to hate on JS.
A lot of juniors see JS hate as a way to make themselves appear more experienced. If you say you hate JS, it's a kind of flex because it implies that you've tried multiple languages and concluded that JS is the inferior one because it imposes fewer guardrails than the others and has a few nasty gotchas (which they all have, if you're being honest).
C's gotchas are pretty nasty if you ask me; mess up a pointer reference or forget to check a buffer's size and you've given an attacker root access. That's as nasty as it gets.
Even a hyped language like Rust has issues in terms of build time, gaps in concurrency safety (e.g. lock issues/complexity), async (function coloring) complexity, panics as a DoS attack surface.
Sometimes a language provides some kind of safety but simultaneously incentivizes anti-patterns and runaway complexity. Actually this point highlights what I like about JavaScript; although it isn't the most safety-conscious language (though at least it does a pretty good job protecting from remote code executions via buffer overflows), it is succinct and the lack of guardrails incentivizes people to keep function interfaces simple which encourages high cohesion and loose coupling. JS punishes you big time for not designing your architecture carefully. I also like this about Python. Python code, in practice, is quite succinct and pleasant to read.
TypeScript's type safety is nice in theory and great in the hands of an experienced architecturally-minded engineer, but it also allows sloppy coders produce overly complex but functioning spaghetti code. An ugly TypeScript codebase can go much further than an ugly JavaScript codebase, but the day of reckoning is often worse with TypeScript as it requires more heavy-handed, less localized, refactorings; even its flaws can create the illusion that TypeScript is useful because it does a great job at pointing out where the different spaghetti stands aren't making contact in the right way but it does nothing in terms of alerting you that "this project is a tangled mess of spaghetti code.'
I think I feel the same way about DevOps that you feel about JavaScript.
I'm more of a product guy so I tend to view DevOps as absolutely critical, and an area where a correct solution is of supreme importance, but also as something of a distraction from doing something that I find more fun and interesting.
(Before anyone gets upset, I'm not making a general statement about whether or not DevOps is objectively interesting, I'm just saying that I don't enjoy it. I know loads of people do find DevOps satisfying, which is absolutely great and to the benefit of all of us.)
But Claude has allowed me to set up this ludicrously overengineered pipeline - the sort of thing you see in a large enterprises with complex microservice architectures - that has completely automated every aspect of build, deployment, configuration, testing (including ordinarily pesky end to end tests), security and application hardening, monitoring, alerting, and so on. I've hit the ideal of "when the pipeline is green, the software is ready for release"... all for a personal website that gets maybe half a dozen real human visitors per day.
It's sort of ridiculous but, at the same time, with the increased frequency of new critical CVEs over the past few weeks and months, it also feels necessary.
But the great thing is that, in relative terms, I don't have to spend loads of time on it and can instead focus on other aspects of the site that are more interesting to me.
Mitch Bradley retired and didn't want to ever write a Forth implementation again (after a long line of them like CForth and OpenFirmware) but I talked him into using Claude to write one for the PDP-7, which he went to bed skeptical of, woke up at 7am with some ideas, and finished implementing by noon. Including a turtle graphics library for the Type 340 vector graphics display -- itself an assembler for 340 intructions, written in Forth running on PDP-7 instructions!
He really enjoyed doing it, I enjoyed building on top of what he did, and it's one of the most elegant implementions of Forth I've seen, as if for decades the PDP-7 has always had a fast lean mean Forth screaming to get out, thanks to its ideal instruction set.
Now thanks to JavaScript's efficient VMs inspired by Self, and Dave Ungar's subsequent ideas about Korz, it runs ridiculously fast on a Korz PDP-7 emulator implemented in TypeScript with a PDP-7 instruction to JavaScript JIT. So does the Korz Apple ][ emulator. Now I'm working on reincarnating my Apple ][ ProDOS 6502 Forth 83 system.
>I've frequently written about Mitch Bradley's Forthmacs / Sun Forth / CForth / OpenBoot / OpenFirmware on HN. I was his summer intern at Sun in 1987, and used his Forth systems in many projects! [...]
"EFI? Intel has been trying to shove that down our throats for years." discussion:
Mitch Bradley originally developed a Forth system at Sun for use diagnosing and developing hardware, by burning it into ROM and running it via a serial port. It was based on Langston and Perry's Forth-83, and had a meta compiler that could target different word sizes and architectures. He made it even more architecture and word size independent, implemented interactive top level loops and conditionals, emacs-like line editing, all kinds of low level device drivers and testers that ran in stand-alone mode, and many other features, including full 16 and 32 bit support with a vocabulary for writing word size and endian independent code.
He ported Sun Forth to 68K and SPARC Sun workstations, as well as the Amiga and other systems. It ran in both stand-alone mode (from disk, tftp or ROM), or under Unix. Under Unix, it could dynamically relocate and link in Unix libraries, and you could call back and forth between Forth and C.
Sun Forth eventually evolved and standardized into the Open Firmware [1], whose purpose was to support machine independent byte code [2], so plug-in hardware cards could include ROMs with Forth byte code drivers that ran on 68K, SPARC, x86 and other systems.
Sun shipped it with the SPARC workstations, Apple adopted it and shipped it on their PowerPC Macs, IBM shipped with their POWER servers, and Mitch worked directly with the OLPC project extending OpenFirmware to support the OLPC XO-1 Children's Computer secure and power efficient hardware. [3]
>OLPC Wiki: Open Firmware
>Open Firmware is the hardware-independent firmware (computer software which loads the operating system) that the XO runs.
>It was developed by Mitch Bradley at Sun Microsystems, and used in post-NuBus PowerPC-based Apple Macintosh computers (though it has been dropped with Apple's transition to Intel processors), Sun Microsystems SPARC based workstations and servers, IBM POWER systems, and PegasosPPC systems, among others. On those computers, Open Firmware fulfills the same tasks as BIOS does on PC computers.
>For example Fedora and Debian use the YaBoot BootLoader for Open Firmware.
>The Open Firmware user interface includes a FORTH-based shell interface. FORTH is a powerful high level language that is remarkably compact. A complete Forth development environment including compiler, decompiler, assembler, disassembler, source level debugger, and assembly language debugger is present in the XO boot ROM (SPI FLASH). With the Open Firmware Forth system, you can directly access all of the hardware devices on the XO, use built-in functions like selftest diagnostics and games, and even write complete applications, without needing any external tools. The bulk of Open Firmware is written in Forth, so the source level debugger can be used to debug Open Firmware itself.
I had been working (read: prompting Claude) on https://waarm64.com for two months and it was slightly heartbreaking to see unkernel get all the attention when I was like two weeks away from a public announcement. It would obviously have been worse if I had actually built more of mine "by hand," but still, even if just doing by orchestration/"asking good questions to the LLM" kind of work, I spent probably over a hundred hours on it. I rushed its release, but now I don't even really feel like working much more on mine anymore, even though it achieves (or achieved) better performance than unkernel and (for now) still has a more complete feature set. Oh well, it is in line with the motivation I had for mine, which was to see if LLMs could help one person build that sort of thing. Turns out that not only can LLMs do the bulk of this kind of work, they can do it so well that numerous projects of the same kind are popping up pretty much simultaneously. They still can't make WebAssembly beat hardware virtualization, though :D
Similar occurred to me recently: in June I got Airdrop working between Apple and non-Apple devices with a Rust crate “awdl”. Months later, someone else made owly and got 3,000 stars
But I got just a little bit more working such that I was able to upstream a few PRs their way. Now I don’t have to maintain an unwieldy codebase alone while being able to still enjoy actually using the functionality and wrapping it for other consumers (Dart, Flutter).
An independent implementation is sometimes very valuable for the next reader’s study and for the health of the wider ecosystem. Keep at it or at least share where you stopped—-don’t hoard until you have something perfect.
>I was able to upstream a few PRs their way. Now I don’t have to maintain an unwieldy codebase
I just wanted to say kudos for this.
I think a lot of people would have taken their toys and gone home (ie. mothballed the project without sharing anything) ... or published a competing project.
What you did was the best for everyone (yourself included) ... but again, I think many others wouldn't have been as wise.
This looks extremely cool! If I may offer you any encouragement, it would be to keep going and have fun and maybe share ideas or code across with unkernel? Esp as yall seem to be targeting slightly different use cases.
Regardless, I appreciate your work, thank you for sharing! (I'm especially interested in Vulkan on WebGPU)
What use cases do you have in mind for Vulkan on WebGPU? That adapter is the trickiest one to fully complete (there are many things Vulkan allows and WebGPU simply doesn't, and that can't be converted/emulated in a performant way) and I've lost some of the motivation for continuing to work on it, because I'm finding it tricky to find software that takes advantage of Vulkan while simultaneously being sufficiently light on CPU to run well within waarm64 (and also while being aarch64-native, because while FEX works, it makes the CPU performance story even worse). The Godot editor, and any projects I can compile through it, have been the main driver so far, with its Forward+ renderer.
Keep at it! You have an appreciation for the craft and goals of the project.
So much of modern software development is now product sense. You might find encouragement that others have validated that what you’re building is useful!
You don’t know where unikernel will (or won’t) go in the future. You can be the standard still.
I think that software compatibility with these kinds of solutions will always be worse than emulating an entire machine, even if performance has some opportunities to be better (and for some software, it'll be _much_ better to compile directly to wasm). For one, wasm is still a bit of a niche target for many compilers; working on waarm64 alone, Claude found a wasm miscompile in Rust that turned out to be a LLVM problem (which I already reported and has already been fixed upstream). Then there's all the closed source software: it's probably a far fetched example in terms of use cases, but good luck getting e.g. Valve/Steam to care about wasm when they've only started caring about aarch64 recently - meanwhile, Steam already works, with some patience, in my emulator.
Well, for me that part of the equation has changed. It used to be the joy of a cold glass of water after a marathon; now it is the joy of infinite potato chips without leaving the couch. It’s still gratifying but it feels less meaningful, especially when anyone else can eat the same chips from their couch.
I think there will be room in the future for both those who want to write artisanal, handcrafted code and those who want to say "Computer: Tea, Earl Grey, Hot." for their code (to solve their problem), from an enjoyment and meaning perspective.
What does current software engineering comp look like versus historical? Keep in mind that it isn't all AI, but also interest rates making money more expensive.
My humble opinion is that FAANG comp was never sustainable, and that outlier software engineering comp was an artifact of Big Tech's moats and zero interest rate policy. Software engineering comp is now converging towards other white collar work. $200k-$300k/year total comp is probably still doable with a few years of experience, but $500k+ not so much.
I have ~25 years of experience in technology professionally. No FAANG or Big Tech employment experience (they don't hire high school dropouts). I am a high school dropout, no credentials, all work experience. My first job was a busboy making minimum wage. My first tech job was as a junior sysadmin making ~$45k/year wrangling all of the tech for a web development shop circa 1999-2000. I've made $80k/year at a DOE lab supporting data taking and physics jobs for a detector at the LHC, I've made ~$95k/year working for a YC startup, I've made $200k-$300k/year in large, profitable enterprises, I've made $1M+ some years with my own businesses. My take is that of a scholar of the macro, take it for what it is.
It sucks when industries change, I deeply empathize, but change is inevitable. Keep riding waves until you're done surfing for cashflow. Those who enjoyed lottery tickets of fantastic comp during zero interest rate policy should enjoy that they paid out. I have no issue with folks who won the lottery, congrats to them.
If you’re old enough, you experienced when computer people were greasy nerds who made a regular salary and were looked down on by normies who worked in sales and other normie jobs.
I did get into FAANG through a side window when such windows still existed. And tbh they still do, but it’s almost always via acquisition.
But if I had started that journey 5 years later, chances are good I’d be in a different spot.
Even if there is a "winner", there is always room for and a necessity for alternatives.
Also, do remember the XKCD comic of 10000 per day (https://xkcd.com/1053/). There are going to be many who will have learned of such a concept for the first time, and won't care who made it happen first.
There is enough of a differentiator in what you are making.
Rejoice: Competition validates a product category.
My own efforts have done better after someone creates a knockoff. Competing products help educate the market place, greatly reducing your burden. It enables users (potential customers) to compare and contrast. A product with no viable alternative is almost illegible to prospective users.
It's really great when you can choose your users. Maintaining and supporting a product that directly fulfills user requirements and use cases is a joy. Versus trying to be All The Things for every random use case and drive-by kibbitzer. Maybe your waarm64 becomes the preferred choice for the discerning customer, who knows what they want.
So if you still have the drive, I'd encourage you to see unkernel as friendly competition, use it as a motivator.
Great work. Please do share for the masses your setup as I'm finding that an education in itself. Not yet into LLM created software as I'm first working through the (too) many look alike GUI and CLI tools to see which works for me for simple learning type of tasks. FWIW my laptop is a 2013 vintage HP x360 with i7 and 16Gb. Can only run very small instruction only type of models so far (no AVM512 support and only 8-cores).
Currently using Qwen Code for code samples and AnythingLLM for general chat. Writing my own MCP servers in Python to learn MCP.
I'm daydreaming of "Clippy" popping up in Claude and saying "Hey! It looks like you're working on [Big Project Idea]. [Other Claude User] is also burning a lot of tokens on this. I should introduce the two of you to explore collaboration!"
you know i wonder if we can have a crazy ideas discussion area somewhere to help introduce people to each other to scheme... like a match maker of sorts ... as there does seem a lot of big insane things people are doing recently that others may like to join in. like for example i've been working on some improvements to windows 98 and os/2, and i've got virtio-blk and virtio-net support in them with custom tcp/ip stack with tso that can get like 20 gigabit+/sec with a musl port to them both with iperf (based upon smoltcp) and a gefs port working on both of them for file system with some improvements for case insensitivty and transactions support for installing packages, plus a package management system, remote console, plus graphical terminal, some improvements for running in variable resolutions for running in a window, some lapic improvements for os/2 and hacked timer code to allow for 1msec timer granuality (lots of unix ports want granuality of sleep), dos command prompt support for running high res video resized to window size on windows 98 running in dos window, a hack to make win32 console apps to also run fast in that dos window (that always bugged me basically it switches to dos to run). i also have a dos/x86 emulator that can boot windows 98 and working towards os/2 on it. and i have an amiga emulator that can run single apps (well tested with amos because it had source available) plus workbench when you have a rom, disk image. a lot of stuff it's just like i wonder how hard it is.. then next you know it's working . and like amos can for example work in higher resolution, although it's hard to use antyhing but 8 bytes wide fonts. it's doing some scaling to make it practical though, oh and yeah the amiga emulator works with rtg which was the video card kind of external option, and socket interface for tcp/ip. a lot of it's esoteric dated stuff, but done more freshly. a lot of it's in rust, and on os/2 that meant it was easiest if i wanted std to just have a linux layer on top of os/2, and umm i also have my own linux-compatible kernel that supports smp and multi-queue, gefs, and boots in like 10 msec using liek 8x2mb huge pages + 1 4kb page ... i was trying to see if i could get linux to be more huge page friendly firstn but it just does so many small writes that break up pages, reorganising things and so forth, so it's partially just from doing a lot less work. but it's all just i wonder how far i can go. oh i have my own hypervisor that boots linux or that mostly linux-compatible kernel. the only real change i needed was my init replacement thing needed a check if it was gefs or ext4. thing is none of it's going to make money or be super popular necessaraily, but it's the sort of fringe thing that someone may be interested in, but then it's where would people into such things even get noticed :)
damn that was wall of text, but i wonder if the actual thing to do is create a web site that you can cut and paste a whole lot of project ideas and it matches against other uses and makes a match. i have a random project that used candle to try and match text blobs... seems i added ollama support too.
I initially thought this was cool, and indeed a large corporation might immensely benefit from it. But from a privacy perspective it is a nightmare, an orwellian nightmare. Plus, one can put this into an open source harness and connect all people that "would like to hack XYZ company" for better efficiency!
I found myself a bit confused by your ending sentiments on your page.
"Let's hurry up and value the progress of technology before it values us back."
Did you write this? What does it mean? It sounds like you close by suggesting the window of having this personal capability is closing but I'm not sure why "value us back" is the caution. Just wondering what this is meant to mean and how is that connected with the capability being gone?
Your project is extremely cool just thought given I read it (perhaps this part is also LLM authored) and was curious about this part I would ask you to clarify.
That part is not LLM authored. I should have given up on making a bit of a play on words, and I'm yet to fix it. It is meant to be a reference to how, depending on how "AI" evolves, it can either be very positive for individual freedoms, or end up limiting them in some senses. If some doomsday predictions of "AI replaces all knowledge work" become reality, then it will have (de)valued much of human skill. It is also possible that the powers that be will determine that it is giving ordinary people too many capabilities, and that connects with the window of capability eventually closing. I hope that was clear enough.
In general Opus and Fable are terrible at writing English, even for UI elements, compared to their software development abilities, and this is even after setting rules for what the copy should be like. I've been slowly going through all of the user-visible text in the project to make it read better, but it's funny that my own writing has defects too. It's definitely not great to have to read Opus writing every day.
FWIW there's this weird thing where a positive differentiator now is extremely short rushed human text. Might be a benefit here: I'm deeply desirous of something like unkernel/what you've built and my agents working, right now, on trying yours because Unkernel is giving pathological memory growth on WebKit. But I stopped reading yours after ~30s because there was too much content.
Yes indeed, these things just write and write and write. I'm not a good editor for their output either, since I naturally tend to ramble on and on too. What probably needs to be done is making a user-facing "manual" of sorts, that goes into more detail on each feature, so that the intro can keep less detail.
>It would obviously have been worse if I had actually built more of mine "by hand," but still
I realized this in 2023. I had in mind a project which would take 5-10 years to do by hand, and realized — much like in scifi, where it's better to wait a decade for a better spaceship to be invented, because it's so much faster that it actually ends up arriving at the destination before the first one — I realized that by the time I finished, AI would be able to do the whole thing in under 24 hours.
...And then I learned absolutely nothing, and spent several years working on a different project, which AI can now also replicate in about 15 minutes ;)
@gbl08ma - want to add in my encouragement as well. As much as I appreciate and like unkernel, you should absolutely give this a shot. Aim for the thing you care about (performance, size over network, existing images working etc) and build for it. You'll find an appreciative audience.
Now imagine how heartbreaking it would have been to spend 12 years of your life on trying to prove the Riemann Hypothesis and get really close only to be beaten to it by inches :P
waarm64 already supports mounting folders via virtio-9p on the guest, coupled with the File System API on the web side of things (works best in Chrome only, unfortunately Mozilla has reservations about supporting such things in Firefox). You can also mount network shares of the usual kinds via one of the network adapters.
Gary Bernhardt has to be one of the least-well-known “software heros”. I would honestly rank him among Fabrice Bellard and John Carmack in terms of foresight and brilliance. Every thing he has ever produced is solid gold and I believe I owe much of my success to learning and emulating his excellent taste when I was earlier in my career. It’s a shame that he doesn’t really do destroy all software anymore, I would love to see how he works with agents.
Boundaries has been, by far, the talk that has impressed me more, and shaped more how I think about software, of all the talks that I've seen (and I'm 45).
It's 30 minutes, but just the first 10/15 minutes are so eye opening to me that I recommend them to everyone around me.
Perhaps for the typical audience of HN this is not impressive, as most will know about functional programming. But I did not study CS, I just went to coding from an engineering background, and I never needed FP in my life. But those minutes hooked me in so well into loving the approach in all sorts of languages, none (purely) functional.
I am a huge fan. I was a Destroy All Software subscriber for a few years. He really opened my eyes to just how simple and straightforward elements of software can be.
Yeah, that's fine, everything can be written in everything.
I remember these pitches as early as 2008-10 from various Mozilla evangelists who were pitching that browser will be the OS and javascript will be the platform for all apps.
I kind of doubted it and I still do. Of course a lot of stuff is written in Js.. because web is based on Js. a lot of desktop apps are written in Js (+Electron) because people who are not good at native development (and also platform vendors are not helpful to provide consistent approach to GUI and desktop apps) decided that Js+Electron runtime is best way to write portable apps.
It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
People write backend/server side applications in Javascript because of NodeJs.. and that's more legit to me, although just one of many fashionable ways to create a web server these days. nothing truly unique outside personal choice and recommendation on per project basis.
So web in the browser wins (although if somebody invented better way to create client side application without Javascript I'd bless him.. it's such a horrible language). Server side is ok-ish to consider if one likes it... and for true client side apps which belonged to desktop in the past... well actually rust, crystal, nim and all the renaissance of native development + gui libs and LLM that accelerates the development significantly... I'd assume electron apps should reverse.
Web adoption also may be kinda shaky as with all the crawling and surveillance around web+browsers.. I do really hope 2035 will bring alternatives there first... regardless of the programming language of choice.
What's there to doubt? It's reality for me for at least a decade now.
Every app I use for work runs in the browser. Writing, design, programming, email, messenger. I open a browser and things just work, irrespectively of the OS.
I've been there but reverted and I'm escaping the browser unless we talk about small web.
I write in Scrivener, Zed and Helix Editor, also Word and Acrobat, also Typst to automatize various things to the right outcome
I design in Photoshop and similar apps on desktop
I do programming in terminal and just 'git this' and 'git that' plus `codex resume` a lot
I do email in my own alternative to Outlook (which is Javascript bloat anyway). I wrote it to consume graph API and it connects to my own task management tool that uses SharePoint as a backend database for shared workflows. It's funky definition of server-less and I eliminated Confluence, Jira and many other things this way, plus own software means I could integrate it with LLMs the way I want, no question about it.. written in Python with Qt for GUI, and glad I did not need to touch JavaScript for that project)
I don't do messenger things too much. I use iPhone Messages for texting sure. I use signal on iPhone too (which is an app) and the only "messenger" i occasionally use in a browser is Discord which comes with Javascript+Electron bloated app that was consuming my resources and I uninstalled it, and benefit from all the add and tracking blockers I can install in my browser to show them a surveillance middle finger as much as I can. I'm happy to drop Discord soon though.. it's such a waste of time often when you use it as Skype with just bunch of people you have access to elsewhere.
I use browser for various SaaS apps at work, sure and I use it to rediscover small web and as one of the ways I access chat gpt instead of google so I get my answers, meaning content/information, not apps. It's also hard to avoid web browser in online banking, which I accept, mobile banking sucks more.
I'm one of those who love to come back to nicely tailored apps that are close to my metal and local. I'm not that much into cloud if I have my own NAS (personal use cases) with 48TB of storage over local LAN that is ultra fast. Also a lot of computing power and RAM so I can run my local VMs and dockers while tinkering. I have all I need and exposure to cloud for remote work through dedicated interfaces.
Still.. I'm rather custom-solution driven but I like things under control. Eventually I discovered it's not that expensive at all and fixed price instead of subscriptions or "I'm the product". I more and more close the shop to the uncontrolled web. I leech it, then I ditch it.
I'm not saying I'm mainstream, far from it.. I'm just so frustrated with the way Web develops that I gently show it a middle finger and give it a stinky fart as a bonus too.
web to me is backends.. APIs and all the security layer. I don't need web for frontend at all. it's crap with lots of memory over head just to handle the current economy of the web, not that it's technically mandatory.
I have a list of things that don't run in the browser, and I'm not sure why they ever would.
My IDE (not vscode) and text editor (not vscode)
My terminal, file manager, compilers, linters, etc.
My browser (that's a native app, you wouldn't believe it)
Photo and graphics editors (darktable, inkscape, krita, etc.)
I'm sure you can find web-based alternatives for all of those that will be at least 80% vibecoded, and if you really need it, I'm sure you can find ones with a subscription model, too. I just don't think it makes sense.
> [...] and I'm not sure why they ever would. > I just don't think it makes sense.
Well, the market is dominated by the average person and average person doesn't care about the fundamentals of their user space applications being web-based or not. They understand browsers, file managers; but totally intertwine these applications' with their "normal" use cases.
The normal many software enthusiasts grew up with was accompanied by native solutions, which were the same language used by the OS itself to create these kind of applications.
The average person uses apps more often than something in their browser. The browser hasn’t become the OS for them. The fact that most apps may be built on web technology and use a web view doesn’t change that.
My spouse’s personal digital world is social media and a couple of puzzle game. There’s a laptop, but that’s mostly used for watching movies and doing some stuff that is awkward on the laptop. The web doesn’t exist other as a way to get to a few place. iOS and macOS don’t exist. There’s only tasks and tools. like you think as the kitchen to find the microwave to reheat your food.
Surely there’s somewhere she clicks or taps on app icons to open apps, somewhere she sees notifications, unlocks the device, uses an on-screen keyboard, and so on. That’s the OS. If she would change the OS, say from iOS to Android, that’s what would change. If what you say were true, she wouldn’t be able to perceive any difference between the two.
Do you think about the firmware inside your car’s ECU? Or the one inside your home router? Either it works or it doesn’t. How it does or any extra feature is of no interest.
But the OS isn’t like that. It extends to what you directly interact with. If you couldn’t interact with it, you couldn’t open apps, couldn’t unlock your device, couldn’t see notifications. Users may not be aware of it as “the OS”, but they are aware of the fact that there are things outside of the individual apps on their devices, and they generally also care about how these things look and behave.
> It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
Try t3 code. It's amazingly fast. JS/TS desktop apps can be good, but only if that's the primary target of your development process.
There is a guy on CNN with the same name. And I initially was surprised that his blogs were making the rounds here. Turns out to be a completely different Farid Zakaria.
I was reminded of that scene from "Office Space", where the character Michael Bolten laments about having to share his name with a "no-talent ass clown".
> Farid has been on an absolute roll recently. If you enjoyed this, I highly recommend his other blog posts.
You made me have a look at his other blog posts and now I realize that plenty of his other posts were discussed here on HN in the past and I really enjoyed them!
The article is jarring for me - in my 10 years of experience in the software industry, I haven't ever come close to needing javascript for anything. Javascript has certainly not taken over the world - just web dev AFAIK.
I was trying to make a point about what languages I've needed to learn when writing my own software for work or personally. Not the languages used to make the software tools that I use.
Which is only meant to support my other point that the article seems to over emphasize the universality of JS as if it already has become the "defacto language for all software". It's a foreign perspective to me as a software engineer with no JS experience =/
Unless your point is that JS goes beyond web dev; in which case I agree vscode is a good example.
How is that ever remotely relevant. The application itself is JS, and runs in JS, the same way a java application runs in the JVM. If your statement is "I haven't ever come close to needing javascript for anything" but you use VS Code, then that statement is trivially false.
Someone else's decision to write a Desktop application in JS has nothing to do with OP's decisions to write their work in the language that fits their needs.
There will come a language for all platforms better than rust, designed by AI. And it will come with a browser, and it will take the world by storm. One language to rule them all, one browser to bind them...
If it can be optimized, AI will do it, and when there is no more optimization to do, then it will settle as de facto, for everything, and forever. And that time is not too far in the horizon, a couple of years at most
The world is not homogenous enough for that, the right tool for this job is rarely the right tool for that job. The jobs also change too quickly. The right tool for tomorrow's job is not the same as the right tool for today's job.
Prompt: "Please create a syntactically beautiful programming language optimized for LLMs use and efficient token consumption. That language will be used in all OS platforms, desktop, mobile and the web. We will need a universal UI schema and native libs plus a client app container that uses our language as script on the server and client and an app:// protocol to run such apps (apps:// for secure connection). Lets start a brainstorming session to define the scope, architecture, specs, roadmap, write down all .md files in docs folder. Ask any questions you may have before coding..."
We might need to burn half the planet for that though. Think of all the ecosystem, that goes with a language. All the special purpose libraries and tooling, that needs to be developed.
I am not convinced your prediction will come true.
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..."
We can argue whether university course assignments are dead because of AI or not, but nevertheless… For some courses I was assisting, we always had the issue that some of the assignments required Linux and it took at least a week or two each semester to get each student access to a proper Linux environment with root access (the university’s machines only give students non-root access). Something like this allows us to tell students to just use this website instead of handholding all the Windows and macOS users on how to set up Linux VMs or ssh into a VPS or similar
Having dove into NixOS, I have realised all my university courses could have distributed NixOS image VM and had perfectly reproduced env on everyone's machine.
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
I'm also confused. V8 + Pyodide are perfectly practical, and we built a Python worker MCP on top of it that's used without much pain across many of our customers[0].
I know that the Pydantic folks also built a similar MCP in the past[1] but abandoned it for "latency" and security/isolation concerns. All those are pretty easy to remedy with a pool of pre-initialized workers and subprocess isolation. Overall, it's one of the easiest ways to ship an easily on-premise-deployable solution like that.
Oh this is neat. Security wise, are these trusted customers? Whats the worse case here? A machine needs to be rebooted? Maybe when I was looking into isolates before (briefly mind you) my security stance was too strict.
Our customers all run that within their own Kubernetes setups. The end users that are using it are the organizations employees (that are typically using it via our self-hosted AI chat platform[0]) with the most common tasks just being file manipulation. So there is a decent trust relationship, but the attack model is more of a typical organization-wide cyberattack one, where this shouldn't pose a weak link.
The worst case would be that any of the isolation mechanisms significantly fails, and concurrent workers can see each others files, e.g. confidential files inside the company. This should be quite hard in the architecture, and barring a bug in our server code require escape from multiple layers of sandboxing, and beyond that would require coordinating timing with the attack target.
In terms of stability, if a single worker OOMs, that just leads to it being killed. If you were able to get multiple workers to reach high memory usage, the pod will just be OOM-killed by Kubernetes and restarted.
It's not perfectly resource-preserving if you are running with a pre-warmed worker, but economically it's still a steal. You get functionality for $10-20 of compute a month for ~1000 employees that you would with many alternative providers pay $5-10 _per user per month_.
Clients bring their own tokens, and the most privacy sensitive clients self-host their models. We are also investing in building out desktop client capabilities to offload simple tasks onto the users machine (as both a privacy and cost saving measure).
Thanks for the response! I didn't know that actually. By "people" i meant Claude and my boss who specifically said it wasn't feasible for us to spin up our own agents on Cloudflare. Admittedly we work with large microscopy data so I think their advice was more against trying to do heavy workloads in pyodide/v8.
There is no use case and it is only "because of reasons".
In fact, as another commenter correctly said in a thread to me recently, WebAssembly is not the solution to "sandboxing" for various reasons, [0] [1] [2] especially when you are still dealing with browser engines that are written in C (QuickJS) and C++ (V8, Gecko) which are regularly targeted for memory corruption vulnerabilities with a kernel written in C (Linux) even when it is compiled to WASM.
They still bring over the very same C style vulnerabilities with them.
Not everything has to be about security. Convenience is also pretty desirable. The ease and speed of trying out programs with trynix.dev has instantly catapulted it to the top of my list of things to show people who're curious about Linux but not ready to muck about installing a bunch of stuff to satisfy that curiosity.
As long as it is in a web browser with the existence of web apps, it absolutely does.
I don't think anyone other than techies here cares about Linux or any other distro. It is more convenient to end users to use macOS or Windows than to bother with trying or installing Linux at all.
They do not care whatsoever, and the only thing they care about with computers is that they don't get their passwords, data or internet banking accounts hacked when they use their browser.
What is this FUD? The papers you cited have next to nothing do with sandboxing. They are mainly about guest WASM security (e.g. "how vulnerable is an already vulnerable C program against things like arbitrary memory reads in the guest program"), and have nothing to do with sandbox escape. There are also plenty WASM runtimes that exist outside of browser engines with proper safeguards.
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?
Does anyone know over which… channel(?) some of the traffic goes? On the Firefox Web Developer „Networking“ tab, I can see apt/deb packages being pulled in, but when e.g. I curl in a large file, the Network tab remains completely silent. Why is that?
Also, how can the tab running unkernel pull in any external content at all if it’s not coming from the unkernel domain itself?
So yes, in other words, this is at least one “matrioschka puppet” level too many for me, together with my not-perfect understanding of how browser origin/sandboxing works…
I really like how well the nix philosophy works here and I can see this being very useful for all sorts of agentic work. In my own side-project [0] I just use Alpine and run it in TinyEMU compiled to WASM, as it allows for riskv64, which is a bit faster to interpret than x86. (I built it on top of container2wasm, the maintainer of which - I believe - is also behind the qemu WASM that OP uses).
Truly marvelous times we live in: I am by no means a system programmer or OS expert, but thanks to various coding agents and models I was able to add networking and overlay FS, a frambeuffer and sound.
I wonder what the right approach is though. If the base system is run through an emulator, a lot of things can become unbearably slow for a lot of use cases, but at least as far as my limited understanding goes, a lot more could be achieved if there was more progress on the WASM/WASI standard side. Or maybe syscall emulation is a better way to go here like some comments suggest?
[0] https://github.com/deepclause/agentvm (it wasn't mean to run in a browser, but you can let your favorite agent create a Wasi shim for web within maybe an hour or so...)
For anyone too lazy to read the full article, the last line says it all:
> Sit and bask in that insanity. That is Firefox, on Linux compiled to WebAssembly, in a Firefox tab, loading the site and then loading Firefox again inside itself. <mind blown emoji>
I can remember more than 10 years ago seeing a GNOME app run from a web browser. I cannot remember how it worked, but it was a similar kind of Inception feeling when you saw it.
Wow, I love this. Emulating system calls or posix-like userspace seems like a better approach for most tasks, which don't use 90% of Linux's userspace API surface.
you should check the hashes of any files you get from a relay like this, I don't think my server is running any malware but it could always get infected in the future, the vulnerability surface these days is enormous.
No need for a new relay, really. If you add croc in the VM, it will generate either a link you can download from in any other browser or via croc installed on the machine you wish to download to.
croc will establish a direct udp between two terminal clients or use their relay only if you want to use the web version for either upload/download. And it's e2e encrypted when using the croc servers.
Just tried it with a couple random wikipedia images downloaded via curl to the VM and via croc to my machine. No problems.
croc is my number one favorite under-used under-rated projects.
Literally any two devices on just about any internet connected device, supposing only that you're not on a super locked down corporate network can share files and now even ssh sessions so you can croc in to an existing ssh session if you want to have a single ssh session shared across multiple devices.
generates one persistent shell with two seperate six sword croc secrets, one for someone with read/write, and one for someone with read-only. You can then croc $secret_words in a seperate terminal (on another internet connected machine if you want), and IO in the original terminal will be mirrored to the observing terminal.
If the mirroring terminal has read/write, commands typed there are executed in the 'host' terminal.
If the mirroring terminal only has read, you can use it to monitor a long running job, server logs, or to share with someone for support like RDP/share my screen, or I suppose to give a presentation on a machine that doesn't have all of your tooling from a laptop with croc...if you're in a weird combination of instances in which you have both a group to show your terminal to and don't have direct access to your terminal.
You can do all of this without configuring ssh on the public/other machine, so if, for instance, you had an ssh session on one machine, and needed to access that ssh session from a machine where you don't have (and perhaps don't want) your ssh key to sit, you can croc from the public machine to your private running ssh.
I typically use it for when I just want a quick "hey can you check what I'm doing here" because I don't have to set up/manage ssh keys as the croc keys only live as long as I want them to. Or the reverse, "this is what you're going to type and what you should see" without creating a recording/screenshare.
I also have a dynamic IP at home and don't really care to set up tailscale and/or vpn to my home machine so if I feel I might need access to my machine i can run croc before leaving and connect from just about anywhere.
Yesterday I was able to compile and run a game I'm making bit-perfect (physics world snapshot is the same) on linux and windows (via wine) cross compiled from the same machine.
I'm happy that it's possible and working, but so confused why this is not something that comes out of the box. A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
Cross platform support is difficult because platforms made it difficult and have no incentive to befriend.
I hope one day we get posix v2 with performant standard APIs to not worry about platforms in application's code. Perhaps 2035?
> A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
It’s all about workloads and needs. You can’t put a sedan’s engine into a semitruck even if the basic components are the same. Windows were all about the microcomputer while Unix was designed to run in servers. The abstraction differences can be smoothed over, but it’s hard work and not everyone is keen to do so. And because they’re abstraction and not physical constraint, some would rather invent a new one (OpenGL).
> I hope one day we get posix v2 with performant standard APIs to not worry about platforms in application's code. Perhaps 2035?
A more pragmatic option is to design you app and push platform concerns to the edge. Then you just reimplement the exterior shell while keeping the core logic unchanged.
> A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
If an API that works on all of them and makes your code portable (or almost portable) isn't acceptable, I'm not sure what you expected a solution to be in that case.
> "so confused why this is not something that comes out of the box
If you want your code to work on multiple CPUs and OSs, there is no single "box" you can blame. There are multiple "boxes" which naturally don't have completely unified native APIs. Libraries like SDL make the complexity of writing portable projects easier to deal with if you don't want to deal with the native APIs.
This is a very cool insight, but the "2035 came early" is a stretch, since all web browser engines and web assembly down to your device drivers aren't made in Javascript. If you take the % of what is exactly JS, maybe we arrive at 20%, 30%?
If these builds are running in a WASM environment, it means we can enforce stricter control over them than was available when they were originally authored. Rather than having it be a convention that using a source of randomness in your builds is a bad idea, we can just take the random number generator away from the build. Rather than suggesting that network connections in builds are likely problematic, we can deny the build access to the network and ensure it still runs. The nix sandbox can only go so far to encourage determinism, but I think wasm can take it even further.
Without host imports, WASM has no clock, no randomness, and no threads unless you grant them, so execution is closer to fully deterministic.
If we can determine with high confidence that a particular derivation is in fact deterministic, we can memoize it: just look up the output rather than compute it. If we can get to a place where everything is memoizable in that way, we can build a map between compiled binaries and the code that generated them... no decompiling, just search and find it. From there we can reach further back: Who has reviewed this? Who has tested it? Has anybody raised an alarm about it? These could be gossiped annotations on nodes in the derivation graph, some of which will correspond to binaries that a potential victim is about to execute.
And if we can get all of that working, we can make our operating systems much smarter about their "are you sure you want to run this?" messages, as well as improvements to our ability to quickly understand the blast radius of bugs, because "am I affected" becomes a matter of graph traversal within the same dataset that would support the memoization.
Interestingly, I am building stuff not in JS because of LLMs.
I am a run-of-the-mill web developer who knows only Javascript.
I wanted to build an MCP, so asked LLM the best way to do it (with some assumptions that it would scale, etc) and it said to build in Rust. And there is a web component to the thing I am building, and it told to compile to WebAssembly.
So I have a large project in Rust+WebAssembly, working as I wanted, without having no clue of those stacks.
My impression is that JS will be less dominant, now with LLMs
Lots of the examples in the article are wasm, I think they’re including wasm in the move to JS. But it certainly feels different (because, you know, it isn’t JS)
This feels much faster than the last time I tried it. I wonder if further optimizations could make it practical to spin up a project’s development environment in any browser.
I remember thinking sometime a year or two back that I'd built a ridiculous tower of abstraction when I was running 16-bit Amiga games on a Kickstart 1.3 image running inside, IIRC, WinUAE running on Wine running on Rosetta running on macOS running on Apple Silicon but I can see now this that was real amateur league stuff and that I need to get into nesting operating systems inside browsers inside operating systems inside browsers...
That is the default Dock on Gnome?! I remember GNOME desktop was much different.. with the top bar, fullscreen "Launchpad" etc. I want the clean look this project has in the browser.. Do you think they trimmed GNOME down to achieve this?
No, that one uses a custom browser-based Wayland compositor written in Zig/Wasm called wland that renders app windows directly over a web terminal. And the bottom dock is just custom HTML/CSS built into the web page (yet.. that's crazy as is this project).
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.
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.
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.
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.
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/
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.
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.
> extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness
Nobody ever claimed that? The whole Birth & Death of JavaScript talk is explicitly about transpiling code from other languages.
At the time the transpilation target was (the limited asm.js subset of) Javascript, since WASM didn't exist yet, but the overall "transpile everything to run in the browser" still holds.
Written in meaning shipped in. JavaScript is irrelevant to WASM. They are not interchangeable. It has literally zero relevance to the projects it uses to demonstrate its point.
Like, just a few quotes from the article (some of which are quotes to support the argument)-
"JavaScript will come to dominate all software."
"inevitability of JavaScript’s dominance"
"how JavaScript came to be the defacto language for all software"
With an old video about someone saying that eventually we'll compile everything to JavaScript by 2035, ergo 2035 came early. Then trying to twist that such that...well...a browser hosts something, and it also hosts JavaScript, therefore prediction came early!
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.
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.
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...
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
We ported plenty of existing executable programs to asm.js before WASM was even conceived of - the whole emscripten project was built around this. WASM was designed from the start to be a drop-in replacement for asm.js
I guess other than adding another trophy to the trophy case and never looking at it again, who's using all this stuff? It seems to me all the users have gone over to the Instagram and YouTube crack dealing machines and are pressing the dopamine button 'till their brains fully rot.
Insanity, n.: having perfectly good, fast, stable, well-documented, well-designed, widely-supported programming languages, and throwing them away to instead reinvent the wheel in the form of a toy language created to make pop-ups in a hypertext document viewer
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.
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.
That's what I'm saying. I'm 10 years into my career in software. I've never learned JS and I dont really plan on it any time soon. It most certainly is not "the defacto language for all software". I can think of many languages more worthy of that title, but honestly none of them truly are. It is the defacto language for web dev, but I don't work in web dev... conflating software with the web dev industry is just annoying tbh.
It is heartwarming to see so many other Javascript haters in these parts. I can't stand the prevalence of that language and wish it would die a fast, fiery death.
I mean, Javascript okay for pure web programming. But if your software executes in any environment other than a browser, please use a real language.
The JavaScript folks always seem like they're in a bubble. I mean, yes, JavaScript is everywhere on the web. But, no, 95% of my code (and the code of everyone adjacent to me) is Python, with some C++ and Go to fill in the cracks, and I don't see any sign of a mass migration to JavaScript.
JavaScript (even with TypeScript) is the most "pit of despair" language I have had the displeasure of working in. I've gone from working on embedded C, to Dart + Flutter (desktop/mobile apps), to now building desktop/CLI apps with TypeScript along with their corresponding packages for interfacing with hardware (mostly custom hardware, some off the shelf).
To give credit where it's due, I think the FFI works well with Koffi [1]. And it's nice that Node.js has the ability to run `.ts` directly (erasableSyntaxOnly). TypeScript's type system is also really good!
Apart from what arguably should be the basics? Nothing has been easy. Unlike Dart which seemed heavily biased towards falling into the pit of success [2], the JS ecosystem seems to be a chasm of despair that is almost unavoidable, even with a huge amount of work (and indeed, billions of dollars has gone into this chasm). In the last three months I've run into friction in:
Dependency resolution. Why can you have multiple copies of the same package with different versions??? Just print a dependency resolution error. That's what Dart does, and I imagine it's part of why the dependency culture isn't anywhere near as bad over there.
Packaging & Lifecycle script semantics.
Semver with monorepos + `git:` dependencies. npm and yarn will resolve semver ranges for the repo using git tags like `v1.0.2`, but they won't consider tags of the form `my-packagev1.0.2`. So if you want monorepo productivity + semver range resolution you must publish to a private registry or "publish" from the monorepo to a dedicated mirror repo for each package.
The Linter + Formatter. Prettier destroys any sense of stylistic intent and you can't "communicate" with it (add/remove a single comma to express a single line vs multi-line formatting choice), so I've had to resort to using ESLint as a joint formatter [3] + linter.
Using TS/JS as a _scripting_ language. Lengthy `npx` shebangs ensue since my users NEED my library to have anything worth scripting. Either that or you pay the `package.json`, `node_modules`, `.yarnrc.yml`, `tsconfig.json`, etc. tax (did I mention that there are just WAY too many config files?)
Seems like it's an every day occurrence that I run into issues that Dart/Zig/Rust would've simply just not had, or if they did then they would have handled it superbly. And here I was thinking JS's bloat was supposed to be excused by the convenience it offered!
Don't use JS/TS unless you absolutely need to run in a browser. And like unkernel shows, maybe you can just write native apps and ignore JS all together.
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, eventually as a manager, 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.
I don't get the Js hate. I have meaningful experience working in many languages (C++,Js,Ts,C# to name the biggest by LOC written). I've shipped nontrivial software in all of these.
I think Js is.. okay? I can name some strengths and weaknesses,both of the language itself and the culture/ecosystem, but I certainly don't hate it.
I always thought I was too incompetent to understand why JavaScript was a bad language.
I wrote software in js and then moved to ts and sometimes have to go back to js. It’s fine to me.
Ignorance is bliss I guess.
test (input) {
let compare = true;
return compare === !input;
}
this is why people dislike javascript.
The hate is just bandwagon contrarianism. As you point out, js is fine. After 7 years of cpp and objc in the early 2000s, js is a triviality.
Same. I actually very much enjoy JS compared to most other languages. It's always been cool to hate on JS.
A lot of juniors see JS hate as a way to make themselves appear more experienced. If you say you hate JS, it's a kind of flex because it implies that you've tried multiple languages and concluded that JS is the inferior one because it imposes fewer guardrails than the others and has a few nasty gotchas (which they all have, if you're being honest).
C's gotchas are pretty nasty if you ask me; mess up a pointer reference or forget to check a buffer's size and you've given an attacker root access. That's as nasty as it gets.
Even a hyped language like Rust has issues in terms of build time, gaps in concurrency safety (e.g. lock issues/complexity), async (function coloring) complexity, panics as a DoS attack surface.
Sometimes a language provides some kind of safety but simultaneously incentivizes anti-patterns and runaway complexity. Actually this point highlights what I like about JavaScript; although it isn't the most safety-conscious language (though at least it does a pretty good job protecting from remote code executions via buffer overflows), it is succinct and the lack of guardrails incentivizes people to keep function interfaces simple which encourages high cohesion and loose coupling. JS punishes you big time for not designing your architecture carefully. I also like this about Python. Python code, in practice, is quite succinct and pleasant to read.
TypeScript's type safety is nice in theory and great in the hands of an experienced architecturally-minded engineer, but it also allows sloppy coders produce overly complex but functioning spaghetti code. An ugly TypeScript codebase can go much further than an ugly JavaScript codebase, but the day of reckoning is often worse with TypeScript as it requires more heavy-handed, less localized, refactorings; even its flaws can create the illusion that TypeScript is useful because it does a great job at pointing out where the different spaghetti stands aren't making contact in the right way but it does nothing in terms of alerting you that "this project is a tangled mess of spaghetti code.'
I think I feel the same way about DevOps that you feel about JavaScript.
I'm more of a product guy so I tend to view DevOps as absolutely critical, and an area where a correct solution is of supreme importance, but also as something of a distraction from doing something that I find more fun and interesting.
(Before anyone gets upset, I'm not making a general statement about whether or not DevOps is objectively interesting, I'm just saying that I don't enjoy it. I know loads of people do find DevOps satisfying, which is absolutely great and to the benefit of all of us.)
But Claude has allowed me to set up this ludicrously overengineered pipeline - the sort of thing you see in a large enterprises with complex microservice architectures - that has completely automated every aspect of build, deployment, configuration, testing (including ordinarily pesky end to end tests), security and application hardening, monitoring, alerting, and so on. I've hit the ideal of "when the pipeline is green, the software is ready for release"... all for a personal website that gets maybe half a dozen real human visitors per day.
It's sort of ridiculous but, at the same time, with the increased frequency of new critical CVEs over the past few weeks and months, it also feels necessary.
But the great thing is that, in relative terms, I don't have to spend loads of time on it and can instead focus on other aspects of the site that are more interesting to me.
The worst thing about javascript is the bros.
Mitch Bradley retired and didn't want to ever write a Forth implementation again (after a long line of them like CForth and OpenFirmware) but I talked him into using Claude to write one for the PDP-7, which he went to bed skeptical of, woke up at 7am with some ideas, and finished implementing by noon. Including a turtle graphics library for the Type 340 vector graphics display -- itself an assembler for 340 intructions, written in Forth running on PDP-7 instructions!
He really enjoyed doing it, I enjoyed building on top of what he did, and it's one of the most elegant implementions of Forth I've seen, as if for decades the PDP-7 has always had a fast lean mean Forth screaming to get out, thanks to its ideal instruction set.
Now thanks to JavaScript's efficient VMs inspired by Self, and Dave Ungar's subsequent ideas about Korz, it runs ridiculously fast on a Korz PDP-7 emulator implemented in TypeScript with a PDP-7 instruction to JavaScript JIT. So does the Korz Apple ][ emulator. Now I'm working on reincarnating my Apple ][ ProDOS 6502 Forth 83 system.
https://github.com/SimHacker/moollm/tree/main/designs/korz
Forth Day Talks: Mitch Bradley, PDP-7 Forth, Don Hopkins, PDP-7 and Apple ][ Emulator
https://www.youtube.com/watch?v=k2pwJ294r8o
https://en.wikipedia.org/wiki/Open_Firmware
https://en.wikipedia.org/wiki/OpenBIOS
https://github.com/mitchbradley
Forth Day notes:
https://github.com/SimHacker/WillWrightShowForFood/blob/main...
Forth Ultimate Hand demo:
https://hyperties.org/cabinet/devices/ultimate-hand/
"Thinking Forth" discussion:
https://news.ycombinator.com/item?id=33681531
>I've frequently written about Mitch Bradley's Forthmacs / Sun Forth / CForth / OpenBoot / OpenFirmware on HN. I was his summer intern at Sun in 1987, and used his Forth systems in many projects! [...]
"EFI? Intel has been trying to shove that down our throats for years." discussion:
https://news.ycombinator.com/item?id=12240478
Mitch Bradley originally developed a Forth system at Sun for use diagnosing and developing hardware, by burning it into ROM and running it via a serial port.
It was based on Langston and Perry's Forth-83, and had a meta compiler that could target different word sizes and architectures. He made it even more architecture and word size independent, implemented interactive top level loops and conditionals, emacs-like line editing, all kinds of low level device drivers and testers that ran in stand-alone mode, and many other features, including full 16 and 32 bit support with a vocabulary for writing word size and endian independent code.
He ported Sun Forth to 68K and SPARC Sun workstations, as well as the Amiga and other systems. It ran in both stand-alone mode (from disk, tftp or ROM), or under Unix. Under Unix, it could dynamically relocate and link in Unix libraries, and you could call back and forth between Forth and C.
Sun Forth eventually evolved and standardized into the Open Firmware [1], whose purpose was to support machine independent byte code [2], so plug-in hardware cards could include ROMs with Forth byte code drivers that ran on 68K, SPARC, x86 and other systems.
Sun shipped it with the SPARC workstations, Apple adopted it and shipped it on their PowerPC Macs, IBM shipped with their POWER servers, and Mitch worked directly with the OLPC project extending OpenFirmware to support the OLPC XO-1 Children's Computer secure and power efficient hardware. [3]
>OLPC Wiki: Open Firmware
>Open Firmware is the hardware-independent firmware (computer software which loads the operating system) that the XO runs.
>It was developed by Mitch Bradley at Sun Microsystems, and used in post-NuBus PowerPC-based Apple Macintosh computers (though it has been dropped with Apple's transition to Intel processors), Sun Microsystems SPARC based workstations and servers, IBM POWER systems, and PegasosPPC systems, among others. On those computers, Open Firmware fulfills the same tasks as BIOS does on PC computers.
>For example Fedora and Debian use the YaBoot BootLoader for Open Firmware.
>The Open Firmware user interface includes a FORTH-based shell interface. FORTH is a powerful high level language that is remarkably compact. A complete Forth development environment including compiler, decompiler, assembler, disassembler, source level debugger, and assembly language debugger is present in the XO boot ROM (SPI FLASH). With the Open Firmware Forth system, you can directly access all of the hardware devices on the XO, use built-in functions like selftest diagnostics and games, and even write complete applications, without needing any external tools. The bulk of Open Firmware is written in Forth, so the source level debugger can be used to debug Open Firmware itself.
[1] http://www.openfirmware.info
[2] http://www.openfirmware.info/FCODE_suite
[3] http://wiki.laptop.org/go/Open_Firmware
I had been working (read: prompting Claude) on https://waarm64.com for two months and it was slightly heartbreaking to see unkernel get all the attention when I was like two weeks away from a public announcement. It would obviously have been worse if I had actually built more of mine "by hand," but still, even if just doing by orchestration/"asking good questions to the LLM" kind of work, I spent probably over a hundred hours on it. I rushed its release, but now I don't even really feel like working much more on mine anymore, even though it achieves (or achieved) better performance than unkernel and (for now) still has a more complete feature set. Oh well, it is in line with the motivation I had for mine, which was to see if LLMs could help one person build that sort of thing. Turns out that not only can LLMs do the bulk of this kind of work, they can do it so well that numerous projects of the same kind are popping up pretty much simultaneously. They still can't make WebAssembly beat hardware virtualization, though :D
Similar occurred to me recently: in June I got Airdrop working between Apple and non-Apple devices with a Rust crate “awdl”. Months later, someone else made owly and got 3,000 stars
But I got just a little bit more working such that I was able to upstream a few PRs their way. Now I don’t have to maintain an unwieldy codebase alone while being able to still enjoy actually using the functionality and wrapping it for other consumers (Dart, Flutter).
An independent implementation is sometimes very valuable for the next reader’s study and for the health of the wider ecosystem. Keep at it or at least share where you stopped—-don’t hoard until you have something perfect.
>I was able to upstream a few PRs their way. Now I don’t have to maintain an unwieldy codebase
I just wanted to say kudos for this.
I think a lot of people would have taken their toys and gone home (ie. mothballed the project without sharing anything) ... or published a competing project.
What you did was the best for everyone (yourself included) ... but again, I think many others wouldn't have been as wise.
This looks extremely cool! If I may offer you any encouragement, it would be to keep going and have fun and maybe share ideas or code across with unkernel? Esp as yall seem to be targeting slightly different use cases.
Regardless, I appreciate your work, thank you for sharing! (I'm especially interested in Vulkan on WebGPU)
What use cases do you have in mind for Vulkan on WebGPU? That adapter is the trickiest one to fully complete (there are many things Vulkan allows and WebGPU simply doesn't, and that can't be converted/emulated in a performant way) and I've lost some of the motivation for continuing to work on it, because I'm finding it tricky to find software that takes advantage of Vulkan while simultaneously being sufficiently light on CPU to run well within waarm64 (and also while being aarch64-native, because while FEX works, it makes the CPU performance story even worse). The Godot editor, and any projects I can compile through it, have been the main driver so far, with its Forward+ renderer.
Keep at it! You have an appreciation for the craft and goals of the project.
So much of modern software development is now product sense. You might find encouragement that others have validated that what you’re building is useful!
You don’t know where unikernel will (or won’t) go in the future. You can be the standard still.
What I want to see is Linux + userland ported to WASM.
That's more or less what WALI is. We wrote a research paper about it (https://dl.acm.org/doi/10.1145/3689031.3717470) and there is a toolchain and runtime implementation here: https://github.com/Wasm-Thin-Kernel-Interfaces/WALI
Elsewhere in these comments someone shared another initiative that seems very close to this: https://news.ycombinator.com/item?id=50626676
I think that software compatibility with these kinds of solutions will always be worse than emulating an entire machine, even if performance has some opportunities to be better (and for some software, it'll be _much_ better to compile directly to wasm). For one, wasm is still a bit of a niche target for many compilers; working on waarm64 alone, Claude found a wasm miscompile in Rust that turned out to be a LLVM problem (which I already reported and has already been fixed upstream). Then there's all the closed source software: it's probably a far fetched example in terms of use cases, but good luck getting e.g. Valve/Steam to care about wasm when they've only started caring about aarch64 recently - meanwhile, Steam already works, with some patience, in my emulator.
If you're having fun building it, don't stop. That's the point, the joy in the build.
Well, for me that part of the equation has changed. It used to be the joy of a cold glass of water after a marathon; now it is the joy of infinite potato chips without leaving the couch. It’s still gratifying but it feels less meaningful, especially when anyone else can eat the same chips from their couch.
I think there will be room in the future for both those who want to write artisanal, handcrafted code and those who want to say "Computer: Tea, Earl Grey, Hot." for their code (to solve their problem), from an enjoyment and meaning perspective.
What is the salary range of the "computer: tea. Earl Grey, Hot" folks vs the handcrafted folks?
What does current software engineering comp look like versus historical? Keep in mind that it isn't all AI, but also interest rates making money more expensive.
My humble opinion is that FAANG comp was never sustainable, and that outlier software engineering comp was an artifact of Big Tech's moats and zero interest rate policy. Software engineering comp is now converging towards other white collar work. $200k-$300k/year total comp is probably still doable with a few years of experience, but $500k+ not so much.
The Distress in the Software Asset Class Is About to Get Worse - https://news.ycombinator.com/item?id=50630798 - November 2026
What the The end of 0% interest rates means for software engineers - https://news.ycombinator.com/item?id=39193331 - January 2024 (169 comments)
Are interest rates going to go down in the future? All signs points to no.
https://blog.sentinel-team.org/p/special-report-rising-bond-...
https://www.ustreasuryyieldcurve.com/
This take is always conveniently brought out by people who started at like 150K out of college and have never made any less.
I have ~25 years of experience in technology professionally. No FAANG or Big Tech employment experience (they don't hire high school dropouts). I am a high school dropout, no credentials, all work experience. My first job was a busboy making minimum wage. My first tech job was as a junior sysadmin making ~$45k/year wrangling all of the tech for a web development shop circa 1999-2000. I've made $80k/year at a DOE lab supporting data taking and physics jobs for a detector at the LHC, I've made ~$95k/year working for a YC startup, I've made $200k-$300k/year in large, profitable enterprises, I've made $1M+ some years with my own businesses. My take is that of a scholar of the macro, take it for what it is.
It sucks when industries change, I deeply empathize, but change is inevitable. Keep riding waves until you're done surfing for cashflow. Those who enjoyed lottery tickets of fantastic comp during zero interest rate policy should enjoy that they paid out. I have no issue with folks who won the lottery, congrats to them.
https://news.ycombinator.com/item?id=50183568
I have a similar story.
If you’re old enough, you experienced when computer people were greasy nerds who made a regular salary and were looked down on by normies who worked in sales and other normie jobs.
I did get into FAANG through a side window when such windows still existed. And tbh they still do, but it’s almost always via acquisition.
But if I had started that journey 5 years later, chances are good I’d be in a different spot.
Damn. Well said. I didn’t realize it but that’s exactly how it feels
Well, keep pushing/prompting, you still have your chance! It is too soon to see the clear winner for the browser-embedded virtualization use case.
Even if there is a "winner", there is always room for and a necessity for alternatives.
Also, do remember the XKCD comic of 10000 per day (https://xkcd.com/1053/). There are going to be many who will have learned of such a concept for the first time, and won't care who made it happen first.
There is enough of a differentiator in what you are making.
Rejoice: Competition validates a product category.
My own efforts have done better after someone creates a knockoff. Competing products help educate the market place, greatly reducing your burden. It enables users (potential customers) to compare and contrast. A product with no viable alternative is almost illegible to prospective users.
It's really great when you can choose your users. Maintaining and supporting a product that directly fulfills user requirements and use cases is a joy. Versus trying to be All The Things for every random use case and drive-by kibbitzer. Maybe your waarm64 becomes the preferred choice for the discerning customer, who knows what they want.
So if you still have the drive, I'd encourage you to see unkernel as friendly competition, use it as a motivator.
Happy hunting.
Great work. Please do share for the masses your setup as I'm finding that an education in itself. Not yet into LLM created software as I'm first working through the (too) many look alike GUI and CLI tools to see which works for me for simple learning type of tasks. FWIW my laptop is a 2013 vintage HP x360 with i7 and 16Gb. Can only run very small instruction only type of models so far (no AVM512 support and only 8-cores).
Currently using Qwen Code for code samples and AnythingLLM for general chat. Writing my own MCP servers in Python to learn MCP.
I'm daydreaming of "Clippy" popping up in Claude and saying "Hey! It looks like you're working on [Big Project Idea]. [Other Claude User] is also burning a lot of tokens on this. I should introduce the two of you to explore collaboration!"
you know i wonder if we can have a crazy ideas discussion area somewhere to help introduce people to each other to scheme... like a match maker of sorts ... as there does seem a lot of big insane things people are doing recently that others may like to join in. like for example i've been working on some improvements to windows 98 and os/2, and i've got virtio-blk and virtio-net support in them with custom tcp/ip stack with tso that can get like 20 gigabit+/sec with a musl port to them both with iperf (based upon smoltcp) and a gefs port working on both of them for file system with some improvements for case insensitivty and transactions support for installing packages, plus a package management system, remote console, plus graphical terminal, some improvements for running in variable resolutions for running in a window, some lapic improvements for os/2 and hacked timer code to allow for 1msec timer granuality (lots of unix ports want granuality of sleep), dos command prompt support for running high res video resized to window size on windows 98 running in dos window, a hack to make win32 console apps to also run fast in that dos window (that always bugged me basically it switches to dos to run). i also have a dos/x86 emulator that can boot windows 98 and working towards os/2 on it. and i have an amiga emulator that can run single apps (well tested with amos because it had source available) plus workbench when you have a rom, disk image. a lot of stuff it's just like i wonder how hard it is.. then next you know it's working . and like amos can for example work in higher resolution, although it's hard to use antyhing but 8 bytes wide fonts. it's doing some scaling to make it practical though, oh and yeah the amiga emulator works with rtg which was the video card kind of external option, and socket interface for tcp/ip. a lot of it's esoteric dated stuff, but done more freshly. a lot of it's in rust, and on os/2 that meant it was easiest if i wanted std to just have a linux layer on top of os/2, and umm i also have my own linux-compatible kernel that supports smp and multi-queue, gefs, and boots in like 10 msec using liek 8x2mb huge pages + 1 4kb page ... i was trying to see if i could get linux to be more huge page friendly firstn but it just does so many small writes that break up pages, reorganising things and so forth, so it's partially just from doing a lot less work. but it's all just i wonder how far i can go. oh i have my own hypervisor that boots linux or that mostly linux-compatible kernel. the only real change i needed was my init replacement thing needed a check if it was gefs or ext4. thing is none of it's going to make money or be super popular necessaraily, but it's the sort of fringe thing that someone may be interested in, but then it's where would people into such things even get noticed :)
damn that was wall of text, but i wonder if the actual thing to do is create a web site that you can cut and paste a whole lot of project ideas and it matches against other uses and makes a match. i have a random project that used candle to try and match text blobs... seems i added ollama support too.
I initially thought this was cool, and indeed a large corporation might immensely benefit from it. But from a privacy perspective it is a nightmare, an orwellian nightmare. Plus, one can put this into an open source harness and connect all people that "would like to hack XYZ company" for better efficiency!
An AI token dating service might not be a bad idea after all. Might even help save some trees.
> they can do it so well that numerous projects of the same kind are popping up pretty much simultaneously.
That screams to me that people should work together but AI now lets them make progress without each other. Another stage of isolationism complete!
I found myself a bit confused by your ending sentiments on your page.
"Let's hurry up and value the progress of technology before it values us back."
Did you write this? What does it mean? It sounds like you close by suggesting the window of having this personal capability is closing but I'm not sure why "value us back" is the caution. Just wondering what this is meant to mean and how is that connected with the capability being gone?
Your project is extremely cool just thought given I read it (perhaps this part is also LLM authored) and was curious about this part I would ask you to clarify.
That part is not LLM authored. I should have given up on making a bit of a play on words, and I'm yet to fix it. It is meant to be a reference to how, depending on how "AI" evolves, it can either be very positive for individual freedoms, or end up limiting them in some senses. If some doomsday predictions of "AI replaces all knowledge work" become reality, then it will have (de)valued much of human skill. It is also possible that the powers that be will determine that it is giving ordinary people too many capabilities, and that connects with the window of capability eventually closing. I hope that was clear enough.
In general Opus and Fable are terrible at writing English, even for UI elements, compared to their software development abilities, and this is even after setting rules for what the copy should be like. I've been slowly going through all of the user-visible text in the project to make it read better, but it's funny that my own writing has defects too. It's definitely not great to have to read Opus writing every day.
FWIW there's this weird thing where a positive differentiator now is extremely short rushed human text. Might be a benefit here: I'm deeply desirous of something like unkernel/what you've built and my agents working, right now, on trying yours because Unkernel is giving pathological memory growth on WebKit. But I stopped reading yours after ~30s because there was too much content.
Yes indeed, these things just write and write and write. I'm not a good editor for their output either, since I naturally tend to ramble on and on too. What probably needs to be done is making a user-facing "manual" of sorts, that goes into more detail on each feature, so that the intro can keep less detail.
>It would obviously have been worse if I had actually built more of mine "by hand," but still
I realized this in 2023. I had in mind a project which would take 5-10 years to do by hand, and realized — much like in scifi, where it's better to wait a decade for a better spaceship to be invented, because it's so much faster that it actually ends up arriving at the destination before the first one — I realized that by the time I finished, AI would be able to do the whole thing in under 24 hours.
...And then I learned absolutely nothing, and spent several years working on a different project, which AI can now also replicate in about 15 minutes ;)
@gbl08ma - want to add in my encouragement as well. As much as I appreciate and like unkernel, you should absolutely give this a shot. Aim for the thing you care about (performance, size over network, existing images working etc) and build for it. You'll find an appreciative audience.
Have started your repo!
Now imagine how heartbreaking it would have been to spend 12 years of your life on trying to prove the Riemann Hypothesis and get really close only to be beaten to it by inches :P
This is really cool.
I’m curious if this could replace the need for sandbox environments used by agents.
I think file caching would need to be figured out so you can easily mount a drive / folders.
waarm64 already supports mounting folders via virtio-9p on the guest, coupled with the File System API on the web side of things (works best in Chrome only, unfortunately Mozilla has reservations about supporting such things in Firefox). You can also mount network shares of the usual kinds via one of the network adapters.
Gary Bernhardt has to be one of the least-well-known “software heros”. I would honestly rank him among Fabrice Bellard and John Carmack in terms of foresight and brilliance. Every thing he has ever produced is solid gold and I believe I owe much of my success to learning and emulating his excellent taste when I was earlier in my career. It’s a shame that he doesn’t really do destroy all software anymore, I would love to see how he works with agents.
Gary is active on X and shares his experiences with agents there.
https://x.com/garybernhardt
I hope the twitter agents appreciate it.
Someone with an account should tell him that X is where dead internet theory is most prevalent. I don't go on X anymore because it's mostly bots now.
> Someone with an account should tell him that X is where dead internet theory is most prevalent.
I'd tell him, but that would be a lie. The owner is a jackass, but X is where bunches of tech happens first, including something called "AI".
> I don't go on X anymore because it's mostly bots now.
Boundaries has been, by far, the talk that has impressed me more, and shaped more how I think about software, of all the talks that I've seen (and I'm 45).
https://www.destroyallsoftware.com/talks/boundaries
It's 30 minutes, but just the first 10/15 minutes are so eye opening to me that I recommend them to everyone around me.
Perhaps for the typical audience of HN this is not impressive, as most will know about functional programming. But I did not study CS, I just went to coding from an engineering background, and I never needed FP in my life. But those minutes hooked me in so well into loving the approach in all sorts of languages, none (purely) functional.
You should email and let him know. I probably should too.
I am a huge fan. I was a Destroy All Software subscriber for a few years. He really opened my eyes to just how simple and straightforward elements of software can be.
Yeah, that's fine, everything can be written in everything.
I remember these pitches as early as 2008-10 from various Mozilla evangelists who were pitching that browser will be the OS and javascript will be the platform for all apps.
I kind of doubted it and I still do. Of course a lot of stuff is written in Js.. because web is based on Js. a lot of desktop apps are written in Js (+Electron) because people who are not good at native development (and also platform vendors are not helpful to provide consistent approach to GUI and desktop apps) decided that Js+Electron runtime is best way to write portable apps.
It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
People write backend/server side applications in Javascript because of NodeJs.. and that's more legit to me, although just one of many fashionable ways to create a web server these days. nothing truly unique outside personal choice and recommendation on per project basis.
So web in the browser wins (although if somebody invented better way to create client side application without Javascript I'd bless him.. it's such a horrible language). Server side is ok-ish to consider if one likes it... and for true client side apps which belonged to desktop in the past... well actually rust, crystal, nim and all the renaissance of native development + gui libs and LLM that accelerates the development significantly... I'd assume electron apps should reverse.
Web adoption also may be kinda shaky as with all the crawling and surveillance around web+browsers.. I do really hope 2035 will bring alternatives there first... regardless of the programming language of choice.
"I kind of doubted it and I still do."
What's there to doubt? It's reality for me for at least a decade now.
Every app I use for work runs in the browser. Writing, design, programming, email, messenger. I open a browser and things just work, irrespectively of the OS.
Local inference doesn't run well at all in the browser.
Neither does local training.
I've been there but reverted and I'm escaping the browser unless we talk about small web.
I'm one of those who love to come back to nicely tailored apps that are close to my metal and local. I'm not that much into cloud if I have my own NAS (personal use cases) with 48TB of storage over local LAN that is ultra fast. Also a lot of computing power and RAM so I can run my local VMs and dockers while tinkering. I have all I need and exposure to cloud for remote work through dedicated interfaces.
Still.. I'm rather custom-solution driven but I like things under control. Eventually I discovered it's not that expensive at all and fixed price instead of subscriptions or "I'm the product". I more and more close the shop to the uncontrolled web. I leech it, then I ditch it.
I'm not saying I'm mainstream, far from it.. I'm just so frustrated with the way Web develops that I gently show it a middle finger and give it a stinky fart as a bonus too.
web to me is backends.. APIs and all the security layer. I don't need web for frontend at all. it's crap with lots of memory over head just to handle the current economy of the web, not that it's technically mandatory.
I like things sleek. Call me nerdy :>
> I like things sleek. Call me nerdy :>
JavaScript is sleek. If you can't see it maybe you aren't nerdy enough.
I must admit, and albeit I enjoy my own platform diversity without Chrome’s runtime, I like your answer ;)
A little weekend language taking over the world. Isn't that a nerd's dream?
I have a list of things that don't run in the browser, and I'm not sure why they ever would.
I'm sure you can find web-based alternatives for all of those that will be at least 80% vibecoded, and if you really need it, I'm sure you can find ones with a subscription model, too. I just don't think it makes sense.
> [...] and I'm not sure why they ever would.
> I just don't think it makes sense.
Well, the market is dominated by the average person and average person doesn't care about the fundamentals of their user space applications being web-based or not. They understand browsers, file managers; but totally intertwine these applications' with their "normal" use cases.
The normal many software enthusiasts grew up with was accompanied by native solutions, which were the same language used by the OS itself to create these kind of applications.
The average person uses apps more often than something in their browser. The browser hasn’t become the OS for them. The fact that most apps may be built on web technology and use a web view doesn’t change that.
My spouse’s personal digital world is social media and a couple of puzzle game. There’s a laptop, but that’s mostly used for watching movies and doing some stuff that is awkward on the laptop. The web doesn’t exist other as a way to get to a few place. iOS and macOS don’t exist. There’s only tasks and tools. like you think as the kitchen to find the microwave to reheat your food.
> iOS and macOS don’t exist
Surely there’s somewhere she clicks or taps on app icons to open apps, somewhere she sees notifications, unlocks the device, uses an on-screen keyboard, and so on. That’s the OS. If she would change the OS, say from iOS to Android, that’s what would change. If what you say were true, she wouldn’t be able to perceive any difference between the two.
Do you think about the firmware inside your car’s ECU? Or the one inside your home router? Either it works or it doesn’t. How it does or any extra feature is of no interest.
But the OS isn’t like that. It extends to what you directly interact with. If you couldn’t interact with it, you couldn’t open apps, couldn’t unlock your device, couldn’t see notifications. Users may not be aware of it as “the OS”, but they are aware of the fact that there are things outside of the individual apps on their devices, and they generally also care about how these things look and behave.
"I'm sure you can find web-based alternatives for all"
Oh.. and I'm also sure you can find native-os app alternative for any web app. Quite often also with a cloud service attached to it, just fine.
> It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
Try t3 code. It's amazingly fast. JS/TS desktop apps can be good, but only if that's the primary target of your development process.
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.
> Farid has been on an absolute roll recently.
There is a guy on CNN with the same name. And I initially was surprised that his blogs were making the rounds here. Turns out to be a completely different Farid Zakaria.
I was reminded of that scene from "Office Space", where the character Michael Bolten laments about having to share his name with a "no-talent ass clown".
Doesn't the CNN one spell it "Fareed"?
i had the exact same thought in terms of "i didnt take him for somebody that care about nix"
> Farid has been on an absolute roll recently. If you enjoyed this, I highly recommend his other blog posts.
You made me have a look at his other blog posts and now I realize that plenty of his other posts were discussed here on HN in the past and I really enjoyed them!
I just went through some of his blog posts and decided that it deserves a place in my RSS Feed
The article is jarring for me - in my 10 years of experience in the software industry, I haven't ever come close to needing javascript for anything. Javascript has certainly not taken over the world - just web dev AFAIK.
It's not JavaScript it's WebAssembly
havent needed to write web assembly either
How have you never needed to use the web?
I have not encountered a situation where I needed to write JS.
Ever used VS Code?
I use it, but still never needed to write JS
Well VSCode is JS
I was trying to make a point about what languages I've needed to learn when writing my own software for work or personally. Not the languages used to make the software tools that I use.
Which is only meant to support my other point that the article seems to over emphasize the universality of JS as if it already has become the "defacto language for all software". It's a foreign perspective to me as a software engineer with no JS experience =/
Unless your point is that JS goes beyond web dev; in which case I agree vscode is a good example.
OK, but the JS engines are mostly written in C++. Is that important in this context? I'm not sure if I follow your point.
How is that ever remotely relevant. The application itself is JS, and runs in JS, the same way a java application runs in the JVM. If your statement is "I haven't ever come close to needing javascript for anything" but you use VS Code, then that statement is trivially false.
Someone else's decision to write a Desktop application in JS has nothing to do with OP's decisions to write their work in the language that fits their needs.
That's not the same as "never having come close".
[deleted]
It's literally a JS application running on top of a JS interpreter.
nope.
There will come a language for all platforms better than rust, designed by AI. And it will come with a browser, and it will take the world by storm. One language to rule them all, one browser to bind them...
If it can be optimized, AI will do it, and when there is no more optimization to do, then it will settle as de facto, for everything, and forever. And that time is not too far in the horizon, a couple of years at most
The world is not homogenous enough for that, the right tool for this job is rarely the right tool for that job. The jobs also change too quickly. The right tool for tomorrow's job is not the same as the right tool for today's job.
Wasm will be all plateform
Prompt: "Please create a syntactically beautiful programming language optimized for LLMs use and efficient token consumption. That language will be used in all OS platforms, desktop, mobile and the web. We will need a universal UI schema and native libs plus a client app container that uses our language as script on the server and client and an app:// protocol to run such apps (apps:// for secure connection). Lets start a brainstorming session to define the scope, architecture, specs, roadmap, write down all .md files in docs folder. Ask any questions you may have before coding..."
This is gonna be fun...
out pops emacs
We might need to burn half the planet for that though. Think of all the ecosystem, that goes with a language. All the special purpose libraries and tooling, that needs to be developed.
I am not convinced your prediction will come true.
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
We can argue whether university course assignments are dead because of AI or not, but nevertheless…
For some courses I was assisting, we always had the issue that some of the assignments required Linux and it took at least a week or two each semester to get each student access to a proper Linux environment with root access (the university’s machines only give students non-root access). Something like this allows us to tell students to just use this website instead of handholding all the Windows and macOS users on how to set up Linux VMs or ssh into a VPS or similar
There are tools like smolvm which gives you a linux vm in seconds on both windows/macs.
disclaimer: Am maintainer, https://github.com/smol-machines/smolvm
Having dove into NixOS, I have realised all my university courses could have distributed NixOS image VM and had perfectly reproduced env on everyone's machine.
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
> oh its not actually realistic to use this in production because...
Interesting you give both V8 isolates and Pyodide as examples. At Cloudflare both are used in production for JS Workers and Python Workers.
(I work at Cloudflare on them both)
I'm also confused. V8 + Pyodide are perfectly practical, and we built a Python worker MCP on top of it that's used without much pain across many of our customers[0].
I know that the Pydantic folks also built a similar MCP in the past[1] but abandoned it for "latency" and security/isolation concerns. All those are pretty easy to remedy with a pool of pre-initialized workers and subprocess isolation. Overall, it's one of the easiest ways to ship an easily on-premise-deployable solution like that.
[0]: https://github.com/EratoLab/code-interpreter-mcp
[1]: https://github.com/pydantic/mcp-run-python
Oh this is neat. Security wise, are these trusted customers? Whats the worse case here? A machine needs to be rebooted? Maybe when I was looking into isolates before (briefly mind you) my security stance was too strict.
Our customers all run that within their own Kubernetes setups. The end users that are using it are the organizations employees (that are typically using it via our self-hosted AI chat platform[0]) with the most common tasks just being file manipulation. So there is a decent trust relationship, but the attack model is more of a typical organization-wide cyberattack one, where this shouldn't pose a weak link.
The worst case would be that any of the isolation mechanisms significantly fails, and concurrent workers can see each others files, e.g. confidential files inside the company. This should be quite hard in the architecture, and barring a bug in our server code require escape from multiple layers of sandboxing, and beyond that would require coordinating timing with the attack target.
In terms of stability, if a single worker OOMs, that just leads to it being killed. If you were able to get multiple workers to reach high memory usage, the pod will just be OOM-killed by Kubernetes and restarted.
It's not perfectly resource-preserving if you are running with a pre-warmed worker, but economically it's still a steal. You get functionality for $10-20 of compute a month for ~1000 employees that you would with many alternative providers pay $5-10 _per user per month_.
[0]: https://github.com/EratoLab/erato
You guys do E2E? Or do you have your clients bring their own tokens?
Clients bring their own tokens, and the most privacy sensitive clients self-host their models. We are also investing in building out desktop client capabilities to offload simple tasks onto the users machine (as both a privacy and cost saving measure).
Thanks for the response! I didn't know that actually. By "people" i meant Claude and my boss who specifically said it wasn't feasible for us to spin up our own agents on Cloudflare. Admittedly we work with large microscopy data so I think their advice was more against trying to do heavy workloads in pyodide/v8.
There is no use case and it is only "because of reasons".
In fact, as another commenter correctly said in a thread to me recently, WebAssembly is not the solution to "sandboxing" for various reasons, [0] [1] [2] especially when you are still dealing with browser engines that are written in C (QuickJS) and C++ (V8, Gecko) which are regularly targeted for memory corruption vulnerabilities with a kernel written in C (Linux) even when it is compiled to WASM.
They still bring over the very same C style vulnerabilities with them.
[0] https://soft.vub.ac.be/Publications/2022/vub-tr-soft-22-02.p...
[1] https://files.usenix.org/s3fs-public/cdn/sec20-lehmann.pdf
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=2013741
Not everything has to be about security. Convenience is also pretty desirable. The ease and speed of trying out programs with trynix.dev has instantly catapulted it to the top of my list of things to show people who're curious about Linux but not ready to muck about installing a bunch of stuff to satisfy that curiosity.
> Not everything has to be about security.
As long as it is in a web browser with the existence of web apps, it absolutely does.
I don't think anyone other than techies here cares about Linux or any other distro. It is more convenient to end users to use macOS or Windows than to bother with trying or installing Linux at all.
They do not care whatsoever, and the only thing they care about with computers is that they don't get their passwords, data or internet banking accounts hacked when they use their browser.
What is this FUD? The papers you cited have next to nothing do with sandboxing. They are mainly about guest WASM security (e.g. "how vulnerable is an already vulnerable C program against things like arbitrary memory reads in the guest program"), and have nothing to do with sandbox escape. There are also plenty WASM runtimes that exist outside of browser engines with proper safeguards.
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?
Side-note 4:
> Do not be too overjoyed. It took more than an hour for this to render.
That is the nested trynix demo. Trynix itself was 2-32x faster depending on the workload according to him.
Wonder if this could go any faster with things from pkgsCross.wasm32-wasip1… (I wish any of it would actually build.)
Faster than the qemu-wasm version, not faster than native code.
[dead]
Unkernel (mentioned in the article) was recently on HN here:
https://news.ycombinator.com/item?id=50533945
Doom working in it (my comment):
https://news.ycombinator.com/item?id=50602937
includes link to a youtube clip of it if you're impatient.
Does anyone know over which… channel(?) some of the traffic goes? On the Firefox Web Developer „Networking“ tab, I can see apt/deb packages being pulled in, but when e.g. I curl in a large file, the Network tab remains completely silent. Why is that?
Also, how can the tab running unkernel pull in any external content at all if it’s not coming from the unkernel domain itself?
So yes, in other words, this is at least one “matrioschka puppet” level too many for me, together with my not-perfect understanding of how browser origin/sandboxing works…
> Network. curl, git clone and pip install work. Each TCP connection goes over one WebSocket to a Wisp relay.
> Thank you to @_pi0_ for adding trynix.dev to his Wisp relay allow-list.
https://github.com/MercuryWorkshop/wisp-protocol
It goes over a websocket connection to a TCP/UDP proxy called Wisp. I am not sure who is hosting the other end of the proxy - I guess the author.
I really like how well the nix philosophy works here and I can see this being very useful for all sorts of agentic work. In my own side-project [0] I just use Alpine and run it in TinyEMU compiled to WASM, as it allows for riskv64, which is a bit faster to interpret than x86. (I built it on top of container2wasm, the maintainer of which - I believe - is also behind the qemu WASM that OP uses).
Truly marvelous times we live in: I am by no means a system programmer or OS expert, but thanks to various coding agents and models I was able to add networking and overlay FS, a frambeuffer and sound.
I wonder what the right approach is though. If the base system is run through an emulator, a lot of things can become unbearably slow for a lot of use cases, but at least as far as my limited understanding goes, a lot more could be achieved if there was more progress on the WASM/WASI standard side. Or maybe syscall emulation is a better way to go here like some comments suggest?
[0] https://github.com/deepclause/agentvm (it wasn't mean to run in a browser, but you can let your favorite agent create a Wasi shim for web within maybe an hour or so...)
[1] https://github.com/container2wasm/container2wasm
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.
For anyone too lazy to read the full article, the last line says it all:
I can remember more than 10 years ago seeing a GNOME app run from a web browser. I cannot remember how it worked, but it was a similar kind of Inception feeling when you saw it.https://slopshare.dev/v0.1.8/wine/
https://slopshare.dev
https://github.com/daugasauron/dolly
Similar idea but recompiling everything from source against a POSIX like userspace thats WASM native instead of running through emulator.
Wow, I love this. Emulating system calls or posix-like userspace seems like a better approach for most tasks, which don't use 90% of Linux's userspace API surface.
Suggestion: remove `.description { overflow: hidden; }`
Also, see WALI: https://github.com/Wasm-Thin-Kernel-Interfaces/WALI
and wanix https://wanix.dev/
I did not expect someone to get the nested browser-in-a-browser running this soon. Bravo!
[deleted]
Is there any way you can download files from the filesystem?
No, there isn't any good way. So I just made a file relay for you, you can use that.
file relay:
https://ezmon-e.com/utilities/file-relay
video of how it works:
https://youtu.be/rQQOzNHQL9A
you should check the hashes of any files you get from a relay like this, I don't think my server is running any malware but it could always get infected in the future, the vulnerability surface these days is enormous.
No need for a new relay, really. If you add croc in the VM, it will generate either a link you can download from in any other browser or via croc installed on the machine you wish to download to.
croc will establish a direct udp between two terminal clients or use their relay only if you want to use the web version for either upload/download. And it's e2e encrypted when using the croc servers.
Just tried it with a couple random wikipedia images downloaded via curl to the VM and via croc to my machine. No problems.
Thank you! I tried it and it works well. Very useful and easy to use, since it's just one line
screenshot:https://imgur.com/a/tqibr0D
also works on folders (directories). It's a good project, I donated to its author.
croc is my number one favorite under-used under-rated projects.
Literally any two devices on just about any internet connected device, supposing only that you're not on a super locked down corporate network can share files and now even ssh sessions so you can croc in to an existing ssh session if you want to have a single ssh session shared across multiple devices.
Love that you donated!
thanks for sharing. what do you mean by croc in to an existing ssh session, could you explain a bit more?
>croc ssh
generates one persistent shell with two seperate six sword croc secrets, one for someone with read/write, and one for someone with read-only. You can then croc $secret_words in a seperate terminal (on another internet connected machine if you want), and IO in the original terminal will be mirrored to the observing terminal.
If the mirroring terminal has read/write, commands typed there are executed in the 'host' terminal.
If the mirroring terminal only has read, you can use it to monitor a long running job, server logs, or to share with someone for support like RDP/share my screen, or I suppose to give a presentation on a machine that doesn't have all of your tooling from a laptop with croc...if you're in a weird combination of instances in which you have both a group to show your terminal to and don't have direct access to your terminal.
You can do all of this without configuring ssh on the public/other machine, so if, for instance, you had an ssh session on one machine, and needed to access that ssh session from a machine where you don't have (and perhaps don't want) your ssh key to sit, you can croc from the public machine to your private running ssh.
I typically use it for when I just want a quick "hey can you check what I'm doing here" because I don't have to set up/manage ssh keys as the croc keys only live as long as I want them to. Or the reverse, "this is what you're going to type and what you should see" without creating a recording/screenshare.
I also have a dynamic IP at home and don't really care to set up tailscale and/or vpn to my home machine so if I feel I might need access to my machine i can run croc before leaving and connect from just about anywhere.
And it still all works either cli/web.
Check it out: https://getcroc.com/blog/share-terminal-with-croc-ssh
edit: oh! and you can >croc relay on say a server and then you can use your own routing instead of the public croc relay for the web clients
[deleted]
Yesterday I was able to compile and run a game I'm making bit-perfect (physics world snapshot is the same) on linux and windows (via wine) cross compiled from the same machine.
I'm happy that it's possible and working, but so confused why this is not something that comes out of the box. A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
Cross platform support is difficult because platforms made it difficult and have no incentive to befriend.
I hope one day we get posix v2 with performant standard APIs to not worry about platforms in application's code. Perhaps 2035?
> A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
It’s all about workloads and needs. You can’t put a sedan’s engine into a semitruck even if the basic components are the same. Windows were all about the microcomputer while Unix was designed to run in servers. The abstraction differences can be smoothed over, but it’s hard work and not everyone is keen to do so. And because they’re abstraction and not physical constraint, some would rather invent a new one (OpenGL).
> I hope one day we get posix v2 with performant standard APIs to not worry about platforms in application's code. Perhaps 2035?
A more pragmatic option is to design you app and push platform concerns to the edge. Then you just reimplement the exterior shell while keeping the core logic unchanged.
> A long chain of technical decisions led to the world where a simple game written in C needs to be aware of multiple CPU architectures, OSes, graphics APIs, display servers, sound subsystems to have a chance to work properly on platforms it knows about.
Doesn't SDL solve most of those problems?
GLFW and wgpu do a lot of heavy lifting for me, but complexity abstracted into a library is not the same as no complexity.
If an API that works on all of them and makes your code portable (or almost portable) isn't acceptable, I'm not sure what you expected a solution to be in that case.
> "so confused why this is not something that comes out of the box
If you want your code to work on multiple CPUs and OSs, there is no single "box" you can blame. There are multiple "boxes" which naturally don't have completely unified native APIs. Libraries like SDL make the complexity of writing portable projects easier to deal with if you don't want to deal with the native APIs.
This is a very cool insight, but the "2035 came early" is a stretch, since all web browser engines and web assembly down to your device drivers aren't made in Javascript. If you take the % of what is exactly JS, maybe we arrive at 20%, 30%?
I'm having a difficult time understanding how this is categorically different han JSLinux (released in 2011, 15 years ago).
If these builds are running in a WASM environment, it means we can enforce stricter control over them than was available when they were originally authored. Rather than having it be a convention that using a source of randomness in your builds is a bad idea, we can just take the random number generator away from the build. Rather than suggesting that network connections in builds are likely problematic, we can deny the build access to the network and ensure it still runs. The nix sandbox can only go so far to encourage determinism, but I think wasm can take it even further.
What can WASM do in terms of sandboxing that a build environment in a VM couldn't?
Without host imports, WASM has no clock, no randomness, and no threads unless you grant them, so execution is closer to fully deterministic.
If we can determine with high confidence that a particular derivation is in fact deterministic, we can memoize it: just look up the output rather than compute it. If we can get to a place where everything is memoizable in that way, we can build a map between compiled binaries and the code that generated them... no decompiling, just search and find it. From there we can reach further back: Who has reviewed this? Who has tested it? Has anybody raised an alarm about it? These could be gossiped annotations on nodes in the derivation graph, some of which will correspond to binaries that a potential victim is about to execute.
And if we can get all of that working, we can make our operating systems much smarter about their "are you sure you want to run this?" messages, as well as improvements to our ability to quickly understand the blast radius of bugs, because "am I affected" becomes a matter of graph traversal within the same dataset that would support the memoization.
It could have been tcl. I spent 14 years writing tcl (and Javascript).
https://news.ycombinator.com/item?id=43588723
This is so insane and so awesome in a pre-AI way. Tokens well spent!
Interestingly, I am building stuff not in JS because of LLMs.
I am a run-of-the-mill web developer who knows only Javascript.
I wanted to build an MCP, so asked LLM the best way to do it (with some assumptions that it would scale, etc) and it said to build in Rust. And there is a web component to the thing I am building, and it told to compile to WebAssembly.
So I have a large project in Rust+WebAssembly, working as I wanted, without having no clue of those stacks.
My impression is that JS will be less dominant, now with LLMs
Lots of the examples in the article are wasm, I think they’re including wasm in the move to JS. But it certainly feels different (because, you know, it isn’t JS)
This was my main problem in the article. WASM isn't JavaScript! It's a compiled binary format that can be called from. JavaScript.
This feels much faster than the last time I tried it. I wonder if further optimizations could make it practical to spin up a project’s development environment in any browser.
Just yesterday… https://news.ycombinator.com/item?id=50599049
Good grief.
I remember thinking sometime a year or two back that I'd built a ridiculous tower of abstraction when I was running 16-bit Amiga games on a Kickstart 1.3 image running inside, IIRC, WinUAE running on Wine running on Rosetta running on macOS running on Apple Silicon but I can see now this that was real amateur league stuff and that I need to get into nesting operating systems inside browsers inside operating systems inside browsers...
Got Firefox inside Firefox working... obvious thing to try is run Firefox inside Firefox inside Firefox, but tab crashes.
edit: busted, didn't finish reading.
Yes, this is the last paragraph of the article
All the obvious amazement aside, I am here wondering what desktop shell is being used at https://unkernel.dev ?
It looks clean, minimal, transparency/modern, crisp, a superb dock implementation..
I wish I could have _that_ as my regular Linux Desktop...
You can get a similar look with GNOME and the Blur My Shell extension. They recently added liquid glass effects.
That is the default Dock on Gnome?!
I remember GNOME desktop was much different.. with the top bar, fullscreen "Launchpad" etc. I want the clean look this project has in the browser.. Do you think they trimmed GNOME down to achieve this?
No, that one uses a custom browser-based Wayland compositor written in Zig/Wasm called wland that renders app windows directly over a web terminal. And the bottom dock is just custom HTML/CSS built into the web page (yet.. that's crazy as is this project).
<https://wland.vercel.app>
<https://github.com/pithings/wland>
<https://github.com/pithings/unkernel/blob/main/web/src/>
<https://github.com/pithings/unkernel/blob/main/web/src/compo...>
As for Linux, I would opt for Hyprland <https://hypr.land> and go down the r/hyprland rabbit hole <https://www.reddit.com/r/hyprland/>
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.
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.
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.
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.
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/
What is the desktop environment used in https://unkernel.dev/ ?
Seems to be an ad-hoc UI rendered using the DOM.
etr doesn't work. It just segfaults.
https://nixmultiverse.com/?pkg=extremetuxracer&sys=aarch64-l...
Please file an issue.
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.
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.
> extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness
Nobody ever claimed that? The whole Birth & Death of JavaScript talk is explicitly about transpiling code from other languages.
At the time the transpilation target was (the limited asm.js subset of) Javascript, since WASM didn't exist yet, but the overall "transpile everything to run in the browser" still holds.
>Nobody ever claimed that?
Written in meaning shipped in. JavaScript is irrelevant to WASM. They are not interchangeable. It has literally zero relevance to the projects it uses to demonstrate its point.
Like, just a few quotes from the article (some of which are quotes to support the argument)-
"JavaScript will come to dominate all software."
"inevitability of JavaScript’s dominance"
"how JavaScript came to be the defacto language for all software"
With an old video about someone saying that eventually we'll compile everything to JavaScript by 2035, ergo 2035 came early. Then trying to twist that such that...well...a browser hosts something, and it also hosts JavaScript, therefore prediction came early!
I, uh...guess.
> With an old video about someone saying that eventually we'll compile everything to JavaScript
The "old video" is very specifically talking about asm.js, the direct precursor of WASM.
WASM was built because asm.js proved that transpiling native software to the browser was a viable model, and by many of the same people behind asm.js
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...
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.
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.
> 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...
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
We ported plenty of existing executable programs to asm.js before WASM was even conceived of - the whole emscripten project was built around this. WASM was designed from the start to be a drop-in replacement for asm.js
Yeah, almost none of this is actually written in JavaScript. It's transpiled to it, but not written in it
Not even that. It's WASM.
Isn't WebAssembly just transpilation to a subset of JS?
asm.js is a subset of javascript, Webassembly is its own bytecode format.
Was. That project has been shut down for years.
No.
I guess other than adding another trophy to the trophy case and never looking at it again, who's using all this stuff? It seems to me all the users have gone over to the Instagram and YouTube crack dealing machines and are pressing the dopamine button 'till their brains fully rot.
Still waiting for my wasm first language "wasp/warp" to replace js
https://github.com/pannous/wasp/
https://warp.pannous.com/
Insanity, n.: having perfectly good, fast, stable, well-documented, well-designed, widely-supported programming languages, and throwing them away to instead reinvent the wheel in the form of a toy language created to make pop-ups in a hypertext document viewer
One step closer to distilling the browser down to just protocol, canvas, local I/O, and runtime.
Finally allowing an unhappy humanity to cast off all that HTML, CSS, DOM, event bubble, mime-type, etc. nonsense.
Squint a little bit, and you'll see the ghost of JNLP (waving "Hi!").
At the same time, we can now use AI to rebuild anything as a native desktop app written in Rust.
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
> The proof is in the pudding
The proof is in the eating of the pudding. These days, nobody makes pudding with a proof embedded inside it.
You don't get Lean from eating pudding…
>Any application that can be written in JavaScript, will eventually be written in JavaScript.
False. JavaScript is still not written in JavaScript.
ahem..
https://engine262.js.org/
None of that thing is loading. I don't see anywhere "browser inside a browser". Do I need 2k EUR of RAM for it?
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.
Firefox-on-Chrome works for me on desktop although even then it's certainly not what I'd call snappy
It's mostly CPU-bound for me on a Ryzen 5.
This person seems to think WASM is JavaScript.
Pooya is the ! Just hope he won’t leave Nitro behind. But what a time to be alive!
How is the performance of apps running on unkernel compared to wasix?
I hope the nuclear war prediction doesn’t come true as well.
this is not the farid zakaria from CNN
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.
This is a really weird article with its assertion that all software will be written in JavaScript
That's what I'm saying. I'm 10 years into my career in software. I've never learned JS and I dont really plan on it any time soon. It most certainly is not "the defacto language for all software". I can think of many languages more worthy of that title, but honestly none of them truly are. It is the defacto language for web dev, but I don't work in web dev... conflating software with the web dev industry is just annoying tbh.
It is heartwarming to see so many other Javascript haters in these parts. I can't stand the prevalence of that language and wish it would die a fast, fiery death.
I mean, Javascript okay for pure web programming. But if your software executes in any environment other than a browser, please use a real language.
The JavaScript folks always seem like they're in a bubble. I mean, yes, JavaScript is everywhere on the web. But, no, 95% of my code (and the code of everyone adjacent to me) is Python, with some C++ and Go to fill in the cracks, and I don't see any sign of a mass migration to JavaScript.
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
~ #
```
brandon, this one's for ya bud
But why?
JavaScript (even with TypeScript) is the most "pit of despair" language I have had the displeasure of working in. I've gone from working on embedded C, to Dart + Flutter (desktop/mobile apps), to now building desktop/CLI apps with TypeScript along with their corresponding packages for interfacing with hardware (mostly custom hardware, some off the shelf).
To give credit where it's due, I think the FFI works well with Koffi [1]. And it's nice that Node.js has the ability to run `.ts` directly (erasableSyntaxOnly). TypeScript's type system is also really good!
Apart from what arguably should be the basics? Nothing has been easy. Unlike Dart which seemed heavily biased towards falling into the pit of success [2], the JS ecosystem seems to be a chasm of despair that is almost unavoidable, even with a huge amount of work (and indeed, billions of dollars has gone into this chasm). In the last three months I've run into friction in:
Seems like it's an every day occurrence that I run into issues that Dart/Zig/Rust would've simply just not had, or if they did then they would have handled it superbly. And here I was thinking JS's bloat was supposed to be excused by the convenience it offered!
Don't use JS/TS unless you absolutely need to run in a browser. And like unkernel shows, maybe you can just write native apps and ignore JS all together.
[1] https://koffi.dev/[2] https://blog.codinghorror.com/falling-into-the-pit-of-succes...[3] https://eslint.style/
Hi
Once again Bellard was 10 years (min) in advance
https://bellard.org/jslinux/
[dead]
[dead]
[dead]
JavaScript, HTML and CSS are an absolute trash and the fact that AI can insulate me from them makes me very happy.
lol no they’re not