Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
simonask
6d ago
You said > I think it should be preferred wherever it's an option for that reason most of all. And that’s far too broad in my opinion. Sure, if you’re writing in a language that makes memory management difficult, like C or Zig, that
2.
▲
by
simonask
7d ago
This hasn’t been the finding of the R4L project. Go look at their code, it’s shockingly safe outside of the parts that interact with extern “C” symbols, which naturally need to be unsafe.
3.
▲
by
simonask
7d ago
Just to note, Rust has had compile-time floats for a while now, but yes.
4.
▲
by
simonask
7d ago
Floating point hardware on different CPU architectures don’t produce bitwise identical results, unfortunately. That’s the big issue. As far as I’m aware, they do produce semantically identical results, but something like the specific bit pa
5.
▲
by
simonask
7d ago
It’s just much easier for an editor to manage a single interface for plugins over having to host a bunch of very large runtimes. Also, I doubt that you would have a very great time running both .NET and JVM in the same process. For one, bot
6.
▲
by
simonask
7d ago
If this works for the programs you write, that’s great. It does preclude you from using many great data structures with potentially better performance - especially hash maps. Rehashing is pretty detrimental to most arena allocators you can
7.
▲
by
simonask
7d ago
I respectfully disagree. The technique has its place, and I use it once in a while, but whether it makes a positive difference for performance is highly sensitive to a number of factors. For example, bump style allocators allocate very quic
8.
▲
by
simonask
7d ago
Step zero of using arena allocation is to build realistic benchmarks so you can measure if it's worth the trouble in the first place. Standard allocators are incredibly good these days, and even plugging in mimalloc or jemalloc will be
9.
▲
by
simonask
7d ago
> AAA games use allocators extensively They do, but not necessarily together with generic, standard containers. When you find yourself wanting a nonstandard allocator, you usually want it because you want it to have some interesting prop
10.
▲
by
simonask
7d ago
I think this is a very reasonable question to ask. Language servers are certainly a significant source of slowdowns and editor unresponsiveness, and any time you're doing IPC, that's another source of latency and fragility. My cur
11.
▲
by
simonask
8d ago
Thanks, now my brain will forever read it like that. I'm not even a little bit French.
12.
▲
by
simonask
10d ago
Let me introduce you to a little thing called Private Equity.
13.
▲
by
simonask
13d ago
Obviously, "slow" has very different meanings depending on context. Allocating a task object or interacting with the runtime in any way may be quite slow when you're in a tight inner loop, but it may be perfectly fast in the
14.
▲
by
simonask
13d ago
It's not really like there's a budget for it, and "!" is already a type people have seen in the return position of extremely common macros (panic!, todo!, etc.), functions (std::process::exit, etc.), and expressions (ret
15.
▲
by
simonask
13d ago
Well, one thing that every Rust programmer knows is the `panic!(...)` macro, and its return type is "!". That's why this compiles, even though not even match arm produces a value, which I think many Rust programmers are famil
16.
▲
by
simonask
14d ago
Languages with effect systems typically let callers inherit the effects of their callees (e.g., calling an async function means the caller also is async), or force them to handle the effect (e.g., spawn the async call as a task and waiting
17.
▲
by
simonask
15d ago
You’d just say “over 30” for that kind of temperature, or “almost 40” if it’s at the higher end. I think you’re taking your own unfamiliarity and just assuming that we’re all struggling because you don’t know how to translate what you’re us
18.
▲
by
simonask
15d ago
The problem is that understanding everything from first principles is often the longest and least efficient road to learning the things that are actually useful. Psychoacoustics is interesting, but it's not something that really helps
19.
▲
by
simonask
16d ago
Why would you assume that this particular turn of phrase would be common at all? People usually just say the temperature they’ve heard in the weather report, without giving a range. If you say “over 20”, people don’t assume “close to 30”, b
20.
▲
by
simonask
16d ago
FYI, none of this has ever made any sense at all to somebody who didn’t grow up with Fahrenheit. Numbers don’t need to go roughly between 40 and 100, and then occasionally 212 and 450. The difference between 20 C and 20.5 C is not generally
21.
▲
by
simonask
16d ago
33.3 cm is easy to measure out, and 99.9 cm is exactly 1 mm short of 1 meter, well within tolerances for carpentry. Narrower than the mark left by your pencil. But also like, we have calculators…
22.
▲
by
simonask
18d ago
2 years is not a long time. What I’m telling you is that sentiments have changed dramatically, and every government and company board across the continent is taking actions to position itself according to those sentiments. You won’t see the
23.
▲
by
simonask
18d ago
Hedging your country’s future on American presidential approval numbers is political suicide in Europe, as it rightly should be.
24.
▲
by
simonask
18d ago
Also, what lip service, exactly? This is what I mean: Americans don’t understand the immense dividends they have enjoyed from being the defacto symbol of “progress” in the 20th and 21st centuries so far. American solutions were chosen by Eu
25.
▲
by
simonask
18d ago
> In the event of some schism … In the views of most Europeans, that schism already happened. Europe was perfectly happy to rely on US software and services for decades. None of the large US tech companies would be nearly as profitable i
26.
▲
by
simonask
19d ago
Perfect pitch is quite debated. What we know is that: 1) Most people with perfect pitch have it mostly on their main instrument, and they translate the pitch in their inner ear if they hear a different instrument, and 2) Many with perfect p
27.
▲
by
simonask
19d ago
The tried and true approach is to find a piano teacher in your area, schedule weekly appointments, set aside at least one hour of practice every day between lessons.
28.
▲
by
simonask
19d ago
My point is that it’s great to understand “why” Western music is the way it is, but it’s largely not the point of music theory. Music theory is useful because it establishes a vocabulary.
29.
▲
by
simonask
20d ago
All of those systems you mention also include those so-called "pleasant" ratios.
30.
▲
by
simonask
20d ago
I'm a programmer with a degree in musicology as well. This ain't it. I'm reading your comment with a certain disdain for analysis and theory, which I get - a lot of people come out scarred from music theory training, and I&#x
More ›