Yesterday
Links and Notes for May 10th, 2024
Published on in Notes
Below are links to articles, highlighted passages[1], and occasional annotations[2] for the week ending on the date in the title, enriching the raw data from Instapaper Likes and Twitter. They are intentionally succinct, else they’d be articles and probably end up in the gigantic backlog of unpublished drafts. YMMV.
Table of Contents
Building RegEx from scratch with Stephen Toub
Published on in Programming
This is another excellent 1-hour tour of another complex corner of .NET. Toub describes and shows how the source-generated RegEx engine works.
- The generated source is human-readable and debuggable.
- It is well-commented.
- It updates in real-time as you change the expression.
- It includes XML documentation that describes the regular expression in plain English.
- They rewrote the compiler in .NET 7 to not only better support source generators, but also to be able to emit not only IL, but source... [More]
Building async/await from scratch with Stephen Toub
Published on in Programming
This is another video from Stephen Toub that is just chock/full of useful information.
At 27:30, they start to discuss about the nomenclature of Task
and how it differs from an Action
. It’s funny that neither of them mentioned that tasks in .NET are called promises pretty much everywhere else (JavaScript, Java, etc.). Some libraries also use the word future. For more information, see Futures and promises (Wikipedia).
As he’s building everything, it is really astonishing to note that Hanselmann has to... [More]
Building LINQ from scratch with Stephen Toub
Published on in Programming
This is a great interview with the master of performance-optimization in .NET Stephen Toub. If you’re relatively well-versed in C#, .NET, and Linq, then you can just jump to the second video (linked below). I actually watched the second one first. I didn’t feel like I’d missed anything.
Stephen Toub’s the guy who writes the 100+-page release notes on performance. See the following links.
- Performance Improvements in .NET 5 (46 pages)
- Performance Improvements in .NET 6 (109 pages)
- Performance... [More]
5 days Ago
Links and Notes for May 3rd, 2024
Published on in Notes
Below are links to articles, highlighted passages[1], and occasional annotations[2] for the week ending on the date in the title, enriching the raw data from Instapaper Likes and Twitter. They are intentionally succinct, else they’d be articles and probably end up in the gigantic backlog of unpublished drafts. YMMV.