Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
601.
▲
by
haberman
6y ago
Thanks, I appreciate it!
602.
▲
by
haberman
6y ago
> Here's an example of a minimal makefile: Your example does not contradict what I wrote. You manually specified the tool to be run ($CC) and all of the arguments to that tool. It's true that there is a level of indirection thr
603.
▲
by
haberman
6y ago
Makefiles operate at a low level of abstraction. The Makefile abstraction is "run this command when the output files don't exist or are older than the input files." You manually specify every tool to be run and all of its a
604.
▲
by
haberman
6y ago
memcpy() by itself cannot violate aliasing rules. By definition, char can alias any object. Whether you can access an object that has been memcpy()'d into is a separate question. I can't find specific language about this, but I s
605.
▲
by
haberman
6y ago
The latest optimized version of the protobuf parser does a remarkably similar thing: https://github.com/protocolbuffers/protobuf/blob/master/src/... Protobufs are full of varints, and we want to per
606.
▲
by
haberman
6y ago
I really agree with this in concept. It's frustrating to me that in practice, Homebrew wants to own /usr/local: https://docs.brew.sh/FAQ#why-does-homebrew-prefer-i-install-...
607.
▲
by
haberman
6y ago
The unstated assumption that these figures are per server was not obvious to me. Your assumptions about my motives are incorrect and inappropriate.
608.
▲
by
haberman
6y ago
> It may sound obvious, but - optimizing your app to fulfill a request in 1/10 the time is like adding 9 servers to a cluster. Optimizing to 1/100 the time (reducing requests from say 1.5 sec to 15ms) is like adding 99 servers.
609.
▲
by
haberman
6y ago
What kinds of tasks require two levels of containers?
610.
▲
by
haberman
6y ago
My understanding is that the shooter is not clearly identifiable, but people that night were bragging on Twitter about the "beautiful shot placement" by "security on the ground": https://twitter.com/EffI
611.
▲
by
haberman
6y ago
Enough with the "You obviously don't live in Seattle." The event described by _iyig really did happen and was described accurately (except the "high on pills" part, I haven't seen any report of that, news I sa
612.
▲
by
haberman
6y ago
We will never know whether any of Trump's wrongdoing rises to the level necessary to convict, because the Senate decided not to call any witnesses or subpoena any documents.
613.
▲
by
haberman
6y ago
> Data may only be kept (passed) in BEAM registers between instructions. > This may seem silly, aren’t machine registers faster? > Yes, but in practice not by much and it would make things more complicated. My understanding is that
614.
▲
by
haberman
6y ago
I think Poplar and Aspen are particularly notorious for this. I just had to cut down a 50 foot Aspen in a small-ish backyard because it had started rotting and was becoming unsafe. No one warned us what was going to happen next. Within the
615.
▲
by
haberman
6y ago
The rationale for censorship of Greenwald's article is unconvincing, as that rationale is contradicted even by other people who agree with the censorship. As the story is already running elsewhere, it is unconvincing that there is a pr
616.
▲
by
haberman
6y ago
In this thread I am seeing both "this story is already running non-stop on Fox, there's no censorship", and "if the editors didn't censor this, it would poison the election, and that's too big of a risk."
617.
▲
by
haberman
6y ago
> How could you honestly take this position? What position do you mean? Your comment is not replying to anybody. I don't see anybody in this thread who is arguing that we should do nothing.
618.
▲
by
haberman
6y ago
I'm ok with an escape hatch. I'm even ok with a strong convention. My primary concern is that there is a clear contractual line between "reading/writing this is supported" and "you're on your own."
619.
▲
by
haberman
6y ago
Very interesting set of observations. As a C and C++ programmer, I am feeling more and more excited about Zig. One thing that feels missing from Zig though is encapsulation. I don't believe that you can declare struct fields private, s
620.
▲
by
haberman
6y ago
If the data could be used against you, you should also have access to the data so it could be used to support your case. When there is asymmetric access to data, it's inherently unfair because the side with greater access will cherry-p
621.
▲
by
haberman
6y ago
Sure, if you use less GC, then the penalties of GC are minimized. But that just reinforces the point that GC has a real cost. When you use less GC, you increase performance, but you also get fewer of the safety and convenience benefits of
622.
▲
by
haberman
6y ago
Note that in addition to the CPU overheads, the paper notes that Go's heap requires a factor of 2 to 3 of headroom to run efficiently: > A potential problem with garbage collection is that it > consumes a fraction of CP
623.
▲
by
haberman
6y ago
From the article: > Looking at the assembly, I find that the clang compiler generates sensible code on x64 processor, with simple jumps added when the overflow is detected. Meanwhile, GCC seems to call poorly optimized runtime library fu
624.
▲
by
haberman
6y ago
> Does any major software vendor support older versions of the ABI or machine code? The C++ Standards Committee has been prioritizing ABI compatibility at the cost of performance for the last decade or so (mostly in the standard library,
625.
▲
by
haberman
6y ago
Where does this end? What keeps this principle from extending to a President's entire term, as opposed to just the last year? If Democrats ever retake the Senate, why should they ever hold hearings for a single Republican judicial app
626.
▲
by
haberman
6y ago
Maybe I should! I didn't know about the Pimax 8K. Will all of these have access to the same software titles, or are they built on closed or incompatible software ecosystems?
627.
▲
by
haberman
6y ago
As someone who only barely follows VR, what benefits would this have over the upcoming HP Reverb G2 besides price? I was eying the HP Reverb G2 for high resolution, and for its Microsoft Flight Simulator support. EDIT: ah I just found this:
628.
▲
by
haberman
6y ago
That's great, I'll look forward to seeing the arena-oriented code someday. :)
629.
▲
by
haberman
6y ago
Ah, in that case it sounds like heterogenous arenas are more or less a solved problem in Rust, even if they aren't necessarily 100% optimal. Probably the more difficult piece then is just how to model arena ownership of a tree of objec
630.
▲
by
haberman
6y ago
I work on the protobuf team at Google, and I'm a big fan of Rust, though I haven't written much actual Rust except a bunch of Project Euler solutions. For protobuf in C++, we've been moving more and more in the direction of u
More ›