News for hackers. Stuff that matters.

avandecreme

Re:Temporal: The 9-Year Journey to Fix Time in JavaScript on Thursday March 12, 2026 @03:28AM (#47347563)
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.

Re:Understanding Async Rust Closures on Sunday February 22, 2026 @11:34AM (#47112387)
Follow up from my previous article about rust closures. This time it looks into async closures.
Re:Understanding Rust Closures on Sunday January 25, 2026 @02:50AM (#46751734)
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.

Re:4B If Statements on Friday December 12, 2025 @02:22PM (#46247703)
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.

Re:Ruby 2.6 on Monday December 24, 2018 @03:08PM (#18754006)
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.
Yes, refreshing the page fixes the issue.