In this post you’ll find a nice explanation of how tail call optimization works. Surprise-surprise, the optmization also works fine with non-recursive functions.
#compiler #optimize #recursion
#compiler #optimize #recursion
eklitzke.org
How Tail Call Optimization Works
A repo with a bunch of links that'll help you to understand how the Kotlin compiler works.
#kotlin #compiler
#kotlin #compiler
GitHub
GitHub - ahinchman1/Kotlin-Compiler-Crash-Course: A repository of helpful sources to figure out what the Kotlin compiler really…
A repository of helpful sources to figure out what the Kotlin compiler really is - ahinchman1/Kotlin-Compiler-Crash-Course
Arrow announced their Analysis. It's a plugin for Kotlin compiler that is able to analyze flow of your code and to perform deeper-than-usual checks.
#lint #compiler #plugin
#lint #compiler #plugin
47 Degrees
Announcing Arrow Analysis - a Kotlin compiler plug-in | 47 Degrees
Arrow Analysis is a Kotlin compiler plug-in that supercharges your compilation plugin with new checks to make your code safer and more robust.
👍1
First, they tell you that reading assembly is easy. Then they tell you that
-
-
-
-
-
- Writing to them works as expected, but writing to
- There are a bunch of different registers, e.g.
- (╯°□°)╯︵ ┻━┻
#cpu #assembler #compiler
-
RAX register is 64 bits-
EAX is lower 32 bits of RAX-
AX is lower 16 bits of RAX-
AL is lower 8 bits of RAX-
AH is higher 8 bits of AX- Writing to them works as expected, but writing to
EAX will zero out the rest of RAX- There are a bunch of different registers, e.g.
RAX, RCX, RDX, RBX. Yep, not ABCD, but ACDB. It's the order they're stored in- (╯°□°)╯︵ ┻━┻
#cpu #assembler #compiler
TimDbg
The faker's guide to reading (x86) assembly language
Assembly code scares people. There’s a good reason for that. For many people, writing code in assembly language seems equivalent to writing code in ancient dwarven runes, or calculating pi in roman numerals. The fact that RollerCoaster Tycoon was almost completely…
👍2
An interesting example of what's possible with modern compilers. The post is about Dafny lang, it can prove or disprove in compile time certain assertions we add to our code.
#compiler #language #cs
#compiler #language #cs