Hacker Newsnew | past | comments | ask | show | jobs | submit | jynelson's commentslogin

this completely breaks `git add -p`.


You can either do another `git add -p` after to stage the fixed formatting or do `git add -pn`


the pre-commit framework does not abstract away “hooks shouldn’t be run during a rebase”, nor “hooks should be fast and reliable”, nor “hooks should never change the index”.


Not sure how you got to that conclusion, as the pre-commit framework does indeed abstract them away. Maybe you're confusing it with something else?

> hooks shouldn’t be run during a rebase

The pre-commit framework doesn't run hooks during a rebase.

> hooks should be fast and reliable

The pre-commit framework does its best to make hooks faster (by running them in parallel if possible) and more reliable (by allowing the hook author to define an independent environment the hook runs in), however it's of course still important that the hooks themselves are properly implemented. Ultimately that's something the hook author has to solve, not the framework which runs them.

> hooks should never change the index

As I read it the author says hooks shouldn't change the working tree, but the index insteead and that's what the pre-commit framework does if hooks modify files.

Personally I prefer configuring hooks so they just print a diff of what they would've changed and abort the commit, instead of letting them modify files during a commit.


> Ultimately that's something the hook author has to solve, not the framework which runs them.

correct. i'm saying that hook authors almost never do this right, and i'd rather they didn't even try and moved their checks to a pre-push hook instead.


tbh i think you just hate trans people but you're afraid to say it directly


> Software should be an engineering field, which exists to help humans, not as some personal art project for your self expression

it makes me sad that you see these things as somehow in conflict with each other :(


It fills me with joy to know that those are irreconcilable. It lifts the burden of having to reconcile these things and I know that my self expression can be directed elsewhere.

Whatever beauty exists in engineering comes from the purity of it. A fighter plane or a microchip looks beautiful, not because it was designed to be so, but because of the purity of the functionality, the harshness of the requirements. If you turn a fighter plane into an art project, then it will be inherently ridiculous. It will make a mockery of its own purpose, looking at it will be like looking at a cripple.


i think you would be interested in demoscene, it’s about exactly this thing: making art out of extremely harsh requirements.


> it's often that the amount of time i've spent thinking about something (a lot) is totally disproportionate to the time i spend typing my thoughts up (a little)

oh, this is a really good way of putting it! that’s exactly what happened :)


Are you saying that you were too busy thinking to put capitals at the start of sentences? Is that a joke?


you could build an emacs frontend for this model! the thing i am trying to describe is “getting out of the box”. imagine a terminal session that is shared between emacs, iTerm, and a mobile phone ssh’d in over the network, that’s my vision.


I think that's possible with: well, ssh and emacs.


omg i've wanted something like shelter for literal years

it "cheats" a little because it requires the underlying filesystem to support snapshots but it's still really really cool, thank you for the link!


> Great, now you just need to build and maintain shims for every tool in existence, force your users to use your own custom tools that support these features, and ensure that everything interoperates smoothly.

Yes, this is the work. https://becca.ooo/blog/vertical-integration/



whoa this looks fascinating, i've never heard of it before! thank you for the link :)


To add to lproven's point.

An article called "A Spreadsheet and a Debugger walk into a Shell" [0] by Bjorn (letoram) is a good showcase of an alternative to cells in a Jupyter notebook (Excel like cells!). Another alternative a bit more similar to Jupyter that also runs on Arcan is Pipeworld.

[0] https://arcan-fe.com/2024/09/16/a-spreadsheet-and-a-debugger... [1] https://arcan-fe.com/2021/04/12/introducing-pipeworld/

PS: I hang out at Arcan's Discord Server, you are welcome to join https://discord.com/invite/sdNzrgXMn7


I was thinking of Arcan and the Lash#Cat9 setup by the end of your second paragraph. I'm very surprised you had not met it: it seems so directly aligned with your interests and goals, but all you seemed to talk about was Jupyter, a tool which I tried and TBH discarded after 10min.

It is very hard to explain Arcan but I tried:

https://www.theregister.com/2022/10/25/lashcat9_linux_ui/

I talked to Bjorn Stahl quite a bit before writing it, but he is so smart he seems to me to find it hard to talk down to mere mortals. There's a pretty good interview with him on Lobsters:

https://lobste.rs/s/w3zkxx/lobsters_interview_with_bjorn_sta...

You really should talk to him. Together you two could do amazing things. But IMHO let Jupyter go. There's a lot more to life than Python. :-)


this is really cool omg! i didn't know that, i'll do some research.

one of the strange things to me about the terminal landscape is how little knowledge sharing there is compared to other domains i'm familiar with. iTerm has a bunch of things no one else has; kitty influenced wezterm but otherwise no one else seems to have valued reflection; there's a whole bunch of extensions to ANSI escapes but most of them are non-standard and mutually incompatible. it's weird. if i compare to something like build systems, there's a lot more cross-pollination of ideas there.


You do make a good point there. There's a tonne of insular parochialism: "my tool is the best tool and I will loftily ignore the others."

This is why I wrote this:

https://www.theregister.com/2025/06/24/tiling_multiplexers_s...

Trying to bring a bunch of related tools together in one place and compare and contrast them.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: