Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eklitzke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
eklitzke
4y ago
The canonical build system for LLVM is CMake, but you can also build LLVM with Bazel now. That might give you a good idea of how to do it. The Bazel support code is in https://github.com/llvm/llvm-project/tree/
242.
▲
by
eklitzke
4y ago
I generally agree with this but one thing I will say is that if you work in a huge codebase with a lot of engineers, people are going to end up throwing all kinds of insane work loads into whatever thread pool you have. The old adage about
243.
▲
by
eklitzke
4y ago
I personally found that when implementing a thread pool just using a regular mutex/condition variable and std::queue was just as performant as boost::lockfree::queue, was a lot simpler, and introduced fewer dependencies. Also when usin
244.
▲
by
eklitzke
4y ago
The article has data showing that the number of access card swipes in buildings in downtown SF is 30% of what it was pre-pandemic. Whether or not the 10% statistic you cited is true, it's definitely not true in downtown SF.
245.
▲
by
eklitzke
4y ago
I agree and this article seems pretty misinformed. Creating and managing threads on Linux is extremely cheap, especially when a lot of them are idle, and a lot of big companies (Google, Facebook, Amazon) have tons of huge C++ applications t
246.
▲
by
eklitzke
4y ago
I generally agree with your sentiment here, but one thing I will point out is that this stuff isn't always totally transparent with AMD and Intel either. Intel and AMD release a lot of technical details about new and upcoming microar
247.
▲
by
eklitzke
4y ago
Lots of consumer hardware has AVX512 (I have an 11th gen Intel laptop CPU that has it). Regardless, Clang and GCC both support function multi-versioning where you supply multiple versions of a function and specify which CPU features each im
248.
▲
by
eklitzke
4y ago
It was an undergraduate research project.
249.
▲
Freestanding C++ Exceptions using Coroutines
(github.com)
3 points
by
eklitzke
4y ago
|
0 comments
250.
▲
Nonrecursive Lisp Reader
(github.com)
39 points
by
eklitzke
4y ago
|
9 comments
251.
▲
by
eklitzke
4y ago
Of course you should use reference counting for things that actually need to be reference counted, and there's a standard mechanism in C++ for doing this (std::shared_ptr). However it's really only appropriate to use std::shared_p
252.
▲
by
eklitzke
4y ago
To be precise, they're both "vectorized" in the sense that both versions are using SSE vector instructions (and in fact, Clang will even generate AVX instructions for the first version if you use -mavx2). The difference is
253.
▲
by
eklitzke
4y ago
Your point about branch prediction working better in a microbenchmark than in real code is true in some scenarios. But it's also the case that if the code is called infrequently enough in the real program that it doesn't get good
254.
▲
by
eklitzke
4y ago
My favorite thing about LLVM libc is that it's actually implemented in C++.
255.
▲
by
eklitzke
4y ago
The use case apparently is for sharing some memory region between thousands of processes, which has a lot of overhead because each process would normally need its own PTEs which add up. I agree this is really weird though, if you want thous
256.
▲
by
eklitzke
4y ago
Just to add to this, the reason these inference accelerators have become big recently (see also the "neural core" in Pixel phones) is because they help doing inference tasks in real time (lower model latency) with better power usa
257.
▲
by
eklitzke
4y ago
Let's say you're trying to train an model to predict if a patient has a cancerous tumor based on some imaging data. You have a data set for this that includes images from people with tumors and people without, from all races. Howe
258.
▲
by
eklitzke
4y ago
I think it's more likely the case that (a) most radiographers aren't trained in medical school to look for distinguishing racial features (why would they be?) and (b) in most cases the radiologist knows or can easily guess the rac
259.
▲
by
eklitzke
4y ago
This is exactly the API presented by LLVM ORC and gccjit, you feed in their IR/bitcode and they return to you a C function pointer. https://llvm.org/docs/ORCv2.html https://gcc.gnu.org/onlinedocs&#
260.
▲
by
eklitzke
4y ago
I'm skeptical of the claim that this would work at all even if there was a larger corpus. Let's say you had a million pages of classical Chinese text, but absolutely no context about what the text meant or was about. By looking at
261.
▲
LLVM Libc is implemented in C++
(github.com)
3 points
by
eklitzke
4y ago
|
0 comments
262.
▲
by
eklitzke
4y ago
Aliasing in the first example is well defined, so no UB in the first example. Aliasing in the second example would be undefined in the sense that the strict aliasing rules forbids the two pointer types to be aliased in the first place.
263.
▲
Bedside stuffed animals and borderline personality
(pubmed.ncbi.nlm.nih.gov)
2 points
by
eklitzke
4y ago
|
0 comments
264.
▲
The Lichess World Championship
(lichess.org)
38 points
by
eklitzke
4y ago
|
10 comments
265.
▲
by
eklitzke
4y ago
Why would this be the case? There are tons of tech companies (possibly even most?) that have more than 1000 employees at the time of IPO. As far as I know there are no limits on the number of shareholders for C-corps, private or not.
266.
▲
by
eklitzke
5y ago
From the article: > Intel stopped shipping the last vestiges of BIOS support in 2020 (as have other vendors, and Apple and Microsoft), so this is clearly the way things are heading - and therefore aligns with Fedora's "First&qu
267.
▲
by
eklitzke
5y ago
I'm not sure I understand. Let's say your SIM card has number X but you also use Google Voice number Y. If you buy flight tickets, you're probably going to give them number Y when you purchase your tickets. If a malicious sta
268.
▲
by
eklitzke
5y ago
I took about 12 months off from working and it was totally fine. When I started looking for work again most companies either didn't ask why I took the time off, or if they did I told them I just wanted to take some time off and they sa
269.
▲
by
eklitzke
5y ago
Some of these security/safety techniques are intended to be primarily used in debug kernels precisely because the overhead is too high. For example, the most recent kernel 5.17 added a feature called page table check which adds extra c
270.
▲
by
eklitzke
5y ago
Humans aren't that good at seeing in rain and fog either (which is why many people avoid driving or drive much more slowly in extreme rain and fog conditions), so saying robotic vehicles aren't good at driving in inclement weather
More ›