C++ Coroutines from scratch - Phil Nash - Meeting C++ 2022
https://www.youtube.com/watch?v=cnGKRRduFtE
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=cnGKRRduFtE
@underlap set it up with vscode to try it out.
You should immediately see changes in many places around the code, the most notorious example could be the comparison, but there's a ton more (comments, member access etc).
Ligatures are typically narrower than individual characters, leading to improved readability for many of us; YMMV, it's okay if this doesn't change anything for you. It's just a matter of subjective experience and preference 😉
C++ Coroutines from scratch - Phil Nash - Meeting C++ 2022
https://www.youtube.com/watch?v=cnGKRRduFtE
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=cnGKRRduFtE
@underlap make sure the ligatures are on.
I used FiraCode for some time, but seeing JetBrains mono made things very obvious.
The font makes diffs particularly clear to read, because ligatures add some horizontal space.
Bottom line is: it's not about the sheriffs, it's about the ligatures...
@raph sounds fun!
Would you say it's good for things like interpolating graphs?
Or perhaps only drawing -- apps like "ink" or CNC cutting previews?
Or perhaps both?
Thanks for the create?
@c_discussions This is exceptionally scary! Worst part? Won't happen with optimizations disabled.
https://godbolt.org/z/vM7nbdzzz
Thanks for sharing!
Edit: Appears to be a gcc-12 feature...
uint8_t tab[0x1ff + 1]; uint8_t f(int32_t x) { if (x < 0) return 0; int32_t i = x * 0x1ff / 0xffff; if (i >= 0 && i < sizeof(tab)) { printf("tab[%d] looks safe because %d is between [0;%d[\n", i, i, (int)sizeof(tab)); return tab[i]; } return 0; } int main(int ac, char **av) { return f(50000000); }
@rusticorn Freezes: No ✅, Crashes: No ✅, Sleeps: No ✅
But yeah, happens to the best of us 😅😅
@taylorlorenz it's also worth recognizing that the Twitter exodus is already underway. Several companies have paused their activity, too...
Right now the traffic is fueled by the drama and Elon's snarky remarks, but everyone discussing this will eventually grow weary. Elon's social capital is much more limited than he thinks. This move brings more fuel/controversial opinions back, but it's sort of like using a defibrillator: time will show if that worked. It might as well kill the bird.
@BrentToderian Technically correct, but then, one must recognize that Netherlandes (mainland, not the Carribean Netherlandes) is a very flat country, with the tallest "mountain", Vaalserberg, being just about 300m above the sea level.
But it is still a good thing to consider e-bikes and e-scooters where elevation and inclination is less encouraging...
@adetaylor Interesting read! any idea why accessing zipped files requires mutability though? is it because of how huffman algorithm works? could that be isolated to an iterator?
it would seem that dropping mutability should permit concurrent extraction with further speed improvements.
side thought, but it's surprising how rust enables questions like this. thanks for putting this together!