These are chat archives for fourthbit/spheres

30th
Oct 2015
ovenpasta
@ovenpasta
Oct 30 2015 10:50
hi, there is some way of reloading a library? with the (load (spheres etc)) I don't get the changes
And I must restart gsi.
Álvaro Castro-Castilla
@alvatar
Oct 30 2015 11:02
Spheres won't reload libraries already loaded. That's how Gambit works too, you can't reload compiled files. If you want to reload a source file, it is possible but I think changes need to be done. The procedure doing all that is in spheres/gambit/library.scm and it should be easy to change.
I never wanted to reload a module because if you work with the REPL you do all the dynamic development there, and the libraries you load are "stable"
ovenpasta
@ovenpasta
Oct 30 2015 13:11
I make an example I'm fixing some stuff in the spheres libraries. And to test the fixes I need the REPL. Each time I must exit from REPL and then enter again. This is not dynamic :) Maybe better to run tests from the shell?
Álvaro Castro-Castilla
@alvatar
Oct 30 2015 13:58
I use emacs, where you send the top level expressions I updated and run the code again
I think I implemented a :force optional argument
You can use it just as :compile
However, if the libraries are compiled and loaded, you need to restart gambit. This is a limitation of gambit, you cannot reload object files.