Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcranmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
jcranmer
5d ago
Where is the power of the state involved here?
2.
▲
by
jcranmer
7d ago
I'd word it slightly differently, as something like the Allocator Effect System obsession. It's not so much that allocator tricks don't have a role in modern software--all of the large applications I've worked on rely on
3.
▲
by
jcranmer
7d ago
That doesn't really fix anything. The filesystem is fundamentally a racy shared data structure. If you made the entrypoint API synchronous, any half-way decent editor would shove the LSP queries to the synchronous API into a different
4.
▲
by
jcranmer
8d ago
jEdit uses BeanShell and appears to still be alive.
5.
▲
by
jcranmer
8d ago
The C/C++ memory model starts with Java's data-race free memory model, but makes data races fully UB. Atomics are introduced into C/C++ that allows fine-grained definition of synchronization, with four different models of ato
6.
▲
by
jcranmer
8d ago
Binary floating-point numbers are scientific notation except the pieces are all in binary. In proper scientific notation, the only time the digit before the decimal point can be 0 is when the number itself is 0. Since the only other digit i
7.
▲
by
jcranmer
8d ago
If you use -ffast-math when linking an executable but not a shared library, both gcc and clang will link in crtfastmath.o which has the bit of code to set the DAZ/FTZ flags.
8.
▲
by
jcranmer
8d ago
No, they don't. x86 is a superscalar processor, and it does what all superscalar processors do--translate the instructions into µops for execution and dispatch to the various execution units, with the µops not being 1-1 with the origin
9.
▲
by
jcranmer
8d ago
DOS interrupts, for starters.
10.
▲
by
jcranmer
9d ago
C added it to the C2y draft about a year ago (so not in any actual released version of C). C++ is still working on adding it to the C++ draft.
11.
▲
by
jcranmer
11d ago
Venezuelan oil production has declined by about half since Chavez took power. Given the losses they suffered from expropriation, the oil majors aren't particularly keen on returning to Venezuela without stronger guarantees, and oil exe
12.
▲
by
jcranmer
11d ago
I can't read the article either, but my understanding of the various factors is this: * Houthis have taken control of all of the Yemeni coastline along the Bab-el-Mandeb Strait (and an island in the middle of it), which gives them the
13.
▲
by
jcranmer
12d ago
I've seen two theories as to what's going on. One is the theory you've espoused, that AI companies are trying to do regulatory capture. The other theory is that they're starting to worry about running out of cash, so the
14.
▲
by
jcranmer
14d ago
> But for a compiler to target, it's just so painful. It's so different from almost all other ways CPUs work. There's a reason both CPU and compilers prefer to avoid x87 when possible and use regular SIMD (SSE/AVX) in
15.
▲
by
jcranmer
14d ago
> Elsewhere on HA you’ll find my extended rant about how strange it is that we don't have a language that elegantly abstracts computation over threads, SIMD, GPUs etc. Compilers can do this sort of thing now, just not optimally. Aut
16.
▲
by
jcranmer
15d ago
VLCCs are too large to fit through the Suez Canal. I don't know how much of Saudi export is using VLCCs versus Suezmax or smaller tankers, but I've heard that much of the Red Sea oil export is currently going through Bab al-Mandab
17.
▲
by
jcranmer
16d ago
Newspapers are not above printing rumors. See, e.g., Barak Ravid regularly reporting in Axios the impending ceasefire negotiation progress in the Iran War, which largely have failed to come to pass.
18.
▲
by
jcranmer
16d ago
> The advantage of being compatible to other languages is because if we would use a common ABI that many other languages also use: Ada, Go, D, etc. I have looked it up and I can already tell you that Go is not using the ABI you would be
19.
▲
by
jcranmer
17d ago
As a point of evidence in favor of this viewpoint: Multi-dozen car pileups aren't particularly rare, with the common cause for a lot of these being "one car hits an icy patch, hits another car, car behind them tries but fails to s
20.
▲
by
jcranmer
17d ago
An example showing nonequivalency is this: https://godbolt.org/z/PxP4vrfM1 Showing things that are optimized by fully inlining into one function don't actually demonstrate equivalency, because you end up omitting
21.
▲
by
jcranmer
17d ago
Okay, so you accept that nested functions have a different ABI than C++ lambdas. And it looks like you accept that neither ABI is going to change. So long as the two features have different ABIs, they cannot be compatible with one another.
22.
▲
by
jcranmer
17d ago
C++, C#, Java, JavaScript, Rust, Go, Julia, Nim, Zig. I'm shocked that you didn't even pick up Rust, given how frequently I mention it on the WG14 reflector.
23.
▲
by
jcranmer
17d ago
I can write the signature of the generated function of a C++ lambda as a C function. I cannot write the signature of a generated GCC nested function as a C function. If your argument is that ABI doesn't matter, then by all means, propo
24.
▲
by
jcranmer
17d ago
Yes, it does. The lambda still needs to follow the C++ object model in case someone might use it like a regular C++ object. It's possible to change the ABI with escape analysis that proves you know all of the uses of the lambda to chan
25.
▲
by
jcranmer
17d ago
No, there is an amount of legal reality built into it. With copyright and patents, once you obtain the intellectual property, you keep it for the rest of the term no matter what you do. But with trademarks, your actions (or inaction) can ca
26.
▲
by
jcranmer
17d ago
In the nested function, the variable x is passed in edi, and the pointer to the nested stack frame is passed in r10. In the lambda, the variable x is passed in esi, and the 'this' pointer for the lambda is passed in rdi. The funct
27.
▲
by
jcranmer
18d ago
> Generally this is a bit nicer than having explicit lambdas, but I thought the 'best-case' scenario would be if GCC saw into the stack layout of the calling function and could manipulate the calling functions stored stack vari
28.
▲
by
jcranmer
18d ago
The author has been trying to push for the inclusion of nested functions into the C standard, and a lot of the resistance comes from the existence of trampolines and all of the issues that causes. His response to those issues is... to basic
29.
▲
by
jcranmer
18d ago
I have yet to find a graph that shows the market share all the way back to the 1980s, but the market share isn't stagnant--Pepsi's market share has dramatically fallen (about half since 2000), while Coke's share has been pret
30.
▲
by
jcranmer
20d ago
Microsoft did attempt the EEE strategy against Java with Visual J++, but Sun slapped that attempt down and Visual J++ was always a pretty minor footnote. The end result of this effort was C#. I should note that the much more successful EEE
More ›