Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ufo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
751.
▲
by
ufo
5y ago
One problem is that it's just as simple to implement an incirrect version of this function
752.
▲
by
ufo
5y ago
Just to add a clarification for the rest of HN, since this is a common source of confusion... Every cancer has gene mutations. Typically these mutations are only present in the cancer cells and are not there from birth. They don't indi
753.
▲
by
ufo
5y ago
What is this Taproot about?
754.
▲
by
ufo
6y ago
IIRC most of the water used to produce meat goes into producing the animal feed.
755.
▲
by
ufo
6y ago
Does anyone know what's the current consensus about PCG vs xoroshiro. I remember that the xoroshiro author had several complaints about PCG but I don't know ifhe is right or if he was just being salty.
756.
▲
by
ufo
6y ago
But is this still as important if the executable in question is part of the Linux distribution? In theory, Fedora knows know that Clang depends on LLVM and could automatically rebuild it if there was a change in LLVM.
757.
▲
by
ufo
6y ago
As Serge Guelton said in a followup email, one of the reasons that Linux distros use dynamic linking is to reduce the disk usage and bandwidth requirement for updates. Technically speaking, would it be possible to design a Linux distro so t
758.
▲
by
ufo
6y ago
I also don't get it. An NFT is basically a small piece of text on the blockchain saying that you own the thing at a given URL. It doesn't mean you have copyright over the relevant intelectual property. There's nothing stoppin
759.
▲
by
ufo
6y ago
I'm curious how much battery the video streaming would use here. Wifi tends to use a fair bit of power.
760.
▲
by
ufo
6y ago
To add to what you said: the HTML specification has a bunch of rules to say how to parse a tag that doesn't have a matching close tag. These grew organically based on how browsers responded to malformed documents. At some point the rul
761.
▲
by
ufo
6y ago
Worse than innefective; some studies have found that the HCQ arm fared worse than placebo. Not to mention the more fantastical misuses out there, such as nebulizing it straight into the lungs.
762.
▲
by
ufo
6y ago
In OP's case, the individual functions are replacing small fragments of code that would have been basic blocks inside a larger function. The tail calls are replacing gotos. Those things also wouldn't have produced a stack trace. T
763.
▲
by
ufo
6y ago
You can still use this trick in C++ if you ensure that the return statements are outside the scopes that have the RAII objects. It's awkward but it's better than nothing. https://godbolt.org/z/cnbjaK85T
764.
▲
by
ufo
6y ago
On the matter of portability, I wonder if it would be possible to use some macro magic and/or a code generator to convert the tail-call version back into a more traditional while/switch loop, for the stack-based architectures. Whi
765.
▲
by
ufo
6y ago
Unfortunately, I think that only structs with at most 2 words are passed via registers. Larger structs are passed via the stack. https://godbolt.org/z/frof3xjhW
766.
▲
by
ufo
6y ago
A very interesting trick! In my opinion, the big takeaway here is that if you are willing to write your C code in tail call style, you can get a lot of control over which variables are stored in machine registers. In the x86-64 ABI, the fir
767.
▲
by
ufo
6y ago
Only if the alternative is non-tail function calls. Often the alternative to tail calls is a while loop, which also doesn't leave a stack trace.
768.
▲
by
ufo
6y ago
On the topic of string research, one excellent reference that someone recommended to me is the book "Flexible Pattern Matching in Strings" by Navarro and Raffinot. One of my favorite things about it is that it has a "phase ch
769.
▲
by
ufo
6y ago
The difficulty adjustment ensures that, on average, there will always be 6 bitcoins minted every 10 minutes. If the price of the bitcoin increases, miners will be willing to spend more energy to chase those 6 bitcoins. The end result is the
770.
▲
by
ufo
6y ago
If the only argument in favor of the death penalty is that the prison system is inhumane, to the point that someone would rather die than go through it, the answer to that should be to make the prison system more humane.
771.
▲
by
ufo
6y ago
Framing this as a left vs right issue is an USA-centric way to frame the question. Consider how the US is basically the only country in the american continent that still goes ahead with capital punishment. Most other countries in the contin
772.
▲
by
ufo
6y ago
The alternative also being barbaric doesn't make the death penalty less barbaric.
773.
▲
by
ufo
6y ago
I miss the Hardy Heron wallpaper. That one was very beautiful and invited me to switch to Linux.
774.
▲
by
ufo
6y ago
Maybe they have their reason to put the screenshot on the bottom... :)
775.
▲
by
ufo
6y ago
It means that another mastodon developer (ykzts) reviewed and approved the code. However, the commits haven't been merged to the main branch yet.
776.
▲
by
ufo
6y ago
Htop: https://htop.dev/ I think the animated gif in the background is charming.
777.
▲
by
ufo
6y ago
While there are significant ideological disagreements between the OSI and FSF, when it comes to FOSS licenses their definitions are mostly equivalent. There are very few licenses that are recognized by the OSI but not by the FSF, and vice-v
778.
▲
by
ufo
6y ago
Why does the plight of Brazil have to be a magnet for all manner of denialism to show up in the comments? Ivermectin doesn't work, just like Hydroxichloroquine doesn't. Seriously, if these things actually worked wouldn't it b
779.
▲
by
ufo
6y ago
It's hard to believe that you are arguing in good faith if you're trying to suggest that Brazil is anywhere close to doing well when it comes to COVID.
780.
▲
by
ufo
6y ago
Intensive care units are at over 90% capacity in most of the country, even after taking into account the recent expansions in the number of beds available. Even if we had all the money in the world, there are not enough doctors to take care
More ›