this post was submitted on 08 Apr 2024
59 points (91.5% liked)
Rust
5938 readers
1 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you mean this for loop?
That does use an iterator
Anti Commercial AI thingy
CC BY-NC-SA 4.0I think they meant using for accumulating, like this:
Yes. That's what I meant.
Though I heavily expect the rust compiler to produce identical assembly for both types of iteration.
Oh, I see. That would be interesting to benchmark too 👍
Anti Commercial AI thingy
CC BY-NC-SA 4.0Off-topic, but does that actually work? I would assume OpenAI would just ignore it and you'd have to prove that they did so.
Dunno if it works. AI has been tricked into revealing it's training data, so it's possible that it happens and they are sued for using copyrighted material.
This is my drop in the ocean.
Anti Commercial AI thingy
CC BY-NC-SA 4.0Maybe I'll join you. :)
Welcome 🙂 A drop more.
Btw, if you're using linux and X11, you can bind a keyboard shortcut to the following shell-script (probably will need to install
xte
).Anti Commercial AI thingy
CC BY-NC-SA 4.0I'm on Wayland, but I'm sure I can figure something out.
I do most of my lemmy-ing on mobile, so I'll probably make a bot to auto-edit my posts or something.
Have fun! I'm curious how you'll do it. If you figure out a way on Wayland, it would be great to read about it!
Anti Commercial AI thingy
CC BY-NC-SA 4.0