Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tombl
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tombl
1y ago
Yeah, nommu absolutely doesn't imply zero memory isolation. I have a kernel port to an architecture with a nonstandard way of doing memory isolation and the existing nommu infrastructure is the only reason it can exist.
2.
▲
by
tombl
1y ago
It's funny, I would actually argue the opposite point. When Deno and Bun first came out, they promised a hard break from the Node ecosystem, like how Deno leaned heavily into browser compatibility, and Bun into framework features like
3.
▲
by
tombl
1y ago
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 environmen
4.
▲
by
tombl
1y ago
yep, that's to be expected, this is a very wip demo. I'm implementing exec() support now, so currently only shell builtins work.
5.
▲
by
tombl
1y ago
Thanks for pointing this out, I've deployed a fix. One of my goals for the project is to create a useful computing environment on top of any arbitrary locked down platform, so I'd love to turn it into an iOS app at some point.
6.
▲
by
tombl
1y ago
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
7.
▲
by
tombl
1y ago
hmm, it looks like you've got a bug in the demo app. if you type too quickly into the search bar, the entire app slows to a halt. seems like you'd want to move the filtering logic off the main thread, or you'd want to reinven
8.
▲
by
tombl
1y ago
yeah I'm also taking great inspiration from Alpine, but I like to see diversity in the space. as one example, musl values portability over performance (great for my usecase), which makes it often significantly slower than glibc. Alpine
9.
▲
by
tombl
1y ago
I'm slightly hesitant to mention it for fear of a flamewar, but as someone with a niche usecase that procludes me from using systemd/glibc, I'm very grateful to Chimera as a modern take on non-GNU/Linux.
10.
▲
by
tombl
2y ago
no? there's only a single mention of cargo in the entire kernel, and it's in a docs page describing how to install bindgen, a toolchain dependency of the kernel, below a whole list of other non-cargo ways to install bindgen. http
11.
▲
by
tombl
2y ago
Go's "nothing is async because everything is async" model, combined with WebAssembly's (current) lack of support for stack switching and arbitrary goto, essentially mean that the compiler needs to insert extra code every
12.
▲
by
tombl
2y ago
Expect to see something in this space eventually - I'm currently working on a cross-platform userspace port of Linux.
13.
▲
by
tombl
2y ago
I believe this is still true. Originally you could store a compiled wasm module in IndexedDB and cache it manually, but that was removed in favor of {instantiate,compile}Streaming, which take a HTTP response and hook into the existing HTTP
14.
▲
by
tombl
2y ago
wasm has no way to remap writable memory as executable, but you can absolutely call back into javascript to instantiate and link a new executable module, like https://github.com/remko/waforth does.
15.
▲
by
tombl
2y ago
The problem with nix is that compiling a system uses lots of memory, but when deployed there's little overhead. Like you would with Yocto, I just build my systems on a proper host then remotely deploy them.
16.
▲
by
tombl
2y ago
Is this some internal cloudflare feature flag or can everybody pass ArrayBuffers zero-copy via service bindings? (random question, totally understand if you're not the right person to ask)
17.
▲
by
tombl
2y ago
This is a fair point, but dropping the kernel patch guarantees that essentially nobody will use this. Given part of the patch was software emulation for unsupported CPUs, it's possible that people would've implemented support for
18.
▲
by
tombl
2y ago
AFAICT Intel has given up on supporting this in the kernel. They've been silent about the patch since at least January 2023[0], and archived the repo for their kernel fork[1] in April. It's a real shame because this kind of innova
19.
▲
by
tombl
2y ago
I think the cli repo went private a while ago.
20.
▲
by
tombl
2y ago
Yup, in order to scale this approach to any real size (and still have confidence that everything is working together like you expect), a proper reactivity solution is needed. For those that appreciate this approach of JSX returning concrete
21.
▲
by
tombl
2y ago
Bun.build actually has a `define:` option that does the same thing as your replace. If you use it, it'll even propagate the value, and treeshake away any `if(import.meta.hot)` you have.
22.
▲
by
tombl
2y ago
The linked discussion is for WASIX, this is WANIX.
23.
▲
by
tombl
3y ago
Rather than the "easy" way of porting an x86 emulator to WASM, I've been trying to natively port the Linux kernel to WASM. UML[0] and LKL[1] prove that running the kernel in a process is viable. μClinux efforts like NOMMU and
24.
▲
by
tombl
3y ago
A maintained, cross arch alternative to this is nolibc, which resides in the kernel tree. See: https://elixir.bootlin.com/linux/v6.6/source/tools/include/n... https://lwn.net/Article
25.
▲
by
tombl
3y ago
There don't seem to be many write-ups on this concept. The best reference seems to be existing implementations: Wasmer's implementation of metering[0] just traps when it runs out of fuel. WasmEdge's implementation of interrup
26.
▲
by
tombl
3y ago
I think the closest existing concept to signals is the gas/fuel mechanism implemented in some WebAssembly runtimes, used by WASM blockchain VMs to preempt untrusted code. Runtimes either instrument the JITed code to check a fuel counte
27.
▲
by
tombl
3y ago
They've done exactly this with https://example-com.translate.goog
28.
▲
by
tombl
3y ago
There are a few fonts exploring this concept here: https://v-fonts.com/tags/C114
29.
▲
by
tombl
4y ago
Looks like they have a separate protocol[0] for web compat, and they use a proxy to translate. [0]: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md
30.
▲
by
tombl
4y ago
I'm pretty sure Gobo Linux functions partially like macOS does, hiding system directories, by removing them from readdir with a custom kernel module[0]. [0]: https://gobolinux.org/doc/articles/gobohide.html
More ›