Search
Saturday, 14th of October 2017, 20:42:12 UTC
21:08:13
drmeister
How does one ensure that quicklisp is available in an sbcl installation?
21:09:02
Shinmera
sbcl doesn't bundle quicklisp
21:09:03
drmeister
I've added a dependency of 'esrap+sbcl' to building clasp - now I have the headache of figuring out how to ensure that it is available.
21:09:50
Shinmera
download the quicklisp.lisp file, run quicklisp-quickstart:install with the directory set to something local to the build
21:10:23
jackdaniel
drmeister: if you depend on some particular libraries, just use (ql:bundle-systems '(esrap) :to "clasp/sbcl-build/libraries")
21:10:47
jackdaniel
and given sbcl is available load this bundle
21:17:56
drmeister
jackdaniel: Thank you - I'll try that. How do you load that system then?
21:21:23
drmeister
I guess load the "bundle.lisp"
21:23:42
drmeister
No - that doesn't appear to do it
21:26:05
drmeister
I see: https://www.quicklisp.org/beta/bundles.html
21:35:33
drmeister
I added alexandria to the bundle as well - but I'm getting this when I try to use them.
21:35:36
drmeister
https://www.irccloud.com/pastebin/iEo1ywc7/
21:36:00
drmeister
Has anyone seen this before? Unhandled SB-FASL::FASL-HEADER-MISSING in thread #<SB-THREAD:THREAD "main thread" RUNNING
21:38:52
pjb
I would clear the cache and recompile everything…
21:42:31
scymtym
drmeister: is the fasl file corrupt? maybe check with xxd FILE | head or od FILE | head
21:44:48
drmeister
Hmmm, it might be the build system.
21:45:23
drmeister
It runs multiple copies of sbcl in parallel - one or more might be trying to compile the bundle at the same time.
22:23:40
drmeister
Yes - that was the problem.
22:24:16
drmeister
I injected a task that all the other sbcl tasks depend on and it loads the bundle and compiles the alexandria and esrap source
4:27:14
beach
Good morning everyone!
4:39:10
drmeister
What do people use to divide an integer by two?
4:39:17
drmeister
If you want an integer?
4:40:43
beach
The latter corresponds better to the intended use, and the same code ought to be generated when the second argument is a constant.
4:42:09
Bike
though it won't be on clasp
4:43:22
drmeister
It's going to involve a lot of work to get methods wrapped properly.
4:44:03
beach
You just make a compiler macro on FLOOR, no?
4:44:31
drmeister
beach: Yeah - C++ methods
4:44:32
Bike
that could be done, yes
4:44:52
drmeister
CL_EXTERN_DEFMETHOD(IRBuilder_O,&IRBuilder_O::ExternalType::CreateStore);
4:44:53
Bike
check if it's a fixnum, if it is do.... whatever machine thing
4:44:56
drmeister
Needs to be converted to...
4:45:05
Bike
there are some funny optimizations on that that take more work though
4:45:06
drmeister
CL_EXTERN_DEFMETHOD(IRBuilder_O, (llvm::StoreInst (*)(llvm::Value *Val, llvm::Value *Ptr, bool isVolatile)) &IRBuilder_O::ExternalType::CreateStore);
4:45:21
beach
drmeister: I think the more work being done in Common Lisp, the more flexible the code, thus enabling more transformations.
4:46:07
drmeister
I'm talking about the CL/C++ interop - we are trying to improve performance
4:46:39
beach
Oh, I thought you were talking about dividing by 2. Sorry.
4:47:12
drmeister
I'm all over the place at the moment.
6:55:11
borei
got confused with variables type, im expecting that im going to use FLOAT, but lisp doesn't agree with me and uses double
6:55:40
borei
as a result - type error, and not going forward
6:55:49
borei
https://pastebin.com/E34L4Br8
6:55:59
borei
if somebody can take a look
6:56:34
borei
there is function (part of the function where i localized problem) and backtrace
7:00:55
beach
borei: pi is double float, so everything gets converted to that.
7:03:20
borei
how, that is very basic thing
7:13:50
borei
hmm, is there way to convert double to float ?
7:14:13
borei
but getting double float
7:15:08
borei
or maybe just introduce *pi* as float
7:17:54
beach
FLOAT is the super-type of all floats.
7:18:03
beach
So if it is already a double float, then it is a float.
7:18:12
beach
So the coercion won't do anything.
7:18:18
beach
You need to coerce to single-float.
7:36:46
beach
borei: Are you a native speaker of French?
Sunday, 15th of October 2017, 8:42:12 UTC