Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tylerhou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
tylerhou
3y ago
This is not really a bug -- it's a natural consequence of supporting value semantics. The Go code var player Player otherPlayer := player otherPlayer.score = 0 has the exact same "bug." This isn't something th
122.
▲
by
tylerhou
3y ago
CEOs are also usually not allowed to take short positions in the company they head. Analogously, actors should not be allowed to short movie futures they act in.
123.
▲
by
tylerhou
3y ago
Take a look at Halide, which can autovectorize and multi-thread graphics computations (but does require a restricted language).
124.
▲
by
tylerhou
3y ago
If the short term goal is to finish a project by a deadline, just use vscode. Teach yourself vim and scp later.
125.
▲
by
tylerhou
3y ago
> It's different because by adopting C, Bentham prevents the mugger from mugging, which is a better world than one where the mugger goes on mugging. This assumption is wrong. You are assuming that the mugger is also a utilitiarian,
126.
▲
by
tylerhou
3y ago
The point is, to a utilitarian, it’s a finger, because part of the setup is that the “mugger” won’t use their finger for bad things in the future. Maybe not part of this specific dialogue, where the mugger repeatedly asks for rhetorical rea
127.
▲
by
tylerhou
3y ago
Professional philosophers understand that many arguments rely on intuition. But they need intuition to create basic premises. Otherwise, if you have no "axioms" in your system of logic, you cannot derive any sentences. Also, moral
128.
▲
by
tylerhou
3y ago
> if Bentham becomes an agent that goes for C, he also explicitly discourages the mugger How is this different from saying that if Bentham decides to not adhere to utilitarianism, he is no longer vulnerable to such a mugging? If Bentham
129.
▲
by
tylerhou
3y ago
It does have to do with utilitarianism — if you change the mugger to harming Bentham, the situation is different. In that situation, many other reasonable moral theories would agree with utilitarianism. In the original situation, where the
130.
▲
by
tylerhou
3y ago
USACO
131.
▲
by
tylerhou
3y ago
I think "unsupported" here clearly does not mean a legal obligation to support, but rather "support" in the sense that in the free software community, it is convention for developers to provide help to (nonpaying) users,
132.
▲
by
tylerhou
3y ago
This isn't just for chess -- it's practically any knowledge task that you can build expertise in. E.g. take programming. Suppose I sat down an experienced programmer and a novice and gave them the same small (~10-20 line) function
133.
▲
by
tylerhou
3y ago
On the other hand, over the last 5 years, I’ve had my eyes examined 4 times at 2 different places (two at one, two at the other) and every time my prescription has been the exact same (modulo slight changes to my astigmatism angle, which is
134.
▲
by
tylerhou
3y ago
If you’ve ever read students’ writing, you’d immediately understand why these rules exist. Many students can’t get the basics down — and their writing is borderline illegible. How are they supposed to master content when they can’t master f
135.
▲
by
tylerhou
3y ago
For a strictly increasing array, assuming the branch predictor always predicts correctly (guesses taken), the CPU does not have to wait for the test to resolve (v > maxV) before it executes the assignment (maxV = v). So effectively the C
136.
▲
by
tylerhou
3y ago
Nit: If a variable/object is only being written, that’s fine. There is a data dependency here because there is a read after a write. I don’t have enough compiler knowledge to be able to definitively answer your question, but I think it
137.
▲
by
tylerhou
3y ago
I don't know if I would classify it as a bug, but definitely a heuristic that could use tuning. At least (at a high level) in LLVM, branches and cmovs are represented with the exact same construct, and one of the codegen passes looks a
138.
▲
by
tylerhou
3y ago
https://news.ycombinator.com/item?id=36623759
139.
▲
by
tylerhou
3y ago
"Conditional move is slow" is not the right takeaway. (In fact, conditional move can be much /faster/ than a branch in certain circumstances (e.g. hard-to-predict branches, like binary search).) The reason why this code
140.
▲
by
tylerhou
3y ago
Before the username change, to keep my discriminator. Now the main reason is better stream quality — I stream games to my friends often. Also, in general, I think it’s good to support companies whose (otherwise free) software I use. Maybe i
141.
▲
by
tylerhou
3y ago
> This leads to a problem when e.g. taking i8 elements [3;7) and reinterpreting as an i32 array. Even ignoring alignment issues, this is already UB because it violates the strict aliasing rule. You technically need to memcpy and hope tha
142.
▲
by
tylerhou
3y ago
The C abstract machine isn't a physical machine, so temperature is not a side effect :)
143.
▲
by
tylerhou
3y ago
The author, Russ Cox, was one of the inventors of Go.
144.
▲
by
tylerhou
3y ago
If you define garbage in the conventional way — “objects that can never be reached from any GC roots” — determining what objects are garbage only takes linear time (tracing)… Reference counting helps the tracing phase out by pruning objects
145.
▲
by
tylerhou
3y ago
For string related stuff — there’s not much in the stdlib that can replace the stuff in abseil. (Haven’t looked at Dawn in particular, though.) E.g. absl::StrFormat — no equivalent until std::format was standardized in C++20. absl::StrCat:
146.
▲
by
tylerhou
3y ago
100g of popcorn is not the same as 100g of chips.
147.
▲
by
tylerhou
3y ago
I didn't know about the history, thanks for sharing! (j = downarrow was a mnemonic I used while learning vim.)
148.
▲
by
tylerhou
3y ago
j goes down because it looks like a down arrow.
149.
▲
by
tylerhou
3y ago
In the sense that, his strength and stature are probably not genetically heritable as they aren’t encoded into his genes (although I don’t know my Marvel lore).
150.
▲
by
tylerhou
3y ago
You can but it’s not common either (across orgs).
More ›