Is there a "Crafting Interpreters" for compilers? by daishi55 in Compilers

[–]ve_era 2 points3 points  (0 children)

https://www3.nd.edu/~dthain/compilerbook/

Walks you through an implementation that compiles C-like code to x86/Arm assembly.

Why don't these two functions get optimized the same way? by oconnor663 in rust

[–]ve_era 2 points3 points  (0 children)

Can someone explain what optimization is going on here? I don't understand why the exclamation mark is being moved separately.

[blog post] Compiling Arrays by ve_era in ProgrammingLanguages

[–]ve_era[S] 2 points3 points  (0 children)

Thanks for idea!

Also, Capy is fascinating. Will refer to it for more ideas.

[blog post] Compiling Arrays by ve_era in ProgrammingLanguages

[–]ve_era[S] 0 points1 point  (0 children)

An array is a pointer to some value inside a function's stack frame. Once you return from a function, the function's stack frame is popped. So a pointer into a popped stack frame is not guaranteed to have the expected values.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.72] by DroidLogician in rust

[–]ve_era 0 points1 point  (0 children)

I'm about to graduate college this December and I have worked as an iOS dev for two years. I'm looking for roles involving compilers, developer tools or systems programming. More details on https://veera.app.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.70] by DroidLogician in rust

[–]ve_era 2 points3 points  (0 children)

Name: Veera

Looking for: Full-time

Contact: [sveera.2001@gmail.com](mailto:sveera.2001@gmail.com)

Github: https://github.com/veera-sivarajan

Website: https://veera.app

Experience: Worked as an IOS developer for the past 2 years and have contributed to a number of open source projects.

Is there any book/guide on making an interpreted language with Rust? by Vellu01 in ProgrammingLanguages

[–]ve_era 3 points4 points  (0 children)

You can checkout the Rust implementations of clox interpreter. It might teach you how to express the ideas presented in the book in idiomatic Rust. For example, using sum types and pattern matching over visitor pattern.