Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orlp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
151.
▲
by
orlp
2y ago
Mental typo, I meant horizon, not origin.
152.
▲
by
orlp
2y ago
This is often stated but it literally can't be true. It's true for stationary solutions to the relevant equations, but we're very much not living in a stationary world. Here's a simple thought experiment disproving you
153.
▲
by
orlp
2y ago
https://www.youtube.com/watch?v=l3fAcxcxoZ8
154.
▲
by
orlp
2y ago
> You mention that foldhash does not claim to provide HashDoS resistance against interactive attackers, so perhaps that disqualifies it. The linked CVE is not an interactive attack either FYI, so foldhash would be sufficient to protect a
155.
▲
by
orlp
2y ago
XXH3 does not have this property, no more than foldhash does.
156.
▲
by
orlp
2y ago
That's not what ternary refers to here. In C, '+' is a binary operator because it accepts two inputs. '?:' is a ternary operator because it accepts three inputs. It is usually referred to as the ternary operator b
157.
▲
by
orlp
2y ago
Why was Rust's hashmap only tested with SipHash? It's known to be pretty bad for performance. I'm biased as the author of course, but try adding a benchmark with the Rust hasher + foldhash as well: https://github.c
158.
▲
by
orlp
2y ago
I've had good results in the past with sollya: https://www.sollya.org/ . Note: results. The software itself is a bit of a pain to use.
159.
▲
by
orlp
2y ago
Not a lawyer, not legal advice, but... the legal status quo is that neural network outputs are not copyrightable. They are currently considered not made by humans nor considered a derivative work from the training material / network we
160.
▲
by
orlp
2y ago
Not the person you replied to, but I use Iosevka Fixed which is default except everything is always fixed-width and there are no ligatures.
161.
▲
by
orlp
2y ago
> This is a real shame for anyone who cares about really distinctive, original games. Is it though? Annapurna is a publisher, they didn't make those games. The games you listed were made by: - Outer Wilds: Mobius Digital - S
162.
▲
by
orlp
2y ago
People that do believe you need to be innovative are in for a rude awakening when they actually do something innovative successfully only to find out a year later there are now 5 competitors copying you, with decent success.
163.
▲
by
orlp
2y ago
> Secondly, I’d like to question: if C has bitfields, then why do seemingly all modern C APIs not use? Because an unsigned integer containing many flags is convenient for setting/toggling/clearing multiple options at once. At l
164.
▲
by
orlp
2y ago
With fd: https://github.com/sharkdp/fd fd [filter options] -X cat E.g. to combine all .js files into combined.js: fd -e js -X cat > combined.js
165.
▲
by
orlp
2y ago
The title says 300μs typo detection . How? If the query doesn't finish in 300μs, return error :)
166.
▲
by
orlp
2y ago
I would normally agree, but the author went out of their way to check for error conditions in their binary search. I think a silent infinite loop is antithetical to that.
167.
▲
by
orlp
2y ago
This binary search is pretty bad in my opinion. Some issues: 1. It doesn't support the empty array, because l and r are both inclusive. 2. It performs way more predicate tests than necessary. 3. An incorrectly implemented Mid trait cau
168.
▲
by
orlp
2y ago
There is another alternative which may be significantly more efficient as it means the caller always gets back a direct iterator instead of an enum it must branch on: make a dummy empty hashmap with a static lifetime you can refer to. Then
169.
▲
by
orlp
2y ago
> Wouldn't a different speed of light impact the Schwarzschild radius of black holes of a given mass? No it wouldn't. Our fundamental unit of distance (the meter) is defined in terms of the speed of light, so the radius will st
170.
▲
by
orlp
2y ago
Is it? My compute-bound tight loops on x86-64 are often decode-bound.
171.
▲
by
orlp
2y ago
It doesn't, but it's typically the simplest (for me). It also means I get exactly the version I want compiled with the best optimizations for that machine.
172.
▲
by
orlp
2y ago
What I do on every dev machine is build Python from source and install it to ~/.localpython and put it in my path. Then I can pip install away care-free, and quickly run scripts / repls without having to activate an environment.
173.
▲
by
orlp
2y ago
I'm the author of slotmap. I don't know why slotmap is listed as not having ABA protection, when it absolutely does. EDIT: I've emailed the author.
174.
▲
by
orlp
2y ago
What are you basing that on?
175.
▲
by
orlp
2y ago
For what it's worth, I recommended against mentioning `unpredictable` anywhere in the name when we stabilize the intrinsic. IMO the constant-timeness is much more important, e.g. in audio DSP code or for cryptography you really care th
176.
▲
by
orlp
2y ago
Rather than std::swap_if which is rather niche, I would prefer to see std::select(cond, if_true, if_false), with the guarantee that unlike the ternary operator it eagerly evaluates both arguments and selects between them branchlessly if pos
177.
▲
by
orlp
2y ago
> It is only the "Masters" who have a way of directly getting to the heart of the matter in the simplest manner possible. If this is true, why are three of your four references secondary references? Surely if the master said it
178.
▲
by
orlp
2y ago
You don't even need that for JSON. JSON can be expressed using a LR(1) grammar, so you can do it in linear time and space.
179.
▲
by
orlp
2y ago
Not a lawyer, but the cynic in me assumes that it is legal bait: if someone at the company cashed the $10 gift card one could argue that compensation for damages has been accepted and no further liability applies. At least legally speaking,
180.
▲
Samply, a cross-platform command line CPU profiler
(github.com)
1 points
by
orlp
2y ago
|
0 comments
More ›