509 karma · joined May 13, 2023 (3y ago) · 227 submissions
comment 10mo ago · link · parent
In my lazy implemenation, I don't even check if the hashes match, the program reads, compresses and tries to write the unchanged files. This is an obvious area to improve performance on. I've noticed that git speeds up object lookups by generating two-letter directories from the first two letters in hashes, so objects aren't actually stored as `.git/objects/asdf12ha89k9fhs98...`, but as `.git/objects/as/df12ha89k9fhs98...`.
>why were TOML files not considered at the end I'm just not that familiar with toml. Maybe that would be a better choice! I saw another commenter who complained about yaml. Though I would argue that the choice doesn't really matter to the user, since you would never actually write a commit object or a tree object by hand. These files are generated by git (or tvc), and only ever read by git/tvc. When you run `git cat-file <hash>`, you'll have to add the `-p` flag (--pretty) to render it in a human-readable format, and at that point it's just a matter of taste whether it's shown in yaml/toml/json/xml/special format.
comment 10mo ago · link · parent
Maybe that's obvious to most people, but it was a bit surprising to see it myself. It feels weird to think that LLMs are being trained on my code, especially when I'm painfully aware of every corner I'm cutting.
The article doesn't contain any LLM output. I use LLMs to ask for advice on coding conventions (especially in rust, since I'm bad at it), and sometimes as part of research (zstd was suggested by chatgpt along with comparisons to similar algorithms).
comment 10mo ago · link · parent
[0] https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki#...
188.
I made my own Git(tonystr.net ↗)
382 points · by TonyStr · 10mo ago · 176 comments
comment 10mo ago · link · parent
That's an interesting insight. I had not thought about the possibility of a scientific understanding of pressure developing prior to the steam engine. If you have some pointers to read up on this, I'd love to learn more.
Also, there were demands for pumps in antiquity, particularly in hydraulics. Lot's of labor was invested in building aqueducts and underground waterways. I always saw the Aeolipile as a tech demo showing that heat can be used as a power source for mechanical motion, but this is probably because I live after the steam machine, knowing it's true potential. I've long wondered why the idea wasn't expanded upon by the Romans or later the Greeks or Egyptians, but I suppose it wasn't convincing enough on its own.
comment 10mo ago · link · parent
Although I would question if multiple hours of daily labor isn't itself a significant demand pull? I assume everyone wants to free up time spent on monotonous tasks, but maybe this is wrong.
comment 10mo ago · link · parent
There is also a very popular plugin for neovim that shows a popup with possible keybinds and descriptions whenever you begin any keybind: https://github.com/folke/which-key.nvim
comment 10mo ago · link · parent
195.
2 points · by TonyStr · 10mo ago · 1 comment
comment 11mo ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
There are certainly some constrains on what plugins can achieve due to nvim being exclusively a TUI, but in my opinion the pros of the editor outweigh the cons.
As to what makes me choose neovim over vscode with a vim plugin, it's a combination of things. One thing I love is that neovim is extremely easy to configure. I also enjoy that everything follows vim rules, rather than some things like file trees or consoles having their own unique rules. I have also become dependent on some vim plugins that don't exist in vscode.
comment 3y ago · link · parent
For reference, I use a ZSA Moonlander.