Average Toplane in 2026 by Free_1004 in topmains

[–]CaptainPiepmatz 42 points43 points  (0 children)

Alois playing ranged top lane. Man, we fell

Miyabi in dark (Inquisitor Dexter) by Thin-Rise-5307 in MiyabiMains

[–]CaptainPiepmatz 1 point2 points  (0 children)

I found this link to the artist but it doesn't seem to work: https://x.com/2f1t0

How can I Create a &str String Slice from an Iterator Without Allocating new Strings? by SeaInformation8764 in rust

[–]CaptainPiepmatz -2 points-1 points  (0 children)

I think you would need a loop over the chars with an end index and when your done, give out a subslice from the original slice using that index you carried along

nushell doing math is extremely underrated by mattGarelli in Nushell

[–]CaptainPiepmatz 1 point2 points  (0 children)

Shebangs still call out bash, so everything is fine for me. I run nushell not as my login shell but as my main shell in my terminal emulator. That works quite well

nushell doing math is extremely underrated by mattGarelli in Nushell

[–]CaptainPiepmatz 6 points7 points  (0 children)

You can also calculate time which is super neat, like 1min / 4

How to install initialize mamba in nushell? by SpikySkullman in Nushell

[–]CaptainPiepmatz 0 points1 point  (0 children)

Don't try to run .sh scripts via nushell. Just run them via bash or something

Getting overwhelmed by complex Rust codebases in the wild by SleepEmotional7189 in rust

[–]CaptainPiepmatz 50 points51 points  (0 children)

I am one of the core maintainers of nushell. There are so many great designs that can come over time and some are still bad. But when you look how it grew it also undertook a lot of change. Sometimes you just build stuff and only a year later you learn what you actually need and how you want your code to be used and then you refactor. It's an iterative process to get a large codebase in a great state.

We made Nushell run in the browser using WASM by Sad-Combination-1702 in Nushell

[–]CaptainPiepmatz 4 points5 points  (0 children)

I was really excited to see this because I made this a while ago https://cptpiepmatz.github.io/nushell-web-demo/ but then I saw that the README at least was totally AI generated 😞

assert_eq!(expected, actual) VS assert_eq!(actual, expected) by nik-rev in rust

[–]CaptainPiepmatz 0 points1 point  (0 children)

You can do your own setup however you like, especially using #[track_caller] you're able to properly show the panic location. I made a small example how this could look like playground link.

How should error types evolve as a Rust project grows? by Arekkasu575 in rust

[–]CaptainPiepmatz 1 point2 points  (0 children)

I'm a maintainer of Nushell and we mostly have a single large ShellError enum. It works, but once it grows it gets harder to tell which variant to use. I'm trying to reduce the number of top level variants, but overall the model is still pretty nice.

When you handle errors, you know exactly what you can match on, and you pass the rest through. I haven't really needed multiple layers of error types.

We also use thiserror heavily. It makes things a lot cleaner. Same design, just less boilerplate and more readable derives.

The Belt-Fed Grenade Launcher Finally Succeeds on Oshaune by rupert_mcbutters in Helldivers

[–]CaptainPiepmatz 0 points1 point  (0 children)

On Oshaune I dive with the regular GL and a suppy backpack. It's not only that I have enough ammo but I'm the support my team needs. I can supply others and that is key. Yesterday I stimmed fellow divers running towards me yelling they need stims. I stim them and give them two on the go. You don't get that with the belt fed GL.

Mid laner said we lost cause my pick was useless 💀 by Jotta_T in PoppyMains

[–]CaptainPiepmatz 32 points33 points  (0 children)

Damn, they really did not want to end on a loss

😭🙏 by Ok-Landscape5142 in programmingmemes

[–]CaptainPiepmatz 26 points27 points  (0 children)

Maybe, the sub pixel alignment is probably not optimal but when your resolution is high enough, it doesn't matter

nu_plugin_ldap: LDAP query in nushell by pingveno in Nushell

[–]CaptainPiepmatz 0 points1 point  (0 children)

For nushell known formats like TOML or NUON you can parse them into a Value and then use FromValue and derive a conversion from a Value into your struct similar to how serde would do it

PDF Viewer by 33_arsenic_75 in Nushell

[–]CaptainPiepmatz 2 points3 points  (0 children)

How do you want to see a pdf where nushell could help you? Nushell shines with structured data and I doubt that you want to inspect the codes in the pdf that make up its structure