Scheme Compiler in Incremental Steps: Binary Primitives 17 December 2023 In the previous post, we added unary primitives like add1 and null? to our language. In this post, let’s implement binary primitives like +, *, and char<?. We cannot, in general, use a single register because evaluating one argument may overwri...
Scheme Compiler in Incremental Steps: Unary Primitives 16 December 2023 In the previous step, we added immediate constants for integers, characters, booleans and empty list. We now extend the language to include calls to primitives that accept one argument. Let’s start with add1 and sub1 which are increment and decrem...
Scheme Compiler in Incremental Steps: Immediate Constants 16 December 2023 In the previous part, we compiled integers and created linker and runtime. In this part, we’ll add few more language features to our compilerCompile Immediate ConstantsIn scheme, we have values other than fixnum integers. We have immediate values ...
Scheme Compiler in Incremental Steps: Compiling Integers 16 December 2023 I somehow came to love compilers. May be it was my experience with PyTorch - after all it is some sort of interpreter/compiler combo which executed python code on GPUs. I figured that compilers are an underappreciated part of what makes computers ...
Marketing Strategy From First Principles 05 December 2022 Marketing is an important part of any organization. It’s important that there’s a marketing strategy. It’s not complicated to have one because the fundamentals of customer behavior are well documented. My reference textbook is surprisingly not a m...