Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
patrec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
patrec
3y ago
Did you even bother looking at the website source before writing this?
92.
▲
by
patrec
3y ago
I think most people are fine with the idea that some of the costs (monetary and otherwise) arising from disabilities should be transferred from the people suffering from them to society at large. But I don't think it's reasonable
93.
▲
by
patrec
3y ago
> Mononoke is the server-side component of Sapling SCM. > While it is used in production within Meta, it currently does not build in an > open source context and is not yet supported for external usage.
94.
▲
by
patrec
3y ago
If you're using zsh, you can just replace any instance of $ cat somefile ... with $ <somefile ... For bash, this only works if you have at least one `|`.
95.
▲
by
patrec
3y ago
I suspect that's just because you're trying to install an old version (as I wrote sysdig used to have a kernel extension but now should use eBPF functionality provided in stock kernels). I can't easily verify (no ubuntu at ha
96.
▲
by
patrec
3y ago
You can use sysdig instead, which doesn't use ptrace[1] and is much faster (as well as generally more pleasant and powerful). [1]It used to have its own kernel extension but is eEBF based these days.
97.
▲
by
patrec
3y ago
Putin is toast. I'm not sure what Prigozhin's chances of successfully pulling off a coup are (nonzero?), but Russia has been heading for an unambiguous military loss for a while already and now is looking at a complete military di
98.
▲
by
patrec
3y ago
How would adding a BRIN index help in any way with reducing the discussed problems, such as write amplification?
99.
▲
by
patrec
3y ago
I feel that you don't understand what locality is about: the property of IDs that were generated closely together in time to be close together numerically. You don't get that by "hashing" the UUID (which makes no sense a
100.
▲
by
patrec
3y ago
What makes you think so? If you've got a background in programming languages, maybe you'll roll your eyes at Guido not getting reduce or tail recursion, or CPython's unsophisticated runtime and under-specified/messy sema
101.
▲
by
patrec
3y ago
I think you are a bit detached from reality if you think controlling for experience and education would massively change the picture for python, which evidently enjoys above average popularity with anyone from junior devs to elite programme
102.
▲
by
patrec
3y ago
> If something can't be done easily in POSIX scripting, it's probably a poor fit for shell programming, I can see where you are coming from, because I used to think along similar lines. In particular, whilst Bash is an ugly and
103.
▲
by
patrec
3y ago
The trap EXIT only does the right thing in bash (run on any exit condition, try-finally-style). For dash and unfortunately even for zsh, you'd have to specify multiple signal handlers: > bash -c 'trap "echo cleaning
104.
▲
by
patrec
3y ago
It works in bash and zsh, which are pretty much the only bourne-like shells that matter.
105.
▲
by
patrec
3y ago
(And, BTW, the original code, for all its escaping gymnastics, will only work correctly in bash anyway)
106.
▲
by
patrec
3y ago
No need for the gobbledygook. Just use printf %q, which will quote neatly, too. defer() { new_cmd="$(printf "%q " "$@")" DEFER="${new_cmd% }; $DEFER" trap "command $DEF
107.
▲
by
patrec
3y ago
True, although fortunately the air supply is meant to last for 4 days. As a passenger I would probably be more alarmed about the apparent absence of some kind of distress beacon than the inability to open the hatch without help.
108.
▲
by
patrec
3y ago
In what scenario would not being sealed from the outside make a positive difference? If they managed to surface, how would being able to "get out" in the middle of the ocean be helpful? If they didn't manage to surface, under
109.
▲
by
patrec
3y ago
One also has to admire Whitstable man's marketing genius if he's able to live of his $100 "wallets" (which mostly amount to two badly sewn together pieces of leather). This article feels a bit too on the nose though. But
110.
▲
by
patrec
3y ago
Contrarian take: lots of people doing parsing, has, on the whole, highly negative value, and template languages and config files are a prime example of this. Everybody and their dog thinks it necessary to inflict some new sub-par language o
111.
▲
by
patrec
3y ago
The world did absolutely suddenly become more authoritarian in the past ten years (the US, China and Russia all have become more authoritarian and so have many other countries). We're not back to 1940s levels of authoritarianism yet, b
112.
▲
by
patrec
3y ago
Oh, and BTW: Plan-9, the OS utf-8 was specifically invented for did actually enforce utf-8 for filenames.
113.
▲
by
patrec
3y ago
> What happens when you unpack an archive that uses non-fully utf-8 compliant names. Exactly what you would want to happen (this is the actual error message you will get, BTW)? > (cd /mnt/funkyfilesystem && touc
114.
▲
by
patrec
3y ago
I agree it's something that needs to be dealt with, but can you name a plausible scenario in which this would actually happen and in which the desired behavior would be that you get silently some garbage filename written to your disk?
115.
▲
by
patrec
3y ago
UTF-8 was invented by people who were sufficiently fed up with the shortcomings of Unix that they created a quite incompatible but much improved evolution of it. And it's not just some hack for the sake of backwards compatibility at th
116.
▲
by
patrec
3y ago
> These days one of the systems level programming languages (Rust) is natively UTF-8. Except that the geniuses who maintain the extant Unix systems still couldn't bring themselves to at least start transitioning pathnames to utf8, s
117.
▲
by
patrec
3y ago
Ugh, I pasted the wrong patent there for number 3, but Vapnik does in fact hold a couple of SVM related patents. Concerning the "FOURTY YEARS of prior art", well SVMs without the kernel trick are about as much prior art (and usefu
118.
▲
by
patrec
3y ago
> First, most of them are math related, Nope. At least not for any reasonably sane definition that would not apply to all software. > Those were discovered in like 1964 according to Wikipedia. And then it was patented in 199x? Maybe b
119.
▲
by
patrec
3y ago
Almost, the last patent is about SVMs which are a different ML learning paradigm (one that completely eclipsed neural networks for some time, for what it's worth). > I think what's happening (what always happens) is that people
120.
▲
by
patrec
3y ago
https://patents.google.com/patent/US4405829A/en https://patents.google.com/patent/US6285999B1/en https://patents.google.com/patent/US7478074B2/en
More ›