Premium Only Content
Compiler From Scratch: Phase 1 - Tokenizer Generator 007B: 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 A.
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
TheSaltyCracker
2 hours agoLefty Grifters Go MAGA ReeEEeE Stream 12-22-24
26,319 watching -
13:24
Matt Kohrs
1 hour agoBreaking News! Rumble Secured MASSIVE $775M Partnership
224 -
LIVE
Rance's Gaming Corner
6 hours agoTime for some RUMBLE FPS!! Get in here.. w/Fragniac
1,525 watching -
LIVE
Josh Pate's College Football Show
6 hours ago $0.77 earnedCFP Reaction Special | Early Quarterfinal Thoughts | Transfer Portal Intel | Fixing The Playoff
530 watching -
23:55
CartierFamily
3 days agoElon & Vivek TRIGGER Congress as DOGE SHUTS DOWN Government
54.7K74 -
5:43:44
Scammer Payback
2 days agoCalling Scammers Live
141K21 -
18:38
VSiNLive
2 days agoProfessional Gambler Steve Fezzik LOVES this UNDERVALUED Point Spread!
104K17 -
LIVE
Right Side Broadcasting Network
10 days agoLIVE REPLAY: President Donald J. Trump Keynotes TPUSA’s AmFest 2024 Conference - 12/22/24
5,080 watching -
4:31
CoachTY
1 day ago $27.59 earnedCOINBASE AND DESCI !!!!
147K11 -
10:02
MichaelBisping
23 hours agoBISPING: "Was FURY ROBBED?!" | Oleksandr Usyk vs Tyson Fury 2 INSTANT REACTION
76.8K13