Search
Monday, 17th of July 2017, 21:13:57 UTC
21:15:22
Bike
regl: usually i work with subsystems... i think there are directions in the readme now, though
21:16:38
regl
yes I followed the directions
21:16:51
regl
but I got one failure in one of the files
21:17:23
regl
debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread #<THREAD "main thread" RUNNING {10031A63F3}>: COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "cleavir-environment" "compile-time">
21:17:30
regl
this is anything but trivial
21:18:21
Bike
it's certainly not trivial
21:18:33
Bike
that one'os probably my fault. if you talk to me in like an hour i can help you out
21:18:55
regl
my fault that I took the latest repo
21:19:02
regl
in one hour I will go to sleep
21:35:13
phoe
How do I tell ASDF to re-register local projects?
21:35:21
phoe
(I keep forgetting this. I use Quicklisp too much.)
21:36:48
shka_
phoe: uhm, why not use quicklisp… again?
21:37:13
shka_
put stuff into local-project and call ql function
21:37:20
phoe
shka_: I want a pure-ASDF solution that does not depend on QL
21:37:26
phoe
and there is one, I just forgot it
21:37:48
shka_
i think that i did this onec
21:38:36
phoe
ACTION notes: ASDF puts people to sleep
21:45:38
pjb
It calls (ql:register-local-projects)
2:14:16
adulteratedjedi_
** NICK adulteratedjedi
2:14:31
LyndsySimon_
** NICK LyndsySimon
5:26:49
beach
Good morning everyone!
6:10:25
axion
Does anyone happen to use company-mode in common lisp code buffers? I am trying to switch from auto-complete, but it seems to only be working in the repl mode. I would be interested in checking out someone's emacs config if it's no trouble.
7:31:57
phoe
axion: it works for me, but I use spacemacs - it's bundled in.
8:08:01
anticrisis
** NICK anticrisis_
8:20:35
phoe
What is the Lisp idiomatic way of counting digits of an integer?
8:21:01
phoe
I'd use a truncated decimal logarithm for that.
8:21:16
beach
I suppose you don't count initial zeros?
8:21:37
phoe
I'd always have infinite digits if I counted them. :)
8:21:50
phoe
I want (digits 1234567890) ;=> 10 in this case.
8:22:22
phoe
Also (digits -12345) ;=> 5 and (digits 0) ;=> 1, but these are easy once I have the tool for positive integers.
8:22:30
beach
Yes, the logarithm base 10 will probably. You might run into problems with precision if the numbers are large.
8:23:00
phoe
Either this, or I print an integer to string and use LENGTH.
8:23:32
beach
Does it have to be fast?
8:24:00
phoe
But then, my numbers won't have more than 100 digits I think, soo.
8:24:18
beach
Sure, then the length of the printed representation is probably best.
8:24:28
phoe
loke: yes, that's what I was thinking.
8:24:38
phoe
beach: with so little digits, LOG won't lose precision either.
8:30:52
otwieracz
Is this possible to match UNIX thread PID with SBCL thread?
8:31:04
anticrisis_
** NICK anticrisis
8:43:52
loke
The native function create_thread returns the thread id, but that return value is thrown away.
8:44:35
phoe
sounds like an improvement to SBCL
8:45:01
loke
I think it would make sense to save that value in the thread structure.
8:45:12
loke
You should psot it to the developer mailing list (or better, submit a patch)
8:45:28
phoe
just exactly my thoughts about saving it in the thread structure
8:45:31
loke
Check the function make-thread in target-thread.lisp
8:45:42
phoe
so later it can be retrieved
8:45:55
loke
You can see a call to %create-thread there. It checks whether the retyurn value is zero, bu8t if not, it should save it in the thread structure.
8:46:02
loke
Should be a small change to that function.
Tuesday, 18th of July 2017, 9:13:57 UTC