freenode/#lisp - IRC Chatlog
Search
23:05:11
White_Flame
hmm, cl+ssl doesn't quickload because of a non-exported symbol from usocket. This can't just be me, right?
23:05:25
White_Flame
broke in my old code when I cleared cache, as well as after the latest update-all-dists
23:15:52
White_Flame
yep, I just found an old usocket nested deep in some old libs directory of one of my local-projects symlinks. whee
0:19:35
torbo
Is the runtime of the length function when called on a string in Common Lisp/SBCL (O 1) or (O n), where n is the number of characters in the string?
0:21:53
Bike
there's no formal guarantee or anything, but every lisp implementation i know of implements strings (and arrays generally) as contiguous memory blocks like you'd expect
0:23:23
torbo
Right, I'm wondering whether the size of the contiguous memory block is something that's tracked, or does SBCL have to iterate through it until it gets to the end to find out how big it is.
0:51:02
Bike
technically an implementation could not do this, and instead use null termination or something, but that's pretty unlikely
3:47:31
jasom
Technically Nul is not one of the standard characters so an implementation could fail to support embedded Nul characters
3:48:16
Bike
i didn't mention that since that makes the scenario more fanciful. also if there is a character it would have to support putting that character in a string
4:26:12
easye
ABCL could really use a release that optimizes loading times: the new implementation of loading things in abcl-1.8.0 slowed things down by a factor of 2x-3x.
4:30:54
beach
easye: Yes, I know. I just don't know whether it is good to work a lot (and not get much done) or work less (for the same amount of work).
4:32:24
beach
In the past I often had students who complained about mediocre grades on some homework, saying they put in a lot of work. But I told them, it's the result that counts, not how tired you are.
7:42:34
White_Flame
so when using ql libs that pull in .so/.dynlib, are there tools or best practices on how to get an actual executable that doesn't die on startup on another machine without a bunch of stuff natively installed?
8:01:36
moon-child
White_Flame: bundle all the libs you need. You should be able to use strace (or similar) to see everything that gets loaded
8:03:12
White_Flame
as I've not done this before, is it common across OSes to search for dynamic libraries in the executable's directory?
8:07:36
moon-child
also if you put the libs in a separate dir from the executable (which is imo cleaner), the variable to set on windows is PATH