Premium Only Content
Compiler From Scratch: Phase 1 - Tokenizer Generator 007A: Code generating char/string references
Streamed on 2024-08-30 (https://www.twitch.tv/thediscouragerofhesitancy)
Zero Dependencies Programming!
Interrupted stream today. My son unplugged the power to router so it took a few minutes to get the internet back up. There is a part B.
Today we generated more code to support the tokenizer we will be generating. We generated a class to handle character references (ChrRef) and another to handle string references (StrRef). The main idea is to never copy or pass strings around. These references just contain enough information to point to a location in the text buffer (TxtBuf). The only time these things will be turned into strings is when reporting errors and time doesn't matter any more.
Based on the project settings, you can generate these classes for one of three encodings: ASCII, Latin1 and UTF8. The UTF8 one will be the slowest, because if has to do quite a lot of verification for each character. The ASCII one will be pretty fast, but still has to check that each character is in [0-127]. Latin1 will be the fastest since there is no character checking.
-
LIVE
Russell Brand
1 hour agoThe Epstein Files Are Coming — And The Establishment Is Terrified! - SF653
5,213 watching -
LIVE
The Quartering
29 minutes agoPeace Between Ukraine & Russia? Kimmel Meltdown & More layoffs
916 watching -
LIVE
Barry Cunningham
1 hour agoBREAKING NEWS: PRESIDENT TRUMP MEETS WITH COMMIE MAMDANI | AND MORE NEWS!
2,281 watching -
1:23:31
DeVory Darkins
3 hours agoBRUTAL moment Jeffries HUMILIATED by CNBC host regarding Obamacare
109K49 -
1:03:10
The Quartering
2 hours agoThere's An OnlyFans For Pedos, SNAP Bombshell & Big Annoucement
27.6K35 -
2:24:29
The Culture War with Tim Pool
4 hours agoMAGA Civil War, Identity Politics, Christianity, & the Woke Right DEBATE | The Culture War Podcast
177K144 -
2:20:13
Side Scrollers Podcast
4 hours agoVoice Actor VIRTUE SIGNAL at Award Show + Craig’s HORRIBLE Take + More | Side Scrollers
15.5K6 -
18:01
Bearing
8 hours agoThe Rise of DIGISEXUALS 🤖💦 Humanity Is Finished
1.55K21 -
LIVE
Jeff Ahern
1 hour agoFriday Freak out with Jeff Ahern
91 watching -
1:59:21
The Charlie Kirk Show
3 hours agoCreeping Islamization + What Is An American? + AMA | Sedra, Hammer | 11.21.2025
60.2K22