freenode/lisp - IRC Chatlog
Search
4:26:57
krwq
hello, I'm trying to port my app to windows, when running it, it tries to do something with gcc and says that it can't find it - i have installed mingw hoping it will discover it after but it didn't - anyone has done that before?
4:30:45
krwq
Thank you pillton - i still am getting errors but ill try to figure it out myself first
4:44:45
krwq
is there any way to tell what error did the grovel process exit with? when i run that manually from command line i get different error depending if im in mingw/bin or not
4:52:54
pillton
From what I recall the 64bit version of mingw had to be downloaded and installed separately.
5:32:57
axion
Given that the recommended style for predicates is foop/some-foo-p, how should a defstruct slot be defined? Should it be ex: foo-p such that the concatenated accessor is some-foo-p? Or some other way?
5:34:59
loke
Since I pretty much always use DEFCLASS rather than DEFSTRUCT, that's a natural thing anyway.
5:38:01
axion
Not just that, but for type defining structs as arrays and such: http://paste.lisp.org/display/336028
5:40:18
Bike
i mean the defstruct is completely different, it doesn't define a type, it defines a copy function, like five other functions
5:42:33
axion
It doesn't have to be. This way I get an array that can be uploaded to OpenGL and be able to access it like an object, and declare the input of all functions as a specific type of array.
5:45:45
axion
Because the :type on the struct allows SBCL to treat it purely like a vector type, so the optimization can work very nicely on it.
5:46:14
axion
Also, I can know exactly the size of the structure in memory, since it is a real array of a certain type, but it is harder to know for defclass instance.
6:05:13
jackdaniel
I'm not sure if I understand, even spec says explicitly "defstruct defines a structured type, named structure-type (...). "
6:06:21
Bike
"If no :type option is involved, then the structure name of the including structure definition becomes the name of a data type"
6:06:45
Bike
er, wrong bit. "For structures defined with a :type option, type-of returns a type specifier such as list or (vector t), depending on the type supplied to the :type option. The structure name does not become a valid type specifier. "
6:08:40
axion
That's where deftype comes in, so I don't have to (declaim (ftype (function (some-long-array-type ..))))
9:24:19
Bike
with :type defstruct turns into a convenient way to define a bunch of thin wrapper functions
9:25:04
Bike
and perfectly implementable in the rest of common lisp, except for boa constructors probs
9:59:07
phoe_
there's a gzip library for CL, you could technically use it to extract files into strings, streamify them and supply them to LOAD.
11:11:28
phoe_
"string-not-equal is just like string/= except that differences in case are ignored; two characters are considered to be the same if char-equal is true of them. "
11:39:38
jackdaniel
slaterr: you'll gather more opinions on #emacs, this channel is about Common Lisp
11:39:43
slaterr
from perspective of vim user who can't get used to emacs keybindings but wants to use some emacs modes, like slime (that i suppose works just as well on spacemacs as on regular emacs?)
11:40:14
jackdaniel
spacemacs works OK for a few people I know. There is also slimv mode for VIM (I don't know anything about its quality though)
11:51:37
slaterr
cool i'll give it a try. just curious, what made you use vim bindings when you don't have experience with vim?
12:03:25
specbot
The Structures Dictionary: http://www.lispworks.com/reference/HyperSpec/Body/c_struct.htm
12:58:44
lieven
heh I never noticed you can only have one :include in defstruct. It's not immediately obvious to me why they added this restriction
13:34:06
Xach
ha! nicolas neuss removed the infix library from his femlisp project. comment: "available in a better way using Quicklisp". but quicklisp's version of infix comes from -- femlisp.
13:35:06
Xach
lieven: I don't know the ultimate reason, but it is much easier to implement in a way that is pretty fast and space efficient.
13:37:25
Xach
lieven: if you have structure type S' that :includes S, instances can look like: [[S slots][S' slots]] and all S accessors can work as though the instance is an S.
13:41:18
malice
Hi all! I am trying to set up Travis CI for my CL project, using Roswell to test different implementations.
13:41:38
malice
I found this article: https://github.com/roswell/roswell/wiki/4.1-Travis-CI and I am trying to set it up for this project: https://github.com/MatthewRock/cl-sandbox/tree/travis-installation
13:42:25
malice
However, when calling roswell, quicklisp does not see my project. However, the template does not seem to include adding it to the ql location or adding anything to asdf:*central-directory*
13:51:45
payphone
I'm fairly certain Roswell uses its own qucklisp folder. I think the local projects folder is located in ~/.roswell/local-projects/
13:58:36
beach
lieven: What Xach said. Multiple inheritance makes it possible for the position of a slot vary from one class to another. This is also why Java has multiple inheritance only for interfaces.
13:59:56
malice
payphone: What should I do then? My system is called cl-sandbox, and I am installing it with "ros install MatthewRock/cl-sandbox". It gets installed properly. However, loading the system with -s argument still does not work.
14:00:05
lieven
beach: yeah. And they would have to deal with the question of multiple includes via different paths
14:02:21
beach
lieven: All those problems are taken care of by standard classes, but they require the accessors to be generic functions.
14:02:58
Colleen
drmeister: frgo said 4 hours, 15 minutes, 18 seconds ago: Strange effect: I changed fli.cc and then did a waf build_cboehm - this results in an infinite loop during build: bclasp building doesn't goe into a link phase but loads the "clasp-builder" again ...