Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
o11c
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
931.
▲
by
o11c
2y ago
If someone sets booby-traps in their home and it hurts someone, the trap isn't guilty, but the homeowner is. ... I wonder if "this software is licensed, not sold" is relevant here?
932.
▲
by
o11c
2y ago
You want signalfd, which may optionally fed to epoll or any of the other multiplexing syscalls. Signalfd can mostly be implemented on any platform using a pipe (if you don't have to mix 32-bit and 64-bit processes, or if you don't
933.
▲
by
o11c
2y ago
The real problem is that the compiler doesn't provide arbitrary function-colorings, only the a handful of builtins: `pure`, `const`, `noreturn`.
934.
▲
by
o11c
2y ago
Hmm, does this affect power draw?
935.
▲
by
o11c
2y ago
TCC = Transparency, Consent and Control Not to be confused with numerous other uses of the acronym.
936.
▲
by
o11c
2y ago
Your "declarative" systems are no more declarative - they just hide the commands/flags being used, far worse than `include config.make`.
937.
▲
by
o11c
2y ago
> like make, it encourages an imperative mode for project tooling and I think we should distance ourselves from that a bit further. Um, what? `make` is arguably the most common declarative tool in existence ... Whenever people complain a
938.
▲
by
o11c
2y ago
In defense of electing Republicans ... it's not like Democrats do more than talk about fixing problems most of the time. And the last time Republicans had control, it turned out they didn't actually have the internal support to
939.
▲
by
o11c
2y ago
I have never seen the public respond so unanimously to something. Even for, say, bin Laden's death, there was quite a variety of responses easily found. And in case anybody thinks of that "Stalin quote", it's actually
940.
▲
by
o11c
2y ago
The main reason the C version must hard-code is because C macros can't be recursive. What's Rust's excuse? (that said, the C approach is also nice for manually accessing fields of distant base classes)
941.
▲
by
o11c
2y ago
> Related to this, the IsA trait allows typesafe compile-time checked casts. Unlike in C code, casting to a superclass can be written in such a way that the compiler will complain if the destination type is not a superclass, and with z
942.
▲
by
o11c
2y ago
"Random files opened by the parent" were, as a rule, deliberately given to the child. You would use CLOEXEC if you don't want that. Please don't let your children trash something you gave them just because they don
943.
▲
by
o11c
2y ago
PIDs are always reliable for your own direct children.
944.
▲
by
o11c
2y ago
Any program that closes FDs it doesn't know the origin of is fundamentally broken, and should have bugs filed against it. If "close all FDs" is a workaround for other bugs, fix those bugs too.
945.
▲
by
o11c
2y ago
Previously on HN: [flagged] C++ Standards Contributor Expelled for 'The Undefined Behavior Question' (slashdot.org) https://news.ycombinator.com/item?id=42226250 (84 points, 88 comments) Edit: Also, this PDF discu
946.
▲
by
o11c
2y ago
You can treat the numeric parts as self-delimiting ... that leaves only the assumption that "environment" is a single letter.
947.
▲
by
o11c
2y ago
This article is confusing two different things: "unbuffered" vs "line-buffered". Unbuffered will gratuitously give you worse performance, and can create incorrect output if multiple sources are writing to the same pipe
948.
▲
by
o11c
2y ago
It's been ages, but once I got something cancelled due to a site not properly distinguishing between shipping address and card billing address.
949.
▲
by
o11c
2y ago
The problem with "ISP gets into your home network" is that that locks the user out of a lot of important diagnostic tools on the router. I can't even view what kind of configuration it has.
950.
▲
by
o11c
2y ago
Discussion around this seems very confused; there are quite a few severe vulnerabilities this year in various products (routers and NASes). https://nvd.nist.gov/vuln/detail/CVE-2024-3273 https://support
951.
▲
by
o11c
2y ago
Note that these benchmarks ignore object-related stuff, which is usually the expensive part.
952.
▲
by
o11c
2y ago
Well, if so that's out of the standard models (at least, the ones that assume fixed DS).
953.
▲
by
o11c
2y ago
It's worth noting that all the memory models have DS=SS, which makes sense for C (where you often take the address of a local variable - though nothing is stopping you from having a separate "data stack" for those) but is
954.
▲
by
o11c
2y ago
It's not wasted on alignment, since that alignment is already required (unless you need a very large heap). Remember that Java's GC heap is only used to allocate Objects, not raw bytes. There are ways to allocate memory outside
955.
▲
by
o11c
2y ago
Is UPNP still a security nightmare in practice? If so, does this article's use of it avoid the usual problems?
956.
▲
by
o11c
2y ago
In my experience, "hung task" is almost always due to running out of RAM and the scheduler constantly thrashing instead of doing useful work. I rarely actually reach the point of seeing the message since I'll sysrq-kill if ea
957.
▲
by
o11c
2y ago
In case anyone's curious, the longest word with unique letters (as well as the most distinct letters) is "obliges". If we forbid 0, we get "bilges" and "sleigh". Both of which strike me as great opportunit
958.
▲
by
o11c
2y ago
The definition of terrorism generally excludes acts performed by a legitimate state. Whenever this causes problems, you have to declare the relevant state illegitimate (which, depending on the state, may be trivial or highly contested).
959.
▲
by
o11c
2y ago
There's also the blatant irony that calling someone an "asshole" would be against a sane interpretation of the CoC.
960.
▲
by
o11c
2y ago
On chapter 2 I liked figuring out how to skip an entire section. On chapter 3 I fell through the checkerboard immediately the first time; this seems like a bug. On chapter 4 there are enough paths that it's possible to get slightly los
More ›