HNHacker News
TopNewBestAskShowJobs

tommiegannert

1,472 karma · joined July 14, 2021

Helped bring Spotify to life. Helped keep Google ads ML systems learning. Currently building a database system on my own.

https://www.linkedin.com/in/tommiegannert/

https://github.com/tommie/

https://tommie.github.io/

submissionscomments
tommiegannert··on I got a heat pump and my energy bill went up
Transparency is great, but let's not forget that the point of switching to electricity is to be able to use renewables. We only have one nice planet to live on, and there are others who want to keep being able to live comfortably on it, I've heard. Oil/gas is a potent drug that is difficult to vane off of.

(Arguably solar/battery has the same problem as oil: let's dig and refine stuff from the ground, and not care about how to take care of the concentrated product once we're done with it. But to a much lesser extent.)

tommiegannert··on Bunkers in Albania
Just keep voting for different parties/people. It's when they're able to say "I'll be in power for a long time" that the upper echelons and the army start backing their person rather than the people. Oh, and avoid having loop holes in the constitution.
tommiegannert··on Wildfires are erasing California's climate gains, research shows (2022)
At the very least this suggests that if you're planting trees for carbon offsetting, the how and where matters.
tommiegannert··on Rhai: An embedded scripting language for Rust
I was also curious. Looking at the code, it seems values are Boxed, but there's a special type called Shared that is an Rc-RefCell (unless Send-enabled.):

                    // Also handle case where target is a `Dynamic` shared value

                    // (returned by a variable resolver, for example)

 Couldn't find any other information about a GC, so guessing this is pure ref-counting. Speaking of potential memory leaks, there's also string interning happening. I agree this seems to be for short-lived contexts right now.
tommiegannert··on Laser Fault Injection on a Budget: RP2350 Edition
Much more complicated than the Cullen's hack at CCC, but I think that also required a bit of luck. This was an very interesting read in terms of solid research experimentation setup. We now have two really nice attacks on the RP2350 secure boot, and only a few months after release.

The Cullen observation that the OTP power supply wasn't being glitch detected was pretty damning and a much more devastating attack in practice. If you require decapping and lasers, anything is possible.

Thanks for the write-up!

tommiegannert··on Bypassing disk encryption on systems with automatic TPM2 unlock
Right. The password verification would not be tied to the PCR states, or it wouldn't solve the problem at hand.
tommiegannert··on Bypassing disk encryption on systems with automatic TPM2 unlock
Very nice exploit.

So if you use this PCR state machine, the problem is that the step before initrd doesn't require the correct password to move the PCR forward? It accepts any password that decrypts the next stage, which didn't have its integrity verified here.

