Search found 209 matches

by Jasper
Wed Apr 11, 2012 10:17 am
Forum: Common Lisp
Topic: Where is an input-output stream
Replies: 2
Views: 2268

Where is an input-output stream

I mean a stream you can write to, and when you read from it, the same comes out. Basically as in the example make-two-way-stream , but with less angering me by showing it can be done but only giving an horribly crappy way. Basically i want a function that makes `(make-two-way-stream (make-string-inp...
by Jasper
Fri Mar 09, 2012 6:29 am
Forum: Other Dialects
Topic: new language; Julia
Replies: 1
Views: 6362

new language; Julia

Searched for the word in the forum, did not find it. So i thought i'd post about it. This was their 'introductionary blog post , you may have seen it from other places. Basically Julia is a lisp, if you look at metaprogramming for a description. Basically, code afaics consists of Expr objects. It ta...
by Jasper
Tue Jan 18, 2011 2:20 pm
Forum: Common Lisp
Topic: Date operation
Replies: 4
Views: 1300

Re: Date operation

by Jasper
Tue Jan 18, 2011 2:17 pm
Forum: Common Lisp
Topic: Destructive function on constant data
Replies: 7
Views: 2430

Re: Destructive function on constant data

Afaik QUOTE does not make x constant, quote make the variable x point to a list '(1 2 3 4 5), but that list is *not* created when you call it, it is always there. So if you do: (defun quote-abuse () (let ((list '(1 2 3 4 5))) list)) (setf (car (quote-abuse)) 'unexpected) (quote-abuse) ;=> (unexpecte...
by Jasper
Tue Jan 18, 2011 2:08 pm
Forum: Common Lisp
Topic: 2D graphics/turtle lib suitable for kids?
Replies: 17
Views: 15373

Re: 2D graphics/turtle lib suitable for kids?

cl-cairo2 ( github ) would be good for it especially if we also could easily have keyboard/mouse/etc input in conjunction with it, and it has much more drawing ability. Neat to be able to export to many things, svg, ps, pdf, png, X11 window. Maybe i'll see if i can add a function to give sdl an cai...
by Jasper
Mon Sep 27, 2010 4:35 pm
Forum: Common Lisp
Topic: Apparent vandalism on Cliki
Replies: 1
Views: 755

Apparent vandalism on Cliki

By chance i came across FMOD and CL-FMOD the page is vandalized to be blank.. I can't seem to find a revert button.. Looking a bit further this page was also vandalized, and looking at some of the links below there, many of them are blanked too..Some are blanked because it was spam and people didn't...
by Jasper
Tue Aug 17, 2010 12:32 pm
Forum: Common Lisp
Topic: can u help me to solve this ...plzzz
Replies: 4
Views: 1651

Re: can u help me to solve this ...plzzz

You could make (defgeneric coin-value (coin) (:method ((coin (eql 'dollar)) 100) (:method ((coin (eql 'dime)) 10)) ;..Etcetera, just a way to list values of the different types. And then you feed the function a list, starting with the higher-value coins ending with the lower value coins, and then go...
by Jasper
Fri Jul 09, 2010 11:01 am
Forum: The Lounge
Topic: How to convert list element to string type
Replies: 6
Views: 9903

Re: How to convert list element to string type

Best way to figure it out is to try it in this case :) CL->USER> (read-line) yup it is a string "yup it is a string" nil You can coerce a string to a list with (coerce string 'list), but that'd be a list of characters, of course. I think you might want to use READ which reads one s-expression with t...
by Jasper
Tue Jul 06, 2010 6:14 am
Forum: Common Lisp
Topic: Lisp functions and very new to lisp
Replies: 10
Views: 2843

Re: Lisp functions and very new to lisp

Not sure where to find an 'accounting example' tutorial, if you mean that. There are a couple of good books, like Practical Common Lisp . this thread lists a bunch of other books, though not all as suitable. You could, for instance, make what you say with hashtables(make-hash-table,gethash) and stru...
by Jasper
Tue Jul 06, 2010 5:18 am
Forum: Books and Resources
Topic: What's your favorite book about Lisp?
Replies: 34
Views: 58791

Re: What's your favorite book about Lisp?

Would be handy if it also asked which we've read :) this questionare is biased toward the books that are read more. I only read PCL and part of SICP, i refrained from voting..