/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.ralfj.de
| | tmandry.gitlab.io

In Part 1, we covered how async fns in Rust are compiled to state machines. We saw that the internal compiler implementation uses generators and the yield statement to facilitate this transformation. We also saw that the optimal way to lay out one of these state machines in memory is using an enum-like representation, similar to the following: enum SumGenerator{Unresumed{xs: Vec},Suspend0{xs: Vec,iter0: Iter<'self,i32>,sum: i32 },Suspend1{xs: Vec,iter1: Iter<'self,i32>,sum: i32 },Returned}Each variable s...
4.7 parsecs

Travel
| |
| | davmac.wordpress.com

An unofficial collection of errata and general problems with the C99 and C11 standards. {C99,C11} 3.1 Weak definition; inconsistent usage of term It is probably a bad idea to redefine a word with such common usage as "access". The definition here is not very clear: to read or modify the value of an object Is...
3.8 parsecs

Travel
| |
| | blog.sigplan.org

"Undefined Behavior" often has a bad reputation. But what, really, is Undefined Behavior, and is it actually that bad? In this blog post, I will look at this topic from a PL perspective...
5.4 parsecs

Travel
| |
| | blog.regehr.org


12.8 parsecs

Travel
|