libera/#clasp - IRC Chatlog
Search
23:18:42
Bike
I am on variably. And yeah that's what that function does, with a BIR module. What you're describing is along the lines of what I've been imagining
23:19:12
Bike
The bytecode modules already kind of do constants in this way, but we'd have to add some stuff for load-time-value, and for generating the faso machin code of course
23:20:53
Bike
What I've been figuring is that for compile file we would make a bytecode compiler module, and then keep adding functions into it, and then at the end we have a bunch of bytecode cfunctions, a vector of constants to generate code for, and probably a vector of load-time-value forms or functions or something. then we fasoify it during linking.
23:21:11
Bike
the linking process would be a little different, since at compile time we wouldn't actually need to make bytecode entry points (though we could if we wanted)
23:42:52
Bike
for load-time-value, we'd probably have a bytecode function for each one, to compute the initial value, so we'll have to arrange something in FASOs to call bytecode functions for that (as opposed to native, which we do now)
0:58:48
anker
I'm new to all of this, tasked with generating builds from AST with clasp. I'm trying to find docs on the packages/API in clasp (esp. CLANG-AST, C, CLANG-TOOL, etc.) and demo code to get started, introduce myself and hopefully get some help!
1:14:39
Bike
anker: our documentation is at https://clasp-developers.github.io/. I don't think we have documented the clang AST matchers/libtooling stuff, which we don't load for normal use
5:13:16
nij-
I've just watched this nice talk again https://www.youtube.com/watch?v=8X69_42Mj-g Got a bit confused.. seems that the goal is to use C++ libs easily in CL. But why go all over the ways? Can't we just use CFFI to glue CL and C++ with C?
5:30:33
drmeister
whereiseveryone: yes - we just added the feature to start/run/shutdown clasp as a library
5:35:48
drmeister
We haven’t set up clasp to build as a library yet. That would require a bit of work with the build system.