freenode/#lisp - IRC Chatlog
Search
9:26:21
no-defun-allowed
what about the #.(tagbody :loop (unwind-protect (loop) (go :loop))) license?
10:21:54
prite
How does one deal with the 'WARNING: No definition for CFLAG-...' lines from (I'm guessing) loading CFFI? Just let it go to log and ignore it?
10:35:20
prite
I tried with "No definition for ~S" (with and without the format specifier) in uiop:*uninteresting-conditions*, but no dice.
10:41:32
prite
phoe: It's just four lines of cffi-grovel complaining about four missing definitions: https://pastebin.com/DQKJv7zv
10:42:37
prite
For now, I'll just add cffi-grovel:missing-definition to my local *uninteresting-conditions* list.
11:09:24
atgreen
puzzle: (format nil "~{~A~^, ~}" '(:a :b :c)) produces "a, b, c". What I really want is "1, a, 2, b, 3, c" where the number starts at 1 and increments with each new item. Is there any special format hack I can use to do this, or will I have to cons up a new list, inserting the numbers I want?
11:12:02
atgreen
ah.. I just found this: https://stackoverflow.com/questions/31054091/does-format-provide-a-counter-for-lists-iteration/31067838
11:13:55
refpga
Hello, are there any common lisp to Web Assembly compilers out there? I can find mentions of Douglas Crosher having worked on it but can't find any related code.
11:15:28
beach
Probably not. When it is mentioned as a possibility of running Common Lisp code in the browser, the problem with GC often comes up. It can be argued that you would need a full Common Lisp system running in the browser for it to work.
11:20:43
refpga
Yeah, I don't necessarily want a repl in the browser. Anyway I'm still learning lisp so I probably don't understand how GC works, but I see lua has a Wasm VM running in the browser(https://cdn.rawgit.com/vvanders/wasm_lua/d68f46a8/main.html)
11:23:13
beach
The compiler is sometimes used at run-time, for instance to create a discriminating function for a generic function. You could structure your Common Lisp system to avoid that, but it sounds like it would require rethinking the entire architecture compared to existing systems.
11:28:35
refpga
I think parenscript compiles to javascript too. : https://common-lisp.net/project/parenscript/
11:29:58
refpga
Thanks. I think I missed the part in it's docs which says "extended subset of Common lisp" and not common lisp.
16:32:51
pjb
atgreen: (format t "~2,1@/fmt-index/~:*~{~/fmt-index/~:* ~(~A~)~^ ~}" '(:a :b :c)) #| 1 a 2 b 3 c --> nil |#
16:33:43
pjb
atgreen: (format nil "~2,1@/fmt-index/~:*~{~,',/fmt-index/~:* ~(~A~)~^, ~}" '(:a :b :c)) #| --> "1, a, 2, b, 3, c" |#