Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ufo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
ufo
2y ago
This limitation is to ensure that the two functions use the exact same calling convention (input & output registers, and values passed via stack). It can depend on the particular architecture.
92.
▲
by
ufo
2y ago
There are many situations where those little differences completely vanish because of instruction pipelining. Only way to know is to actually measure it.
93.
▲
by
ufo
2y ago
I'd love to see performance numbers for this, if they're available. My hunch is that indexing cost would be about the same.
94.
▲
by
ufo
2y ago
Does it have to move or resize when one of the sides reaches the end of the array? I presume that would be slower than a ring buffer that only grows when it's completely filled?
95.
▲
by
ufo
2y ago
For context: a VecDeque is a ring buffer backed by an array.
96.
▲
by
ufo
2y ago
I've got to say, Git resignifying -- and requiring --end-of-options instead is bonkers
97.
▲
by
ufo
2y ago
This article is one my pet peeves. It always shows up in discussions as "proof" that 0 indexing is superior, but it hides under the carpet all the cases the where it is not. For instance, backwards iteration needs a "-1"
98.
▲
by
ufo
2y ago
In theory, everyone would be able to take an informed decision. In practice, patients wold rather take action than wait, resulting in harm from unnecessary exams and interventions. Not to mention the cost of the exams themselves. Everytime
99.
▲
by
ufo
2y ago
The big problem with the broad spectrum exams is the "if appropriate" part. Often it's not clear if further exams or interventions are warranted, and when in doubt people tend to err towards taking action.
100.
▲
by
ufo
2y ago
Ray Peat is as quacky as health quacks can get. Completely nuts.
101.
▲
by
ufo
2y ago
I wish compose keys were more prevalent. There's something nice about typing -> and getting →
102.
▲
by
ufo
2y ago
As discussed in the reports above, these budget cuts are not for the sake of saving money, but for redirecting said money towards "border defense" and other priorities of the new administration
103.
▲
by
ufo
2y ago
I started using Typst this year and am really liking it so far. The rendered document updates as you type, and it's easier to code grid layouts. I like how I don't need to be paranoid about adding "%" at the end of lines
104.
▲
by
ufo
2y ago
Basically, electromagnetic force is much stronger than the sun's gravitational force. (But it's also more difficult to get it to eork just right)
105.
▲
by
ufo
2y ago
I presume their question is about "simple" techniqyes. With goto, the most famous one needs to compute dominance frontiers.
106.
▲
by
ufo
2y ago
Regardless, on average it tends to work out. The amount of iodine in the salt is regulated by measuring uring samples in a large population.
107.
▲
by
ufo
2y ago
> On the other side, doctors such as X, Y, Z, have claimed success prescribing high doses of iodine for Hashimoto’s and for breast and thyroid cancers. The blog post above didn't take long to go off the rails. Already in the introdu
108.
▲
by
ufo
2y ago
The most common kinds of hypothyroidism are due to the thyroid being damaged. Adding iodine can't help, but there are several known ways it can be harmful.
109.
▲
by
ufo
2y ago
Notably, a lot of non-table salt in the US is not iodized. So the amount of iodine someone gets depends on how much of their food is industrialized, vs home cooked.
110.
▲
by
ufo
2y ago
Absolutely not!! A single drop of Lugol's iodine has dozens of times the deily recommended amount of iodine, and such levels have been documented to cause harm to the thyroid. Including inducing hypothyroidism. To quote the American Th
111.
▲
by
ufo
2y ago
I think it's a United States thing. There are other countries where all salt meant for human consumption must be iodized.
112.
▲
by
ufo
2y ago
A foreign function interface that's based on parsing C files must translate C types and interfaces into types and interfaces of the target language. I suppose it helped that D's type system has many similarities with C, including
113.
▲
by
ufo
2y ago
I know that in other languages, one obstacle for "just compile the C files" is that the target language might not have pointers and thus have difficulty representing things such as return-by-pointer. I suppose in D this was less o
114.
▲
by
ufo
2y ago
... If you're willing to write your own extension modules. The problem with pypy is that there is a multitude of important libraries using the CPython API.
115.
▲
by
ufo
2y ago
IIRC, LuaJIT also doesn't like native code. Most native calls will cause LuaJIT to fall back to the unoptimized interpreter, with the exception of some special-cased functions from the standard library. https://chrisfls.gith
116.
▲
by
ufo
2y ago
The stack's still there. I agree that reference manual's notation for how many values are pushed and popped can take a while to get used to, but at least it's straight to the point. One trap with the stack is that it baits yo
117.
▲
by
ufo
2y ago
Have you seen the Passing a Language Through the Eye of a Needle article, from the Lua authors? It talks about how some of unusual the design decisions such as pcall error handling and the stack are tradeoffs in favor of "embeddability
118.
▲
by
ufo
2y ago
The new register-based virtual machine still uses the same stack under the hood. The only difference is how instructions are encoded in the bytecode. By default they can read and write to any position in the stack as opposed to pushing and
119.
▲
by
ufo
2y ago
Javascript code is often short lived and doesn't have enough time to wait for the JIT to watm up.
120.
▲
by
ufo
2y ago
For what it's worth the Blindsight pwoerpoint presentation is kind of funny: https://www.youtube.com/watch?v=wEOUaJW05bU
More ›