Search found 19 matches

by netytan
Sat Jan 14, 2006 10:16 pm
Forum: Anything else we might add?
Topic: Whom is the creator of NewLisp? Is he/she here?
Replies: 1
Views: 2870

Whom is the creator of NewLisp? Is he/she here?

Hey all, I'm wondering who created NewLisp, was it a team of people or someone in particular I could converse with about the internals of a Lisp interpreter, assuming thats not too much of a hassle :). If anyone knows of a way I could get in touch with said creator could you let me know please. Than...
by netytan
Sat Jan 14, 2006 10:13 pm
Forum: Anything else we might add?
Topic: Scheme: reduce & filter (please rate).
Replies: 9
Views: 13691

Thanks eddie I looked in the wrong folder, I was looking in mzlib. I wouldn't know where this would be located on windows either not being a windows user ;). At a guess I'd say in the same dir structure under whatever location you installed it? The second argument must be the subdir to load the file...
by netytan
Thu Jan 12, 2006 9:38 pm
Forum: Anything else we might add?
Topic: Scheme: reduce & filter (please rate).
Replies: 9
Views: 13691

Thanks for all your posts guys they helped a lot, just having similar Lisp code to read lets me find new techniques to use :). Eddie: Scheme, including Dr. Scheme doesn't have those functions in list.ss, filter is available although it uses some tricks because of weaknesses in the implementation (ac...
by netytan
Wed Jan 11, 2006 7:22 pm
Forum: Anything else we might add?
Topic: Scheme: reduce & filter (please rate).
Replies: 9
Views: 13691

Scheme: reduce & filter (please rate).

I don't know if anyone here uses Scheme but Scheme doesn't include a reduce or filter function, so I set about writing some for fun and in any case it's a good way to learn :). (define filter (lambda (fn values) "This function is a tail recursive implementation of the filter function found in other ...
by netytan
Sun Jan 01, 2006 7:32 am
Forum: Anything else we might add?
Topic: Some help: comparing lists
Replies: 0
Views: 2471

Some help: comparing lists

Hey all, If you've seen my previous thread you'll know that I'm working on a sort program just for fun, I'm new to lisp and I thought it'd be a nice way to get to know it [by setting little tasks]. As part of this I need to be able to compare Lists of items and decide which comes first. This is prov...
by netytan
Sun Jan 01, 2006 5:11 am
Forum: Anything else we might add?
Topic: String to List
Replies: 10
Views: 10568

My common lisp versions of explode & implode:

Code: Select all

(defun explode (string)
  (map 'list #'character string))

(defun explode2 (string)
  (coerce string 'list))

(defun implode (object)
  (coerce object 'string))
All of these create character arrays :).

Mark.
by netytan
Sun Jan 01, 2006 2:30 am
Forum: Anything else we might add?
Topic: String to List
Replies: 10
Views: 10568

Sorry, I thought that this section was about any Lisp :). I'll refrain from asking such questions in the future. CL has no (explode) so I've gone ahead and written that, this should allow me to sort strings in the same way I sort nested lists – assuming that I can figure out how to sort nested lists...
by netytan
Sat Dec 31, 2005 4:42 am
Forum: Anything else we might add?
Topic: String to List
Replies: 10
Views: 10568

String to List

Hi guys, I'm using Common Lisp and I'm looking for a way to turn a string into a list of characters. I'm sure there must be a function to do this but I just can't find it :(. I'm currently working on a sorting function however I'm having a few problems sorting strings in the same function, my hope i...
by netytan
Fri Dec 16, 2005 5:24 pm
Forum: Anything else we might add?
Topic: Recusion
Replies: 2
Views: 3528

Recusion

I'm having some real problems wrapping my head around recursion, kinda embarrassing but hey. I was hoping someone would have some good advice here :).

Mark.
by netytan
Sat Dec 10, 2005 1:51 pm
Forum: Anything else we might add?
Topic: Atoms Symbols etc
Replies: 2
Views: 3289

Oh ok, so even symbols are atoms in Lisp? Lisp in general not just NewLisp

Thanks Lutz,

Mark.
by netytan
Sat Dec 10, 2005 1:44 am
Forum: Anything else we might add?
Topic: Atoms Symbols etc
Replies: 2
Views: 3289

Atoms Symbols etc

I was wondering if somone could tell me what an atom and what an Symbol is, they seem to be used intemitently and I just can't figure it out. I assumed that a Sybol was like a variable but an Atom I have no idea, is a Cons an Atom?

Thanks a lot guys :),

Mark.
by netytan
Thu Dec 08, 2005 5:58 pm
Forum: Anything else we might add?
Topic: LISP people seem to love arguing...
Replies: 3
Views: 4472

Wow ok, crazy guys. I spent two years with Python and Lisp is simply better. I dont know it as well yet but I have to say it seems a little odd to me. Still, they have a valid point about there not being as much documentation or example code. Thats not the point... but then, would also choose ASM ov...
by netytan
Wed Dec 07, 2005 12:43 am
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Lol yes :) tried that code right at the beginning however Scheme is a little bitch in this sense and you have to make sure that what your trying to append is also a list it throws. The one I'm using right now simply does a (cons) to collect all of the results in positive-binary; i imagine negative-b...
by netytan
Tue Dec 06, 2005 11:49 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Oh, really liked the advice about how you should write in the language you wish you had :). Haven't heard it put quite like that.

Mark.
by netytan
Tue Dec 06, 2005 11:44 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Thanks so much, thats just what I needed. However I was wondering if this would not better be implemented as a Macro, I'm not sure how NewLisps support for Macros is but Schemes really suck, it seems like very paper that talks about them and how to utilize them just doesn't work :(. Just curious, Th...
by netytan
Tue Dec 06, 2005 10:01 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Thanks a lot Peter, I can see how that works :). I've decided to go with the (reverse) method though, I think it'd be more effiencent in the long run :). If i do it like this way i'd be calling another functions repretedly, alternatively calling reverse once should do it :). Ideally i could just put...
by netytan
Tue Dec 06, 2005 9:01 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Hey pete :).

Thanks for the help, thats what I have working at the moment, using (reverse) but ideally i wanted to get it working inside the function, I guess I'm just not thinking recusively yet.

Will take a closer look and see if I can gain something here,

Thanks again.

Mark.
by netytan
Tue Dec 06, 2005 8:53 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

I'm not using NewLisp since Im required to do this in Scheme however this said general Lisp so i didnt think it would be a problem :). Very greatful for the fast reply, that really did suprise me. When i reverse the order of them i get a list but its in reverse order. Maybe somone could produce an e...
by netytan
Tue Dec 06, 2005 8:29 pm
Forum: Anything else we might add?
Topic: Return multiple values from a function.
Replies: 16
Views: 18788

Return multiple values from a function.

Hi guys, I'm kinda new to Lisp in general so please forgive my ignorance here. I'm having a few problems with one function I'm writing, I can get it working by using append, and in theory i know what append does but i cant replicate this using (cons). Somewhat annoying since it means i dont understa...