• 0 Posts
  • 2 Comments
Joined 7 months ago
cake
Cake day: June 5th, 2025

help-circle
  • If you feel like learning a third shell, I find that Nushell is even easier to use than PowerShell.

    open stuff.json | each { get fieldName } | where { str starts-with "asdf" } | each { $in | str upcase }

    This gets all the objects in the given json file, then grabs the value of the field named “fieldName”, then filters all those values to find the ones that start with and, converts those to uppercase, and prints them to the screen as a nicely formatted list


  • Rust is a programming language which was designed to be memory safe without any of the overhead caused by traditional memory safety techniques employed by existing languages (namely, garbage collection and reference counting). It does this by shifting the memory management from happening at runtime to happening at compile time. The compiler forces the programmer to follow certain rules to ensure that their program can be proven to be free of errors such as use-after-frees and double-frees. Because of this design philosophy, Rust is a good fit as a replacement for C, because it can do everything that C can while ensuring the programmer doesn’t make any mistakes with regard to memory management.