HNHacker News
TopNewBestAskShowJobs

turboponyy

427 karma · joined October 5, 2021

submissionscomments
turboponyy··on We found a bug in the hyper HTTP library
Not really. If I'm using a linter, I go and configure the strictest possible ruleset, and only disable rules when justified on a need-by-need basis. It's just a matter of discipline.
turboponyy··on A case study in PDF forensics: The Epstein PDFs
I guess the Gnome-specific part is that Gnome comes with the Nautilus file browser, and the instructions add a script for Nautilus.

But yea, this will work as long as you have imagemagick and Nautilus installed.

turboponyy··on The dank case for scrolling window managers
I'm currently using niri (was previously using Hyprland).

Having used dwm-like tiling window managers for most of the time, I don't really care for the scrolling or dynamic workspace aspects of niri at all - in fact, I kinda dislike them (or haven't gotten used to them, at least). To me, it kills the point of a keyboard-centric desktop environment - which is the speed and lack of friction in making the window you want appear in front of your eyes.

Despite that, I still really like it. Mostly because I have so much more faith in its development. The documentation is excellent. The configuration file is sane, and not as arcane and ad hoc as the hyprland.conf format. The source repository looks well-maintained. Being written in Rust rather than C++ means onboarding new developers is easier. The discourse is more measured, owing to the lack of a somewhat stubborn lead maintainer in the case of Hyprland.

The surrounding ecosystem seems to be flourishing as well, with projects like Noctalia Shell, DankMaterialShell, and niri-flake natively supporting niri.

And perhaps most importantly, the out-of-the box experience is really nice. You have proper monocle and tabbed layouts without any compromises - features Hyprland has still not developed, where they are only possible with scuffed C++ plugins, or where its BDFL has stated they will never be introduced. Most features one would expect from a WM are already there and well-documented, which can't be said about Hyprland.

turboponyy··on I hate GitHub Actions with passion
Exactly.

"GitHub actions bad" is a valid take - you should reduce your use to a minimum.

"My build failed because of GitHub actions couldn't install a dependency of my build" is a skill issue. Don't use GitHub actions to install a program your build depends on.

turboponyy··on Git Rebase for the Terrified
Samesies - need a Majjit before I can consider trying it out.
turboponyy··on Judge hints Vizio TV buyers may have rights to source code licensed under GPL
> If Vizo never licensed the software to you under the GPL [...]

That may be true.

> [...] you can't say they violated the GPL.

That does not necessarily follow.

If they used GPL-licensed code in their product, they may be obligated to provide the source code to that product's consumer.

turboponyy··on Ask HN: What Are You Working On? (December 2025)
No, you really don't have to. Partially complete software can have a lot of value too.

Anyone can fork it and quickly add the i18n (or just translate into a different language) for their own purposes. People will likely want to contribute i18n. People may fix or improve things for you.

Of course, it's entirely up to you - but I've appreciated half-complete software countless times before.

turboponyy··on The highest quality codebase
I have the same disagreement. TypeScript with its structural and pseudo-dependent typing, somewhat-functionally disposed language primitives (e.g. first-class functions as values, currying) and standard library interfaces (filter, reduce, flatMap et al), and ecosystem make propagating information using values extremely ergonomic.

Embracing a functional style in TypeScript is probably the most productive I've felt in any mainstream programming language. It's a shame that the language was defiled with try/catch, classes and other unnecessary cruft so third party libraries are still an annoying boundary you have to worry about, but oh well.

The language is so well-suited for this that you can even model side effects as values, do away with try/catch, if/else and mutation a la Haskell, if you want[1].

[1] https://effect.website/

turboponyy··on The fuck off contact page
It is unique and looks cool.

When it comes to providing an enjoyable blog post reading experience, it really does creep into the "fuck off" territory for me, though.

turboponyy··on Jujutsu worktrees are convenient (2024)
Even better is "" since it's not really adding anything
turboponyy··on Experiment: Making TypeScript immutable-by-default
`for` loops are a superfluous language feature if your collections have `map` for transformations and `forEach` for producing side effects
turboponyy··on Using Emacs as a TUI
It's quite nice for the following reasons:

- Image previews (for file management with dired/dirvish)

- PDF viewing

- In-buffer images (e.g. profile pictures in git log with Magit)

- Browsing simple HTML pages (e.g. API docs)

There's probably more I've yet to discover.

turboponyy··on consumed.today
You only need that much protein if you're trying to build muscle. The amount needed for a generally healthy diet is much lower.
turboponyy··on Node 20 will be deprecated on GitHub Actions runners
If that's something you care about, then don't define your CI build in terms of GitHub Actions steps. Instead, call your build that takes care of using whichever version of Node you want in CI.
turboponyy··on That boolean should probably be something else
I actually completely agree with both the article and your point that your code should directly communicate your intent.

The angle I'd approach it from is this: recording whether an email is verified as a boolean is actually misguided - that is, the intent is wrong.

The actual things of interest are the email entity and the verification event. If you record both, 'is_verified' is trivial to derive.

