zeam-vm / pelemay

Pelemay is a native compiler for Elixir, which generates SIMD instructions. It has a plan to generate for GPU code.
Apache License 2.0
186 stars 13 forks source link

Generate stub Elixir code by macros instead of a module file #156

Open zacky1972 opened 3 years ago

zacky1972 commented 3 years ago

Current Pelemay generates a stub Elixir code as a module file in Application.app_dir(:pelemay, "priv").

This implementation has an issue that Pelemay code cannot be executed at all in case that the file cannot be generated.

So, Pelemay should generate it as macros instead of a module file.

zacky1972 commented 3 years ago

I believe that will be useful to support mix upload.hotswap.