HNHacker News
TopNewBestAskShowJobs

hardwaregeek

8,419 karma · joined February 27, 2017

Formerly at Vercel, Rome. Interned at Cloudflare (2020-2021), Microsoft (2019)

Interested in compilers and programming languages

GitHub: nicholaslyang Email: nick@nicholasyang.com Twitter: @NicholasLYang

submissionscomments
hardwaregeek··on Basketball has evolved into a game of calculated decision-making
That's not a huge difference. 3% is like an average of 3 extra misses, which is probably not even that noticeable with variance. 3 pointers are not replacing 2 pointers with equal percentages, but they are creating opportunities for higher percentage 2 pointers.

> Crowding is not necessarily bad. A contested shot is interesting; an uncontested shot, not so much. Even uncontested dunks are less interesting than contested dunks.

That's because you're thinking of a really cool dunk, not a big man backing down his man for like 20 seconds and throwing up a clanker that gets rebounded into another 20 second post possession. Realistically that's what a lot of offense was like back in the day. There's just selective nostalgia for the really cool plays.

hardwaregeek··on Basketball has evolved into a game of calculated decision-making
So I agree that more complexity is not better and there’s a real risk of alienating fans with complicated schemes. But chess has made real inroads by providing good commentators and analysis. You can’t make teams play dumber but you can teach fans to be smarter.

As for missing, the video I linked debunks that. 3 pointers are replacing long 2 pointers which also had a low percentage. And in turn, the game has become less crowded and more spread out, leading to a higher percentage on dunks and layups. The pace has also dramatically increased, leading to more swings in scoring, which is pretty exciting.

hardwaregeek··on Basketball has evolved into a game of calculated decision-making
Thinking Basketball is one of my favorite resources for basketball analysis. He recently made a video debunking myths about the modern game [1]. While yes, there’s far more analytics and knowledge in the game, it hasn’t lead to monotony or poor quality. It’s instead resulted in a Cambrian explosion of tactics, counter tactics, and really diverse team strategies. But the commentary and analysis in mainstream basketball hasn’t caught up, so your average viewer is watching a chess match but not even understanding the basic moves. Which leads to frustration and confusion.

[1]: https://youtu.be/fp4but75EjY?si=YdOqZZ5-sH6lQHd9

hardwaregeek··on WASM will replace containers
There's a difference between a handful of sites that use wasm and it being the mainstream way in which we write web applications and run hosted software. It's still a very very niche platform that has not fulfilled its promise of either being a first party web tool or a universal runtime.

Like, how easy is it to write a web application in Wasm? Or how easy is it to compile your average program written for a native platform to Wasm without hand picking your dependencies to work on the platform?

hardwaregeek··on WASM will replace containers
When? We’ve been talking about wasm for years. When are we actually getting this future? It’s been 8 years since wasm 1.0, and still we don’t have a stable, easy to use toolchain. Rust has maybe the best support and I still can’t get a basic async application with tokio to work on wasm.

To put it into context, Rust was released in 2012. 8 years later it was stable, had a solid toolchain and plenty of people using it in production. Wasm still feels like a toy compared to that

