Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
o11c
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
691.
▲
by
o11c
2y ago
I'm pretty sure the best middle ground that currently exists is the various "immutable, snapshot to upgrade" distros out there.
692.
▲
by
o11c
2y ago
No, PEG is prone to exactly this in its default form. Parser combinator usually means something PEG-ish anyway. If you memoize (packrat), it improves to polynomial time (not sure what, but it's not linear; that's false advertising
693.
▲
by
o11c
2y ago
Note that most implementations of both parser combinators and regexes can fail very badly (exponential time). Never use either on untrusted input, unless you can prove your implementation lets you stay linear.
694.
▲
by
o11c
2y ago
Hamburger -> More Tools -> Customize Toolbar --> Toolbars (dropdown) -> Menu Bar (checkbox), then hit Done. Or just right click on a toolbar and check Menu Bar from there. This assumes a non-defective mouse though.
695.
▲
by
o11c
2y ago
View -> Page Style -> No Style.
696.
▲
by
o11c
2y ago
Yeah, XCB is a case where the new thing actually is a major improvement over the old. Nobody should be using Xlib by choice these days.
697.
▲
by
o11c
2y ago
Everyone I know was using 24-bit color well before 2002, though 16-bit color made some applications work better (8-bit color would only happen temporarily, when running a very old application). My family shelled out the money for a 1280x102
698.
▲
by
o11c
2y ago
It does matter for performance. If you read files in the same order they are on disk (often, the order in which they were written, which readdir on modern filesystems should choose to produce), I/O is much faster.
699.
▲
by
o11c
2y ago
There's a major difference: Crypto is often undermined by insiders pretending to be outsiders. Communism is often undermined by outsiders pretending to be insiders.
700.
▲
by
o11c
2y ago
And a relevant piece of ancient wisdom (exact date not known, but presumably before 1970): > In the days when Sussman was a novice, Minsky once came to him as he sat hacking at the PDP-6. > “What are you doing?”, asked Minsky. > “I
701.
▲
by
o11c
2y ago
It probably makes a bit more sense when you think about the fact that SSH frequently does a "try to match this host against a list of configured host-patterns" operation. In that case, "first match" is the obvious thing
702.
▲
by
o11c
2y ago
> I am not sure whether DragonBSD is dead or alive today at all. It seems to have about the same level of activity as NetBSD. Take that how you will.
703.
▲
by
o11c
2y ago
Title should really mention "pixels, on webpages".
704.
▲
by
o11c
2y ago
It's utterly nonsensical to think that millennia of "fish swim" should be thrown out in favor of a century of "fish share DNA".
705.
▲
by
o11c
2y ago
Training alone, perhaps. But the way the AIs are actually used (regardless of prompt engineering) is a direct example of what is forbidden by the case that introduced the "transformative" language. > if [someone] thus cites
706.
▲
by
o11c
2y ago
My point is that a lot of apparently "simple" services do in fact call fork internally. Just a few things I've seen: * fork to periodically make a snapshot of server state, to avoid slowing down the main server * spawn an ext
707.
▲
by
o11c
2y ago
Okay, but ... if you only get something that seems to work, but isn't actually reliable, what's the point? You seem to be wrong about cgroup v1; freezing works and is sufficient to reliably kill all children. Half-killed service
708.
▲
by
o11c
2y ago
It's not a single image though. Stitching 3 or so input images together clearly makes copyright laundering legal.
709.
▲
by
o11c
2y ago
For the unaware (or under-aware): https://en.wikipedia.org/wiki/L%27%C3%89tat,_c%27est_moi Probably apocryphal. A lot of people these days only know it from Star Wars.
710.
▲
by
o11c
2y ago
Better than MMX at least.
711.
▲
by
o11c
2y ago
All versions of MUSL prior to 1.2.4 (released less than two years ago) would indeed fail to perform DNS lookups in many common cases, and a lot of programs could not run in MUSL as a result. (I'm not aware of what specific deficienci
712.
▲
by
o11c
2y ago
Avoiding UB for performing the signed addition/subtraction/multiplication is trivial - just cast to unsigned, do the operation, cast back. In standard C23 or GNU C11, you can write a `make_unsigned` and `make_signed` macro using `
713.
▲
by
o11c
2y ago
In my experience: 20-year-old exe files can fail on both Windows and WINE if they touch something relatively obscure. It's easier to throw files at the problem under WINE though (you can just throw away the prefix if you break somethin
714.
▲
by
o11c
2y ago
Important caveat: this is not itself a vulnerability; you still need a kernel `CAP_SYS_ADMIN` vulnerability if you want to actually do something evil. (I also expect that if you're already in a restricted AA profile it's not easy
715.
▲
by
o11c
2y ago
It's worth noting that if you go down a layer, LVM snapshots are filesystem-independent.
716.
▲
by
o11c
2y ago
In some respects it is similar to the student loan industry: when the system makes money readily "available" but it's hard to actually increase the supply, prices rise radically; since this is a loan rather than a handout tha
717.
▲
by
o11c
2y ago
> CDOs allowed more finance to flow to housing, which in itself is a good thing - we need more housing. There's a big leap in that statement. Money is made up and "doesn't matter" (except that we choose to structure o
718.
▲
by
o11c
2y ago
I suspect that thinking in trie terms is the way to go, where each node chooses its preferred representation. The top level should usually use a grid, though uniform-density children can also use one. The grid scale should be chosen to maxi
719.
▲
by
o11c
2y ago
A* is also importantly different for what the ordering of the priority queue is. Dijkstra's algorithm is just BFS with a priority queue, but the lack of heuristic in the comparison key keeps it clearly breadth-first.
720.
▲
by
o11c
2y ago
This is wrong or at least misleading in a couple of ways: A* is not limited to point-to-point, it also handles point-to-set-of-points just fine (you just might have to reverse the direction you're thinking in). Although this is most of
More ›