Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orlp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
331.
▲
by
orlp
3y ago
Time is relative. Events near heavy objects appear slower to observers not near heavy objects. An observer in a similar gravitational field as the event (which is implied if the observer and event are in the same place) will see the events
332.
▲
by
orlp
3y ago
You can write it pretty compactly in Rust without introducing wildcards over non-boolean arguments. If you're extra paranoid you can write `true | false` instead of _ for those patterns in the below example match (requires_approv
333.
▲
by
orlp
3y ago
> a hostile takeover of ARM can cost $70b Sure, but the question was "why would Apple want to own ARM", not "is it worth the cost?" > it doesn't guarantee that ARM would fall on its face after the acquisition
334.
▲
by
orlp
3y ago
> Why would Apple ever want to own ARM? You answered your own question: > Quite honestly, ARM falling on its face hard is actually a benefit to Apple. That would mean that Apple Silicon and iPhone SoCs have less competition.
335.
▲
by
orlp
3y ago
You can use it to make hash tables or other fast hash based algorithms that do not suffer from adversarial inputs. With most other fast hash functions it's easy to find colliding strings, letting an attacker mess up your algorithm.
336.
▲
by
orlp
3y ago
> Though it's hard to imagine anything with 4kib of state being very fast! is it just a precomputed power table or something where the whole thing isn't even accessed for short inputs? Correct, it's a pregenerated table of
337.
▲
by
orlp
3y ago
I am working on a new hash that uses more memory (aiming around 4KiB that's shared in a process), but is a whole lot faster. The finalizer for that hash is a universal hash which I believe is 2^(2-k) almost-delta universal mod 2^k for
338.
▲
by
orlp
3y ago
> And what if it gets caught in a loop? Not sure how this can really guarantee 100% It's not great but after some timeout you can just set the mask to only include closing brackets.
339.
▲
by
orlp
3y ago
It IS empowering. The default state of being is that nothing is enforced besides what you can personally enforce. As a regular person this means you have no power, no property, no rights, nothing in the face of someone with a bigger stick.
340.
▲
by
orlp
3y ago
An insurance underwriter that gives 200k life policies for 65 euro / month will be bankrupt soon.
341.
▲
by
orlp
3y ago
I just joined Polars as a fresh hire, I'm excited to help make it easier to use and faster :)
342.
▲
by
orlp
3y ago
Why would you charge during peak hours?
343.
▲
by
orlp
3y ago
No, I use a Python interpreter that is always open in tmux on the first tab. I have a bunch of predefined functions that I use a lot: https://github.com/orlp/dotfiles/blob/master/pcalc/pcalc The kil
344.
▲
by
orlp
3y ago
The requirements state "a Facebook user in the United States between May 24, 2007, and December 22, 2022". Is that true? What if you are a United States citizen, but not inside the United States during that period?
345.
▲
by
orlp
3y ago
I can't answer why the developer thought a faster hash was necessary. As to its quality as a hash function... It's pretty poor, and slow on modern systems. It's known as the djb2 hash. (h << 5) + h is a way of writing 3
346.
▲
by
orlp
3y ago
> Is adding a feature-flag really the same as pushing the feature into the browser immediately? "Don't mind me guys, I'm barely boiling the frog."
347.
▲
by
orlp
3y ago
Since when is Github non-profit?
348.
▲
by
orlp
3y ago
As a counterpoint, 𝔽 when not fixed to a particular size is arguably still generic over "any field", and 𝔾 is most definitely generic for "any group", even if fixed to a particular size.
349.
▲
by
orlp
3y ago
You're right I should've used "as a symbol" not "as the symbol". It's not terribly common.
350.
▲
by
orlp
3y ago
𝕏 is used as a symbol for a generic metric space. E.g. if your result is generic over ℝ², ℂ³, etc, you can write 𝕏.
351.
▲
by
orlp
3y ago
Just is already 'taken' in the Rust community as it is a command runner utility like make: https://github.com/casey/just
352.
▲
by
orlp
3y ago
If KiwiFarms hosted/was responsible for illegal activities, then it is up to law enforcement to deal with it, not payment processors. It is not desirable that private infrastructure companies such as Visa or MasterCard are effectively
353.
▲
by
orlp
3y ago
> Security, Durability, and Availability. In that order. The ordering of security and durability very much depends on the needs of the customer. Some data is vastly more valuable to malicious actors than it is to you, e.g. ephemeral priv
354.
▲
by
orlp
3y ago
That is also not true for any European customer in general. There is a 14-day return period without any questions asked on any product barring a few perishable/date sensitive/hygienic concerns.
355.
▲
by
orlp
3y ago
I don't. All I'm saying is that progress can be linear/non-existing until a breakthrough is made that allows scaling. For microchips this was lithography. After such a breakthrough the scaling can (temporarily) be exponential
356.
▲
by
orlp
3y ago
If we didn't invent photolithography, we'd still be using computers the size of buildings limited to universities and military installations. Right now no one knows how to build a scalable quantum computer. But as soon as we find
357.
▲
by
orlp
3y ago
https://orlp.net/ I post occasionally, usually with mathy or low-level optimization content.
358.
▲
by
orlp
3y ago
> But aren't you reading off the end of the buffer in your memcpy(&w...)? If we go by the absolute strictest interpretation of the C standard my above implementation is UB. But in practice, if p is word-aligned and is at least v
359.
▲
by
orlp
3y ago
If we go by the absolute strictest interpretation of the C standard, yes, the above is UB. But in practice no one has page boundaries that cross word boundaries, and I align to a word boundary before doing the word-by-word loop.
360.
▲
by
orlp
3y ago
I made a variant that is (on my Apple m1 machine) 20x faster than the naive C version in the blog by branchlessly processing the string word-by-word: int run_switches(const char* input) { int res = 0; // Ali
More ›