Live data from Hacker News

JSLinux

bellard.org

71–80 of 121 posts

Re: JSLinux

#71
post #68

I played around in Windows 2000 for the first time in 20 years. I know nostalgia can be blinding, but I would go back to that UI in a heartbeat. The uncluttered taskbar, the simple start menu that isn't full of useless recommendations and ads—such a joy!

Related:

"Windows 2000 Server named peak Microsoft. Readers say it's all been downhill since Clippy"

https://www.theregister.com/2025/04/11/windows_2000_best_mic...

https://news.ycombinator.com/item?id=43653421

Re: JSLinux

#72

Considering the extremes of prolific developers gives interesting contrast to dogmas such as "functions/files should never be above x lines", where `quickjs.c` is 50k lines and has functions that are hundreds of lines long: https://github.com/bellard/quickjs/blob/master/quickjs.c (Obviously different approaches suits different circumstances.)

The answer is simple: Bellard can recall all 50K lines of context, while most can't. I too happen to have a larger working memory and only later realized that my threshold for files and functions is way higher than most others. The dogma is only required when the file is to be read and written by multiple people.

I feel like this is an underrated superpower. I don't have it - my digit span[0] is about 3, well below normal, so I've always felt that while I'm pretty smart (and managed to get a scientific PhD at an Ivy, so my brain's doing /something/ right), I've always felt like I'm driving a Ferrari but the windows are all blacked out and I'm looking through a tiny hole.

[0] https://en.wikipedia.org/wiki/Memory_span

Re: JSLinux

#73
post #42
post #10

Earlier quoted context omitted.

Yeah why don't we learn what he wants and just give it to him, in return he'll properly rewrite all the broken shit we have. Phones, operating systems, desktop environments, countries, appstores, etc.

I can imagine he wouldn't be interested in any of that. The joy of hacking only emerges when there are no external demands. That's why work sucks and you need to pay people to work for your demands.

Yup. I can't even enjoy hacking if the taskmaster is MYSELF

Re: JSLinux

#74
post #68

I played around in Windows 2000 for the first time in 20 years. I know nostalgia can be blinding, but I would go back to that UI in a heartbeat. The uncluttered taskbar, the simple start menu that isn't full of useless recommendations and ads—such a joy!

The reason I've been on Xfce since at least 2010, it still works the same.

I feel like open-source inherently has alignment with users and blockers to enshitification

Re: JSLinux

#75

JSLinux was our inspiration for creating Endor ( https://endor.dev ) and his qemu work is also powering a lot of other Wasm-related browser projects

Are there any open details on how the VM / container / WASM-native approaches are implemented?

Re: JSLinux

#76
post #16

Fabrice does a great job at building these self-contained pieces of software which often grow to have lives of their own. As a lesser known example, JSLinux's terminal emulator was forked a few times and is now known as xterm.js, which has become the predominant web embeddable terminal emulator. This all comes full circle, because now I'm building a true successor to JSLinux that's way faster because I've natively co…

This produces attempted to munmap ------------[ cut here ]------------ WARNING: CPU: 3 PID: 36 at kernel/exit.c:812 0x00000000 CPU: 3 PID: 36 Comm: sh Not tainted 6.1.132 # Stack: at vmlinux.o.__warn (https://linux.tombl.dev/dist/vmlinux-NLTKI6YG.wasm:wasm-function[278]:0x17655) at vmlinux.o.warn_slowpath_fmt (https://linux.tombl.dev/dist/vmlinux-NLTKI6YG.wasm:wasm-function[279]:0x1772b) at vmlinux.o.do_exit (https:/…

yep, that's to be expected, this is a very wip demo. I'm implementing exec() support now, so currently only shell builtins work.

Re: JSLinux

#77
post #68

I played around in Windows 2000 for the first time in 20 years. I know nostalgia can be blinding, but I would go back to that UI in a heartbeat. The uncluttered taskbar, the simple start menu that isn't full of useless recommendations and ads—such a joy!

I don't remotely want to use Windows 2000 again, but it is interesting to see a version of Windows where the UI was consistent. Currently it is a mishmash of four generations of GUI toolkits, some UI is in one style, some UI is another, etc, etc

Re: JSLinux

#78
post #50

Earlier quoted context omitted.

The answer is simple: Bellard can recall all 50K lines of context, while most can't. I too happen to have a larger working memory and only later realized that my threshold for files and functions is way higher than most others. The dogma is only required when the file is to be read and written by multiple people.

I have written long methods and will do so again and I wouldn't say it's because I have larger working memory or some other supposedly superior attribute. Some methods are just a long series of steps that you can just write one after another. Reading it from top to bottom is exactly as difficult/confusing/whatever as reading them as separate methods would be (assuming you put short comments in the same places where y…

Of course that's a legitimate case of longer files or functions, but I found that I was generally able to follow much larger functions, so comfortable with writing larger-than-average code in general.

Also I should note that longer code doesn't mean less abstraction; it rather means that abstraction is done without separate functions and files, and ordering and visual cues can (and probably should heavily) be used instead. Apparently this is not enough for most others though, as I have received multiple complaints in spite of such readability efforts.

Re: JSLinux

#79

There aren't many VMs that can run in browser https://copy.sh/v86/ https://webvm.io/ https://bellard.org/jslinux/ https://jamesfriend.com.au/pce-js/ ( https://github.com/jsdf/pce ) https://www.pcjs.org/ (lots of hardware and OSes) ( https://github.com/jeffpar/pcjs ) Mac OS https://infinitemac.org/ ( https://blog.persistent.info/2023/03/infinitemac-dot-org.htm... ) https://jamesfriend.com.au/projects/basiliskii/Basili…

Is this list just 16bit?

At least v86 supports 32 bit x86 OSes too.

Re: JSLinux

#80
post #4

Fabrice is amazing. The amount of stuff this guy has built is utterly incredible. If I built any one of the things he's built (ffmpeg, qemu, tinyc) I would never stop bragging about it. Instead, he just keeps hacking on other cool stuff.

Don't forget VLC! Probably his most well-known project.
Post reply on HN