However, consider if you now must implement the rule that "emails are verified only if a verification took place within the last 6 months." Recording verifications as events handles this trivially, whilst this doesn't work with booleans.

Some other examples - what is the rate of verifications per unit of time? How many verification emails do we have to send out?

Flipping a boolean when the first of these events occurs without storing the event itself works in special cases, but not in general. Storing a boolean is overly rigid, throws away the underlying information of interest, and overloads the model with unrelated fields (imagine storing say 7 or 8 different kinds of events linked to some model).

turboponyy··on Efrit: A native elisp coding agent running in Emacs
I have Emacs set up like VSCode. I feel it surpasses VSCode, even because it's Emacs.
turboponyy··on Jujutsu for busy devs
Can you edit commits by adding on only parts of your "staging" area?

Because that's my workflow. I produce a few focused and semantically coherent commits that I'd like to apply to the codebase, where each keeps the codebase in a working state. I might be working on more than one thing at once, but I know which commit each set of changes should "live in."

An append-only log of commits is decidedly not something I want. Is jj amenable to this?

turboponyy··on A Rust shaped hole
> While I can jump through hoops to compile JavaScript into a binary, such wouldn't feel "solid". And the very point of writing a native program in the first place is to make it feel solid

You can use Bun to compile to native binaries without jumping through hoops. It's not mature, but it works well enough that we use it at work.

turboponyy··on Show HN: Encode Base64
Or, in a browser that's presumably displaying the website:

    btoa("Hello World")
turboponyy··on Show HN: VS Code extension to edit the filesystem like a text buffer
"Look what they need to mimic a fraction of our power" - some Emacs user, probably
turboponyy··on Toys/Lag: Jerk Monitor
> It turns out that there’s a way to test this experimentally. Do a double blind experiment, just like in science. If you can tell which monitor is 240hz more than randomly, then it matters. Ditto for the pointer updates.

You can easily tell - easily. There is a reason why monitors go 500Hz and beyond now.

I consider 240 FPS at 240Hz to be choppy. I can tell the difference between ~200 FPS and framerates of 300 FPS and beyond at 240Hz - telling the difference between 120Hz and 240Hz would be absolutely trivial.

turboponyy··on Toys/Lag: Jerk Monitor
Yes, because the visual feedback on your client matters as well (faster reaction times).

Also, it means each frame is more recent. Also, higher refesh rates reduce the mean variance between the timestamps of rendered frames offered by the GPU that are drawn on the monitor, meaning the visuals are smoother. The smoothness is pleasing to the eye and makes it easier to focus.

turboponyy··on Don’t use “click here” as link text (2001)
Yea, the examples are wrong, and I'd interpret them the same way.

The principle is something I agree with and try to abide by, though.

turboponyy··on Edamagit: Magit for VSCode
The modeness of vi does add friction in some cases, but it's a minor gripe, really.

Vi is incredibly well-suited and ergonomic for text editing, and switching between the modes is efficient, since often times you want to begin typing text as a consequence of some other normal mode operation you'd want to take anyway - e.g. add line below; change until end of line; change in parens; change up to character - and those operations put you immediately into insert mode afterwards anyway.

So I wouldn't let that feature (which enables making common operations more ergonomic) stop you from using vi-style binds.

Though modelessness can be quite nice, and I do see the appeal. Being able to select a region and immediately perform any desired operation is convenient.

What's great is that Emacs is what you make it - you can mix and match the two approaches. I, for example, use vi binds for text editing in Emacs, but maintain modeless binds I can always access when it makes sense. You can have the best of both worlds :)

turboponyy··on What does “Undecidable” mean, anyway
> It's better to say that some functions like "does this program halt?" simply don't exist.

Let f : (p: String) -> Boolean equal the function that returns True if p is a halting program, and False otherwise

turboponyy··on Demonstrably Secure Software Supply Chains with Nix
Glossing over some details, the build artifact and build definition are equivalent in Nix. If you know the build definition, you can pull the artifact from the cache and be assured that you have the same result.
turboponyy··on Java is dying and it paid off my mortgage
You can do this in newer versions of Java (not sure since which), for what it's worth.
turboponyy··on Why I run FreeBSD for my home servers (2024)
Once you try a rolling-release distro you realize it's actually a very good idea
turboponyy··on Debian bookworm live images now reproducible
Docker can be used to create reproducible environments (container images), but can not be used to reproduce environments from source (running a Dockerfile will always produce a different output) - that is, the build definition and build artifact are not equivalent, which is not the case for tools like Nix.
turboponyy··on The Pain That Is GitHub Actions
Yes. GitHub actions can be just a thin wrapper to call any Nix commands that you can run locally.

> How do you automate running tests

You just build the Nix derivation that runs your tests, e.g. `nix build #tests` or `nix flake check` in your workflow file.

> deploying to dev on every push

You can set up a Nix `devShell` as a staging area for any operations you'd need to perform for a deployment. You can use the same devShell both locally and in CI. You'd have to inject any required secrets into the Action environment in your repository settings, still. It doesn't matter what your staging environment is comprised of, Nix can handle it.

Page 1 of 7Next →