Seems there are multiple ways of solving this, and adding integrity checks is only one. It could also let the TPM verify the disk decryption password (when it's needed.)

tommiegannert··on Bypassing disk encryption on systems with automatic TPM2 unlock
I'd guess the most common scenario is for someone giving away the entire computer, not fiddle with components. Or theft of the full machine.

This feels like one of those half-security measures that makes it feel like you're safe, but it's mostly marketing, making you believe *this* device can be both safe and easy to use.

tommiegannert··on Nobody cares
From skip-reading, this is not about motivation (intrinsic or otherwise) in general. This is about other people not caring about you, or what you care about.

I care a great deal about DevEx, and since no one else tends to care as much as I do, I can do good work for a few years, but then I'm worn out from fighting alone. I move on and hope things are more aligned somewhere else. Doesn't mean my co-workers are wrong for "not caring", just that I haven't found my peers.

The driver who doesn't let you into her lane perhaps cares deeply about not being late, again, to pick up her kids from daycare. Or her brother is about to do that stupid thing again, and if she doesn't try to stop him, she'll feel bad forever, again. Which lane you're in doesn't even register on her list.

tommiegannert··on Show HN: Python with do..end in place of strict indentation
> there's no issue mixing documentation with triple-backtick code blocks.

Your argument became: By adding delimiters, even Python can play well with other languages. /s

tommiegannert··on US sanctions the workers of International Criminal Court
> Even if the decision are not respected, it is good to have somebody to call out bad actors.

In that case, it sounds more like a news agency.

tommiegannert··on Daughters: Physicians' Family Influences Female Patients' Health [pdf]
Original: The Power of Daughters: How Physicians’ Family Influences Female Patients’ Health
tommiegannert··on How does ChatGPT work: An in-depth look for Programmers
I'm not that interested in LLMs as chat bots, especially not to "replace workers," but as mathematical models starting to be able to explain mid-level human behavior, they're really cool.
tommiegannert··on Phase behavior of Cacio and Pepe sauce
The phase diagrams are great. This really raises the bar for cook books. If you can't show a diagram to explain why you chose that ratio of ingredients, why should I trust you to have made the optimal sauce?
tommiegannert··on I still don't think companies serve you ads based on your microphone
The danger with this kind of opinion is that you start out doing some healthy critical thinking, and research. You form an opinion, based on good intentions. Then you spend all your time on explaining your conclusion to others. At that time, people who have the same opinion flock to you, and you don't have time to do more research.

This is the problem with experts and politicians. You can make money on either position, but once you have started stating your opinion, it's unlikely you'll do active research to disprove your opinion, as many have already concluded [1].

I'm happy that Simon only sees this as a hobby.

[1] https://quoteinvestigator.com/2017/11/30/salary/

tommiegannert··on Tesla Cybertruck sales are disastrous
Car buyers in the US buy cars based on their knowledge of the business owner's political leanings? That seems like the wrong metric.
tommiegannert··on Show HN: API Parrot – Automatically Reverse Engineer HTTP APIs
Could you give some examples of what refinement you think it needs?
tommiegannert··on PolyDye: Full color printer mod for Marlin 3D printers
That's cool, and certainly more accurate than blending filament.

Anyone have data on layer adhesion?

(I have a spool of Royal Blue Prusament that has the worst layer adhesion ever, for some reason. Fresh in my mind. :)

tommiegannert··on Differential Growth Addon for Blender
It really is beautifully amazing how one cell can keep dividing and even the blood vessels end up roughly the same in everyone.
tommiegannert··on A comparison to Waymo’s auto liability insurance claims at 25M miles
Human drivers also sometimes forget to turn their signals off, to the same effect as the described Waymo behavior: uncertainty of intent.
tommiegannert··on ScyllaDB – Why We're Moving to a Source Available License
I think it's great that we're cleaning up the nomenclature.

In the 90s, we had shareware/freeware/beerware. No one expected source availability. At universities, the Unix world had open source, in the real sense. Then something happened that caused these two tracks to merge.

Maybe the university students grew up and carried on their belief in open source, but also had to create the business. After 20 years, they realized (1) it doesn't have to be open source to _feel right_ and (2) maintaining in the open is more expensive. They're now in management positions, not coding. Selling B2B doesn't require code to be open to the public, since you can have source available licenses. And as you said, perhaps ScyllaDB isn't really targeting the hobbyist. We'll continue this trend.

Or perhaps open source has stopped being a buzzword. We're now much more of a SaaS world, where being open source isn't as important as costing $10 per month or having 200 "data partners" that need to track you.

That said, I think there's a really good reason for core libraries and security-sensitive libraries to be open. I want to be able to inspect them, before using them. And I'm in the HN crowd of actually using open source code because I can fix bugs as I encounter them, but I realize this is a small crowd.

I'd love for open source to be a useful word again, and not something that goes on the Silicon Valley PR budget.

tommiegannert··on The Death of the Stubborn Developer
Agreed that LLMs can make the role of junior developers become one of filtering out bad LLM output, and tuning a prompt until it outputs the right thing.

I think the concern that we won't have senior developers later if there are no junior developers now, is pretty valid. The question is if LLMs will keep up pace to replace senior developers when the current ones retire. Since no one can predict the future, it's a pretty risky gamble at the scale of the entire industry. (OTOH if this new tool sparks more interest in the occupation, then maybe the issue solves itself by sheer numbers.)

tommiegannert··on A new law in Sweden lets police seize unexplained luxury goods
What in the actual F is going on. I sincerely hope my cursory reading of the law was wrong. This law[1] seems pretty much to be a presumed-guilty-until-you've-proven-yourself-innocent thing.

Seems they've entered some kind of reverse Minority Report middle ground, where they don't have to prove you committed a crime. If there is reasonable suspicion that a crime was committed for you to own that Rolex, it's gone. Possibly that means "you couldn't prove it was acquired legally."

There goes any chance of me returning to Sweden, I guess. This is going downhill fast.

[1] (Swedish) https://www.riksdagen.se/sv/dokument-och-lagar/dokument/sven...

tommiegannert··on Bazel 8.0
> The WORKSPACE mechanism is now disabled by default.

> Bzlmod, the new way to manage external dependencies, is turned on by default since Bazel 7.0.

> We are aiming to remove WORKSPACE in Bazel 9 completely.

Oh, that's good to know. Sorry I wasn't paying attention, M.

tommiegannert··on Mend it Mark gets suspect copyright strike for £25k audio amp repair
In this case, Mark tried to give them the benefit of the doubt, explaining that even if the circuit is a reference design, spending time to match components might make it better than it would be otherwise. It wasn't a bashing, but seemed like a repair video in good faith.
tommiegannert··on Browsing negative content online makes mental health struggles worse: Study
> I'm sad because I no longer an doing my civic duty to stay informed and have an educated opinion

At the same time, you must have been questioning whether you were staying informed, or was used as a democracy puppet by lobbyists. It takes a lot more energy to stay informed than to just read news.

Here in Switzerland, the people vote on lots of things, four times a year. But the participation rates are always 40-60%. It's almost like people only need to stay informed about the particular questions they care about. I find it a refreshing organisation, compared to my native Sweden. When I only vote for politicians, I need to know their opinions on everything. That, I find, is exhausting.

tommiegannert··on New era of slop security reports for open source
> DO NOT spam projects, open a handful of reports and then WAIT. You could run the script and open tons of reports all-at-once, but likely you have faults in your process that will cause mass-frustration at scale. Learn from early mistakes and feedback.

I saw something similar with wasm3, a project explicitly said to be in maintenance mode, because the maintainer is in the Ukraine and being busy with other stuff... I managed to triage and provide patches to some of them. The poster was doing fuzz testing by randomly generating WASM binaries. Once a crash was found, they just uploaded the binary as-was, with error message. Completely valid reports, but bad execution with context in mind.

This resulted in huge WASM binaries that could be reduced from thousands of instructions to ten with work. (Even that reduction could probably have been automated, which annoys me even more.) There were also duplicates because they posted 5-10 reports simultaneously, many with the same cause. This is something I feel they should have done ahead of posting.

> DO NOT submit reports that haven't been reviewed BY A HUMAN. This reviewing time should be paid first by you, not open source volunteers.

This seems like the most important point. LLMs are great for generating things. By all means, continue using them. Sometimes useful, sometimes not. It can be inspiring if used right. They are pattern matchers after all, and bug hunting is partially about finding patterns. However, GIGO, and they need a filter after.

(If you like using a hammer to fix dents in my car, don't say you're done just because you've had a few blows; tell me it's done when the dents are gone.)

tommiegannert··on Hyrumtoken: A Go package to encrypt pagination tokens
Yes, but since you never want to reuse the nonce (at least not with the same key; and no one stores nonces for later use), they are 1:1 to the message, suggesting it would have been less error-prone to encode it in the box.

I had the impression NaCL was about being highly opinionated, so this choice surprised me.

tommiegannert··on Is the 80 character line limit still relevant? (2008)
Yesterday I was running Prettier on an existing code base, and decided to go with 100. Even at 2-space indentation, 80 caused too many if-expressions to be split up. Google's JS styleguide also says 80. (I also have 450 character lines there, in a table of CSS classes for dark/light/selected/hover/disabled/focused modes. Leaving it long makes it much easier to confirm all modes set the right class.)

However, the benefit of automatic formatters is that if you really like 80 better, you can reformat before editing, and undo that before sharing your results.

tommiegannert··on This Pull Request was generated automatically using cover-agent
Those are some pointless tests.

E.g. test_activation_stats_functions [1] that just checks that the returned value is a float, and that it can take random numbers as input.

test_get_state_dict_custom_unwrap [2] is probably supposed to check that custom_unwrap is invoked, but since it doesn't either record being called, or transform its input, the assertions can't actually check that it was called.

[1] https://github.com/huggingface/pytorch-image-models/pull/233...

[2] https://github.com/huggingface/pytorch-image-models/pull/233...

← PreviousPage 2 of 22Next →