justinethier / cyclone

:cyclone: A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
http://justinethier.github.io/cyclone/
MIT License
825 stars 44 forks source link

Allow the interpreter to load an uncompiled library #401

Open justinethier opened 4 years ago

justinethier commented 4 years ago

It would be nice if the interpreter could load (import / include / load) an uncompiled library. Right now it would need to be compiled and then loaded via import which works but is less flexible.

arthurmaciel commented 3 years ago

I agree this would leverage prototyping to a next level.

justinethier commented 3 years ago

The difficulty here is that we would need to interpret the contents of the library. I do not believe we have direct support in the interpreter for define-library so that will nee to be added. There are also some forms that cannot be interpreted - I believe mostly this would mean define-c and any other forms that require the C compiler.

That said this would be very useful for development, and would probably be relevant to most libraries.