Better HN
topnewbestaskshowjobs
Log inSign up

avandecreme

57 karma · joined May 9, 2016 (10y ago) · 10 submissions

Submissions

1.

In Praise of Exhaustive Destructuring(antoine.vandecreme.net ↗)

50 points · by avandecreme · 4mo ago · 7 comments

2.

Tips and tricks to avoid cloning in Rust(antoine.vandecreme.net ↗)

2 points · by avandecreme · 7mo ago · discuss

comment 8mo ago · link · parent

I didn't know about https://docs.rs/temporal_rs/latest/temporal_rs/

I wonder if it has a chance to replace chrono and jiff in the rust ecosystem.

comment 9mo ago · link · parent

Follow up from my previous article about rust closures. This time it looks into async closures.

5.

Understanding Async Rust Closures(antoine.vandecreme.net ↗)

3 points · by avandecreme · 9mo ago · 1 comment

comment 10mo ago · link · parent

This article discusses making captures more flexible: https://smallcultfollowing.com/babysteps/blog/2025/10/22/exp...

I agree it would be nice, in particular to make it easier to understand when learning the concept.

7.

Understanding Rust Closures(antoine.vandecreme.net ↗)

68 points · by avandecreme · 10mo ago · 34 comments

comment 11mo ago · link · parent

This reminds me of when I learned to program on my casio calculator.

There was a function to detect a key press which would return a number identifying the pressed key.

I needed to map that number to the letter printed on the key to print it on the screen. I don't remember whether there was no hashmap data structure or I just didn't know about it, but I implemented it with a serie of if.

The problem with that solution is that while mapping A was fast, Z was very slow because it was at the end of the list. That is how I discovered divide and conquer/ dichotomy with if branches.

comment 7y ago · link · parent

Just parameters that are functions, except that you can only have one per function. I still fail to see the advantage of blocks over being able to pass functions as arguments like in other languages.

comment 8y ago · link · parent

Yes, refreshing the page fixes the issue.