Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tialaramex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
91.
▲
by
tialaramex
2mo ago
Fuel taxes are a good idea in principle but they're very easy to fiddle with as a popularity hack, and so like the US "Debt Ceiling" they become a useless political football. UK governments routinely announce that they are &q
92.
▲
by
tialaramex
2mo ago
C's union (and the one in Rust or C++) is a kind of user defined type that's literally just either A or B. It does not know whether it's an A or a B, ensuring you achieve type safety (not using it as an A when it was actually
93.
▲
by
tialaramex
2mo ago
There's also always a "strictness" curve. Rust has specific rules where you could write something which doesn't break those rules but does break people who've done something very specific At some point you reach the
94.
▲
by
tialaramex
2mo ago
> The thing I really want is a language or environment with no implicit access rights I don't think you'll find anything like that from a General Purpose Language, so you probably want something like WUFFS [Wrangling Untrusted
95.
▲
by
tialaramex
2mo ago
This is an easy mistake to make but it's not what happened Programmers already knew (~20 years ago) when the C++ move feature was designed that what people want is the destructive move assignment semantic, the thing Rust has today. O
96.
▲
by
tialaramex
2mo ago
It's justice. The only sensible way to respond to "We've decided that your Office is above the Law" is to kill the people who made that decision. Most likely the remaining Justices have you incarcerated for murder, becau
97.
▲
by
tialaramex
2mo ago
Gerrymandering can help Republicans in the lower chamber† but it can't help in the Senate where they're most scared. Every voter in Texas gets to decide whether to pick Ken Paxton or James Talarico and perhaps more importantly if
98.
▲
by
tialaramex
2mo ago
It does feel as though the best chance the US had to fix this in living memory would have been if Biden's response to the "United States v. Trump" verdict had been to immediately execute the Justices who said that's fine
99.
▲
by
tialaramex
2mo ago
I think the mess you'll get with too much "Handmade" / Casey style ZII is actually slightly worse than if you lean too hard on RAII but it may well be less visible and so you don't notice. For video games you can ge
100.
▲
by
tialaramex
2mo ago
No. Bjarne's C++ 20 Concepts are basically duck typing, you can express that you want a type where we can call the "is_gonzo" function but you can't say that you only want values of that type in which it's true. O
101.
▲
by
tialaramex
2mo ago
You would absolutely be entitled to write a contract which says there are never I/O problems. It could even make sense in some cases, though often not.
102.
▲
by
tialaramex
2mo ago
Suppose your function doodle_widget is supposed to take a Gonzo Widget, but you're worried somebody might call it with a Non-Gonzo Widget and that can't work. Traditionally you write code which checks the Widget to see if it'
103.
▲
by
tialaramex
2mo ago
And at some point in hindsight it will be obvious what fractions of problems were A. This technology is inherently crap, that's our fault B. A bored teenager broke it. Bored teenagers are a thing, it literally doesn't matter which
104.
▲
by
tialaramex
2mo ago
I already replied to this, but I think it's worth explaining why you can be building more coal plants and yet burning less coal. Rather than try to guess from our high level data about China I'm going to explain more generally h
105.
▲
by
tialaramex
2mo ago
> Was it just a product of time? Same reason that nobody did the Fosbury Flop at the 1948 Olympics - Dick Fosbury hasn't shown this technique yet and it's not obvious if you've never seen it that this is a better way to
106.
▲
by
tialaramex
2mo ago
Presumably `string_view` is referring to C++ std::string_view ? It's not holding an "offset", it's a fat pointer, (ptr,len) or possibly (start,end) You're imagining this as (string_ptr,offset,len) but that's 50
107.
▲
by
tialaramex
2mo ago
They don't understand FPTP. I used to assume that under FPTP More votes beats Less votes the idiots will go OK, we lost. But it became apparent that instead they go "If the person I voted for doesn't win then it's rigged
108.
▲
by
tialaramex
2mo ago
Yeah, frame stutter is definitely one of the cases where somebody may end up targeting a proxy and that saying about targets happens as expected. A game which typically hits 50-60fps but has occasional half second stutters may not fix the s
109.
▲
by
tialaramex
2mo ago
By "inflected by..." I'm suggesting that Structured Programming has altered how you write assembler even though of course assembler doesn't inherently provide that structure. When you need to do X here and there, you wri
110.
▲
by
tialaramex
2mo ago
You probably have a point on linear search for assets (I haven't checked but I've assumed you're right about how it works in the released source) There are some tradeoffs here, my instinct would be to bring hash tables into p
111.
▲
by
tialaramex
2mo ago
Animal Well is a great game, there's a lot in there and I appreciate it when a game is deep rather than big but I don't see much connection there. Maybe it's like how "Maze: Solve The World's Most Challenging Puzz
112.
▲
by
tialaramex
2mo ago
Sure, but the biggest reason to direct anybody to these videos is that they should actually make that video game they want to make, not just think about it - and so the fact that Handmade Hero just trails off and doesn't end up produci
113.
▲
by
tialaramex
2mo ago
Never as in, in BASIC, or you've never seen goto in C? The de-fanged C "goto" is all over the place in Linux and in similar close-to-metal C software. C does not (yet, likely C2Y will fix this) have labelled break, so goto is
114.
▲
by
tialaramex
2mo ago
COMMAND.COM in its batch mode? Kinda, sorta. The interpreter can AIUI "call" other files but the "goto" is restricted to the same file. So we can jump over a variable declaration which is pretty confusing, but we can
115.
▲
by
tialaramex
2mo ago
When "Estimating the theoretical maximum" you're going to bring your assumptions to that estimate and so you're equally likely to get stuck in some local optimal point because you didn't see what else was possible,
116.
▲
by
tialaramex
2mo ago
First I think I'd want to see you identify a superior algorithm known when Doom shipped and then we can have that discussion about who's credentials should be disqualified.
117.
▲
by
tialaramex
2mo ago
It's not the focus of the talk and so it's hard to tell if Casey understands (the choice to separate the words GO TO in several places suggests he does) but the `goto` keyword you've seen in several modern languages is not th
118.
▲
by
tialaramex
2mo ago
> The problem is knowing what to measure. This can be a problem, but much less so because so often we're doing "easy mode" where we don't need a proxy. The "it ceases to be a good measure" is because you
119.
▲
by
tialaramex
2mo ago
tl;dr the saying is that "premature optimisation is the root of all evil", and Casey burrows into contemporary data to show that really although the claim was 3% of the code takes up 90% of the runtime even then it was more likely
120.
▲
by
tialaramex
2mo ago
To take my mother as an example she hadn't thought about it properly at all. She was surprised that her daughter (my sister) had voted Remain because apparently my mother who knows about the EU funding which enabled what my sister did,
More ›