Get the latest tech news

Strategies for Fast Lexers


Making compilation pipelines fast, starting with the tokenizer

This list of tokens can then be used by the parser to generate an abstract syntax tree (AST), which the compiler consumes, converting it to bytecode, which the vm executes. Creating a Str from a c style const char* can be done by passing it into the STRING macro, gcc can evaluate all operations inside of it at compile time. Due to the window nature of this struct I had to reimplement some things myself, such as slicing, concatination, equality checking, hashing and converting to int64 and double:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Strategies

Strategies

Photo of Fast Lexers

Fast Lexers

Related news:

News photo

5 strategies that separate AI leaders from the 92% still stuck in pilot mode

News photo

Using physics simulations to find targeting strategies in tenpin bowling

News photo

Show HN: I aggregated over 200 Go-To-Market strategies