Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samatman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
661.
▲
by
samatman
2y ago
Taking this opportunity to remind folks: if you're going to emit a config file from your program, check for $XDG_CONFIG_HOME and use what you find by preference. ~/.config is a decent fallback. Sticking it in ~? It's not the
662.
▲
by
samatman
2y ago
TIL! great tip, thanks. Now I just need to wire that shortcut up to `lsd` instead of `ls`. Update: the ls command is stored at __fish_ls_command, so this is a `set -g __fish_ls_command lsd` in `config.fish`.
663.
▲
by
samatman
2y ago
I think you're wrong about that, sorry. As in, you're not getting the right sound out of the string /ɛi/ when you read it off. I encourage you to listen to a native Dutch speaker pronounce Mynheer Dijkstra's name, w
664.
▲
by
samatman
2y ago
True, but to my ear at least, /eɪ/ is further from /ɛi/ than /aɪ/ is. Maybe more to the point, English speakers (American ones at least) are going to "realize" the name Dijkstra with an /aɪ/
665.
▲
by
samatman
2y ago
I don't know how else to say this, but American institutions, and Americans, are profoundly uninterested in what nudity taboos you may or may not have over there. American tourists might care, if they're looking to see some tits o
666.
▲
by
samatman
2y ago
In IPA, the name is /dɛikstra/. Americans (English vowels vary quite extremely by dialect/accent, so I'm sticking with Standard American English) can easily pronounce ɛ, we say the word 'bed' as /bɛd/
667.
▲
by
samatman
2y ago
I'm not sure what the right sentence is for shooting into the air at something which is going to crash to the ground, but it should be harshly punished. Either hitting or missing could easily kill someone.
668.
▲
by
samatman
2y ago
Copying a bunch of stuff because the borrow checker won't let you share it can drag down performance as well. Yes, I do understand why one might conclude that tradeoff is worth it. But it is a tradeoff.
669.
▲
by
samatman
2y ago
What you've demonstrated is that one can start with false statistics and reach a conclusion not grounded in reality.
670.
▲
by
samatman
2y ago
Thank you, I put median in italics and everything. The point of citing the median is that, by definition, the top 15% do not affect it, except by virtue of existing.
671.
▲
by
samatman
2y ago
> The US also fares poorly if you don't count the wealthiest 15% of the population. This is false. The US has the third highest median income of any country in the world, after Luxembourg and the United Arab Emirates (which clea
672.
▲
by
samatman
2y ago
There is no blockade, and there hasn't been since the Cuban Missile Crisis. An embargo prohibits US citizens and US-owned businesses from trading with Cuba. A blockade would be the US Navy preventing anyone else's ships from enter
673.
▲
by
samatman
2y ago
This is wrong. There are no secondary sanctions against Cuba. Cuba is poor because Cuba is Communist. They can trade with everyone except the United States, if they had anything to trade with. The US sanctions do serve as a wonderful excuse
674.
▲
by
samatman
2y ago
I'm all-in on Zig, I think it's the bee's knees. I needed a regex library for another project, and dashed off an acceptable one in a week flat https://github.com/mnemnion/mvzr The fun part about this is
675.
▲
by
samatman
2y ago
It's the major area of focus right now. You can track the issues with this tag/link if you'd like: https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen...
676.
▲
by
samatman
2y ago
Eliminating the dependency on LLVM is a major focus for the language team, and a big part of why Aro exists. Note that it's the dependency which is being eliminated: it will remain possible to use LLVM as a back end, and to compile Z
677.
▲
by
samatman
2y ago
> I must be missing context here but I thought we were past side snarks out of mere generational antagonism. If not, please enlighten me ;) The context is right there in the rest of the comment: editing XML by hand is a hideous exper
678.
▲
by
samatman
2y ago
I don't believe that Google has anything at all to do with musl libc. Applications should not be assuming a hard-coded stack size, that's a bug. They should be checking the value of PTHREAD_STACK_MIN. That is what it's there
679.
▲
by
samatman
2y ago
> Why should I do that? Because what you chose to do instead is exceptionally obnoxious behavior, which degrades the quality of discourse on this site.
680.
▲
by
samatman
2y ago
I've long thought the answer is as simple as it is boring: their metallurgy just wasn't good enough. Until the industrial revolution itself kicked in, metallurgy was a long and slow slog through incremental improvements in techniq
681.
▲
by
samatman
2y ago
One of the great mysteries of human history is why that is. The historical record of coffee begins in the 15th century. It's been claimed that it was cultivated much earlier in Yemen or Ethiopia, but both of those places were literate
682.
▲
by
samatman
2y ago
Anyone not guilty is presumed innocent. That which is presumed does not need to be declared. https://en.wikipedia.org/wiki/Presumption_of_innocence
683.
▲
by
samatman
2y ago
Both of these cases were decided against the defendant, and more to the point, both of these cases concern the police setting up a camera specifically pointed at the front of someone's home. That is quite literally on the dividing line
684.
▲
by
samatman
2y ago
That which takes place in public has never been, and will never be, subject to 4th Amendment protections. Otherwise the police would need probable cause, and therefore a warrant, to look at you while walking down the street.
685.
▲
by
samatman
2y ago
> since they are not funded with any federal dollars they are somewhere between a government service and a private service. This argument makes no sense at all to me (I did catch the part where you don't necessarily agree either b
686.
▲
by
samatman
2y ago
Laptops are not generally social objects. The notion makes me a bit nauseous actually.
687.
▲
by
samatman
2y ago
That hadn't occurred to me, I had thought (having read the Fine Article, but not closely, nor really more than glanced at the code) that it was using exactly 30 bits and reserving two for, IDK, carry detection, and that 10^9 was just a
688.
▲
by
samatman
2y ago
Zig isn't quite arbitrary precision, but it supports integer widths up to u65536. I've found this quite handy.
689.
▲
by
samatman
2y ago
It isn't misleading at all. A hexadecimal digit has 4 bits of entropy. You can guess it correctly by chance one in sixteen times. Calling that a four-bit digit is correct. Same with a 30 bit digit, all that changes is the magnitude. Th
690.
▲
by
samatman
2y ago
> Imagine you are writing performance sensitive code. You want to get a substring from a string, one that is not going to live outside your hot loop. Zig uses slices for this (and everything else except interop): a pointer and a length
More ›