Christoffer Lerno

Results 1217 comments of Christoffer Lerno

Only possible on platforms that use syscall for platform calls, unlike say MacOS

I'm not sure what you want to achieve with that enum. What is the usecase?

For asm a long standing issue is whether to be more ambitious or just punt to LLVM. If there is some working grammar that can be used across all platforms...

@data-man I just added `$$syscall(...)` which is usable on x86/x64 and aarch64. I don't have implementations for the rest but can add them if I get the right clobbers and...

Congratulations @data-man !

@data-man I added `--emit-asm` to the latest. It dumps all of the files as .s though, so you might want to use the functionality to put the asm output in...

Possibly use a generic unified asm syntax. Examples: ``` mov.mr_imm32_64 rdi, 1 mov.mr_imm32_64 rdx, 0x13 // or mov @mr_imm32_64 rdi, 1 mov @mr_imm32_64 rdx, 0x13 // or mov[mr_imm32_64] rdi, 1...

Feel free to vote on this one using 👍 and 👎

Alternative syntactic forms: ```c fn int test(int x) { const square = fn int(int y) { return y * y; } return square(x) + square(x + 1); } ``` Which...

Please note that these are not closures, so nested functions cannot access the variables of the enclosing function.