's Avatar

@nihohit

22
Followers
31
Following
41
Posts
17.11.2024
Joined
Posts Following

Latest posts by @nihohit

Well, I'd appreciate a writeup explaining this, if/when you have the time and inclination 🙂

21.12.2025 20:34 👍 0 🔁 0 💬 0 📌 0

Your answer make it sound like places are always on the stack? The heap isn't a place?

21.12.2025 19:09 👍 0 🔁 0 💬 1 📌 0

That's not intuitive to me, sorry. I don't understand how this relates to something that can be passed between threads, because it is SOMEthing, so there must be a place that contains it.
IMO the lifetime metaphor fits static better. "It's valid, because it's always alive" is easy.

21.12.2025 19:08 👍 0 🔁 0 💬 2 📌 0

Fair enough, but what's the intuitive explanation for static, in this POV?

21.12.2025 19:02 👍 0 🔁 0 💬 1 📌 0
mockito - Rust Mockito is a library for generating and delivering HTTP mocks in Rust. You can use it for integration testing or offline work. Mockito runs a local pool of HTTP servers which create, deliver and remov...

Mockito is a rust crate that creates actual http servers, that run mocked logic.

share.google/h6PKe6Dzs6QW...

19.12.2025 05:05 👍 0 🔁 0 💬 1 📌 0

I'm not exactly sure what you're asking here, but it sounds like a problem that mockito solves.

18.12.2025 14:55 👍 0 🔁 0 💬 1 📌 0

That's roughly our solution, too.

16.12.2025 17:38 👍 0 🔁 0 💬 0 📌 0

Joined AWS just when they started sanctioning new projects in Rust, and our team started a new project.

24.11.2025 21:21 👍 2 🔁 0 💬 0 📌 0

Shamanic versioning, where you choose a version according to your spirit animal.

20.10.2025 20:25 👍 0 🔁 0 💬 0 📌 0

Thank you for all the good work!
Selfishly hoping that your project will be another great book.

29.09.2025 13:08 👍 2 🔁 0 💬 0 📌 0

Succeed. If you want to force an at least 1 condition, it should be defined in the attribute argumenta.

10.09.2025 16:15 👍 0 🔁 0 💬 0 📌 0

After reviewing, feedback, and more review, I gave up. It was frustrating to harangue claude to REPLACE ALL THE STRINGS, YES THAT ONE TOO, and also to ensure that it should keep `Result`s, instead of finding "clever" ways to avoid returning errors.
Claude just wants to have strings, I guess.

15.07.2025 11:44 👍 0 🔁 0 💬 0 📌 0

On the journey, it deleted the whole test suite of one class, and as mentioned, got completely stuck once, which required a manual edit of the code.
On the other hand, after 2 hours the change was complete - I just need to review the change.

15.07.2025 09:47 👍 0 🔁 0 💬 1 📌 0

Claude just moved the logic around, but still used the combined string throughout the code, until I explicitly told it to delete / change the inputs on every function that takes a string.

15.07.2025 09:45 👍 0 🔁 0 💬 1 📌 0

The change isn't very complex - the code splits addresses to host + port, but then saves those addresses as `format!("{host}:{port}")`, only to split them again when the address is used. I just wanted to save the split value, instead of combining and splitting again.

15.07.2025 09:45 👍 0 🔁 0 💬 1 📌 0
Post image

well, this is going to slow me down

15.07.2025 09:35 👍 0 🔁 0 💬 1 📌 0

Claude added this change, but couldn't trace back the open quotes to the offending line.

15.07.2025 09:25 👍 0 🔁 0 💬 1 📌 0

The code didn't compile, with the error
```
error[E0765]: unterminated double quote string
--> path/to/file.rs:464:57
```
and Claude just couldn't fix the issue, probably because it originated on the other side of the file, in line 130:
`if let Some(bracket_end) = addr.find("]:') {`

15.07.2025 09:25 👍 0 🔁 0 💬 1 📌 0

I tried playing with Amazon Q & Claude 4 today. It worked reasonably well (that is, made slow progress over the code, requiring repeated prompt explaining my goals and why the changes it made were incorrect), until it hit a wall and couldn't make any more progress.

15.07.2025 09:22 👍 0 🔁 0 💬 1 📌 0

Really impressive. Any plan to have named enum variants, like Rust has? Relying on unique types per variant is a pain point of std::variant that exists here, too.

14.07.2025 19:58 👍 0 🔁 0 💬 1 📌 0

The twist: the single argument is a tuple.

03.07.2025 12:30 👍 0 🔁 0 💬 0 📌 0

Are you interested in feedback on the video?

01.07.2025 12:38 👍 0 🔁 0 💬 0 📌 0

I used it 3 years agothrough iai_callgrind, which was fairly easy to setup IIRC.

01.07.2025 12:35 👍 0 🔁 0 💬 0 📌 0

Somewhat less realistic when discussing the indexing operator for hashmaps without knowledge of keys. You created a map from a deserialized JSON - don't make assumptions on its contents.

16.06.2025 06:12 👍 0 🔁 0 💬 0 📌 0

it's what happens when developers allow `usize`s to misbehave.

15.06.2025 10:52 👍 0 🔁 0 💬 0 📌 0
Compiler error: "note: this error originates in the macro `implement_iterators` which comes from the expansion of the macro `implement_commands` (in Nightly builds, run with -Z macro-backtrace for more info)"

Compiler error: "note: this error originates in the macro `implement_iterators` which comes from the expansion of the macro `implement_commands` (in Nightly builds, run with -Z macro-backtrace for more info)"

As someone who came to Rust after struggling with C++, I'm continuously astounded by the quality of the error messages. rustc can point out the source of an error through nested macros!

06.06.2025 07:33 👍 8 🔁 0 💬 0 📌 0
Video thumbnail

Fun Fact: Ducks are often seen standing still in the rain. Most think it’s because their waterproof feathers keep them dry and that staying still helps conserve energy, but we have our own theory🦆🌧️🐥 #naturalhabitok #naturalhabitat #naturalhabitatshorts

05.06.2025 15:55 👍 2481 🔁 635 💬 52 📌 27
Post image

Yup.

29.05.2025 13:16 👍 1 🔁 0 💬 0 📌 0

IMO even weirder is that Arc<T> can be two different types.

26.05.2025 11:56 👍 0 🔁 0 💬 0 📌 0

Shadowing makes perfect sense when variables aren't reassignable by default. I'm not so sure that combining reassignable and mutable into a single keyword was the right choice, though.

23.05.2025 04:57 👍 0 🔁 0 💬 1 📌 0