Search
Sunday, 28th of May 2017, 20:04:35 UTC
20:14:15
mrottenkolber
I think flexi streams is only for character I/O?
21:20:47
paule32
are oldschool latex gurus there?
21:23:31
paule32
http://kallup.net/SAM/book/
21:24:13
paule32
the cyan rectangle will not plot to all pages
22:05:22
attila_lendvai1
** NICK attila_lendvai
22:55:59
marvin2
someone remind me please what do I have to add before defmacro to use it in the same file it is defined?
22:57:47
Bicyclidine
you don't need anything for defmacro.
22:57:55
Bicyclidine
for defun you'd need eval-when, you probably mean
22:58:12
Bicyclidine
if the define function is used at compile time
23:26:00
parjanya
where can I find functions to find prime numbers and test if it’s a prime number? I’ve searched on quicklisp but I couldn’t find what’s on the maths related packages...
23:26:57
pjb
com.informatimago.common-lisp.arithmetic.primes
23:28:50
parjanya
pjb: did you write it?
23:29:46
parjanya
pjb: thanks, then :) what would be the best way to chase this kind of thing?
23:30:35
pjb
normally, it should be in quicklisp. I hope to have it back there in July.
23:38:46
parjanya
I even started writing it myself, but reinventing the wheel like this isn’t much fun, unless one really wants to do it
0:24:59
antonv
in SLIME, how to go "Back"
0:25:12
antonv
the sortcut was "something L"
0:25:24
antonv
I can't remember how to do that
0:29:23
parjanya
the previous command, you mean?
0:30:49
antonv
parjanya: for example I did "go to definition" natigated to some source code. After reading the definition I want to return where I was before that.
0:32:01
parjanya
uh, that I don’t know... q? C-<left>?
0:47:19
antonv
But I used another shortcut..., something with L
0:47:44
Bicyclidine
If you do C-h k C-, you'll get the help for the function, which will list the keys it's bound to
0:47:49
Bicyclidine
(and of course you can change those if you want)
0:49:21
pjb
antonv: use C-h m to see all the bindings in the current mode.
0:50:24
antonv
Bicyclidine: pjb: thanks
0:50:41
antonv
C-, turns out to be "return from definition"
0:50:46
antonv
My command was more generic
0:50:59
antonv
not only for definition navigation
0:51:05
antonv
just returned to previous buffer and line
0:51:43
Bicyclidine
oh, i wouldn't know that then. probably in emacs help somewhere if it's not obvious from the list of bindings.
0:54:47
antonv
not obvious... Ok, maybe I will remember it next time
0:54:52
antonv
Another question, about CFFI
0:55:10
antonv
I want to have binding for a foreignt function which was renamed
0:56:26
antonv
Previous this OpenSSL function was called SSLeay and now it is called OpenSSL_version_num
0:57:16
Bicyclidine
renamed as in between versions, not some magical DLthing?
0:57:22
antonv
How to correctly do CFFI declaration to dynamically check what symbol exists and use it?
0:57:34
antonv
Bicyclidine: renamed between versions
0:58:17
antonv
The irony is that this function returns library version.
0:58:49
pjb
declare both and try both. The one that doesn't signal an error is the good one.
1:00:00
antonv
pjb: is it correct to wrap (cffi:defcfun ...) into an exception handler?
1:00:22
pjb
it is correct to wrap anything in a condition handler.
1:00:32
antonv
I don't know when (cffi:defcfun ...) does actual work: at compile time, load time
1:00:36
pjb
There are no exception in lisp: every behavior is normal!
1:01:43
Bicyclidine
antonv: i think it depends on the implementation actually.
1:01:52
antonv
Bicyclidine: exactly
1:02:53
Bicyclidine
but i don't think cffi has enough to query whether a symbol has a function. hell i don't know if C does off the top of my head
1:03:13
Bicyclidine
i guess dlsym can tell you whether there's a memory location for it.
1:03:54
antonv
Bicyclidine: CFFI has such feature, but it's not guaranteed to work on any impl (all impls have it except for Corman)
1:04:45
antonv
pjb: on some implementations (cffi:defcfun ...) doesn't fail whaterver foreign name you use, event non-existing
1:04:49
Bicyclidine
oh. well... do that then?
1:05:11
antonv
Bicyclidine: I want portable thing, 100 correct
1:05:27
pjb
then use dlopen yourself.
1:05:34
Bicyclidine
you're not gonna get it from cffi
1:05:45
Bicyclidine
nobody uses corman anyway
1:05:48
antonv
pjb: dlopen doesn't work on Windows, I want portable
1:06:01
pjb
then install linux on your windows box!
1:06:04
Bicyclidine
actually half of cffi doesn't work on corman as i remember. doesn't it not have defcfun?
1:08:20
antonv
BTW, this thing is called foreign-funcall in CFFI
1:08:23
antonv
https://common-lisp.net/project/cffi/manual/cffi-manual.html#Functions
1:09:58
antonv
pjb: the box is not mine :)
1:14:01
Bicyclidine
so i got it backwards.
1:22:26
antonv
Bicyclidine: what backwards?
1:25:33
Bicyclidine
corman supports defcfun but not foreign-funcall, not foreign-funcall but not defcfun
1:27:16
JuanDaugherty
there's no sb-flavors or sb-clos someplace is there?
1:27:27
JuanDaugherty
(analogous to sb-pcl)
1:31:18
Bicyclidine
there's an sb-pcl?
1:31:36
Bicyclidine
oh, wait, the internals yeah.
1:32:06
Bicyclidine
well there's no flavors on account of sbcl is newer than when flavors stopped, and sb-clos would be sb-pcl.
1:33:48
antonv
I'm thinking to use cffi:foreign-funcall and rule-out corman, but first want to ensure the problem is impossible to solve with cffi:defcfun
1:34:30
antonv
pjb: can you help writing error handler so I will catch error a compile, load or call-time?
1:35:41
antonv
(handler-case (cffi:defcfun ("SSLeay" ssleay) :long) (.....))
4:06:24
beach
Good morning everyone!
4:10:51
azzamsa
beach: have a great fun days. happy hacking!.
6:18:12
MONODA
anyone know of a pdf viewer written in cl?
6:43:06
MONODA
ah. well i didn't know about the pdf-tools package for emacs. I think that'll be sufficient for my use case!
Monday, 29th of May 2017, 8:04:35 UTC