Viewing profile — mattnewport
mattnewport
HN member- Joined
- Thu, Nov 24, 2011, 6:32 PM UTC
- HN karma
- 3,559
- Public activity
- 856 items
- HN profile
- View on Hacker News ↗
About mattnewport
Recent public activity
-
comment
Comment #47948925
Ironic that they used an LLM to write the article: > 42.9 units of insulin from a single photo. That’s not a rounding error. That’s a potential fatality.
-
comment
Comment #47718672
It's ironic that the STL basically exists for stable sort (that's what Alex Stepanov was trying to create an efficient version of which led to most of the standard algorithms as bu…
-
comment
Comment #47533567
I think a better approach might be automated performance regression tests. That's checking the property you probably actually care about directly (performance) and leaves the compi…
-
comment
Comment #46776419
The disconnect is weird isn't it? The latest coding models can churn out a lot of mediocre code that more or less works if the task is sufficiently well specified, but it's not par…
-
comment
Comment #46721383
Yeah, you can even use tree-sitter to implement a language server, I've done this for a custom scripting language we use at work.
-
comment
Comment #46506624
Good article, thanks! Minor correction though, I think this is not quite correct: > The compiler computes the required size at compile time by summing the sizes of all locals (acco…
-
comment
Comment #46150437
That's not really "fooling" the optimizer, that's kind of the point of volatile. The optimizer not making optimizations is the intended behaviour.
-
comment
Comment #45733724
This might be true in the abstract but it's not true of actual compilers dealing with real world calling conventions. Absent inlining or whole program optimization, calling convent…
-
comment
Comment #45636220
> Are there any debuggers that let you look at intermediate results of pipelines without modifying the code? F# in the visual studio debugger does a pretty good job of this in rece…
-
comment
Comment #44749077
What's the basis for your claim that it is on an exponential growth trajectory? That's not the way it feels to me as a fairly heavy user, it feels more like an asymptotic approach …
-
comment
Comment #43667462
Big little cores like on mobile or some Intel processors are really not the same thing. The little cores have the same instruction set and address the same memory as the big cores …
-
comment
Comment #43441042
UI is also a sync problem if you squint a bit. React like systems are an attempt to be a sync engine between model and view in a sense. Multiplayer games too.
-
comment
Comment #42201240
- Sum types / discriminated unions - Pattern matching (arguably a more flexible and general way to do the type of thing you have in your number 4 if syntax)
-
comment
Comment #41610744
I use Zola, a static site generator written in Rust, and Github pages for hosting on my own domain.
-
comment
Comment #40413589
Medical Nemesis by Ivan Illich
-
comment
Comment #40405825
This looks cool, I find myself wishing for a language and introductory tutorial that isn't so targeted at Python programmes however (though I understand from a commercial point of …
-
comment
Comment #40405240
Modules, standardised in C++20, are the official solution both for the standard library and for other code but they are not universally well supported by all major compilers and bu…
-
comment
Comment #40332964
This is true but in practice it's pretty common to find this sort of code seems to work fine on x64 because the compiler doesn't actually reorder things and then sometimes blows up…
-
comment
Comment #40039875
Ok, that's not really what your example showed though. You seem to be relying on string interning to have two different "hello" literals refer to the same underlying object and the…
-
comment
Comment #40037778
That's only because strings are immutable in Java. It's not true for reference types in general. In C++ passing a pointer by value is effectively the same as passing a reference, t…
-
comment
Comment #40029694
Yeah, this is one of those things that while it may be more technically correct causes a lot of unnecessary confusion. I remember being confused by this as a C++ programmer learnin…
-
comment
Comment #40010265
That's not really accurate. Component based systems are designed specifically to address situations that traditional inheritance doesn't handle well. Examples are usually something…
-
comment
Comment #40010043
Not really, the data oriented design movement in games programming that eschews OOP is driven by performance concerns of traditional OOP code on areas like rendering. As a graphics…
-
comment
Comment #39999328
Inheritance doesn't work well for games, that's why so many games take a component based approach like Unity, or full blown ECS.
-
comment
Comment #39939850
The use case is for dedicated game servers controlled by the developer running in data centers, not clients running on player's home computers.