willmichael has quit [Read error: Connection reset by peer]
hel-io has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #lisp
willmichael has joined #lisp
sysfault has joined #lisp
willmichael has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
sysfault has quit [Client Quit]
stacksmith has quit [Ping timeout: 252 seconds]
sysfault has joined #lisp
heurist`_ has joined #lisp
rumbler31 has quit [Remote host closed the connection]
heurist` has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #lisp
comborico has quit [Quit: Konversation terminated!]
wxie has quit [Remote host closed the connection]
willmichael has joined #lisp
FreeBirdLjj has quit [Ping timeout: 248 seconds]
MochaLoca is now known as Sauvin
FreeBirdLjj has joined #lisp
Tordek_ is now known as Tordek
nowhereman_ has joined #lisp
nowhere_man has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
moei has joined #lisp
wigust- has joined #lisp
cmatei has quit [Ping timeout: 240 seconds]
wigust has quit [Ping timeout: 256 seconds]
moriarty has joined #lisp
hel-io has joined #lisp
moriarty has left #lisp [#lisp]
dieggsy has joined #lisp
cmatei has joined #lisp
FreeBirdLjj has joined #lisp
<stylewarning>
I'm beginning to think I'd love X.Y to be an alias for (X-Y X)
<whoman>
why not? can it be done ? oh wait i thought this was #prolog
<stylewarning>
(:
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
<borei>
trying to create method with type specializer (simple-array single-float *) - compiler is not happy
<stylewarning>
borei: methods take class names, not types
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<stylewarning>
borei: you can do non-portable and brittle things like specializing on your implementation's classes for those objects, like in SBCL, SB-KERNEL::SIMPLE-ARRAY-SINGLE-FLOAT
<fouric>
...would anyone happen to know if there exists a concise description of *how* Mezzano works, and if so, where it is?
<borei>
ok, using just `simple-array` - should be ok then?
<fouric>
I'm willing to read the code if necessary, but there's a *lot* of it, and if a shortcut exists, I would love to take it
<Bike>
no, simple-array is not necessarily a class either.
<borei>
hmm
FreeBirdLjj has joined #lisp
<borei>
OOP in Common List, page 83
<borei>
mapping of CLOS types to common lisp types
<borei>
now im confused
<Bike>
well basically a class is a pretty strict delineation of objects.
<Bike>
but implementations have a lot of freedom in deciding what a simple array is.
<froggey>
my very concise description: it compiles everything to native code. the runtime is written in a way that doesn't require any extra support
hel-io has quit [Ping timeout: 245 seconds]
uuplusu_ has quit [Ping timeout: 240 seconds]
hel-io has joined #lisp
Oladon has joined #lisp
mlf has quit [Ping timeout: 240 seconds]
<Zhivago>
Although, really, you never want to dispatch on type.
<Zhivago>
If you do, it means that you're probably conflating semantics in some terrible fashion.
smasta has joined #lisp
mlf has joined #lisp
willmichael has quit [Ping timeout: 252 seconds]
jsn``` has joined #lisp
jsn`` has quit [Ping timeout: 245 seconds]
<nydel>
thanks fe[nl]ix (link to script) i try this now.
hel-io has quit []
<aeth>
Zhivago: Depends. If you're doing linear algebra stuff you have (simple-array single-float (3))s that you might want to treat differently than other things.
<aeth>
But it basically just makes sense for specialized arrays of numbers.
fikka has quit [Ping timeout: 245 seconds]
jsn```` has joined #lisp
FreeBirdLjj has joined #lisp
jsn``` has quit [Ping timeout: 245 seconds]
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zolk3ri has quit [Quit: leaving]
wxie has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
smasta has quit [Ping timeout: 248 seconds]
fisxoj has joined #lisp
FreeBirdLjj has joined #lisp
arescorpio has joined #lisp
wxie has quit [Quit: Bye.]
erikc has quit []
FreeBirdLjj has quit [Ping timeout: 248 seconds]
smasta has joined #lisp
fikka has joined #lisp
mikecheck has joined #lisp
FreeBirdLjj has joined #lisp
jstypo has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
Vicfred has quit [Quit: Leaving]
d4ryus3 has joined #lisp
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #lisp
d4ryus2 has quit [Ping timeout: 252 seconds]
jmarcian` has joined #lisp
jstypo has joined #lisp
jmarciano has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 240 seconds]
dieggsy has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
fikka has joined #lisp
<fouric>
lol ty froggey
<fouric>
(that actually does help a bit)
erikc has joined #lisp
vultyre has joined #lisp
karswell_ has quit [Ping timeout: 260 seconds]
Mutex7 has joined #lisp
damke has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
damke_ has quit [Ping timeout: 264 seconds]
ebzzry_ has quit [Read error: Connection reset by peer]
ebzzry_ has joined #lisp
SaganMan has joined #lisp
sfa has joined #lisp
erikc has quit []
patrixl has quit [Quit: ERC (IRC client for Emacs 26.0.91)]
FreeBirdLjj has joined #lisp
python476 has quit [Ping timeout: 252 seconds]
chat__ has quit [Ping timeout: 255 seconds]
chat has joined #lisp
chat is now known as Guest25308
FreeBirdLjj has quit [Ping timeout: 245 seconds]
oxo1o1o1o has joined #lisp
jsn```` has left #lisp ["ERC (IRC client for Emacs 25.2.1)"]
FreeBirdLjj has joined #lisp
learning has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
AxelAlex has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
tkhoa2711 has joined #lisp
FreeBirdLjj has joined #lisp
arescorpio has quit [Excess Flood]
pjb has quit [Ping timeout: 256 seconds]
tkhoa2711 has quit [Quit: tkhoa2711]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Karl_Dscc has joined #lisp
sfa has quit [Read error: Connection reset by peer]
arqueiro has joined #lisp
FreeBirdLjj has joined #lisp
damke_ has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
damke has quit [Ping timeout: 264 seconds]
mikecheck has left #lisp ["part"]
fikka has joined #lisp
schoppenhauer has quit [Ping timeout: 252 seconds]
<beach>
Good morning everyone!
schoppenhauer has joined #lisp
nowhere_man has joined #lisp
FreeBirdLjj has joined #lisp
nowhereman_ has quit [Ping timeout: 256 seconds]
learning has joined #lisp
pjb has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
Naergon has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #lisp
smasta has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
FreeBirdLjj has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
arqueiro has left #lisp [#lisp]
saki has quit [Remote host closed the connection]
tkhoa2711 has joined #lisp
tkhoa2711 has quit [Client Quit]
vultyre has quit [Quit: Leaving]
axg has joined #lisp
saki has joined #lisp
compro has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
<whoman>
good morning
<beach>
Hello whoman.
axg has quit [Ping timeout: 256 seconds]
wxie has joined #lisp
wxie has quit [Client Quit]
<SaganMan>
Morning beach
Oladon has quit [Quit: Leaving.]
SaganMan has quit [Quit: later]
smokeink has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
pjb has quit [Remote host closed the connection]
dessm has quit [Remote host closed the connection]
Oladon has joined #lisp
fikka has joined #lisp
pierpa has quit [Quit: Page closed]
damke_ has joined #lisp
learning has quit [Remote host closed the connection]
saki has quit [Ping timeout: 248 seconds]
mrm has joined #lisp
smurfrobot has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
krwq has joined #lisp
sfa has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
sfa has quit [Quit: leaving]
damke_ has joined #lisp
saki has joined #lisp
damke has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
vlatkoB has joined #lisp
Bike has quit [Quit: Lost terminal]
fourier has joined #lisp
Arcaelyx has joined #lisp
shka_ has joined #lisp
fourier has quit [Ping timeout: 245 seconds]
elderK has quit [Quit: WeeChat 1.9]
fisxoj has quit [Quit: fisxoj]
uuplusu__ has quit [Remote host closed the connection]
Oladon has quit [Quit: Leaving.]
figurehe4d has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
mishoo has joined #lisp
fourier has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
<phoe>
On SBCL, how can I identify the thread that takes up 100% of my CPU if I have several worker threads?
<st_iron>
top -H
<st_iron>
or ps with -T
<phoe>
Yes, sure, but that will not give me the thread name assigned to it by BORDEAUX-THREADS, will it?
<st_iron>
i am not sure
<phoe>
Or by SBCL.
<st_iron>
probably htop has a feature that gives the thread names
<phoe>
I can see the thread in top or htop, no problem, but I want to identify *which* one it was, and what it was doing.
<st_iron>
oh, sorry then
<st_iron>
i misunderstood the question
<shka_>
phoe: i don't think there is a way to do it…
uuplusu has joined #lisp
smurfrobot has quit [Remote host closed the connection]
<fourier>
phoe: add logging and thread id to the worker thread
<fourier>
in c/c++/java etc ides you can just hit pause in debugger and investigate what your threads are doing. not sure how can you do it in CL other than logging
<beach>
It's an interesting point though. Any sophisticated Common Lisp debugger must be able to help in such situations.
<phoe>
fourier: I already have this.
<phoe>
I have a hash-table from thread objects to descriptions of the tasks that they are doing now.
python476 has joined #lisp
<phoe>
But I have no way to figure out which task is stuck in a loop.
rumbler31 has joined #lisp
<shka_>
phoe: KILL AM ALL!!!
<phoe>
shka_: this is silly.
<shka_>
it is
uuplusu has quit [Ping timeout: 240 seconds]
<shka_>
but it should work to determine which one hang
<shka_>
if you do it one by one, that's it
<phoe>
Yes, of course, at the cost of destroying what they were doing.
<fourier>
beach: the cl debuggers haven't evolved with the whole envirenmont these years.
<phoe>
I do not want to do this on production servers.
uuplusu has joined #lisp
rumbler31 has quit [Ping timeout: 245 seconds]
<beach>
fourier: I know. It is even fair to say that no free Common Lisp system even has a debugger worthy of that name.
<jackdaniel>
fwiw you may debug ecl with gdb which is a canonical debugger ,)
<beach>
Good point. Not ideal of course.
<fourier>
jackdaniel: yep gdb is a thing :))
<jackdaniel>
abcl could be probably debugged with generic JVM tools too
<jackdaniel>
but I don't know that as a fact
<shka_>
phoe: well, perhaps you should try attach with GDB then
<shka_>
sbcl uses native threads, so they should show up
<phoe>
I will most likely get some thread IDs internal to the operating system.
<phoe>
So I get some OS IDs.
<phoe>
I need to map these to thread objects.
<shka_>
ok, sbcl should have way to do so
<fourier>
I find the general debugging in CL troublesome process. due to the nature of different rules like (if condition statement1 statement2) its not easy to add logging real quick - since I would have to add progn as well. also general unavailability of the nice stepper is a problem - the same with (break) - I have to modify my code and insteart progn there as well
<fourier>
the only nice debugging tool which fit the bill I found is Stepper in LW - and it was one of the reasons I've purchased it since it made my life so much easier
<shka_>
phoe: can't find anything in manual, though
<smokeink>
fourier: how is the stepper in LW different from the one in slime ?
<fourier>
dont know since I dont use slime anymore for active development..
<fourier>
if you can record a simple debugging session with it and place on youtube/animated gif/etc I can take a look and tell the difference/similarities
<smokeink>
well I tried both and they're quite the same, in my experience
saki has quit [Read error: Connection reset by peer]
<smokeink>
ok
<jackdaniel>
can anyone successfully call (ql:quickload 'clml) ;? I have a problem with loading package on sbcl
<smokeink>
System "clml.data.r-datasets-package" not found
<shka_>
jackdaniel: what is your heap size?
<jackdaniel>
I have the same as you smokeink, thanks
<shka_>
it loads for me
<jackdaniel>
I don't see why heap size would influence package finding(?)
<jackdaniel>
shka_: do you have newest ql dist?
<jackdaniel>
s/package/system/
<shka_>
yup
<jackdaniel>
hm
<shka_>
but maybe it was cached
<phoe>
I could theoretically make a function that repeatedly calls (interrupt-thread thread #'break) on all thread objects, also printing them out for me. And I can watch when the CPU goes down.
<phoe>
Like, calls #'BREAK consecutively on the next thread when I continue in the current one.
<smokeink>
fourier: here are some gifs http://malisper.me/debugging-lisp-part-1-recompilation/ "When Tom tries to calculate the tenth Fibonacci with this code, a debugger window pops up because an error was signaled." ...
<jackdaniel>
OK, I get it – clml depends on some system which is internal to it, but this system is not declared in ql dist
<jackdaniel>
so the problem arises if you quickload clml without having it downloaded first
<jackdaniel>
it may be solved by quickloading clml.utils first (then tgz is downloaded and missing system is found)
<shka_>
interesting
saki has joined #lisp
<shka_>
it loads for me
<shka_>
even after nuking cache
<fourier>
smokeink: I see. this is exactly what I dont like as I said - I want to have a "break" at any statement, and insterting manually (break) doesn't cut it - since it would force me to add progn for single-expression statements
<jackdaniel>
as I said, you probably had it already downloaded in ql
<jackdaniel>
I'm not talking about cache but sources in quicklisp/dists/quicklisp directory
<shka_>
maybe
<fourier>
while in LW I can just set breakpoint at any statement and then it will be hit the stepper will be popped out
<shka_>
it was a while since the last time used clml
<smokeink>
fourier: oh you're right, LW can set breakpoints on any sexp one wants
<smokeink>
I was thinking of coding a reader macro called bp! or something, that can be inserted anywhere and that does the progn wrapping and everything automatically
<fourier>
LW also has a process browser to see which threads are running, so in general its IDE really helps with debugging
<phoe>
fourier: #! is free for grabbing and looks like a good choice
<phoe>
...for a breakpoint reader macro, that is
<smokeink>
cool
<phoe>
wait, not fourier
<phoe>
smokeink:
Mutex7 has quit [Remote host closed the connection]
<smokeink>
and one can set a breakpoint keybinding in emacs and have this 'set breakpoint' functionality similar to the one in lispworks. Next, we need the view threads functionality . Doesn't slime have something for threads? slime is not useful for this particular threads issue you're experiencing now phoe?
smurfrobot has joined #lisp
<phoe>
smokeink: I don't know
<phoe>
I can use (bt:all-threads) to get a list of all thread objects currently running.
<phoe>
But I have no interactive means of measuring which one is taking up CPU.
<phoe>
HTOP shows thread IDs, but I have no mapping from thread IDs to thread objects.
<phoe>
Hm. One second though.
<phoe>
What is the way of getting current PID on SBCL?
<phoe>
I wonder if this will differ when ran from different threads.
jmarcian` has quit [Read error: No route to host]
jmarcian` has joined #lisp
fikka has joined #lisp
smurfrobot has quit [Ping timeout: 245 seconds]
<fourier>
should be something like native thread id
<phoe>
On Linux, it seems that each thread gets its own PID.
<phoe>
This is my hope.
<phoe>
If I get mapping from PIDs to thread objects, I'm home.
<smokeink>
sb-thread:*current-thread* <- what are os-thread and primitive-thread slots in this structure ?
<fourier>
as soon as you able to get native pid from thread object, all you would need to do is to iterate over all thread objects to find the proper thread object
<smokeink>
okay, then you must be using a different system. On my system it works perfectly. Find the gettid syscall code for your system and replace that 224 with it
<phoe>
I have a way to get a thread's ID, from *inside* that thread.
<phoe>
Therefore I will have to interrupt that thread to execute the syscall.
<phoe>
Is it safe?
<smokeink>
I have no idea.. :) but I think under the hood syscalls are always happening from within the thread
compro` has joined #lisp
uuplusu has quit [Remote host closed the connection]
uuplusu has joined #lisp
<smokeink>
I might be wrong, though
damke has quit [Ping timeout: 264 seconds]
compro has quit [Ping timeout: 248 seconds]
<smokeink>
why do you have to interrupt the thread ?
<phoe>
How am I going to execute the syscall then?
<phoe>
I have a thread that takes up 100% of the CPU.
<phoe>
I need its PID.
<phoe>
I can't execute the syscall from outside the thread because it will give me the PID of the thread that executed the syscall.
<phoe>
That syscall can't be executed "on another thread's behalf".
<phoe>
Unless we patch SBCL, so it executes that syscall on thread creation and puts its return value inside a new slot in the THREAD structure.
damke has joined #lisp
<phoe>
Which in turn generates issues for multiplatform support, because either it'll be Linux only and therefore ugly, or we do the same for all other platforms that it supports.
<smokeink>
can you patch the running thread ? and tell it to push its id and its thread-object into some list ?
<phoe>
Patch the running thread? How?
<phoe>
It's called interrupting it.
<smokeink>
I don't know whether it's possible, just thinking..
compro` has quit [Ping timeout: 252 seconds]
<phoe>
Sure thing that it can push it somewhere and then resume what it was doing.
<phoe>
Except I don't know if it's safe.
compro` has joined #lisp
pjb has joined #lisp
<smokeink>
just a random thought: is that thread making the machine run slow? Is it possible to change the priority of a thread and observe whether the machine got faster or not? if so, maybe playing with priorities is a way to find which of the threads is the culprit
<phoe>
If I go this way, I can (interrupt-thread thread #'break) and see if the CPU usage goes down from 100% to 0%.
<phoe>
That is safe enough to do.
disumu has joined #lisp
josemanuel has joined #lisp
damke has quit [Ping timeout: 264 seconds]
d4ryus3 is now known as d4ryus
<smokeink>
phoe: maybe
damke has joined #lisp
<phoe>
smokeink: that's what the SBCL manual tells me, anyway.
fikka has joined #lisp
disumu has quit [Remote host closed the connection]
smurfrobot has joined #lisp
smurfrobot has quit [Ping timeout: 256 seconds]
compro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
compro has joined #lisp
damke has quit [Read error: Connection reset by peer]
damke has joined #lisp
makomo has joined #lisp
learning has joined #lisp
learning has quit [Remote host closed the connection]
<phoe>
smokeink: woah, really!? it will also work on windows? let me see
<phoe>
hmmm
<phoe>
interesting
<smokeink>
phoe: turns out that for Windows a 1 liner is also possible: (sb-alien:alien-funcall (sb-alien:extern-alien "GetCurrentThreadId" (function sb-alien:unsigned)))
varjag has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
<phoe>
smokeink: please put it in the SO answer as well!
scymtym has joined #lisp
compro` has joined #lisp
papachan has joined #lisp
compro has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
uuplusu_ has quit [Remote host closed the connection]
uuplusu has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
scymtym_ has joined #lisp
Patternm1ster has quit [Quit: leaving]
Patternmaster has joined #lisp
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scymtym has quit [Ping timeout: 252 seconds]
Baggers has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
orivej has joined #lisp
FreeBirdLjj has joined #lisp
uuplusu has quit [Remote host closed the connection]
oruppert has joined #lisp
oruppert has left #lisp ["lisp"]
oruppert has joined #lisp
FreeBirdLjj has quit [Ping timeout: 248 seconds]
<oruppert>
Is it possible to automatically show the docstring for functions in slime?
<Xach>
oruppert: I don't think there's a bulit-in feature for that.
<oruppert>
Xach: thanks
<phoe>
oruppert: the best thing I know is (documentation 'foo 'function).
<phoe>
but that's Lisp and not slime.
uuplusu has joined #lisp
FreeBirdLjj has joined #lisp
<scymtym_>
C-c C-d d describes the object at point. for symbols, the description usually includes the docstring. this is not automatic, of course. C-c C-d ? lists a bunch of useful functions
heurist`_ has quit [Ping timeout: 240 seconds]
<oruppert>
It would be nice to see not only the argument list in the emacs message area, but also the first line of the docstring.
compro`` has joined #lisp
compro` has quit [Ping timeout: 240 seconds]
<fourier>
it would be long then
<phoe>
(subseq docstring 0 80) perhaps if the first line is longer than 80 chars
<oruppert>
fourier: arglist one line and first line of docstring one line
<Shinmera>
Things like auto-complete and company can give you the docstring in a popup
Bike has joined #lisp
Amplituhedron has joined #lisp
nowhereman_ has joined #lisp
nowhere_man has quit [Ping timeout: 252 seconds]
saki has quit [Read error: Connection reset by peer]
fikka has quit [Ping timeout: 252 seconds]
raynold has quit [Quit: Connection closed for inactivity]
attila_lendvai has quit [Quit: Leaving.]
<shka_>
Shinmera: hey, have you seen my message on github?
<Shinmera>
Yes
<shka_>
ok, cool
<Shinmera>
I get email notifications
makomo has quit [Quit: WeeChat 1.9.1]
uuplusu has quit [Remote host closed the connection]
<shka_>
just wanted to make sure :-)
makomo has joined #lisp
makomo has quit [Client Quit]
<oruppert>
It seams i can implement this by myself. Thanks for the hints.
makomo has joined #lisp
saki has joined #lisp
JenElizabeth has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
oruppert has left #lisp ["ERC (IRC client for Emacs 25.2.2)"]
quazimodo has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
solyd has joined #lisp
heurist`_ has joined #lisp
smurfrobot has joined #lisp
<smokeink>
<smokeink> Let's say I have this fib function that breaks when the parameter n equals 2 , https://stackoverflow.com/questions/27889989/stepping-in-sbcl-from-within-the-debugger?rq=1 How to proceed to STEPPING , right after the (break) , without using slime's Return From Frame" (R) and manually typing (fib 2) ? <beach> You probably can't, depending on the Common Lisp implementation you are using.
<smokeink>
beach: with sbcl and slime, one can just press s after the break took place :) and it will go into stepping mode
rumbler31 has joined #lisp
quazimodo has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
fourier has quit [Ping timeout: 245 seconds]
rumbler31 has quit [Ping timeout: 245 seconds]
<beach>
smokeink: Excellent!
FreeBirdLjj has joined #lisp
ym has quit [Remote host closed the connection]
<Baggers>
Is there a reliable way to check if a potential type specifier is valid? I have no use for this just curious. Closest I got was this horrible thing (handler-case (nth-value 1 (subtypep x nil)) (error ())) where x is the specifier
<Baggers>
Xach: that and the alexandria related one
<burton`>
If I have a (handler-case .... (error (e) (print e))) form, how do I get the actual error string from the condition 'e', rather than a non-readable representation of the error?
<Bike>
write-to-string
<Bike>
maybe with :pretty t or something
<loke>
(format nil "~a" condition)
<Bike>
there's no "error string" in general, just a procedure to make a string
<burton`>
with write-to-string I still get "#<UNBOUND-VARIABLE 4020008923>"
<burton`>
I'm thinking there's a more specific error message 'inside' the error object
<burton`>
ah, found it
<burton`>
thanks for your help
compro`` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
jstypo has quit [Read error: Connection reset by peer]
dieggsy has joined #lisp
trittweiler has quit [Ping timeout: 252 seconds]
damke has joined #lisp
raynold has joined #lisp
<dim>
14 years old recipe...
FreeBirdLjj has quit [Ping timeout: 256 seconds]
<dim>
why not just create a binary?
damke_ has quit [Ping timeout: 264 seconds]
hel-io has quit []
FreeBirdLjj has joined #lisp
EvW has joined #lisp
jstypo has joined #lisp
cmatei has quit [Remote host closed the connection]
papachan has joined #lisp
<Xach>
dim: It's not to illustrate an ideal situation, but a tool in the toolbox that may come in handy
<Xach>
It's pretty lightweight and doesn't rely on your lisp supporting shebang or anything.
<Xach>
I had a variation that took advantage of # starting a shell comment and #| starting a multi-line CL comment...something like (short paste a-coming)
<Xach>
":"
<Xach>
#|
cmatei has joined #lisp
<Xach>
exec sbcl --load <compute path to this file>
<Xach>
|#
<Xach>
(lisp code here)
<Xach>
lisp didn't see the shell part, and vice versa
rumbler31 has joined #lisp
Oladon has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
rumbler31 has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #lisp
Arcaelyx has joined #lisp
FreeBirdLjj has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<shka_>
i have lparallel question
<phoe>
shka_: ask it
<shka_>
is it possible to deadlock lparallel by calling pmap inside pmap?
<phoe>
shka_: seemingly yes
<shka_>
you don't know, don't you?
<phoe>
I can imagine how it is possible to deadlock them
<phoe>
PMAP is blocking
<phoe>
so your workers will be blocked, waiting for PMAP to complete
willmichael has quit [Ping timeout: 252 seconds]
<phoe>
but PMAP will never complete because all workers are blocked
<shka_>
yes, that' why i am asking
FreeBirdLjj has joined #lisp
willmichael has joined #lisp
<shka_>
but on the other hand, since pmap blocks thread, it can designate it's home thread for computation
<shka_>
this way, it will never deadlock, unless you explicitly put it in future
<shka_>
phoe: do you understand?
solyd has joined #lisp
<phoe>
shka_: yep.
<shka_>
sigh
<shka_>
i guess i check the source code
<phoe>
from what I understand, PMAP should never be put in code that the workers are executing.
<phoe>
or calls to any other PFOO, for the matter.
axg has joined #lisp
willmichael has quit [Ping timeout: 245 seconds]
papachan has quit [Quit: WeeChat 2.0.1]
<shka_>
phoe: you are not mistaken, but it is not in docs
fikka has joined #lisp
<phoe>
shka_: you can theoretically put calls to parallel functions in there, as long as you redefine *KERNEL* to something else
willmichael has joined #lisp
<phoe>
which kind of misses the point
<shka_>
that's kinda defeats the point
<phoe>
it's like creating a thread that waits for itself to join
<shka_>
well, in future we trust!
kolko has joined #lisp
mlf has joined #lisp
<shka_>
having said that, i can't do this for everything
<shka_>
but should not matter
FreeBirdLjj has quit [Ping timeout: 256 seconds]
terpri has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
mareskeg has quit [Read error: Connection reset by peer]
willmichael has quit [Read error: Connection reset by peer]
Karl_Dscc has quit [Remote host closed the connection]
dieggsy has quit [Ping timeout: 245 seconds]
scymtym_ has quit [Ping timeout: 252 seconds]
krwq has joined #lisp
terpri has joined #lisp
kolko has quit [Ping timeout: 252 seconds]
kolko has joined #lisp
smurfrobot has joined #lisp
fourier has joined #lisp
smasta has quit [Ping timeout: 245 seconds]
smurfrobot has quit [Ping timeout: 252 seconds]
scymtym has joined #lisp
dtornabene has joined #lisp
EvW has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #lisp
willmichael has joined #lisp
axg has quit [Quit: leaving]
stacksmith has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
kolko has quit [Ping timeout: 252 seconds]
igemnace has joined #lisp
FreeBirdLjj has joined #lisp
fourier has quit [Ping timeout: 252 seconds]
damke_ has joined #lisp
damke has quit [Ping timeout: 264 seconds]
willmichael has quit [Read error: Connection reset by peer]
Naergon has quit [Ping timeout: 240 seconds]
willmichael has joined #lisp
smasta has joined #lisp
ninegrid has quit [Quit: leaving]
rumbler31 has joined #lisp
lnostdal has quit [Ping timeout: 255 seconds]
EvW1 has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
FreeBirdLjj has quit [Ping timeout: 276 seconds]
milanj has joined #lisp
FreeBirdLjj has joined #lisp
smurfrobot has joined #lisp
Jesin has joined #lisp
fourier has joined #lisp
msb has joined #lisp
smurfrobot has quit [Ping timeout: 245 seconds]
makomo has quit [Ping timeout: 252 seconds]
parjanya has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
Kundry_Wag has joined #lisp
FreeBirdLjj has joined #lisp
smurfrobot has joined #lisp
hel-io has joined #lisp
willmichael has quit [Ping timeout: 245 seconds]
Arcaelyx_ has joined #lisp
Arcaelyx has quit [Ping timeout: 245 seconds]
<krwq>
what's the most generic specialization for strings in defgeneric? I've tried using just `string` but it seems that when element is #<(SIMPLE-ARRAY CHARACTER (3)) {10099D919F}> this doesn't worl
fikka has quit [Ping timeout: 245 seconds]
willmichael has joined #lisp
<phoe>
krwq: (stringp (make-array 10 :element-type 'character)) ;=> T
<krwq>
maybe some symbol got interned in the wrong package
comborico1611 has joined #lisp
FreeBirdLjj has quit [Read error: Connection timed out]
makomo has joined #lisp
<krwq>
I legitimately don't know wtf
<krwq>
it's not about string though
<krwq>
I'm seeing method specialization with the exact types compiler claims it cannot find
<krwq>
probably something stupid
<krwq>
is there a way to force errors when generic functions are created implicitly when defmethod is used?
<Bike>
not in any way that's not overcomplicated, i don't think.
Kundry_Wag_ has joined #lisp
<krwq>
omg i know, I got (foo) instead of foo and couldn't see the brackets on the error
<fourier>
fe[nl]ix: I've fixed that you've requested in osicat pull requests(there are 2 from me), but there is something strange on travis - sbcl unable to install.. I guess
Kundry_W_ has joined #lisp
FreeBirdLjj has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
Kundry_Wag has quit [Ping timeout: 252 seconds]
Kundry_Wag_ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Ping timeout: 252 seconds]
dieggsy has joined #lisp
smurfrobot has joined #lisp
Karl_Dscc has joined #lisp
fikka has joined #lisp
smurfrobot has quit [Ping timeout: 260 seconds]
random-nick has joined #lisp
mishoo has quit [Ping timeout: 248 seconds]
Chream_ has joined #lisp
<comborico1611>
I've got some newb questions in the other channel, if anyone is up for it.
krwq has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
Kundry_Wag_ has joined #lisp
Kundry_W_ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
mishoo has joined #lisp
sthalik has quit [Read error: Connection reset by peer]
Kundry_Wag has quit [Ping timeout: 252 seconds]
sthalik has joined #lisp
smurfrobot has joined #lisp
vlatkoB has quit [Remote host closed the connection]
Chream_2 has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
AxelAlex has joined #lisp
Kundry_Wag_ has quit [Remote host closed the connection]
smurfrobot has quit [Ping timeout: 245 seconds]
Kundry_Wag has joined #lisp
AxelAlex has quit [Ping timeout: 245 seconds]
aindilis has joined #lisp
AxelAlex has joined #lisp
<phoe>
comborico1611: sure, I'm there.
Kundry_Wag has quit [Ping timeout: 252 seconds]
fikka has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #lisp
smurfrobot has joined #lisp
aindilis has quit [Remote host closed the connection]
fikka has joined #lisp
damke has joined #lisp
smurfrobot has quit [Ping timeout: 248 seconds]
aindilis has joined #lisp
AxelAlex has quit [Remote host closed the connection]
AxelAlex has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
random-nick has quit [Read error: Connection reset by peer]
AxelAlex has quit [Remote host closed the connection]
AxelAlex has joined #lisp
AxelAlex has quit [Client Quit]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
willmichael has quit [Ping timeout: 248 seconds]
willmichael has joined #lisp
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #lisp
FreeBirdLjj has joined #lisp
borei has quit [Quit: Leaving.]
Oladon has quit [Quit: Leaving.]
knicklux has quit [Quit: Leaving]
nowhere_man has quit [Ping timeout: 240 seconds]
nowhere_man has joined #lisp
asarch has quit [Quit: Leaving]
smurfrobot has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
fikka has quit [Ping timeout: 245 seconds]
smurfrobot has quit [Ping timeout: 240 seconds]
smurfrobot has joined #lisp
FreeBirdLjj has joined #lisp
smurfrobot has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
mishoo has quit [Ping timeout: 240 seconds]
igemnace has quit [Quit: WeeChat 2.0.1]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
ninegrid has joined #lisp
mareskeg has joined #lisp
fourier has quit [Ping timeout: 252 seconds]
mareskeg has quit [Quit: mareskeg]
Kundry_Wag has joined #lisp
Chream_2 has quit [Ping timeout: 240 seconds]
Chream_ has joined #lisp
hel-io has quit []
Oladon has joined #lisp
FreeBirdLjj has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
mareskeg has joined #lisp
Chream_ has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
mishoo has joined #lisp
Kundry_Wag has joined #lisp
FreeBirdLjj has quit [Ping timeout: 260 seconds]
mareskeg has quit [Quit: mareskeg]
willmichael has quit [Ping timeout: 240 seconds]
mareskeg has joined #lisp
Kundry_Wag has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #lisp
willmichael has joined #lisp
mareskeg has quit [Client Quit]
mareskeg has joined #lisp
jmercouris has quit [Ping timeout: 240 seconds]
comborico1611 has quit [Quit: Konversation terminated!]
dvdmuckle has quit [Quit: Bouncer Surgery]
dvdmuckle has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
Rawriful has joined #lisp
Mutex7 has joined #lisp
Jesin has quit [Quit: Leaving]
erikc has quit []
mareskeg has quit [Quit: mareskeg]
Baggers has quit [Remote host closed the connection]
mishoo has quit [Ping timeout: 252 seconds]
Jesin has joined #lisp
damke_ has joined #lisp
EvW1 has quit [Remote host closed the connection]
EvW has joined #lisp
damke has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
isBEKaml has quit [Quit: leaving]
manualcrank has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #lisp
serviteur has joined #lisp
serviteur has quit [Remote host closed the connection]