Hacker Newsnew | past | comments | ask | show | jobs | submit | kps's commentslogin

Fork is conceptually simple. Without bringing in any other layers, you start a process with the one thing known to exist: yourself.

Otherwise you need multiple steps to create a process, fill it with something to run, and arrange for it to execute. Or like Win32 you permanently smush them together with other layers, like filesystems and object loaders and linkers.


Fill with what stuff exactly?

The only thing I want to inherit from the parent process is its cwd and environment variables, even those are often overridden. The rest can easily be passed explicitly through other channels like pipes or command line arguments.

Back to the example from the article. It makes no sense that a git-subprocess forked from a web server need to have any process state inherited from the web server.


I gues that way of thinking makes sense if you have a certain model of what a process is, in terms of the data structures and runtime state etc. But, tbh, I think of processes as glorified function calls, which happen to have that stuff involved as an implementation detail. And if spawning a process call is supposed to act like a function call, then of course it should not inherit state. You should call the function you want to call, not call yourself with an instruction to switch over to it instead.

Conceptually, processes are more akin to units of isolation. Threads are closer to function calls.

It's not conceptually simple. No other object creation API works by copying an existing thing and then modifying it. You don't create a new file by copying an existing one and then modifying it. You don't create a new window by copying an existing one and modifying it.

Attempting to justify clone/exec as a reasonable design is just Stockholm syndrome.


> Every letter seems to transfer some of its weight onto neighboring letters, even those in a previous paragraph with quite a large vertical gap!

This is probably astigmatic halation. For me it looks something like this: https://www.threads.com/@mrmedina/post/CuciL0Uvam9

If a product/service/site is dark-mode only, I can't/won't use it.


Only some dark mode does this to me, and only on some screens. I find "light mode" bearable, but anything else cute like custom fonts or whatever and I am seeing 33 as 88 and 100 as loo.

I have schwas in my vision, like swishy halos around light sources. At one point I counted 12 distinct mirrored images. Driving was awful.

Reading my 4k screen was impossible, gave it to my wife and switched to a 2k HDR at 175%.

I still have swishes but only 1.5-2 and much dimmer. It used to be impossible to read the clock on my stove at night because it would just be a green smear!


Which supported boards will do 5V I/O?

https://github.com/AndreiVladescu/ESP32-Bit-Pirate-Dock

It supports voltages from 1.8 V to 5 V when used with the dock


I don't think there's any common 5V esp32 boards. You should be able to wire up some level shifters to connect it to 5V (or a range of other voltages). Sparkfun sells boards with a TXS0108E on it as well as simpler transistor based ones.

> Of course it is and always has been.

Somewhere Walter Duranty is looking up and smiling.


I still have my 16C, and it still works perfectly. I got it in a swap for a 15C and 11C, so I got the reissue 15C when it came out, and it's not up to the quality of the original.

KDE tries to do this with Activities¹ (I personally haven't found it useful).

¹https://blogs.kde.org/2026/01/17/streamline-plasma-with-acti...


Too young to remember cable TV?

Wayland is a major regression for accessibility. People have been raising that for years, but always shouted down by the brigade with the motte-and-bailey seesaw between “Wayland replaces X11” and “Wayland is just a protocol”.

>One of my pet-peeves with C projects is that it's so often more or less "works on my machine"

“All the world's a VAX”

https://groups.google.com/g/comp.lang.c/c/CYgWkWdWCcQ/m/thMt...

https://www.lysator.liu.se/c/ten-commandments.html


Me too. Maybe someone can find a data source and vibe up a mapofmetals.com in the same style.


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

Search: