Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
o11c
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
361.
▲
by
o11c
1y ago
To the people at large, a lot of "science" consists entirely of "hey look, a blessed paper says so; anyone who disagrees is a heretic", which is exactly what the atheists (and other-religion-ists) see for insert-reli
362.
▲
by
o11c
1y ago
To be fair, there often isn't as much a distinction as we'd like. Even ignoring soft sciences ... how often is there an HN post linking to a paper about some great new battery technology? When the in-group fails to police itself s
363.
▲
by
o11c
1y ago
For reference, a program to generate the quasi-fixed point from scratch: #!/usr/bin/env python3 import base64 def len_common_prefix(a, b): assert len(a) < len(b) for i in range(len(a)): if a[
364.
▲
by
o11c
1y ago
This is advertising for an AI product. Slightly more interesting background story than most articles doing so, but still an ad for a product that probably won't actually work.
365.
▲
by
o11c
1y ago
Don't confuse "window rules" with "application rules". When configuring rules, you normally want the latter unless you know you want the former. Also don't forget that rules can interact with other rules. For
366.
▲
by
o11c
1y ago
For the first thing: Right click the titlebar (or left-click the icon at the left corner thereof) -> M_ore Actions -> uncheck "Keep A_bove Others". Personally I activate it quite frequently, e.g. to keep a small text edito
367.
▲
by
o11c
1y ago
Okay, but if so, let's be explicit about making that tradeoff. Also, let's not pretend that "ban all NSFW games" either was asked for or would be acted upon. It's quite telling that there's a grand total of one
368.
▲
by
o11c
1y ago
> Some time ago Visa and MasterCard very vocally banned Pornhub (at least) from using their cards, 100% sure this comes from them. That was because the government was prosecuting Pornhub for breaking the law (rape with real people, unl
369.
▲
by
o11c
1y ago
It's the hypocrisy you're seeing - why are AIs allowed to profit from violating copyright, while people wanting to do actually useful things have been consistently blocked? Either resolution would be fine, but we can't have i
370.
▲
by
o11c
1y ago
Python defaults uses nominal typing so isn't prone to this problem anyway. The kind of "branding" I'm talking about is a hack only needed for structural typing systems. Consider something inspired by the C locale API, fo
371.
▲
by
o11c
1y ago
The critical problem with structural typing is that it requires weird and arbitrary branding when dealing with unions of singletons.
372.
▲
by
o11c
1y ago
No, VLIW is fundamentally a flawed idea; OoO is mandatory. "We need better compilers" is purely Intel marketing apologia.
373.
▲
by
o11c
1y ago
> English is not really phonetic anymore, so this approach doesn't quite work well. English pronunciation <-> spelling is actually pretty predictable as long as you aren't considering letters/phonemes in isolation. 1
374.
▲
by
o11c
1y ago
"Despite" is absolutely correct when you realize that cheating in the title is a way to make people look at articles when they would rather ignore AI in favor of actually-useful/interesting subjects.
375.
▲
by
o11c
1y ago
This is about AI, despite the title being ambiguous.
376.
▲
by
o11c
1y ago
Then why has nobody proposed an alternative remedy in all these years? Sure, a law won't automagically fix everything . But it provides the starting point that almost every individual or group action must rely on.
377.
▲
by
o11c
1y ago
This seems like it would do poorly with tests based on identity rather than based on stringifiable value.
378.
▲
by
o11c
1y ago
I dabbled a little with Nixos a while back (e.g. I think I reported the bug that broke the entire point of /etc/os-release for chroots, as well as commented on how to do a container install from scratch at a point when nobody docu
379.
▲
by
o11c
1y ago
Back in the day, the reason I had 1-minute cron jobs (with flock of course) was because "what if the bespoke daemon gets killed somehow?" We also used screen/tmux a lot, but only for stuff that could afford to wait until some
380.
▲
by
o11c
1y ago
> Are there still adults stupid enough to think that watching porn will mess a kid up? This absolutely is a real problem, especially for younger kids. Have you talked to a teacher? Think things like "a kindergartner runs around grab
381.
▲
by
o11c
1y ago
Note that although alignment and size are platform-specific, in practice padding can be minimized simply by using a fixed order: (various vector types) int128_t long double long long, int64_t, int_fast64_t, double off_t time_t
382.
▲
by
o11c
1y ago
For information on what this is even about, see https://wiki.freebsd.org/PkgBase Notably it is explicitly marked as experimental; teething problems are to be expected.
383.
▲
by
o11c
1y ago
Note that you can store longer state (at least 64K; more not tested) in the fragment (`location.hash`); obviously only the client gets to see this, but it's better than nothing (and JS can send it to the server if really needed). For p
384.
▲
by
o11c
1y ago
Quite a few bytes can be golfed out of that still: python3 -c 'while I := __import__: I("time").sleep(0.01); print(I("random").choice("\u2571\u2572"), end="", flush=1)' My reasoning i
385.
▲
by
o11c
1y ago
Wow, Wikipedia is pretty minimal in giving examples. Clicking through various links in comments for more examples should be considered mandatory (though many of the 3D ones are actually "some effect on top of Truchet"). I suppose
386.
▲
by
o11c
1y ago
Counterpoint: my parents managed to lock each other out of their shared Amazon account after being coerced into "upgrading" their login method. Thankfully they managed to reset it somehow and go back to saved passwords, which Just
387.
▲
by
o11c
1y ago
Dangling "else" isn't actually a problem for parser generators. All you have to do is either: * use proper rules rather than cramming everything into "statement", or * specify explicit precedence rules, which is jus
388.
▲
by
o11c
1y ago
One reason hand-written recursive-descent parsers are common is because a lot of languages are poorly designed, and it's easier to hack around the mistakes in a hand-written parser. For new languages this should be avoided - just des
389.
▲
by
o11c
1y ago
Recursive descent is fine if you trust that you won't write buggy code. If you implement a generator for it (easy enough), this may be a justifiable thing to trust (though this is not a given). I am assuming you're willing to pu
390.
▲
by
o11c
1y ago
In terms of language-agnosticism, you can use Bison to calculate the tables (the hard part) and dump an xml file, then implement the machine yourself trivially. I get really annoyed when people still complain about YACC while ignoring the f
More ›