Search found 78 matches

by David Mullen
Tue Mar 08, 2016 3:22 pm
Forum: Common Lisp
Topic: Reading a file, store it and display it
Replies: 5
Views: 8045

Re: Reading a file, store it and display it

You're not getting any error messages on the console?
by David Mullen
Mon Mar 07, 2016 1:13 pm
Forum: Common Lisp
Topic: Cannot run "Breakout" from sebity.com
Replies: 2
Views: 4659

Re: Cannot run "Breakout" from sebity.com

Well, this is interesting. At least I learned something today. It's bugfuck nuts, but it's definitely something. See, the SDL_ListModes function—which is called by the code in question—has a return type of a pointer (specifically: a pointer to a pointer), but one of the possible return values is...
by David Mullen
Mon Mar 07, 2016 12:01 pm
Forum: Common Lisp
Topic: Reading a file, store it and display it
Replies: 5
Views: 8045

Re: Reading a file, store it and display it

You're using the extended form of LOOP, which requires each Lisp form or series of forms to be preceded by a keyword. WHILE is one such keyword, and DO is another—that's what you need here: (loop while (not (null ligne)) do (setq ligne (read-line str)) (setq dico (cons ligne dico))) Secondly, the ...
by David Mullen
Sat Mar 05, 2016 6:41 pm
Forum: Common Lisp
Topic: Cannot run "Breakout" from sebity.com
Replies: 2
Views: 4659

Re: Cannot run "Breakout" from sebity.com

Looks like this is the change (from December) that broke it:

https://github.com/lispbuilder/lispbuil ... 48a352186f

The inc-pointer with -1 must not work with CLISP. Question is, what is that piece of code intended to do?
by David Mullen
Thu Jan 14, 2016 1:27 pm
Forum: Common Lisp
Topic: Common Lisp HyperSpec
Replies: 5
Views: 9068

Re: Common Lisp HyperSpec

The HyperSpec's legal notices just say that they got "permission"—whatever that means. You'll want to read this page, on something called Project FreeSpec—lots of research there.
by David Mullen
Thu Dec 31, 2015 6:09 pm
Forum: Common Lisp
Topic: Compiling all lisp files in a folder
Replies: 2
Views: 5016

Re: Compiling all lisp files in a folder

I'm not familiar with Gendl, but this appears to be the relevant source code, if it helps: https://gitlab.common-lisp.net/gendl/gendl/blob/devo/cl-lite/source/cl-lite.lisp It says cl-lite expects to find Lisp files "in source/ subdirectories" and it takes keyword arguments specifying whether to crea...
by David Mullen
Sat Dec 12, 2015 6:44 pm
Forum: Common Lisp
Topic: JSON Streaming API Design
Replies: 4
Views: 7403

Re: JSON Streaming API Design

Here's one way—make another macro and progressively shadow that with MACROLET, instead of JSON-ARR and friends—maybe this is what you meant by "Interpose a different symbol," but it's the simplest approach to my eyes. (defmacro json-with-comma (&body body) `(progn ,@body)) (defmacro json-arr (&b...
by David Mullen
Mon Nov 09, 2015 5:26 pm
Forum: The Lounge
Topic: How many LISP books until...
Replies: 5
Views: 10139

Re: How many LISP books until...

Since that would amount to self-rewriting code, it's just a question of how you might take compiled code and convert each instruction to a higher-bit version. I don't know how far that could be automated, since I've written assembly language but I'm not familiar with the details of byte-level instru...
by David Mullen
Sat Nov 07, 2015 4:18 pm
Forum: Homework
Topic: encoding and decoding randomly
Replies: 3
Views: 8503

Re: encoding and decoding randomly

Well, I don't know how brute-force this is allowed to be, but brute force is all that comes to mind right now. My idea was to produce random alphabets until some of the words clicked with the dictionary, then recursively produce more alphabets while holding those letters—the ones so far matched—...
by David Mullen
Fri Nov 06, 2015 1:55 pm
Forum: The Lounge
Topic: How many LISP books until...
Replies: 5
Views: 10139

Re: How many LISP books until...

While the "bare metal" approach wouldn't preclude adopting a standard library of interface elements, this whole concern about UI inconsistency never excited me much. Why shouldn't different applications look different? It never bothered me that (say) Mentor Graphics on Solaris doesn't look like XEma...