Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Someone
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
691.
▲
by
Someone
10mo ago
Reading https://github.com/niklas-heer/speed-comparison/blob/master/... , I think the only overflow checks could be in for i in 2...rounds+2 and I would hope/expect the compiler to be smart en
692.
▲
by
Someone
10mo ago
They’re measuring program execution time, including program startup and tear down. Languages with a more complex runtime take longer for the startup, and all seem to have roughly equally optimized that.
693.
▲
by
Someone
10mo ago
I don’t see how that Wikipedia page supports your claim “The key concept in "parametric polymorphism", which is what programming language nerds mean by generics, is "parametricity"” . That page doesn’t even contain the
694.
▲
by
Someone
10mo ago
I somewhat disagree. FTA: “If the callsite is some_function(2);, the compiler resolves T as i32 and selects the corresponding branch, returning the value incremented by one. […] The important point is that the decision is driven entirely b
695.
▲
by
Someone
10mo ago
https://en.wikipedia.org/wiki/Perceptual_hashing
696.
▲
by
Someone
10mo ago
> because one should count all CVEs. That is debatable, and I think untrue. It sometimes takes years to find CVEs in C code, and I don’t know of an argument why that would be different for Rust. The fairest comparison, I think, would be
697.
▲
by
Someone
10mo ago
> It seems like maybe the documentation needs to be updated Looks like it, yes: /** Enable hash probing to tolerate 32-bit hash collisions. Hash probing configuration (quadratic open addressing for 32-bit hashes: h_
698.
▲
by
Someone
10mo ago
I think that, on the App Store, ads may be the least worse solution. Currently, some developers try to get into your view by creating multiple similar apps, as that gets them screen space for free. Given developers the ability to pay to hav
699.
▲
by
Someone
10mo ago
FTA#1: “Hashmaps do not (efficiently) support range queries. Since the keys are stored in pseudorandom order” FTA#2: “Object keys (think JSON) are hashed to a 4-byte digest and stored inside B-tree nodes” It still will likely be faster
700.
▲
by
Someone
10mo ago
FTA: In our "Mobile Actions" evaluation, fine-tuning transformed the model’s reliability, boosting accuracy from a 58% baseline to 85%. This confirms that for edge agents, a dedicated, trained specialist is an efficient path to pr
701.
▲
by
Someone
10mo ago
> So there I was, implementing a one element ring buffer. Which, I'm sure you'll agree, is a perfectly reasonable data structure. It is, but, IMO, shouldn’t use the code for “a n-element ring buffer, with n set to 1”, similarly
702.
▲
by
Someone
10mo ago
Yes, they do, but if what goes in is insufficient by a wide margin, people who can afford to will start drilling for water. Assuming that the water taken through qanats would eventually make it into aquifers (fat from unlikely, I think, as
703.
▲
by
Someone
10mo ago
> However, unpublished national observations revealed groundwater depletion in some plains from as early as the 1950s. This coincided with the gradual replacement of Persian qanats, which were sustainable groundwater extraction systems a
704.
▲
by
Someone
10mo ago
Yes, you can. The problem with testing is that a candidate treatment may make things worse for patients, not that it may improve things. If your treatment works, that’s an improvement of what you had before. Once you know that, you can trea
705.
▲
by
Someone
10mo ago
From what I read here, the problem is that EVIL.app can read your git tokens, too, without you having anything to say about it. Yes, you want a system that allows sharing of those tokens between various tools, but you also want the user t
706.
▲
by
Someone
10mo ago
For selfies, I think iPhones with Face ID use the TrueDepth camera hardware to measure Z position. That’s not full camera resolution, but it will definitely help.
707.
▲
by
Someone
10mo ago
It not warm as in ”warmer than the typical living space”, but it is warmer than zero Kelvin, so heat can be extracted from it. Doing that takes energy, that’s why it is called a heat pump . That moves heat from the water to an already warm
708.
▲
by
Someone
10mo ago
> which is blatantly a lie - they merely edited his words to bring together two distinct sentences in a misleading manner I think merely is not the right word to use. For example, let’s say I say in https://news.ycombinator
709.
▲
by
Someone
10mo ago
Some of those could be partially fixed in hardware. Examples: - returns can run in as good as zero time - when calling a word, the CPU could prefetch the cache line containing the next word to be called, on the assumption that it would be c
710.
▲
by
Someone
10mo ago
> I don't think Rust gets this horribly wrong > In Rust "AbcdeF"[1] isn't a thing, it won't compile, but "AbcdeF"[1..=1] says we want the UTF-8 substring starting from byte 1 through to byte 1 and th
711.
▲
by
Someone
10mo ago
A disadvantage of git add -p is that it allows you to create a commit that never existed on the development system, and, hence, cannot have been tested. How do people handle that? One way would be to follow it up with git stash , running
712.
▲
by
Someone
10mo ago
FTA: “Heap allocations made by the function are erased as soon as the garbage collector decides they are no longer reachable” I think that means this proposal adds a very specific form of finalisers to go. How is that implemented efficien
713.
▲
by
Someone
10mo ago
I don’t see how that needs that “:D” Is there any standard that says anything about the performance of fseek ? If not, how can one claim that this is O(1) ? :D
714.
▲
by
Someone
10mo ago
> Speaking to reporters Thursday night, though, Epic founder and CEO Tim Sweeney said he believes those should be “super super minor fees,” on the order of “tens or hundreds of dollars” every time an iOS app update goes through Apple for
715.
▲
by
Someone
10mo ago
Wikipedia ( https://en.wikipedia.org/wiki/Hash_array_mapped_trie ) links to the paper describing HAMT ( https://infoscience.epfl.ch/server/api/core/bitstreams/f66a3... ) and claims that
716.
▲
by
Someone
10mo ago
When given a 5-star choice “very bad/bad/ok-ish/good/very good”, I rarely pick one of the extremes. I suspect there are others who rarely click “bad” or “good”. Because of that, I think you first need to train a model on
717.
▲
by
Someone
11mo ago
Isn’t that a feature that best sits in the printer dialog, to be used with whatever application you want?
718.
▲
by
Someone
11mo ago
FWIW: Apple’s SF Symbols font doesn’t have an image of a floppy disk, nor does it have an icon meaning “save”.
719.
▲
by
Someone
11mo ago
Looking at https://rectangleapp.com/ , they basically use the same idea, yes, but is there a reasonable alternative? Also, IMO, Apple’s pictograms look a lot better and are clearer. In Rectangle, the “left half” icon almost
720.
▲
by
Someone
11mo ago
On the one hand earthquakes remove tension from the earth’s crust and release energy that can’t be used in future shocks. On the other hand, if a shock doesn’t release all energy it may come to rest in a relatively weak spot that will soon
More ›