Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
moregrist
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
moregrist
3y ago
I’m sure that was part of the motivation, but it was taught to me as “readers often stop reading after one or two grafs, so put the most important information up front.” It ends up working so that both pressures apply the same way: reverse
242.
▲
by
moregrist
3y ago
For a contrary point of view, I don’t think the Dragon book actually holds up that well. All of the front-end parsing stuff is good, but heavily biased toward LALR parsing, which is rarely used in production compilers these days because it’
243.
▲
by
moregrist
3y ago
I think the only thing I’m assuming here is that there are people who want to do the work. Perhaps because it’s fun to write a compiler (it is!), or because they don’t view llvm as the pinnacle of compiler technology, or maybe their employe
244.
▲
by
moregrist
3y ago
> Your sentiment is a commonly expressed one, but not usually by people who have adopted Rust. Perhaps because it’s currently not possible in Rust, so users don’t really see the advantages yet. Multiple implementation are always a good t
245.
▲
by
moregrist
3y ago
I’m stunned that this article exists and was published by Microsoft. Unsafe access to either is clearly undefined behavior. Discussing which one is more or less undefined is like discussing whether it’s safer to run with scissors or a knife
246.
▲
by
moregrist
3y ago
Unfortunately tsan is a pretty big performance hit (5x-15x with 5x-10x increase in memory) and has a non-zero false positive rate. So it’s not a “use almost always during development thing” like the address sanitizer is. That said, it’s can
247.
▲
by
moregrist
3y ago
No hiring process is perfect, but when your company’s hiring process is more complicated than my college admission process, it’s a bad sign. If I wanted this I’d have stayed in academics, with its 20-page CVs and multiple statements of purp
248.
▲
by
moregrist
3y ago
Please define “normal”. Normal C++ for me runs the gamut of looking a lot like C to be a template metaprogramming monstrosity. Almost all C++ code interacts with bare pointers at some point. And that’s just one of the places where you get
249.
▲
by
moregrist
3y ago
It transfers money from grant funds into the University general fund, where it can be used for other purposes, like paying for less lucrative departments and administrative salaries. More or less, this plus the ph.d. student’s stipend is th
250.
▲
by
moregrist
3y ago
As a different perspective: I end up writing a fair bit of code that involves data structures and algorithms. Runtime complexity does come up in my line of work, and I've definitely had to solve a couple of issues related to code bein
251.
▲
by
moregrist
3y ago
> They could just ignore leetcode and ask puzzle problems instead to test ability. One of the hiring fads before leetcode was to ask puzzle questions, with a heavy emphasis on Fermi questions and trick questions. These had the same fail
252.
▲
by
moregrist
3y ago
Whenever I’ve profiled compile times, parsing accounts for relatively little of the time, while the vast majority of the time is spent in the optimizer. So at least for my projects it’s a modest (maybe 10-20%) speed up, not the order of mag
253.
▲
by
moregrist
3y ago
Grueling rounds of leetcode interviews and system architecture questions doesn’t exactly select for either common sense or detailed knowledge of either human nature or even retail.
254.
▲
by
moregrist
3y ago
Being paid tip-dollar isn’t the biggest motivating factor for most people. Feeling like you’re undervalued or being taken advantage of? That’s a huge factor in someone leaving. Being paid substantially under market? I would feel both under
255.
▲
by
moregrist
3y ago
There’s a lot of C++ code out there and a lot that interfaces with C. RAII is one method of cleanup but it doesn’t work in all situations. One that comes to mind is detecting errors in cleanup and passing them to the caller. So it’s not ri
256.
▲
by
moregrist
3y ago
`char * const a` is a different type from `const char *a`. In the first, the variable `a` is const, but `*a` is not const. That is, you cannot change the value of `a` but you can change what it points to. In the second `a` is not const, but
257.
▲
by
moregrist
3y ago
> Doesn't this require a level of coordination between hirers that almost certainly doesn't exist? Except when it does. Remember when most of big tech had secret no-poach agreements to keep the wages of engineers down [1]? It w
258.
▲
by
moregrist
3y ago
You are describing a typical 1040EZ filing. I’m glad we’re in agreement that most people shouldn’t have to file this.
259.
▲
by
moregrist
3y ago
In contrast, there are a lot of systems out there designed to scale up really quickly, but never achieve the product-market fit to ever need this. All that engineering for scalability would have been better applied toward things to find the
260.
▲
by
moregrist
3y ago
Sure. But that's not what keeps systems written in COBOL or MUMPS. It's not what's kept the US air traffic control system running on 1970s-era hardware and software until very recently. Humans are perfectly capable of rewr
261.
▲
by
moregrist
3y ago
It’s hard to predict much about 10 years out, let alone 1000. But we keep expecting languages like COBOL and MUMPS to die, and they keep living on. I think there’s a almost 100% chance that 1000 years from now, when all that’s left of human
262.
▲
by
moregrist
4y ago
The problem with this line of thinking is that it's essentially doom-scrolling. It's especially bad because ChatGPT came along during an industry down-cycle. An interesting thought experiment is: if hiring was like 2021, would y
263.
▲
by
moregrist
4y ago
Yeah, I'm amazed that so many commenters on HN think that the technology, or even our understanding of things like "smarter & better looking" is anywhere near this level of sophistication. The sentence that really stood o
264.
▲
by
moregrist
4y ago
Exactly. These are all R&D tools and papers. I think the criticism is quite valid if you look at actual products. It’s also a fair criticism of most of big tech wrt AI, and a lot of AI/ML: there’s a lot of cool-sounding R&D, bu
265.
▲
by
moregrist
4y ago
You can, and your program will call std::terminate if there’s already an exception being processed. Not exactly desirable if you’re trying to write code that ensures careful resource cleanup. Also why it’s widely regarded as _wrong_ to ever
266.
▲
by
moregrist
4y ago
This is one of those half-true claims that C++ aficionados make, probably because they can play a bit fast and loose with resource cleanup in their particular situations. RAII simplifies some of the resource cleanup, but at a cost: if the r
267.
▲
by
moregrist
4y ago
I’m pretty sure that allowing companies to slip legal liability with a “might contain” which just result in boilerplate for all allergies which isn’t helpful to anyone. I’m glad your allergies aren’t so severe. But minimizing contact isn’t