freenode/#lisp - IRC Chatlog
Search
12:55:47
loke
I don't think the world need my container library. The red-black tree is the only newish part of it anyway
12:56:45
loke
shka: If you look at the code from line 302 and below, there is the code that adapts it for my container library. That's the only code you'd need to rewrite:
13:45:07
dmiles
oh crud this " (defmacro incf (place &optional (delta-form 1)) `(setf ,place (+ ,place ,delta-form)))" is broken in "(incf (aref *vector* (incf *special*))) " ?
15:36:31
_death
for incf you can just use define-modify-macro, but in general you want get-setf-expansion
15:39:13
dmiles
(will use it for incf/decf but if it gets complicated they reather write it out all by hand)
15:42:12
dmiles
*nod* i sorta even lumped define-setf-expander into the underutilized category but hadnt get to straight defsetfs
15:44:05
pfdietz
As I recall, ansi-tests has tests that things like INCF don't evaluate things more than once, and also in the right order.
15:48:29
dmiles
looking at some REF POP etc they do start out as if somone macroexpand-1 on define-modify-macro then finish it out
17:27:57
asarch
1) Can you define a function inside the body of a function? 2) If yes, how? 3) Can you return a function a la JavaScript: function point() {... return () => {}};?
17:31:31
beach
Since I don't know JavaScript, I don't know whether this is an answer to question number 3.
17:43:00
beach
asarch: It is customary to provide some kind of feedback, indicating at least that you received the message, and even better to tell us whether you understood it.
18:18:14
Th30n
I've come to bring presents... erm I mean, ask questions with lisp related problems :)
18:19:59
Th30n
For anyone testing qt, qt-libs and qtools on Windows. Did smoke generation somehow break? It appears that calls for QString related stuff aren't wrapped. All calls to QT API which requires coercion from lisp string to qstring fail.
19:08:20
beach
peterppp: Why would you use an implementation-specific one, when you can use a portable one?
19:09:21
pjb
peterppp: in clisp, you compile it with the regex module, and the REGEXP pacakge is always available. No need for require.
19:15:26
peterppp
I didn't know that 'clisp' refers to the gnu lisp implementation as is the case apparently?
19:17:39
pjb
Then he got multi-millionnaire, so he started to write his own lisp named arc, and implemented ycombinator.com with it, and is in the way of becoming billionaire by helping startups.
19:21:38
_death
peterppp: https://www.cs.northwestern.edu/academics/courses/325/readings/graham/graham-notes.html
19:25:19
_death
peterppp: have fun.. ACL was my first Lisp book as well.. do all the exercises, preferably in emacs with slime
19:36:09
alecigne
Is there some kind of "C for Lisp programmers" book or ressource out there? Maybe knowing Common Lisp is enough to dive in C
19:37:16
Bike
i suppose it might help you get a clearer idea of C's scoping, which is badly explained by the average tutorial
19:41:16
alecigne
Bike: so in your opinion there is no good way to capitalize on my CL knowledge to learn it more easily, the "programming" knowledge by itself is enough
19:42:27
Bike
just understanding the basics of programming, you know, the machine does what you tell it too but in a really specific way, what syntax is, stuff like that, is most of what you need to learn a programming language, and passed that the returns diminish pretty fast, imo
19:42:27
beach
alecigne: The programming style is completely different, unless you do what I do if I have to program applications in C, namely do everything with pointers and stick the Boehm GC in your application.
19:42:55
_death
best to learn each language on its own terms.. after you do that, you can move to comparisons and critique
19:58:49
Shinmera
Th30n: Nothing has changed about it on Windows in recent weeks, so I wouldn't know about it breaking either.
20:06:16
Th30n
Shinmera: Basically the problem is, if I try to do to something like (q+:make-qstring "bla") it fails to compile, complains about the function missing. Same thing with (q+:qstring-from-utf-8 "blah"). On the other hand (q+:qfiledialog-get-open-file-name window "blah") crashes when trying to marshal the string to qstring. SBCL reports an error - exception code 0xE06D7363, which signifies that an exception is thrown in C++ code.
20:14:31
Shinmera
As for the error, that's outside my realm and a CommonQt issue rather than a Qtools one
20:15:32
Th30n
Shinmera: auto conversion used to work. Perhaps it may even be related to cffi, because the call does end up in the C function which returns a QString.
20:16:28
Th30n
Shinmera: Yeah, no problem, don't bother. It's Christmas, you deserve at least some break :)
20:17:04
Shinmera
But if you can open an issue ticket with a minimal snippet to reproduce on https://github.com/commonqt/commonqt/issues I can see what I can do myself (probably not much) or if I can bother Stas about it.
20:28:44
asarch
https://www.google.com.mx/search?q=santiago+matatlan&client=firefox-b&dcr=0&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjYr_mSgKbYAhXL54MKHZFJAPYQ_AUICygC&biw=1366&bih=599
20:31:20
antoszka
Well, I'd love a trip, but won't be able to affort one anytime soon. I love the cuisine too (as much as I know it). Really a place I want to visit. Let's take this off channel to #lispcafe.
21:42:32
pjb
stylewarning: wrong. You have to do something like: (let ((lisp-channel (find "#lisp" (channels *connection*) :key (function name)))) (mapc (lambda (user) (privmsg *connection* lisp-channel (format t "Merry Christmas ~A!" (name user)))) (users lisp-channel)))
21:43:17
pjb
with (ql:quicklisp :cl-irc) (use-package :cl-irc) and establishing a (defparameter *connection* (connect :nickname "xmasgreater" :server "irc.freenode.org"))
21:43:22
stylewarning
Do you have a GPL library for me to run your code with, with a package name that’s ~4,000 characters long
21:44:01
pjb
stylewarning: check https://gitlab.com/com-informatimago/com-informatimago/blob/master/small-cl-pgms/botihn/ or https://gitlab.com/com-informatimago/com-informatimago/tree/master/small-cl-pgms/botil
21:45:22
Shinmera
pjb: With Maiden it would be something like (loop with c = (find-channel "#lisp" (consumer "freenode" *core*)) for u in (users c) do (reply c "~a: Merry Christmas!" (username u)))
22:00:22
aeth
Use abstractions! It should be something like this: (do-users (user (users freenode "#lisp")) (message-user user "Merry Christmas!"))
23:21:14
resttime
Is there a simple virtual machine with its own "byte code" written in Common Lisp out there?
23:51:01
aeth
Your question made me realise just how hard it is searching for "Lisp" and "machine" together.
0:15:58
resttime
Whoa the readme says another programming language too, I wonder how many transpilers there are
0:34:39
marutk
is it possible to static content and websockets from single server? I tried https://github.com/fukamachi/clack with Hunchentoot