Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
celrod
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
celrod
3y ago
> As pressure from thread collisions increases, additional arenas are created via mmap to relieve the pressure. The number of arenas is capped at eight times the number of CPUs in the system (unless the user specifies otherwise, see mall
62.
▲
by
celrod
3y ago
Knights featured AVX512F and were best at heavily SIMD workloads. Sierra Forrest is bad at these jobs of workloads, lacking AVX512 and having only 16 byte execution units, so their AVX(2) throughput is also poor. They're thus going af
63.
▲
by
celrod
3y ago
Too bad Julia doesn't have this theoretical "well written GC". I do not like GCs, so I agree with OP's sentiment. Why solve such a hard problem when you don't have to? I don't find ownership models that difficu
64.
▲
by
celrod
3y ago
I don't think these are realistic. It does far worse than MKL in practice on Intel CPUs in my tests, especially if arrays are not huge.
65.
▲
by
celrod
3y ago
I would love to see a Snapdragon Elite X in a Framework.
66.
▲
by
celrod
3y ago
To be clear, this doesn't mean this scheduler itself runs faster. It means that the scheduler algorithm is better suited for gaming workloads, allocating your hardware more effectively. Of course, if the scheduler ran much slower so yo
67.
▲
by
celrod
3y ago
Chimera uses the scudo allocator, which is Ajay also the default on Android and Fuscia. Yet I can't find many benchmarks. Frustratingly, it's listed here, but not actually included in the results: https://github.com
68.
▲
by
celrod
3y ago
And only need it to compile to webassembly.
69.
▲
by
celrod
3y ago
If my signed integers overflow, that is wrong. I want to be able to detect if it ever happens, not have that be defined as perfectly valid wrapping behavior. If it's undefined, it's perfectly legal for the compiler to make overf
70.
▲
by
celrod
3y ago
`std::popcount` was added to the stl in C++20 https://en.cppreference.com/w/cpp/numeric/popcount
71.
▲
by
celrod
3y ago
Yes, just because you see SIMD instructions doesn't mean the code is fast. You need the correct instructions. Not relevant to this example, which is `popcount`ing only a single number, but AVX512 did also introduce SIMD popcount instru
72.
▲
by
celrod
3y ago
Another comment cited this Dan Luu article: https://danluu.com/keyboard-v-mouse/ Apparently a lot more claiming evidence exists than sharing of actual evidence. One of the few things shared was a pseudoscientific expla
73.
▲
by
celrod
3y ago
I have never seen him speak, but odd that an example of him faking it is supposed to make him seem genuine?
74.
▲
by
celrod
3y ago
Depending on which STL you use, there may also be assertions you can enable, e.g. via defining _GLIBCXX_ASSERTIONS https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros...
75.
▲
by
celrod
3y ago
https://www.anandtech.com/show/21112/qualcomm-snapdragon-x-e... Qualcomm's upcoming Nuvia chips apparently do quite well on geekbench also (but unlike the 7945hx3d, aren't yet available).
76.
▲
by
celrod
3y ago
If any of my family members are secretly killers, I would not feel bad about them getting caught... But I would feel bad if, e.g., insurance premiums were to go up because I had inherited risk factors for some costly diseases.
77.
▲
by
celrod
3y ago
I like integer overflow being UB. Makes it easier to check for by enabling a sanitizer. With it being defined as wrapping, it would be illegal for overflow to cause a runtime trap. Of course, rust mandates the trap on debug builds, which i
78.
▲
by
celrod
3y ago
I tried gcc, clang, msvc, and icc. They all generated the load and either an add or an inc. https://godbolt.org/z/han78n9zM If we define `f` to const_cast away the const and add 10: https://godbolt.org/
79.
▲
by
celrod
3y ago
Unfortunately, `x` does escape, merely because we initialized it via assigning to it from a non-const.
80.
▲
by
celrod
3y ago
I edited to add a godbolt link, but repeating here: https://godbolt.org/z/7vre49xb1 In my example, even though `x` is a `const` local, the assembly still shows that it reloads `x` and adds `1` if we assign to it from a
81.
▲
by
celrod
3y ago
It's unfortunately easy to defeat this, e.g. int y = 42; const int x = y; is enough, even though `x` is still a `const` local variable. https://godbolt.org/z/7vre49xb1
82.
▲
by
celrod
3y ago
[Deleted - responded to the wrong comment. I meant to respond to IAmLiteralyAB.]
83.
▲
by
celrod
3y ago
We supposedly consume about 100 watts at rest. Given that my flops are low (less than one!), I don't think I'm an efficient processor. At least for floating point operations. Producing paper and ink cartridges isn't free, e
84.
▲
by
celrod
3y ago
Emacs-eat is supposed to work on windows, and may give you a faster e-shell. Note that you can use things like `pcomplete` and `eshell-syntax-highlighting` to make eshell fairly smart. The fact that my shell can use corfu and the same compl
85.
▲
by
celrod
3y ago
This is extremely helpful when hunting for type instabilities. `@code_warntype` and `Cthulhu.@descend` can both show `SomePackage.foo` was inferred as `Any`. But why? Cthulhu lets you immediately descend, and see that it's because it c
86.
▲
by
celrod
3y ago
Doesn't scale to large projects and your dependencies. Requiring `map` to be type stable when calling dependencies is a maintenance nightmare in Julia.
87.
▲
by
celrod
3y ago
> Strong typing is a hill I'm willing to die on, and at Svix we encode everything we humanly can in the type system. Let the compiler catch our mistakes... After years of writing Julia (dynamic) and C++ (static), I'm willing to
88.
▲
by
celrod
3y ago
The nice thing about integer overflow being UB is that UBsan (or even compiler flags without it) can make it throw, so it's easy to catch. Defining it as wrapping means you still have bugs, they're just harder to catch. Define it
89.
▲
by
celrod
3y ago
Every new C++ standard introduces new things that will not work under an old standard. Not breaking backwards compatibility means that code for old standards should generally still work if recompiled. Not breaking ABI means it should still
90.
▲
by
celrod
3y ago
Fedora is better at keeping packages up to date than Arch. In particular, Fedora is much quicker to adopt the latest compiler toolchain releases.
More ›