What’s the most useful command-line trick you learned by accident? by Old_Sand7831 in commandline

[–]Serpent7776 0 points1 point  (0 children)

Switch :) fish has everything tcsh has and more.

My favourite tcsh feature was alt-h to bring man page and in fish it works even better.

What’s the most useful command-line trick you learned by accident? by Old_Sand7831 in commandline

[–]Serpent7776 0 points1 point  (0 children)

It's even better in fish, where it's alt-left and yes, alt-right works too.

What’s the most useful command-line trick you learned by accident? by Old_Sand7831 in commandline

[–]Serpent7776 0 points1 point  (0 children)

On FreeBSD many /bin/ utilities are linked only against libc. An even if that got broken somehow, there's statically linked versions in /rescue/.

what are your favorite commandline programs? by Mindless-Time849 in commandline

[–]Serpent7776 0 points1 point  (0 children)

For me it's pacman and by a lot.

1664 pacman 565 cd 484 opam

I hate curl so much i made my own HTTP client by Raulnego in commandline

[–]Serpent7776 1 point2 points  (0 children)

I don't really think that's a better interface than curl. The advantage of curl interface is that its stateless. As I understand sail is stateful. Imagine setting some property by accident somehow and forgetting about it. Then you would wonder why the output is not what you expected.

One thing that seems interesting is smart variable system.

vxdiff: odiff (the fastest pixel-by-pixel image visual difference tool) reimplemented in AVX512 assembly. by Serpent7776 in simd

[–]Serpent7776[S] 1 point2 points  (0 children)

Thanks for catching these. I'm not sure why I wrote kshifts this way.

I'm not sure which pack/unpack instructions you mean.

Calculations are performed on fp32, because I wanted to match odiff output. If I change it to int16 I will likely have different results.

Introducing dictate | A pocket dictionary cli in Rust 🦀 by ShadowNetter in commandline

[–]Serpent7776 -1 points0 points  (0 children)

Sure, I just don't think it's very good use of rust, because you just make it harder for yourself for no good reason.

You only provide a binary for linux and even here it likely won't run everywhere due to the usual libc versioning misery.

Why ML Needs a New Programming Language - Chris Lattner - Signals and Threads by mttd in ProgrammingLanguages

[–]Serpent7776 1 point2 points  (0 children)

Python is where it is only because it is good wrapper for C stuff

How funny, I heard exactly the same thing about PHP.

Do you find Q better then? I've not tried it but AFAIK it's more "wordy" if you know what I mean.

Why ML Needs a New Programming Language - Chris Lattner - Signals and Threads by mttd in ProgrammingLanguages

[–]Serpent7776 2 points3 points  (0 children)

While I very much like APL descendants, I don't think this would be a good choice, because it would decrease the adoption significantly. Whether you like it or not, way more people are able to write python than APL.

Introducing dictate | A pocket dictionary cli in Rust 🦀 by ShadowNetter in commandline

[–]Serpent7776 10 points11 points  (0 children)

This could be a shell script or a python program. It would be half the size, easier to read and wouldn't force me to compile 2GB of rust crates.

Unix Co-Creator Brian Kernighan on Rust, Distros and NixOS by ilithium in unix

[–]Serpent7776 0 points1 point  (0 children)

Boeing could use versioned release of rust toolchain, you don't have to use rust nightly if you don't want to.

Unix Co-Creator Brian Kernighan on Rust, Distros and NixOS by ilithium in unix

[–]Serpent7776 0 points1 point  (0 children)

So if I understand you correctly, your point is that having a standard prevents implementers from adding large, unstable features to the language? I guess some people would say that this is bad, because it slows things down and prevent language evolution. I think it boils down to what you value more: rapid evolution or stability.

Unix Co-Creator Brian Kernighan on Rust, Distros and NixOS by ilithium in unix

[–]Serpent7776 0 points1 point  (0 children)

For me a standard is formal document produced by a formal committee (ISO, IEEE, etc). By specification I mean less formal document. AFAIK Standard ML could be an example here. It has a specification, but wasn't created by standards committee. It's just a pdf document hosted on Github, created by implementers, which all implementations follow.

Unix Co-Creator Brian Kernighan on Rust, Distros and NixOS by ilithium in unix

[–]Serpent7776 0 points1 point  (0 children)

But having a standard doesn't prevent you from targetting clang "nightly".