adam mcdaniel

Results 41 comments of adam mcdaniel

Additionally, we could add some compiler optimizations similar to Haskells GHC plugin system (with a TON of work) ```rust #[optimize (if (true) $then_body else $else_body) -> ($then_body)] ``` This could...

Wow, this is beautiful. I'm ***extremely*** pleased with this. I wanted to write something like this myself, but I didn't know how!

I plan to as soon as possible, expect a PR very soon.

@kevinramharak I think we should structure it by 1. Syntax 2. Type system - Expressions - Constants - Functions - Structures 3. Compiler Directives I think this would be the...

I have a `tour.md` in the works right now to lightly cover documentation until we beef up the docs a bit.

The `extern` flag would only be able to include files of the target language. For including Oak files, there's already the `include` flag. Check the examples folder for example usage...

Hmm, that's an interesting thought. I assumed that whichever platform the compiler is running on would be the platform the generated code is running on, but I see that MIGHT...

I also see some problems with the `#[no_std]` flag. What happens when a file that requires the standard library includes a file with the `#[no_std]` flag?? Maybe a `#[require_std]` flag...

I don't think it's that much of a stretch to require the user to use a `#[require_std]` flag. It's similar to how C, by default, does not require the standard...

Yes, I think having both flags would definitely work. With the `no_std` flag (or the lack of a `require_std` flag), _only_ the core VM instructions should be included along with...