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.
It’s become okay in the past few years after two decades of absolutely Herculean effort of the whole industry and some particularly dedicated individuals.
The foundation is still abysmal, but it doesn’t hurt because you don’t have to look at it anymore or you can use modern facilities instead. Note the striking similarity to what LLMs give you, it’s the same thing on a higher level.
though on second consideration, there was something that was AWFUL about JS in that era - the total confusion about the state of the art. I was getting constantly bombarded with articles about how JS is the future of engineering, how the biggest companies have already transitioned to this or that framework and that is the future.
When learning something new, there's a transitionary era, where you just don't get it, but assume the experts do, and eventually you will as well.
That is unless you're talking about something like quantum mechanics, where not getting it is the sign that you're not smart enough.
And I didn't get it, and I constantly assumed I was two tutorials away from eureka. But no. I suspected that maybe the people dispensing wisdom and confidently decrying how their stuff is better might have been wrong, I thought it was just hubris and hunkered down, and eventually gave up, assuming I can't keep up with the state of the art anymore.
The turning point came when I encountered a bundler bug in a fairly reputable library, and delved into its source - I expected to find some reasonable compiler stuff in there - tokenizing, parsing etc. etc. but what I found was a bunch of regexes and string replacements.
At that point I had evidence that to at least some degree, the patients were running the madhouse, and while VB6 might be deeply unsexy, I highly doubt it's compiler ever featured gems like this (PHPs might have)
I agree. But I am disappointed that none of the initiatives to put another language in the browser came to fruition (except WASM). Something like Ruby would have been nice.
I think WASM managed to fall between two stools - it couldn't decide whether it wanted to be a high performance runtime analogous to NaCL that allowed you to run code at native speeds, or a generic bytecode language that other languages can target (analogous to Java or .NET bytecode), while having the same access as JS.
It mananged neither - the runtime is both slower to load, run and is significantly more complex than NaCL ever was, while suffering from lots of limitations, meanwhile WASM code exists separated from the JS runtime. It's high level features like garbage collection, aren't really usable by language runtimes.
Imo the best thing would be, if you could compile Ruby to a generic bytecode, which has extended features to support dynamic objects. .NET kinda managed this back then, and there were things like IronRuby, which supported a decent subset of real Ruby code, but wasn't really popular afair.
Not even WASM, because the tooling still sucks, and if you need a GC, JavaScript is still better than dealing with WASM GC, a MVP that only suits languages with the same GC semantics as JavaScript.
I don't disagree on this; I transitioned from a backend heavy role rendering ASP.NET Razor templates to the bold new world of SPAs in the mid to late 2010s, and some things were genuinely baffling like What do you mean the compiler(bundler) generates invalid code? What do you mean the bundler is unfixably broken, and I should use a different one? Oh, that's unfixable as well?
That framework churn, leftpad, etc. stuff I think is something the JS community will gladly memoryhole. Thankfully, I was rightly repelled by that mess, and fled back to backend, and returned only when things calmed down.
Btw, the pre-SPA era of jQuery is an interesting paradigm, while writing modern TS feels like writing basically any other language.
I've learned to like JavaScript, but only after I worked with a few different C++ codebases.
I think after a while, you realize that atrocities will be committed in every possible programming language and to prevent those you need culture over syntax.
But honestly, the thing that I like most about JavaScript is the ease to ship. I'd rather have more people use the thing I wrote than trying to convince people to install what I wrote.
Javascript is actually a great language. Its garbage-collected closures made it easy to do GUI programming.
The C/C++ world where browsers came from didn't have this (closures). So it is actually a miracle we got a language as (relatively) great as Javascript.
Each to their own I guess, by personally I really don't like closures (at least ones that as per their namesake, close over objects with nontrivial lifetimes).
I think it was the right call by the C++ people to explicitly list what objects are captured and how, even if the syntax's not the best.
RAII is a fact of life unfortunately, not just in C++ or Rust, but if you talk over some high level protocol over the internet you go TCP socket->HTTP connection->your stream protocol; and have to do the exact reverse.
Closures break RAII hard.
Incidentally, you don't even need closures for nice looking UI code. Immediate mode GUIs like Dear Imgui or Clay allow for super-simple looking code in basic C
In the last few decades the hype around GC kind of faded because GC is literally a complex solution designed to fix only one single class of leaks - memory leaks - which often makes other kinds of leaks (mutex, file descriptors, handles, ..) actually harder to handle unless the language is carefully designed around them. Just look at Java's `try()` or `with` in Python, etc, which are afterthoughts added later. RAII may be rudimental but it can potentially fix all classes of leaks by introducing deterministic lifetimes and scopes which aren't tied with the resource itself. There are other solutions for this? yes of course, but the success of Rust which is literally built over a stronger, deterministic form of RAII kind of makes debatable whether a better system is needed at all. Especially since LLMs are excellent at Rust and kind of make opting for "weird" languages moot. And I say this as a person which _loves_ niche languages and language design.
Nowadays you can probably vibe/slopcode whatever you need with just a bit of Rust, Python/shell scripts as glue and maybe Javascript if it's a webapp (but we'll likely replace that with WASM soon I'm afraid)
> I think it was the right call by the C++ people to explicitly list what objects are captured and how
Having recently worked a lot with Rust, which does this implicitly - I find the explicit notation entirely unnecessary. There's only one choice - are captures moved into closure or passed by reference? - and everything else is inferred. It does lead to some verbose cloning when there are many refcounting pointers at play, but other than that it works flawlessly; I've never been in a situation I couldn't do something I wanted to.
I'm confused by the point about RAII. Why are you saying that closures break it? Personally, I found that closures complement RAII very well - the closure owns its resources, and when it goes out of scope they're all cleaned up automatically. Or do you mean situations where resources outlive the closures? This is no different than any other object that needs a reference to something that lives longer.
You can simulate RAII with closures though, that is what the with-something pattern is all about.
Naturally it works better in FP and LP languages without concept of global variables, where resources could escape the closure.
In JS? What aspects of RAII can you simulate, and how?
> Immediate mode GUIs like Dear Imgui or Clay allow for super-simple looking code in basic C
Layout computation is always awkward in immediate guis. You have to do an extra pass or throw away a frame.
Clay's algorithm actually does many passes, that doesn't mean it invokes the UI function multiple times. You are allowed to retain state during computation.
Here's a cool explainer video:
It was a missed opportunity for a mature language like Scheme which had at the time all the good parts, none of the bad parts and the only issue was slightly unfamiliar syntax.
I like Scheme syntax but someone coming from a C-syntax background can easily understand this in the first look:
const add = (a, b) => a + b;
And may need to read this a couple of times because of the lone "+" and the parentheses:
(define (add a b) (+ a b))
... and this is the simplest of examples. It's not slightly unfamiliar syntax. Perhaps Rust is slightly unfamiliar syntax, if we mean really just the syntax - as in, you can tell where the functions start and end.
You could also say that Scheme has very little syntax, for example, no distinction between statements and expressions, no operator precedence, and nearly zero reserved punctuation. So I'd argue that it needs more adaptation because it is less.
> the only issue was slightly unfamiliar syntax
I was banished from golang communities when I said that a language should deviate from already established standards only when it has a good reason to do so. I remember it being quite ironic that golang took pride in not overloading names, and then... overloaded the English word "go". It's really unreadable unless you specifically study golang.
I could go on very long how much I hate golang for its stupid syntax alone, even before we dive deeper into its broken features.
Regarding Scheme itself, functional languages never gain traction because both humans and machines think imperatively. Yes, functional languages are a beauty for someone who understands them well, and in some specific use cases, but I still remember that as a student I finished my project, I just needed to add a few prints... oh fuck I need to rewrite the entire thing just to add "print". Never touched functional programming again, except for functional elements in imperative languages.
https://news.ycombinator.com/item?id=44885169 [flagged] [dead]
> "Once on 4chan I read an opinion about golang that isn't suitable for this website and I fully agree." -anal_reactor
Maybe your shouldn't get your opinions about goland from 4chan, or your online personality and ideology either.
Or your opinions about women and masculinity either:
https://news.ycombinator.com/item?id=50599656
> "Some time ago I've seen a comment on 4chan that simplifies things, but has a decent grain of truth in it. [...self loathing misogynistic transphobic incel rationaliztions redacted...]" -anal_reactor
Maybe your should try actually reading posts before commenting on them:
https://news.ycombinator.com/item?id=50573013
> "I rarely ever read posts but I comment a lot. Last time I checked mommy told me I'm not a bot. The way I see it is that the post sets the discussion topic, and then comments are the discussion. Because realistically, the post is just one very elaborate opinion, and I'd rather see a variety of opinions, and respond to them." -anal_reactor
Self was implemented in C++.
I really like closures, except when you need to debug them because the callstack looks like the leaning tower of Piza.
> garbage-collected closures
A feature existed since 1960s...
Yes, but the languages which had it did not give us browsers.
Sure they did, but the GC haters didn't support them.
True. I mean yes, so long as you weren't writing JS for Internet Explorer.
I don't get the hate for any mainstream language.
I mean, you can hate a language compared to another language, but to the point of making you hate programming? To me, if you do, you probably don't really like programming in the first place. Especially considering that Javascript is a conventional language with variables, conditions, loops, functions, etc... the kind that should be mostly transparent to an experienced programmer.
It would be like a woodworker saying that pine made him hate woodworking, sure, you may prefer to work with oak, but pine is still wood.
This is silly. In ruby I can put down my thoughts 4x faster than if was writing JS. The syntax is more readable. etc. Each to their own but can't stand looking at JS nevermind all it's weird quirks we still have to live with.
Your analogy with woodworking is deeply flawed as well. Woodworkers do actually strongly prefer certain types of wood.
> To me, if you do, you probably don't really like programming in the first place.
This is exactly the opposite of the truth.
Programmers don't program because they like variables, conditions, loops and functions. In fact some of the best languages ever created don't have most of those things. Apparently your experience of programming doesn't extend very far given your idea of programming seems to go only as far as those basic concrete concepts.
There is such thing as neatness, elegance and beauty, especially in programming and mathematics. As in other fields it's the people with the least taste and appreciation of that who are the haters, like yourself, because they don't understand the issue at hand.
But you can express elegance and beauty in any language!
For this, I don't think there are many people, if any who embody these concepts more than Don Knuth. And you know what language he chose for "The Art of Computer Programming" books? Assembly! He has also used Pascal, and C, neither are considered particularly elegant, but it doesn't matter, because the elegance is in the algorithms, not the language. In fact, one of the thing he is best known for, literate programming, could be seen as a testament on how little programming languages matter, by burying it within his prose.
> There is such thing as neatness, elegance and beauty, especially in programming and mathematics.
I don’t even think of programs as code. Instead, it’s a sequence of actions on data. Kinda like open the file, search for the lines that contains this pattern, split it like this, sum the first item,… Expressing those in a programming language is fairly mechanical with slight adjustment according to the paradigm. But there is some effort spent there and the syntax can make it unpleasant.
Reading a program is a whole other matter. The easier a syntax make it to get the idea of a program, the better it is. I don’t like Rust because it’s full of compiler annotations and I don’t like some idiomatic techniques in other languages because they obstruct reading.
But I wouldn’t go to hate in both occasions.
the stdlib is ass, the language is crude (just look at available data types), and the ecosystem is managed by groups of unsupervised children.
> It would be like a woodworker saying that pine made him hate woodworking, sure, you may prefer to work with oak, but pine is still wood.
It would be like woodworker getting dull tools to work and wood being rotten
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.
Yeah you won’t get it if you haven’t bashed your head trying to claw your way out from the depths of callback hell. Or any of the dozens of quirks in the language, compounded the hundred different environments it could run in, each with their own special edge cases. Gary Bernhardt, the person mentioned in TFA has another fun talk worth watching called “Wat”.
Eventually with a lot of lipstick on the pig, like async / await, it has become much more tolerable.
JS is not the worst language but I would not say it has elegant and consistent design like some other languages do. Not every languages has the list of quirks as long as JS: https://github.com/denysdovhan/wtfjs (but C/C++ have much more foot-guns).
The quirks are almost all to do with the old type coercion features that js has. If you enable linting to ban these features then you remove almost all these quirks and you're left with a modern and mostly clean and consistent language.
…no. Prototype inheritance, bundles/mjs module hell, bizarre for-in iteration syntax, features missing from the stdlib … there’s a lot more wrong with the language than the broken type coercion system.
You don't have to use prototype inheritance though. Bundles and modules can be horrible to work with, but is more of an ecosystem problem. There is no problem with the iteration syntax, you can learn it once and never worry about it again. The stdlib is decent, I find it more pleasant to work with than some other popular languages.
I think people both are stuck in the 2000s image of JS, and conflate the language with the ecosystem a lot, as well as with using it where other tech stacks would be so much saner. The latter two things give JS a worse rep than it deserves imo. Although to be fair, if you write JS for work the ecosystem is almost unavoidable, so hating JS for that is somewhat deserved.
Personally, ever since ES5 I really started to enjoy writing javascript, and by now practically all the warts feel quite easy to avoid. I can't say if that's personal mastery or language improvements, probably bit of both.
I still hate the ecosystem though, and always disliked it more than I ever disliked the insane var scoping rules or whatever from twenty years ago.
He said his shift to management happened 5 years into his career, so he wasn't ever very experienced as a programmer.
I think you can become a pretty good programmer even in a year or two, if you start as a teen, have a lot of passion for it, and know what you want to learn.
Don’t get it. Haven’t you used tons of other prog languages? Python, Go, C, Pascal, Java, Clojure, Ruby, PHP, C++, etc etc
I dislike every single one of them. I like tons of features of, for example, Go, but hate with passion its err handling. Same can be said about every single language I have used. Nothing particularly different about JS
> very 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.
That's some serious dislike of JavaScript! I'm not a big fan of the language and definitely find typescript projects less enjoyable than others, but I'm surprised you found it such a big impact!
What languages were you working with before? I'm interested if it was a relatively generic OOP languages like Python/Java/etc, or something very opinionated/specific like Haskell/Lisp/etc?
C, C++, C# and Java were the languages I liked to work with depending on the job.
I didn't want to write a large essay because it would be boring. Every language has annoyances, but the thing with javascript is that it's a terrible server programming language (Node) and makes the already unpleasant UI client work even less pleasant.
A lot of my dissatisfaction was due to the environment of the web and full stack development work where Javascript became prevalent. Typescript fixed it somewhat while inheriting much of the "Framework of the week" mania from the javascript era.
In a nutshell the age of Javascript was when Software Engineering lost what I like to call "durable learning". Javascript always felt like a temporary hack and the surrounding ecosystem, ephemeral.
I ran a pretty high-functioning C++ shop, myself (image processing and device control). I know everyone loves to hate on C++, hereabouts, but it's one of those "industrial" languages, that will allow bad programmers to make a terrible mess, and good programmers to make awesome software.
What I was always bemused by, was the rise of Javascript (Typescript, really) as an enterprise language.
C++ can be pretty nasty too if you go all-in with modern idioms. That's probably why C++ is so easy to hate. I rage quit C++ "for good" a dozen times in my life, lol.
The extra modern complexity at least gives you something in return with low level compiler optimizations and assurances that vanilla C and "C with classes" C++ can't easily offer.
C++ is like wine: The best way to enjoy it is to pick a very old vintage and stick with it. For my projects, I limit myself to C++11 and a very small number of C++14isms and strictly limit myself to those.
Can relate. I was never affected by JS (it was not prevalent in my corner of the industry), but I was pretty demoralized by the awful nosedive in software quality, the ethical collapse of the software industry, and the dependapocalypse (the lethal trifecta).
I, too, was a manager, and that trained me to rely on "black box" code, written by others, and how to evaluate and control its Quality and feature set. Running an LLM is pretty much an extension of that. I didn't like being a manager, but that was mostly because of corporate garbage, not because the work was bad (I was just not allowed to do as much as I wanted to).
I love coding, but I like design, architecture, and delivery, even more, and LLMs allow me to exercise these. Now that I'm retired, I no longer have to deal with high-Dilbert-Index work environments, and that makes all the difference.
LLMs have given me extra time back, which I am using to study graphic design.
The thing that really pushed me out of writing software as a profession was the entire industry’s casual attitude about quality, defects, and correctness. The “just ship it, we can live with bugs” and “no software is bug free” mantras. To me, software is like a math equation: it’s either correct or it’s not. Almost all of the business of software tolerates “incorrect” to a ridiculous degree, so I won’t write software for a business anymore. I write software only at home as a hobby, now.
I'd happily take a managerial position if these human problems were solely a challenge for the intellect, but what I find aggravating is having to deal with corporate cruft more directly.
Having to move to JS was certainly a giant step backwards from compile-time checking and strict typing provided by AS3, which was an ES4 branch from 2006. I wonder how you'd feel about stricter languages in the same family like that. Typescript is at least tolerable, although still far too loose.
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.
I hope you have a pipeline for your pipeline
> 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.
This is the hot take we need.
If it was Java instead would it have been better or the same situation?
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
I hated JS too, and deliberately oriented my career towards work where I’d have to deal with it the least, like backend roles.
Unfortunately now due to a twist of fate and poor life choices, almost all the work I’m doing today is JS-based. I don’t even have the luxury of TypeScript half the time.
But you know what? With AI handling all that stuff, I don’t mind it anymore. It could even be described as… enjoyable??
Same things over and over. Same things people were telling about BASIC and Visual Basic 30 years ago; same things people were saying about PHP 20 years ago. No offence, but hating a programming language and let that affect your work, is like shooting your foot. The Javascript "problem" has long been solved and fixed by TypeScript; I see JavaScript as a low level product of compiled TypeScript and TypeScript is a solid and very powerfull language.
But I can understand you, because I hate Python; I believe Python should be a dead language by 2026 but Google and Data Scientist brought to back to life for math and AI research. I still let AI agents write small Python scripts when they need to; sometimes I tell them to re-write in other languages; sometimes I leave it there and I continue with my life.
But you gotta admit that nobody sane would design the current state of writing and compiling TS being required as an intermediate step to producing reasonably correct JS? The sole reason TS exists is because of the flaws inherent in JS’ original purpose and design. Not to mention all the random completely insane footguns (eqeqeq etc.) and the whole community issue (npm everything).
Actually Python has a similar problem in that there’s a cottage industry of solutions to make it behave more like a fundamentally different language (dataclasses, attrs, mypy, pydantic, fastapi, etc.) because it turns out what people like about python was its simple and expressive syntax rather than its fundamental design.
How could it be that you like the human aspect that AI has allowed you to focus on, while at the same time working exclusively on personal projects?
I don't see the human aspect thing holding up in the industry. The manager's manager got some request through a LLM and passed it down, your manager passed LLM generated questions to a different department, who responded with an LLM answer which resulted in the developer having a LLM written ticket on their board which they will solve with an LLM. Along the way they, or well, their LLM, find out they'll need some data from a different team that they haven't planned for. They don't know what that data is, or why they really need it, but their LLM does, so the LLM asks the LLM of the other team.
You could argue this is good, efficient, cool, or whatever, and I will probably disagree, but I just cannot see how there is any form of a human aspect in the whole thing
Is that a US thing? None of the (German) orgs I know is even just remotely like that. That does sound inhuman as hell.
Can't say if it's a country thing but I'm willing to bet it's something that happens significantly more in bigger companies than smaller ones. FWIW this account is inspired by a couple of my friends' experiences, one in a EU based companies and one - US based. So I'm not too sure. I would also say that this does seem like something that can be easily handled by an organisation wide rule to not do it, but I'm unsure on how you'd enforce/penalise it
Thank you for saying it like it is. JavaScript is such a curse (or possibly a joke) on humanity
What a blast from the past. You guys do know by now typescript or really any other language is possible to use for webapps as you can compile/transpile your favorite to WASM?
Javascript is ugly, but simple and got the job done. That's the reason for its success.
The only reason for Javascript's success is that there was no alternative.
Yes, but why was there no broad alternative, despite lots of complaints?
Cross plattform is hard.
(I actually prefered actionscript, while that was a alternative)
No. By a large margin the main reason for JavaScript's success is that it is the only language with first class support in browsers.
And why was it the only language in the browsers? And why did it spread to servers?
Well, what alternative was there? At the time for the bowser - none as far as I remember. For the server ... Java was bloated and PHP even more ugly. So I also choose node.
> And why was it the only language in the browsers?
Nobody wanted to implement another language which would have broken cross browser functionality for animating menus on HTML pages.
> And why did it spread to servers?
Because frontend devs didn't want to learn another programming language.
> Java was bloated and PHP even more ugly. So I also choose node.
So you chose an environment that was slow, single-threaded, had an immature ecosystem, callback hell, and was difficult to debug. To each their own I guess.
"To each their own I guess."
What choice was there, when I liked Java even less?
And node is just simple. I even used it as a cross plattform toolset. Indexing files. Moving around, tagging, sorting, toolcall. Not nice looking, but simple enough that it just worked. And I never had callback hell in node, as I kept my servers simple and most of the logic on the client.
I think it makes sense.
AI destroys the work of those who like to write the code. And it makes it fun for people who don't like to code, because they don't have to. And you're in the second group. Lucky you, I guess.
Minor clarification: the poster you're replying to didn't say they don't like to code. They just don't like to code javascript. It sounded like they still enjoy writing other code, though.
I completely agree: there are a a few libraries that I have to work with that are insultingly badly designed, almost like the designers were trying to spite the users. But I have to use them, so vibecoding is great. There are other languages where programming is still fun.
Thank you for stating what should have been obvious to most people.
Some replies are assuming I coded for a couple of years and then became a people manager. In fact I only became a pure people manager in the last third of my career, when Javascript became hard to avoid.
Before then, I jumped around tech lead roles with different degrees of management responsibilities but mostly hands on, sometimes being the person with most code contributions on the team.
I love some areas of coding like backend, firmware and systems development. I had a diverse career.
This is an anonymous profile so I will stop... :)
> Thank you for stating what should have been obvious to most people.
"When most people don't understand what I mean, it's obviously them, not me".
I felt mostly the same with much of the same career trajectory. But where I differ is I felt like dynamically typed scripting languages as a whole were the cancer that metastasized with the rise of Python as the de facto language chosen for machine learning. I can’t stand Python. JavaScript and its entire ecosystem is filthy but Python is the ultimate Pee Wee’s ball of foil.
> 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 was thinking about this, but in a more general sense. All those libraries, languages, their pitfalls and quirks made me not want to code at all, or at least automate coding to a degree where I don't have to suffer through someone's open source project. And in a way I got my wish.
I’m happy you found something to do in your retirement, but having seen that exact sentiment before, I’ll say I think that view should be given reduced weight.
You won’t be here to live with the consequences of your actions, which has been a theme for humanity. The western world is profoundly selfish (I’m not saying the eastern isn’t, but I won’t pretend to know that as well) and individualistic. It’s “me me me, my needs, what I want and like, fuck everyone else. When shit hits the fan, society and the government should rally to do something to help me. Someone makes a comment critical of me or my group? They should be downvoted, fired, removed from the gene pool”.
All of that lead to the situation we’re in. Everyone wants to get ahead of everyone else with complete disregard for others, and thus we all lose. Unfortunately the consequences come so late that the ones paying for them aren’t the culprits.
Everyone who is gaga over LLMs for coding and ignores all the external problems is by this point at best wilfully ignorant (I’m not saying that’s you, but those people exist). In the large scheme of things, having optional fun from using LLMs is far at the bottom of things which matter to the AI discussion.
If I were convinced that AI was so bad for humanity, I'd have no problem dropping it. From dust to dust, from pure C to pure C. I can go back to manually coding in languages like C# and C. I also want to learn Rust.
I don't think that the external problems we see are intrinsic of AI. Firstly, we live in a bubble world where any new promising technology would get insane amounts of investments anyway. I think the issue with the data center build out isn't as much that we are building too many of them, but that we're building them so quickly that we're overlooking environmental and human concerns.
Secondly, the jury is out there on whether AI is a net positive or negative to humanity as a technology, aside from the other concerns. It wouldn't be intellectually honest to state either with certainty.
It has been a net positive for me but I'd be okay if society decides, with proper evidence and debate, that we can't have it.
(as long as we bury Javascript with it :) )
The worst thing about javascript is the bros.
This seems a case of introverted versus extroverted.
Extroverted folks will benefit I suspect.
Honestly, this is the only reason I find joy in AI killing programming. I don't have to listen to such dumb takes.
Pray tell, what's the perfect programming language that you prefer that has no faults?
People think JavaScript is bad language simply because they never bother to learn how it works. As an example of why JS sucks people often give examples such as 'if you XOR a float and an array you get the string "false"' as if that operation even makes sense. JavaScript has had for years pretty much the same feature set as every other major equivalent language (like Python).
> as if that operation even makes sense
If the operation doesn't make sense in any case then the compiler should stop me, or (at very least) the interpreter should throw exceptions.
I make living off js, but I have to say, I cane to learn that the most important thing in engineering is consistency. And js before ts and the last years improvements is so inconsistent, to the point it's another problem you have to solve that has nothing to do with the real business problems you're solving.
Totally agree with you. People hate and bad-talking about languages they haven't even used or used briefly. I am writting Javascript since 1997 and the language has evolved and with the TypeScript superset it can scale up without type safety issues.
Totally agree with you! And for that we should find joy in AI destroying their job! /s
Missed out the discussion threads on specific AI models?
I can't hear you over the sound of javascript batman going "NaNNaNNaNNaNNaNNaNNaNNaN"
> this is the only reason I find joy in AI killing programming
Glad you're getting pleasure from other people's misfortune, I guess?
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
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.
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. - 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 this way) 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 (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 messanger things too much. I use iPhone Messages for texting sure. I use signal on iPhone too (which is an app) and the only "messanger" 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 middlefinger 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.
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. I have all I need and exposure to cloud for remote work through dedicated interfaces.. still I'm rather custom.
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.
Local inference doesn't run well at all in the browser.
Neither does local training.
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.
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
* Prediction before 2030
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. 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
Interestingly, I am building stuff not in JS because of LLMs.
I am a run-of-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)
[delayed]
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.
Doesn't SDL solve most of those problems?
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...)
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..."
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
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
> 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)
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
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.
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.
Well it is obvious this is not the only fact that its faster and better to investments for the web engines...
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).
What is the desktop environment used in https://unkernel.dev/ ?
https://slopshare.dev/v0.1.8/wine/
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.
I did not expect someone to get the nested browser-in-a-browser running this soon. Bravo!
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:
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.
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/>
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
This is so insane and so awesome in a pre-AI way. Tokens well spent!
It could have been tcl. I spent 14 years writing tcl (and Javascript).
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.
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.
> 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.
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.
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...
Still waiting for my wasm first language "wasp/warp" to replace js
I hope the nuclear war prediction doesn’t come true as well.
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.
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.
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.
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.
etr doesn't work. It just segfaults.
https://nixmultiverse.com/?pkg=extremetuxracer&sys=aarch64-l...
Pooya is the ! Just hope he won’t leave Nitro behind. But what a time to be alive!
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.
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
~ #
```
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.
>Any application that can be written in JavaScript, will eventually be written in JavaScript.
False. JavaScript is still not written in JavaScript.
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/
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