ValeLang / Vale

Compiler for the Vale programming language - http://vale.dev/
https://vale.dev/
Apache License 2.0
1.79k stars 54 forks source link

Inline Assembly #474

Open nico-abram opened 2 years ago

nico-abram commented 2 years ago

This is mostly a question. After reading about vale's safety claims, and it's various comparisons with C++ and rust, I'm wondering how it plans to handle inline assembly, which is necessary for many C++/rust usecases.

Verdagon commented 2 years ago

Hey, good question, and you've inspired me to add this page to the guide: https://vale.dev/guide/unsafe

I think these unsafe blocks actually give us a really nice place to put inline assembly.

Some caveats:

I'd love to hear more, since I've rarely gone down to assembly for my systems programming endeavors. What would you like to see here, and what languages have done particularly well with their inline assembly features?