Search found 613 matches

by ramarren
Wed Oct 15, 2008 9:57 pm
Forum: Common Lisp
Topic: About save-lisp-and-die in Windows ?
Replies: 2
Views: 5578

Re: About save-lisp-and-die in Windows ?

As reading the documentation would reveal, the toplevel function is not supposed to return, but your does, and the system is getting confused. I am not sure why it is so, but your code should be: (defun hello() (format t "Hello, (cruel) world!~%")) (sb-ext:quit)) And as for the kitten of death messa...
by ramarren
Mon Oct 13, 2008 10:13 pm
Forum: Common Lisp
Topic: The library situation (warning: mini-rant)
Replies: 24
Views: 29999

Re: The library situation (warning: mini-rant)

...with the libraries available in the CL community (i.e. ASDF-installable)... FIrst, there isn't such a thing as "CL community", which might be a part of the problem... there are several scattered weakly connected communities centred around various communication channels, ie. people here, on freen...
by ramarren
Wed Sep 24, 2008 10:51 pm
Forum: Common Lisp
Topic: Nonblocking Sockets in CLISP
Replies: 2
Views: 4363

Re: Nonblocking Sockets in CLISP

I don't know much about sockets, especially in CLISP, but looking at http://www.lispworks.com/documentation/ ... finish.htm maybe force-output rather than finish-output would help?
by ramarren
Mon Sep 22, 2008 11:22 am
Forum: Common Lisp
Topic: Discussion on possible lambda syntax: Good or Evil?
Replies: 17
Views: 25629

Re: Discussion on possible lambda syntax: Good or Evil?

Well, I wouldn't call it Evil, but not exactly close to Good, either. Personally, I prefer more functional approach of using compose/curry/rcurry functions, from, say Alexandria , misnamed as they are. They allow me to avoid explicit lambda in simple cases, and for more complex case I think it is be...
by ramarren
Thu Aug 21, 2008 3:47 am
Forum: Common Lisp
Topic: Entry point of an executable
Replies: 2
Views: 4532

Re: Entry point of an executable

A "fas" file is really called a fasl file, where fasl is a shortened form of "FASt Load". Those files are supposed to be loaded into a Lisp image, containing among other things a runtime. It is possible for it to execute code which actually performs actions, but most often it will only define functi...
by ramarren
Sun Aug 17, 2008 10:00 am
Forum: Common Lisp
Topic: How to resize an image with image-magick
Replies: 1
Views: 4406

Re: How to resize an image with image-magick

cl-magick is a very thin wrapper around imagemagick, which means that to use it you have to refer to ImageMagick documentation . I have used it very briefly some time ago, so I don't remember much, but I think resizing an image would go something like that: (defun resize (file out-file w h) (let ((w...
by ramarren
Tue Aug 05, 2008 9:48 am
Forum: Common Lisp
Topic: How to embed SBCL in a C++ app?
Replies: 5
Views: 10175

Re: How to embed SBCL in a C++ app?

As far as I am aware, this is outright impossible, because SBCL memory model has to many assumptions about owning the process or somesuch... But I never looked into SBCL internals. Still, I have never seen any mention of that, and usually for embedding an open-source Lisp ECL is recommended.
by ramarren
Wed Jul 30, 2008 1:09 pm
Forum: Common Lisp
Topic: reader macro communicating with a compile-time macro
Replies: 4
Views: 6654

Re: reader macro communicating with a compile-time macro

Side effecting read macros are a bad idea. There is no guarantee that they will be executed once when expanding, and in general run into weird issues like the one you have here. What I would do if trying something like this is to make the read macro expand to some unexported symbol, and then walk th...
by ramarren
Wed Jul 30, 2008 12:54 pm
Forum: Common Lisp
Topic: To learn or not to learn, that is the question
Replies: 11
Views: 14816

Re: To learn or not to learn, that is the question

1) Should I really learn Lisp? Or should I get on with C? Well, what answers do you really expect on a LispForum? But really, it depends what you want from a programming language. Common Lisp is a great, but if you care more about some C-specific functionality (like low-level interaction with the O...
by ramarren
Fri Jul 25, 2008 12:10 pm
Forum: Common Lisp
Topic: Programming Style & (eval ...)
Replies: 17
Views: 24845

Re: Programming Style & (eval ...)

I have another related question. Since macros don't evaluate their arguments, is there a way to get an argument to a macro to evaluate without using eval ? The point of macros is that they happen at compile time, so all necessary information must be available at that time. If such information doesn...