hardwaregeek··on Zig Guide
In fairness to Zig, they're quite a bit younger. I have no doubt they'll catch up
hardwaregeek··on Firebase bill is usually $50, but I was surprised to see a $70k bill in one day
Yeah there's your problem. Hiring a random person and giving them unlimited access to compute resources is a bold move to say the least. If you're gonna work on something like this, do it yourself or hire someone who you can really trust. That won't totally prevent it but it's better than rando Upwork contractor who will move on to the next gig
hardwaregeek··on Israel, Hamas reach ceasefire deal to end 15 months of war in Gaza
Stay in the land that was allotted in 1967 (or 1948), don’t create settlements, allow the Palestinians territories to self govern and have open borders. Obviously that won’t stop bad faith actors like Hamas but that’s not going to stop with a war either. Bibi majorly screwed up by ignoring Gaza and allocating troops to guard West Bank settlements. Not claiming this will be a panacea, but I don’t see how Israel’s current plan will accomplish anything more than perpetual conflict and an increasingly radicalized population on both sides. Oh and kick out Itamar Ben-Gvir and the rest of the ultra right wing.
hardwaregeek··on Ask HN: Programmers who don't use autocomplete/LSP, how do you do it?
No but speed of lookup is definitely a limiting factor. And with rust goto definition also goes to the doc comment so I can easily read the docs in my IDE
hardwaregeek··on WordPress Forces Users to Agree That Pineapple Is Good on Pizza
I thought this was an Onion article
hardwaregeek··on Show HN: I designed an espresso machine and coffee grinder
Yeah, I couldn't tell if the photos were real or were rendered images
hardwaregeek··on Black Hat Rust
I figured that sentence was a little tongue in cheek
hardwaregeek··on Zizmor would have caught the Ultralytics workflow vulnerability
I was legitimately wondering if Dr Zizmor made a pivot into cybersecurity
hardwaregeek··on California's most neglected group of students: the gifted ones
I have to wonder, how much of these issues are because education is generally underfunded and not given enough respect?

> There were just certain, simple, logical steps in my education that were not possible to take without first getting the "gifted" label, since that's the bureaucratic grease that makes the whole system move for you.

That sounds like an extremely dysfunctional system that rewards people who know this trick, but hurts people who may not know it. Now, I don't hate the player, so I'm very glad it worked out for you and many others. It benefited me too. But at an administrative level, I'm not sure that's a good thing.

> Not really … my mother tapped into her "social circles" — other mothers she met at my preschool — to try and learn what she needed to know about the schools, the school system, and the rules of the bureaucracy she was contending with, in order to effect better outcomes for her children. I.e., what any good parent would do. The article misses the mark here too:

There's a lot of reasons a parent might not be able to figure this out, ranging from lack of proficiency in the English language, to housing instability, to lack of trust in school as an institution. Remember, we're 75 years removed from legal segregation. There's still a lot of distrust in programs actually being fair. I don't think we can assume that every child has a parent who can take the time to learn the bureaucracy.

hardwaregeek··on California's most neglected group of students: the gifted ones
I used magnet because that's the most commonly known term, but my high school definitely was not an attempt to desegregate schools. If anything it increased segregation by a lot.
hardwaregeek··on California's most neglected group of students: the gifted ones
I'm glad that you had a good experience! I also benefited immensely from my school's setup. I just think it's worth analyzing these programs from a critical perspective instead of an all or nothing lens. Programs can be worthwhile but still not good enough.
hardwaregeek··on California's most neglected group of students: the gifted ones
Did people read the article? There's actually some interesting points about how gifted/advanced curriculum isn't always the solution. I'd have to agree. I went to a magnet school, so already presumably for "gifted" students, that in turn had advanced courses like honors or AP. And while there were students who genuinely benefited, myself included, it also became a game of getting into the most advanced course so you could have it on your college applications.

Also, imo, the vast majority of students did not benefit. It's not like they were all brilliant. They basically passed a standardized test that they spent a few years in prep classes to pass. What this measured was whether your parents were tapped into particular social circles and knew to put you in prep. Once you were in the school, if you wanted good teachers, you had to take honors. I had a fantastic history teacher who talked about how he loved teaching regular history, but he was constantly pressured by administration to only teach AP. So for a lot of students who didn't have the grades to do honors, they got stuck with the mediocre teachers. Not to mention, psychologically, it sucks being in the bottom 50%. There were so many kids who thought they were dumb or underachievers, but were really just in the wrong environment. When they went to college, they blossomed from not being in such a rat race.

I'm not saying the solution is to eliminate gifted programs, but let's not pretend that they're universally great for kids. They're often much more status games than actual educational fulfillment.

hardwaregeek··on Advancing Memory Safety
I do think there's a bit of the Ignaz Semmelweis[1] issue at hand here, where developers want to believe in their inherent quality and refuse processes that improve safety if it goes against their worldview.

