freenode/lisp - IRC Chatlog
Search
19:33:23
pjb
emaczen: CFFI is ok, it's the various ways to parse C headers and generate CFFI code that are wrong.
19:34:12
pjb
Mostly, because they can't deal with all the specificities of C headers. Eg. #pragma pack are ignored.
19:39:07
emaczen
struct sockaddr_in { __uint8_t sin_len; sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; char sin_zero[8];};
19:45:22
emaczen
_death: yes, I know that works it returns 2 which is what AF_INET is #defined to be
19:52:19
_death
it's possible that the layout you describe doesn't match your system's layout.. grovel may be useful here. some quick checks you may try: comparing the struct sizes, offsets for each slot, or simply printing out filled instances that are supposed to be equivalent in both languages
19:54:26
emaczen
_death: Once I get this to work, I'll try it because I do want this to work on different Linux machines too
19:55:32
_death
or come up with a simpler interface and implement it in C.. unless you're actually going for sockets, and then - why not use the one defined by your implementation?
21:14:26
Xach
phoe_: i suspect you need :verbose t to see the warning. it is clear that the code is wrong just by looking at it.
21:15:51
Xach
https://github.com/phoe/asd-generator/blob/master/asd-generator.lisp defines all-pathnames with one arg and then immediately calls it with two.
21:23:14
phoe_
yes, this is a valid issue. I raised https://github.com/phoe/asd-generator/issues/7 on the person who wrote this code, I hope he responds tomorrow or the day after.
21:24:34
phoe_
Okay - I'll try to fix it on my own if the person doesn't respond tomorrow or on Sunday. Deal?
22:10:32
p_l
bigos: CommonQT does, as does EQL (ECL-specific). Some of the GTK interfaces, if you get them to run, should work cross-platform
22:11:31
bigos
i Looked at it on Linux and was impressed, the problem is I can't install QT on windows
22:19:47
bigos
p_l: none of the GTK interfaces worked, I had most success with cl-cffi-gtk, but its github page admits it crashes when you try to move the window
22:20:55
p_l
bigos: I think all are pretty much abandoned by now except for GTK backend of Common Graphics, and that's proprietary to ACL
22:21:34
p_l
ACTION would honestly expect franz's clim to build better than any of the GTK interfaces
22:22:44
bigos
ceramic failed to install, at some point i got message that something failed to compile on Linux, I did not try it on windows
22:23:16
shrdlu68
I've never bothered to check this, how much is the cheapest of the commercial implementations?
22:30:12
bigos
qtools failed on ccl and sbcl on windows, i was trying to follow example from https://github.com/Shinmera/qtools/blob/master/examples/helloworld/helloworld.lisp
22:32:26
Shinmera
Can you restart the REPL and then just do (ql:quickload :qtools-helloworld) followed by (qtools-helloworld:main)
22:32:51
Shinmera
Simply copypasting things in that file isn't going to cut it because of the dependencies.
22:34:24
Shinmera
If you want to follow an example and not just run one, follow the documentation. https://shinmera.github.io/qtools/
22:37:30
Shinmera
Anyway, it's like past midnight here and my eyes feel like they have thicker crust than bread that's been baked for ten years.
22:37:51
Shinmera
If you encounter any other problems, write an issue ticket on github, or hope people here will be able to help you.
0:22:19
sjl
none of these restarts look like they'll give me a stack trace so I can try to figure out what actually went wrong http://paste.stevelosh.com/59e158a6ee0a0000081b25a1
0:42:16
psilord
Hello there, I have a small question: Common Lisp Recipies basically says not to use type-of since it is inconsistent between implementations. But, if I use it like this (typep instance-of-thing (type-of instance-of-thing)) will I always get the expected T from that test?
0:43:51
psilord
and, if I do (typep instance-1 (type-of instance-2)) I should get T or NILL that is correct on all implementations?
0:45:07
psilord
The domain of the types themselves will be CLOS object type names defined with defclass.
4:41:46
emaczen
iqubic: for &optional and key you can supply a third argument like (param default supplied-p) and check supplied-p if it was supplied or not
4:41:59
Bike
(defun test2 (&optional (o nil o-p)) (values o o-p)), then (test2) => NIL, NIL while (test2 nil) => NIL, T
4:45:33
Bike
lisp has multiple namespaces, and two of the more important ones are for variables versus for functions
4:46:08
Bike
in (f 1 2) it's looked up as a function, which is a separate space, so i tdoesn't care about the setq