There really isn't that much I have to contribute but I have a large set of libraries in Scheme which would be nice to port.
Things like polynomial algebra and curve-fitting and so forth.
Search found 9 matches
- Sat Nov 01, 2008 6:22 pm
- Forum: Other Dialects
- Topic: Positional Partial application for Clojure
- Replies: 4
- Views: 12335
- Fri Oct 31, 2008 11:54 am
- Forum: Other Dialects
- Topic: Positional Partial application for Clojure
- Replies: 4
- Views: 12335
Re: Positional Partial application for Clojure
Well, it is a function.
Now that the # syntax is brought to my attention, this is sort of silly.
Now that the # syntax is brought to my attention, this is sort of silly.
- Fri Oct 31, 2008 7:19 am
- Forum: Other Dialects
- Topic: Positional Partial application for Clojure
- Replies: 4
- Views: 12335
Positional Partial application for Clojure
Here is a quick little utility for positional-partial application in clojure, similar to cut from srfi 26 for Scheme, but a function, rather than syntax. (map (plx cons 'head :_) '((1 2) (3 4) (5 6))) ;;=> ((head 1 2) (head 3 4) (head 5 6)) (map (plx list 'head :_ 'end) '( middle mean meat )) ;;=> (...
- Fri Oct 31, 2008 6:10 am
- Forum: Common Lisp
- Topic: non-linear list conversion to linear
- Replies: 14
- Views: 32391
Re: non-linear list conversion to linear
I admit, that CL has a lot of great stuff (CLOS/MOP is really excellent), and Lisp all the way down is nice too, but I am tired if fighting with different implementations, libraries that won't compile, and old/esoteric design. Clojure is clean, functional, and has a large library set which "jus...
- Thu Oct 30, 2008 4:47 pm
- Forum: Common Lisp
- Topic: non-linear list conversion to linear
- Replies: 14
- Views: 32391
Re: non-linear list conversion to linear
Just use Clojure.
Seriously.
Seriously.
- Thu Oct 30, 2008 7:15 am
- Forum: Common Lisp
- Topic: non-linear list conversion to linear
- Replies: 14
- Views: 32391
Re: non-linear list conversion to linear
That should really be listp rather than list? up there. All my lisps run together.
- Thu Oct 30, 2008 6:00 am
- Forum: Common Lisp
- Topic: non-linear list conversion to linear
- Replies: 14
- Views: 32391
Re: non-linear list conversion to linear
If you can't depend on it and you want to be cross-implementation, then it basically isn't supported. This is a whole other can of worms, though.
- Wed Oct 29, 2008 7:12 pm
- Forum: Common Lisp
- Topic: non-linear list conversion to linear
- Replies: 14
- Views: 32391
Re: non-linear list conversion to linear
You can implement a fun flatten with foldl quite easily: (defun flatten (lst) (reverse (foldl (lambda (item output) (cond ((list? item) (foldl #'cons output (flatten item))) (t (cons item output)))) '() lst))) Fold is one of my favorite abstractions. This is not tail recursive, unfortunately, but CL...
- Mon Oct 13, 2008 5:39 am
- Forum: Common Lisp
- Topic: Efficiency, Delayed Computation and Lambda
- Replies: 3
- Views: 8802
Efficiency, Delayed Computation and Lambda
Hi Lispforum, Suppose you have some Common Lisp code representing a game and you want to abstract drawing the game away from updating the game. For instance, you might have everything in your game "universe" represented in a big list CLOS objects which need to be updated and drawn once per...