Also, no other language has really posed an existential threat to C/C++ developers. Other languages have narrowed the pool, but Rust is the first to really be a possible replacement. Now, there's no real chance that Rust will actually replace C/C++ in the near future, but even the threat can be a huge concern.

[1]: https://en.wikipedia.org/wiki/Ignaz_Semmelweis

hardwaregeek··on Apple Watch sleep apnea detection gets FDA approval
It takes like 20 minutes to charge the watch. Just don’t wear it for that time
hardwaregeek··on Roc Lang – Elm but for everywhere [video]
yeah that seems cool! I'm a little skeptical of pure functional programming with no escape hatch. I rarely need the escapes in Rust but when I do, I really do.
hardwaregeek··on Roc Lang – Elm but for everywhere [video]
Does Roc have escape hatches for mutability? That's something I value in Rust, good escape hatches from the borrow checker, so if something gets too difficult, you can just `Arc<Mutex<RefCell<T>>>` it.
hardwaregeek··on YC is doing a first ever Fall batch – applications due by 8/27
Obviously they're referring to the 1924 batch which had MGM and Universal Studios. They even got Henry Ford to come to Demo Days!
hardwaregeek··on YC is doing a first ever Fall batch – applications due by 8/27
SG24 (SprinG) and SR24 (SummeR)?
hardwaregeek··on Rustgo: Calling Rust from Go with near-zero overhead (2017)
lol I remember looking at this when doing our major port from Go to Rust. I noped out once I saw the raw assembly portion. Great for a side project but probably not the move for a cross platform binary run by thousands of people. Still a very cool post and the literature for Go/Rust interop is def lacking
hardwaregeek··on The Kimchi Masters of South Korea
You can also get pretty close by salting the cabbages a lot, then rinsing them once they’ve gotten seasoned enough to be pleasantly salty.

Also it’s quite hard to oversalt kimchi in my experience. You’ll need to ferment it longer but eventually the sourness will balance out the salty

hardwaregeek··on Figma Slides
I would disagree. Figma Slides got maybe the most positive response at the keynote. Most designers I know already use Figma for slides, so to make a first party experience with speaker notes and good UX would be understandably very popular.
hardwaregeek··on A Rant about Front-end Development
There’s a lot I disagree with but I’ll point out one in particular.

> how do we make content presentable as easily as possible, with as little duplication as possible, and with as few negative impacts to the user as possible.

Why is this the priority? If I wrote a language that was solely focused on removing duplicate code, and doing the minimum to appear decent, that would be a pretty bad language. I care a lot more about composability and readability than de-duplication and floor raising. Let’s face it. CSS comes from a fundamentally different situation than the modern web. I’m talking about optional styles that do not affect the content, that are written by one or two people, and likely total at most a few hundred lines. That is nowhere close to modern websites. Bemoan that all you like, it doesn’t change the reality.

hardwaregeek··on Excerpts from Coders at Work: Joe Armstrong Interview (2013)
There's a general distain for fancy tooling like IDEs. I have to wonder how a lot of these people would think of programming these days, with the rise of AI, ubiquitous code analysis, linting, formatting, CI, packages. Even in the short amount of time that I've been programming, writing software has changed massively. I have to imagine it'd appear as a completely different enterprise to them.
hardwaregeek··on Don't DRY Your Code Prematurely
It's important to remember that all best practices are not created equal. I'd prioritize readability over DRY. I'd prioritize cohesion over extensibility. When people talk about best practices, they don't talk about how a lot of them are incompatible, or at least at odds with each other. Writing code is about choosing the best practices you want to prioritize as much as it's about avoiding bad practices.
hardwaregeek··on Cold brew coffee in 3 minutes using acoustic cavitation
This is a neat idea, since cold brew has a common criticism of an oxidized flavor due to its long steep time. A shorter steep could get you the smooth flavor without the oxidation
← PreviousPage 3 of 29Next →