Hacker News new | past | comments | ask | show | jobs | submit | pantalaimon's comments login

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://linux.tombl.dev/dist/vmlinux-NLTKI6YG.wasm:wasm-function[329]:0x1985e)
            at vmlinux.o.task_entry_inner (https://linux.tombl.dev/dist/vmlinux-NLTKI6YG.wasm:wasm-function[154]:0x12249)
            at vmlinux.o.task_entry (https://linux.tombl.dev/dist/vmlinux-NLTKI6YG.wasm:wasm-function[153]:0x12155)
            at self.onmessage (https://linux.tombl.dev/dist/worker-MHWHWELT.js:151:53)
        ---[ end trace 0000000000000000 ]---
on any command

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

"I'm implementing exec() support now"

Bah. Details, details dismissive hand wave.

It's just minimalism, right? I hear it's all the rage.


I'm effectively lying to the kernel about the environment it's executing in, and trying to convince it that it's running on the kind of hardware it expects, when in reality it's running inside a very different environment.

Since I map guest threads 1:1 to host threads in JS, and architecture-specific code manages the loading/unloading of programs, the exec syscall is exercising these lies in a way that they're not currently equipped to handle.

What I'm currently doing is improving those lies to the point where exec stops noticing they're lies and just starts functioning as expected.


Leave it as an exercise to the reader.

I had to implement exec() on Unix V6 for my OS course at uni.

I mean, "demos that shouldn't be shared" from the root comment implies that it isn't done, right?

I got that with echo * which you suggested to use :)

I opened that on my Android Phone and half expected it not to boot at all. But it does. I have no idea about the state of WASM n stuff, but apparently, it's much more eadvanced than I anticipated. Mind blown.


This has been tried, but the company folded before delivering anything tangible and the hangar is now Germany's largest indoor pool.

https://en.wikipedia.org/wiki/CargoLifter


There are plenty of MCUs that will work as a USB device, they were just ruled out by the package restriction.

Well yeah, nowadays high-end micro-controllers may have an integrated USB HS PHY (notably STM32F7's and the MIMXRT1060 used in Teensy 4, and many others), but the basic cheap attiny-like or ice40-like hasn't and most usually require going through an external PHY. I've been wanting to get into using the CH32V305 cause it is in a hand-solder-friendly TSSOP-20 package and has integrated USB HS PHY but I hear it doesn't have a software support and I don't see it on microchip/digikey/etc. Though we may soon have easy access to 20-cent microcontrollers with USB HS, but still the protocol feels incredibly complex and way overkill for simply interfacing a peripheral to a computer.

Any old SAM D21 will do USB. What software support are you looking for? Integration in TinyUSB?

Exactly, if you don't care about being included in a distribution's repository, you don't have to care about an OSI approved licence.

Installing third party software is much easier on Windows.


Even on Linux?


Aren’t you confusing that with DVD?


Yes. Wow.


Just wait until you learn about Cyber Resilience Act that will quelch any hardware startup


On the PC a lot more is handled by the UEFI firmware so you need a lot less device specific drivers.


JD is a big fan of Curtis Yarvin who popularized the idea that democracy must be overcome and be replaced by some kind of oligarchy.

This is what the global alt-right movement, which the AfD is a part of, wants.

They see democracy as a weak system and want to replace it by a kind of neo-feudalism.

It’s clear that Ukraine, that fights against the Russian version of that system, must be made to be an example than democracy can not win.


I think it’s worse: Trump et al want to install a neofeudal system of society whereas Ukraine is fighting for the Westen Democracy kind of system. It’s clear that Trump wants to establish that as a futile endeavor


I think there's no actual plan, trump et al are just stupid. Looking at how DOGE is doing seems to coroborate this view.


Nah, they just care about money is all. They look at Ukraine and they don't see a profit to be made, so they demand payment or the withdrawal of aid. Greed plain and simple.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: