HNHacker News
TopNewBestAskShowJobs

Hasnep

897 karma · joined August 31, 2019

website: https://www.ha.nnes.dev contact: h[at]nnes.dev github: hasnep
submissionscomments
Hasnep··on Elixir 1.19
You'd just do the same thing you do in any language, you parse the incoming data into a format that's more idiomatic, e.g. in Gleam

    type Record {
      NShares(n: Int)
      ZeroTheAccount()
    }
    
    fn parse_record(n: Int) -> Record {
      case n {
        0 -> ZeroTheAccount()
        _ -> NShares(n)
      }
    }
Then you don't have to worry about mixing up the two :)
Hasnep··on Elixir 1.19
I think that's less likely to happen in Gleam because using 0 as a sentinel value would be unidiomatic, but I agree that's a very dangerous design choice.
Hasnep··on Why every Rust crate feels like a research paper on abstraction
If you care about endashes then you'll know that they're not supposed to be used to separate ideas in a sentence, that's what emdashes are for. That makes me think it's not LLM generated because LLMs know how to use emdashes.
Hasnep··on Paneru – A sliding, tiling window manager for macOS
Looks cool, but I tried compiling it and there's a lot of compiler warnings (including some uses of the unsafe keyword) and a failing test. I might have a look at the source, but I suspect don't know enough Rust to contribute properly.
Hasnep··on Is Odin just a more boring C?
That's literally the point of the article:

> Odin kinda feels like a modernized somehow even more boring C but in the best way possible.

Hasnep··on Birth of Prettier
Which tools are you using that allow custom linter rules? I'd like to try this on some of my repos
Hasnep··on A macOS terminal command that tells you if your USB-C cable is bad
Simon Willison's list has a few: https://tools.simonwillison.net/
Hasnep··on Gemini 2.5 Computer Use model
Lots of noise cancelling headphones have a pass-through mode that lets you hear the outside world. Alternatively, I use bone conducting headphones that leave my ears uncovered.
Hasnep··on PyPI Blog: Token Exfiltration Campaign via GitHub Actions Workflows
The large attack surface with npm is partly because of all the transitive dependencies used, which means that even if you only pull in a dozen packages directly, you're also using hundreds of other packages. Running `pip freeze` will list a lot of transitive dependencies as well, but I'm sure it'll be less than an equivalent JS project.
Hasnep··on Charlie Kirk killed at event in Utah
> The review offered on Saturday is based on "low confidence" which means the intelligence supporting it is deficient, inconclusive or contradictory. There is no consensus on the cause of the Covid pandemic.

The article literally says there is no consensus.

Hasnep··on Charlie Kirk killed at event in Utah
I'm interested to know who you think is a leftist Ben Shapiro/Charlie Kirk type who debates right wing students. I haven't heard of any, but I'm sure they exist.
Hasnep··on Charlie Kirk killed at event in Utah
This is the kind of whataboutism the right has been doing for years, it's not any better when someone (I assume) on the left does it.
Hasnep··on Charlie Kirk killed at event in Utah
The article you linked says that BND thought the lab leak was likely in 2020. You're the one with out of date information.
Hasnep··on Let us git rid of it, angry GitHub users say of forced Copilot features
I've been using Codeberg.org recently and really enjoying it, I just wish the CI situation was better, but I'll probably just host my own instead
Hasnep··on SmallJS: Smalltalk-80 that compiles to JavaScript
On the original smalltalk balloon the red, yellow and blue are in the same order as the Romanian (and Chadian) flag, so maybe the question should have been why is it not the Romanian flag?
Hasnep··on AnduinOS
> F-Droid uses apt

I think you mean termux

Hasnep··on KDE is removing all colorful third-party app icons from its Breeze icon theme
This article seems to just be a rewording of this one: https://blogs.kde.org/2025/08/16/this-week-in-plasma-a-lot-o...
Hasnep··on Ollama Turbo
Most apps that integrate with ollama that I've seen just have an OpenAI compatible API parameter which defaults to port 11434 which ollama uses, but can be changed easily. Is there a way to integrate ollama more deeply?
Hasnep··on Observable Notebooks 2.0 Technology Preview
I think marimo is a python version of the same idea: https://marimo.io/
Hasnep··on Simulating Hand-Drawn Motion with SVG Filters
I had to re-read the second paragraph to make sure you weren't saying that heat haze is a GPU shader effect. Using the phrase "in nature" really didn't help me!
Hasnep··on Coding with LLMs in the summer of 2025 – an update
And my question to that is how would that be different from a codebase designed for humans?
Hasnep··on A 1960s schools experiment that created a new alphabet
That's a lot to read into a story about a kid memorising books
Hasnep··on Ask HN: Is it time to fork HN into AI/LLM and "Everything else/other?"
If you're looking for an invite my email is on my hn profile, email me and I'll invite you
Hasnep··on Ask HN: Is it time to fork HN into AI/LLM and "Everything else/other?"
I don't know if you're allowed to promote alternatives to HN, but Lobste.rs has tags which you can follow or completely block. Plus I've found the quality of the discussion is higher than HN, at the cost of much lower quantity.
Hasnep··on Are we the baddies?
No, I'm saying that if everyone gets given $2000 each month and as a result everyone's wages are reduced by $2000 a month, most people will be unaffected. However, anyone who made less than $2000 a month before will get to quit their job and make more money than before UBI, so UBI wouldn't be useless in this scenario.
Hasnep··on Are we the baddies?
I don't know about the long term economic effects, but there are people who currently earn less than the subsistence amount who will be better off with UBI than without it.
Hasnep··on My open source project was relicensed by a YC company [license updated]
A two week probation means that nearly all candidates will need to quit their current job to do the probation which seems unlikely to be popular with candidates
Hasnep··on Price of rice in Japan falls below ¥4k per 5kg
> the average Japanese eats around 1kg of uncooked rice per week.

That's gonna be crunchy

Hasnep··on The Chan-Zuckerbergs stopped funding social causes
Things can be both. Just because access to clean water is a national need doesn't mean I personally can stop drinking water.
Hasnep··on Switching Pip to Uv in a Dockerized Flask / Django App
They're not saying that's how it's supposed to be used, they're saying that's how it's often used by people who are unfamiliar with lock files
← PreviousPage 3 of 11Next →