• 0 Posts
  • 34 Comments
Joined 2 years ago
cake
Cake day: June 3rd, 2023

help-circle


  • I’d say no. Programming safely requires non-trivial transformation in code and a radical change in style, which afaik cannot be easily done automated.

    Do you think that there’s any chance to convert from this to this? It requires understanding of the algorithm and a thorough rewrite. Automated tools can only generate the former one because it must not change C’s crooked semantics.






  • It kinda fills a niche.

    I use fish for simple command pipelines as well. But traditional shells are not as good when I need to do anything “structured”, because they treats almost any value as a string and don’t have anonymous functions. The first problem means that you have to parse a string again and again to do anything useful, the second means that when both pipe and xargs fails you are doomed.
    Nu solves both of the big problems that matters when you want to do rather complex but ad-hoc processing of data. And with a rather principled design, nu is very easy to learn (fish is already way better than something POSIX like bash though).

    Personally another important reason is that I have a Windows machine at work and nushell is way easier than pwsh.









  • Note that skim performs worse than fzf. There’s a new matcher in Rust called nucleo which is faster, but it currently doesn’t have a cli and can only be used inside Helix editor (hx)

    nu is probably the best shell for ad-hoc data processing, handling all my daily needs in one expression.

    fd and rg have another thing in common, that they’re both 50% shorter than their traditional alternatives /s




  • I’ve tried Joplin, Logseq, and Obsidian. The best one was Obsidian but it’s not FOSS and is getting bloated over time.

    I’m settling on zk now. This small command line utility solves almost all of the note managing needs for me.
    Double links and tags make me forget about these “infinite free board” functionalities in OneNote: turns out they tend to be used inefficiently. Graphical sketches can be embedded in markdown or linked to a drawn picture.

    The best thing about zk is that its notes consist of plain text and no extra tracking data is required outside of the file (unlike any others above), which means it’s absolutely free to pair it with / move on to other tools when needed, or working temporarily without the support of it.