freenode/#clasp - IRC Chatlog
Search
15:22:34
Bike
drmeister: using analyze_test by itself doesn't work. some file missing. i'm trying the imps thing now.
16:15:15
kpoeck
Bike: I use the following to get current optimisation settings, si that correct? (cleavir-env:optimize (cleavir-env:optimize-info clasp-cleavir:*clasp-env*))
17:13:55
Bike
kpoeck: i'm actually hoping to move away from cleavir-env in the near future, so it would probably be better to throw a function into ext. does asdf want global settings or in an environment? what format is the result?
17:18:09
kpoeck
(UIOP/LISP-BUILD:GET-OPTIMIZATION-SETTINGS) -> ((SPEED 1) (SPACE 1) (SAFETY 1) (DEBUG 1) (COMPILATION-SPEED 1))
17:19:05
kpoeck
(cleavir-env:optimize (cleavir-env:optimize-info clasp-cleavir:*clasp-env*)) seem to return, what is required
17:20:02
kpoeck
so perhaps define (defun ext:get-current-optimisation-settings () (cleavir-env:optimize (cleavir-env:optimize-info clasp-cleavir:*clasp-env*)) )
17:25:01
Bike
the implementation looks like it tries to go through a bunch of variables rather than call any functions
17:33:00
Bike
i think i'll also go ahead and define a clasp-cltl2 package with a stable environment interface
17:39:40
drmeister
You must run ./waf build_impsprep before running ./waf analyze_clasp or ./waf analyze_test - yes.
17:40:47
drmeister
Here's the poop - ./waf build_impsprep generates the build/mpsprep/compile_commands.json file.
17:41:33
drmeister
Unfortunately waf generates that file at the VERY END of the ./waf build_impsprep
17:42:12
drmeister
So I can't generate it quickly - or I would put it in with analyze_test/analyze_clasp commands.
17:42:46
drmeister
Also, if you do an incremental ./waf build_impsprep then it will only generate the compile commands for the files that it incrementally builds VERY ANNOYING.
17:43:10
drmeister
So - ugh - I've had to live with this: ./waf clean_impsprep build_impsprep analyze_xxxx
17:44:33
drmeister
Also ./waf build_impsprep checks the C++ code to see if it will build cleanly and thus analyze cleanly. That's very useful.
17:46:20
drmeister
So now we need to take the .sif files for every extension and generate a model of all exposed classes within Cando and then generate something like clasp_gc_xxxx.cc that clasp can use for precise GC with snapshot save/load.
17:47:21
drmeister
Once we have this - then we have a clean way to add extensions to clasp by setting them up in the extensions directory.
20:56:02
Bike
i put in a cltl2 environments interface. (clasp-cltl2:declaration-information 'optimize) is now another way @kpoeck