Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adwn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
adwn
10mo ago
I don't see you countering my argument, only attempting to ridicule it ("slighty more sophisticated", "trope", "these silly hippies", "been aware of the concept of winter", "existence of win
62.
▲
by
adwn
10mo ago
How do you interpret these numbers? If your point is that we can simply overprovision photovoltaik arrays by a factor of 6.67, then that would make solar the most expensive power generation method by far. And it only gets worse the more hou
63.
▲
by
adwn
10mo ago
This and your other comment in this thread reads exactly like propaganda paid for by the CCP.
64.
▲
by
adwn
10mo ago
> Without knowing about specific compiler targets/settings this looks reasonable. But we do, armv8-a clang 21.1.0 with O3 , and it doesn't. > […] but smart on the lowest common denominator. No, that would be the single
65.
▲
by
adwn
10mo ago
> this looks optimized to me. It's not. Why would lsl+csel or add+csel or cmp+csel ever be faster than a simple add? Or have higher throughput? Or require less energy? An integer addition is just about the lowest-latency operation
66.
▲
by
adwn
11mo ago
> You guys seem to be assuming transpiling to C means it must produce C that DTRT on any random C compiler invoked any which way on the other side, where UB is some huge possibility space. Yes, that's exactly what "translati
67.
▲
by
adwn
11mo ago
For one, signed integer overflow is allowed and well-defined in Rust (the result simply wraps around in release builds), while it's Undefined Behavior in C. This means that the LLVM IR emitted by the Rust compiler for signed integer
68.
▲
by
adwn
11mo ago
> But he is not complaining that we use the Gregorian calendar. Yes, he is: >>> Yet this "world" history uses Europe's reference point [of BC/CE] as universal. It wouldn't make sense to use any other
69.
▲
by
adwn
11mo ago
The Gregorian calendar is the de-facto global calendar system today, even in cultures and states that are far removed from its Christian and European roots. You might as well complain about the text on the website being in English.
70.
▲
by
adwn
11mo ago
What you're describing is called the "Actor model"; in your example, the receiver is an actor that has exclusive control over all bank accounts. The actor model reaches its limits as soon as you need transactions involving tw
71.
▲
by
adwn
11mo ago
Dude, it's a simplified example, of course you can poke holes into it. Here, let me help you fill in the gaps: let mut object = prepare_generic_entry(general_settings); let mutable_msg = object.msg.get_mut(); do_specific_
72.
▲
by
adwn
11mo ago
The 1-byte-per-mutex parking_lot implementation works even on systems that don't provide a futex syscall or equivalent.
73.
▲
by
adwn
11mo ago
> avoid the use of mutex […] It turns out it is always possible How would you handle the archetypical example of a money transfer between two bank accounts, in which 100 units of money need to be subtracted from one account and atomica
74.
▲
by
adwn
11mo ago
> […] but don't cover the use cases of all users. No single concurrency primitive covers all use cases. I was addressing your misconceptions about mutex performance and overhead, not whether mutexes are the best solution to your
75.
▲
by
adwn
11mo ago
Cache contention is (mostly) orthogonal to your locking strategy. If anything, fine-grained locking has the potential to improve cache contention, because 1) the mutex byte/word is more likely to be in the same cache line as the data
76.
▲
by
adwn
11mo ago
When you construct an object containing a mutex, you have exclusive access to it, so you can initialize it without locking the mutex. When you're done, you publish/share the object, thereby losing exclusive access. struct En
77.
▲
by
adwn
11mo ago
Your view on mutex performance and overhead is outdated, at least for the major platforms: The Rust standard library mutex only requires 5 bytes, doesn't allocate, and only does a syscall on contention. The mutex implementation in the
78.
▲
by
adwn
11mo ago
I just vouched for a few of them, maybe that's why.
79.
▲
by
adwn
11mo ago
Just a heads-up: you seem to be shadow-banned, all your comments are auto-dead.
80.
▲
by
adwn
11mo ago
> I tend to agree with you that putting a fixed sail on top of a container vessel won't fly. Of course it won't, it's not an airplane.
81.
▲
by
adwn
11mo ago
Show your work. Without numbers, those are all just assertions. And the assertion that the world's economies were more globalized before WW1 than after the Cold War is particularly dubious.
82.
▲
by
adwn
11mo ago
People believed this before. Then WW1 happened. 100 years later, people forgot the lessons of the past, and believed this again. Then Russia invaded Ukraine.
83.
▲
by
adwn
11mo ago
> Maybe certain people shouldn't be so quick to call other people fascists […] Nobody did that here, though.
84.
▲
by
adwn
1y ago
Julian Klode is not a corporation, though, so we should give him the benefit of a doubt.
85.
▲
by
adwn
1y ago
That's no problem in Rust. You can have a Speed type and a Time type, and define the multiplication operator over them to return a Length value. In fact, there's already a library which does exactly that, with tons of prede
86.
▲
by
adwn
1y ago
One more thing: Nowadays sort() functions ary usually heavily optimized and recognize already sorted subsequences. If currentQueue isn't modified during the loop, then the sort() call should run in O(n) after the first iteratio
87.
▲
by
adwn
1y ago
I'm confused: Does top.execute() modify currentQueue in some way, like pushing new elements to it? If it doesn't, then why not simply move the sort out of the loop? This is simpler and faster than maintaining a binary heap.
88.
▲
by
adwn
1y ago
This might be a parody project, but in case it's not: > No zombie threads Is this a problem in need of a solution?
89.
▲
by
adwn
1y ago
I believe you. But not everyone is an autodidact. Most people, for whom becoming an electrician or plumber is the best option among all viable careers, do not have the discipline, aptitude, and intelligence to learn the theoretical and pr
90.
▲
by
adwn
1y ago
Have you considered that the second path you outlined, "giving your body to a master tradesman to get a piece of paper over many years" (in the figurative sense), is in general a necessary prerequisite to avoid the first path of
More ›