/explore
|
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... |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
blog.regehr.org
|
|
| | | |||