freenode/lisp - IRC Chatlog
Search
17:37:52
flip214
phoe: you could also have a CONCATENATED-STREAM that consists of a #\(, the file, and #\) ...
17:38:51
beach
phoe: (with-input-from-string (stream (read-line)) (loop with eof = (list nil) for expression = (read stream nil eof) until (eq expression eof) collect expression))
18:02:26
didi
phoe: Because I am defining a new type when I wanted to use EQL to compare objects of this type.
18:04:20
phoe
didi: best define your own predicate, foo= that accepts two objects of type foo and does its comparison login.
18:06:18
phoe
If two objects can be equal despite not having the same identity, then you need to define your own predicate and therefore teach Lisp how it should think about such equality.
18:07:18
phoe
And as for the general case of equality, there were a few articles about equality in Lisp circling around.
18:13:24
didi
phoe: Thanks. I think I will create my own predicate. SBCL's manual says "Thread type. Do not rely on threads being structs as it may change in future versions.", which scares me a little.
18:16:54
didi
Because I will create and manipulate many of them and I want to check if I am on a cyclic dependency.
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