Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eklitzke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
eklitzke
3y ago
Why not just use JSON for everything? Why isn't /etc/passwd JSON?
92.
▲
by
eklitzke
3y ago
You can compile code with -fwrapv and for most programs the overhead is minimal (the exception being that if you're writing number crunching code, the overhead is going to be huge). For my personal projects I have -fwrapv as part of th
93.
▲
by
eklitzke
3y ago
I'm really curious if this feature will be compatible with cpusets on Linux, which can be used to restrict which CPU cores tasks in a given cgroup can be scheduled onto.
94.
▲
by
eklitzke
3y ago
As soon as someone uses a POP or IMAP client to fetch all of their mail your server is going to catch on fire. Even if you had POP/IMAP disabled, the computation costs to decode data are enormous with this method, which is precisely wh
95.
▲
by
eklitzke
3y ago
https://archive.is/Oa6RP
96.
▲
Driverless Taxis Can Expand San Francisco Services, Regulators Say
(nytimes.com)
3 points
by
eklitzke
3y ago
|
1 comments
97.
▲
by
eklitzke
3y ago
Extension in this context basically just means new registers/instructions that didn't exist on a 386. Even floating point support on x86 is technically an extension. SSE (which adds the xmm registers) has existed on all x86 CPUs m
98.
▲
Aerodynamics of a Cow [video]
(youtube.com)
6 points
by
eklitzke
3y ago
|
2 comments
99.
▲
by
eklitzke
3y ago
According to the article, the original motivating problem posed by Terence Tao is to develop an algorithm that deterministically generates an N-digit prime in polynomial time. The article says of the new algorithm: >The algorithm works f
100.
▲
by
eklitzke
3y ago
I think it's also worth mentioning that for certain specific use cases coroutines are much more efficient than a full goroutine, because switching to/from a coroutine doesn't require context switching or rescheduling anything
101.
▲
by
eklitzke
3y ago
As to why they're not always called directly, imagine some code like this: int FooWithoutChecks(void *p); int Foo(void *p) { if (p == NULL) return -1; return FooWithoutChecks(p); } In general the calle
102.
▲
Gerum Cloak
(en.wikipedia.org)
3 points
by
eklitzke
3y ago
|
0 comments
103.
▲
by
eklitzke
3y ago
Even just formatting something as a string will likely require memory allocation for all but the most trivial cases, and memory allocation is not side effect free.
104.
▲
by
eklitzke
3y ago
People complain about the breadth of C++, but the reality is that you don't need to adopt new versions, and regardless of what version you use when compiling code you should have an internal style guide dictating what features are perm
105.
▲
by
eklitzke
3y ago
You can't really regression test a model this way because the training output isn't stable. Instead you have a huge test suite (you could even think of it more as an eval benchmark) and you try to make a determination of whether i
106.
▲
The Hometown of San Francisco's Drug Dealers
(sfchronicle.com)
3 points
by
eklitzke
3y ago
|
0 comments
107.
▲
by
eklitzke
3y ago
Realistically there is only so much optimization a compiler can do without having execution profiles of code. There is a HUGE amount of optimization a compiler can do if it knows how likely various branches are to be taken. For example, con
108.
▲
by
eklitzke
3y ago
It's kind of a weird argument to make because the last glacial period was something like 115kya to 12kya. So it's likely the case that any day in the last 10k years is hotter than all the days in the last ~100k years glacial per
109.
▲
by
eklitzke
3y ago
Seems reasonable considering that the cheapest 10G switches cost about as much as a NUC.
110.
▲
by
eklitzke
3y ago
If I understand this correctly, it's RDMA for GPU/accelerator memory.
111.
▲
by
eklitzke
3y ago
Rearranging branches (and perhaps blocks too?) will definitely be done if you are building using FDO, because without FDO (or PGO) the compiler has no idea how likely each branch is to be taken. Cmov can also be enabled by FDO in some cases
112.
▲
by
eklitzke
3y ago
Actually deserts can be quite windy, especially deserts near the ocean. Wind forms when there's a pressure differential, and the most common reason for a large pressure differential is when there are two adjacent areas with a significa
113.
▲
Moon Phases in the Lord of the Rings
(shire-reckoning.com)
4 points
by
eklitzke
3y ago
|
0 comments
114.
▲
by
eklitzke
3y ago
I made this exact career transition, the first ~10 years of my career were doing backend development at web companies (mostly Python, but later Go) and I switched to working in C++ in the autonomous vehicles industry. The key is really just
115.
▲
by
eklitzke
3y ago
With a bit of luck he could get an internship on an SRE team supporting ads data pipelines at Google.
116.
▲
Plan 9: Expanding Your Grid (2013)
(9p.io)
21 points
by
eklitzke
3y ago
|
2 comments
117.
▲
by
eklitzke
3y ago
I think the HN title is incorrect, the title in the linked post just says C++17, not C17. Likewise, the JEP doesn't really mention C other than in passing, and the OpenJDK code I've looked at myself is all written in C++, so AFAIK
118.
▲
by
eklitzke
3y ago
They're not "poorly written", the fact that you don't need to do any locking in C/C++ code is part of the existing Python API. Right now when Python code calls into C/C++ code the entire call is treated as if i
119.
▲
by
eklitzke
3y ago
It's a cool idea but I don't see how this is a viable long term solution, even if done at a large scale. Global oil production is on the order of 90M barrels/year, each barrel contains about 300 lbs of oil, so we're curr
120.
▲
by
eklitzke
3y ago
I think you're confusing proving that the hash function is collision resistant with the other goal which is hashing speed. If you really need a collision resistant hash you need to use a cryptographic hash function, but outside of cryp
More ›