freenode/lisp - IRC Chatlog
Search
18:22:03
White_Flame
for struct instances, equal is the same as eq. It's only equalp that walks structure slots
18:35:47
rpg
Anyone an expert with CL-DOT? I'm trying to ensure that a tree graph generated that way renders its children left to right in the order they appear in the points-to methods. But at least sometimes, they are coming out backward.
19:24:52
aeth
How do I use a subrange of a CFFI array? Do I just use a pointer to (* type-size offset)?
19:27:43
axion
Is there an easy way to get rid of the #<> characters when printing an object with PRINT-UNREADABLE-OBJECT?
19:28:02
aeth
Would doing this create garbage? e.g. if I did (cffi:make-pointer (+ (cffi:pointer-address original-pointer) (* type-size offset)))
19:28:36
aeth
This is for the GL matrices in my draw function. I cannot create garbage in my draw function.
19:31:43
aeth
I can just iterate on pointer objects that I've already created if that's the way to do it. Does anyone else have to do something like this?
19:38:38
axion
I must use the pprint-dispatch table instead of PRINT-OBJECT because these are not classes, but instead structs compiled to a :type.
19:41:40
malice
axion:anyway, quoting the clhs: " Outputs a printed representation of object on stream, beginning with ``#<'' and ending with ``>''. "
19:41:54
malice
that's how print-unreadable-object is designed. You are probably looking for something else.
19:51:04
Bike
you can print the class-name or whatever like print-unreadable-object does yourself, if you want
19:59:50
axion
Another question. Is it legal to have a compound function name like (setf func) in the function-names position of (declaim (ftype (function ..))), or must it be a symbol to be portable?
2:15:23
nyef
What SBCL API changes? SBCL's public API didn't change in any way that requires changes to other software. And private API changes are a matter of "what the heck are you doing poking around in there?!?"
5:13:39
beach
I added four new tasks to the Lisp Guild: https://github.com/Lisp-Guild/lisp-todo/projects/1
5:14:08
beach
These tasks are related to the "Cluster" assembler (I might rename it one day), mainly for x86 at this point.
5:15:45
beach
Cluster is "the assembler with a difference" because it gets rid of the issue of surface syntax by defining an assembly program as a list of instructions represented as standard instances, i.e. instances of classes defined by DEFCLASS.
5:18:00
borei
everyday something new ! and it's very cool features. Looking at CFFI (my proj requires some graphics - opengl, idealy VTK, but it's C++, so a bit more chanlanging), so here what i found, and question is more theoretical then related directly to lisp porgramming
5:18:43
borei
it's pretty easy to call C function from lisp - load shared library define funtion with required signature and point to C-function - done
5:20:04
beach
ACTION strongly suggests that people program in Common Lisp rather than in some inferior language.
5:21:02
loke``
borei: It does, but it doesn't have to in order to be able to handle callbacks (for example, CLISP doesn't do native compilation and ABCL compiles to the JVM, but both handle CFFI)
5:21:36
shrdlu68
beach: Interesting. So will will there be a directory for other architectures? ARM, PPC, etc?
5:23:22
beach
borei: We choose to work on certain things and not on others. I have chosen to work on things where I need only Common Lisp.
5:25:24
beach
borei: I know I am weird. I actually try to improve the situation of Common Lisp with respect to development tools and libraries. Most people prefer to develop games or websites for their personal satisfaction. Not that I don't get personal satisfaction from what I work on, of course.
5:27:01
beach
borei: It is a bit strange to me to have a channel dedicated to Common Lisp, and then to have a very significant number of people wanting to use C or C++, and a significant number of questions about why their programs crash when they use FFI to program in other languages.
5:27:48
fouric
shrdlu68: tbf "just got started" can include people who've been working with it for years, given how deep CL is taken to be
6:13:03
jackdaniel
if you had some troubles with McCLIM or have any feedback (i.e something didn't work), I'd love to hear about it
6:13:30
jackdaniel
to not clutter this channel, preferably on #clim – if you have any more problems, just come by and ask, somebody may know the answer
6:17:38
didi
Hum. CLtL2 says to append the suffix "p" to type predicates, but `defstruct' appends "-p".