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

The C standard library has had <threads.h> since C11 https://www.cppreference.com/c/thread and there are now a nonzero number of systems that support it! (glibc, musl, maybe others?)


Well TIL. Thanks.


Which of the nine incompatible versions of RSS supports backwards compatibility? https://web.archive.org/web/20110726002019/http://diveintoma...


It’s closer to John Logie Baird’s electromechanical televisor from the 1920s https://earlytelevision.org/baird_televisor.html which was the first practical implementation of a Nipkow disk


Yup. On the mid-tier you have this

https://www.youtube.com/watch?v=uoANiFHljGw

I actually have one of those laying around, burned out unfortunately (don't ask).


Also NASA / Lockheed Martin https://www.nasa.gov/mission/quesst/


Yeah. The right way to eliminate fork() is to make the usual APIs that modify process state take an explicit process handle, so the same APIs can be used to set up an empty process. They can also be composed in other ways, eg for IPC or debugging.


If the VLA size is not controlled it gives an attacker a primitive for arbitrarily shifting the stack pointer. There isn’t any spec for what is a reasonable limit on a VLA size. https://dotat.at/@/2010-01-22-coroutines-in-less-than-20-lin...


Yes, attacker controlled size without limit is bad (and this is also true for heap allocations). For VLAs there is -Wvla-larger-than that can be used to ensure there is a hard limit. To understand the risks of VLAs one also has to compare it to the alternatives. A fixed-size array on the stack is basically always worse. alloca is substantially worse. heap allocation may be a bit better, but also much slower.



That's a good point, the more precise statement is that Linux exclusively uses gnu11 to compile.

Clang happens to implement gnu11, I think it's the only non-GCC compiler to do so.


Which was largely sponsored by Google, as they removed GCC from Android, and needed to have clang compile the Linux kernel.

For a long time only Android Linux kernel downstream supported it.


I don’t think there’s any branching in intitializer lists or declarations.


Don’t forget when they’re in string literals?


It would be nice if DDG could get rid of the umpteen shitty wikipedia mirrors that clutter up the results.


If the manpage is written with the 4.4BSD -mdoc semantic markup macros then it can contain hyperlinks like

  .Lk https://dotat.at/ "Tony Finch’s web site"
And the mandoc tools will include them in their really nice HTML output. It will also hyperlink .Xr cross-references to other man pages.

https://mandoc.bsd.lv/


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

Search: