Search found 429 matches

by itistoday
Fri Jan 18, 2008 9:59 pm
Forum: newLISP newS
Topic: Benchmarking newLISP
Replies: 1
Views: 1259

Neat! Shouldn't the respective language version numbers be noted though?
by itistoday
Fri Jan 18, 2008 9:52 pm
Forum: newLISP newS
Topic: WINNERS NEWLISP COMPETITION 2007
Replies: 17
Views: 6742

I got the shirt today, it's awesome! I like the design and am very happy about getting it because I need more shirts, so thanks again michael for donating yours! And thanks Lutz for sending it so quickly too!

:-D->-<

^-- Me ecstatic about receiving my new shirt.
by itistoday
Wed Jan 16, 2008 6:24 am
Forum: newLISP newS
Topic: WINNERS NEWLISP COMPETITION 2007
Replies: 17
Views: 6742

Keynote 4.0.1. I tried to do FOOP 3 in After Effects (fantastic program), but it was much more difficult. I'm basically happy with Keynote's results. Ah, that's pretty nifty actually, for some reason I forgot that Keynote could do that, it's a fantastic program. If you're still looking for someone ...
by itistoday
Wed Jan 16, 2008 2:04 am
Forum: newLISP newS
Topic: WINNERS NEWLISP COMPETITION 2007
Replies: 17
Views: 6742

I won?! Wow, thank you, everyone! The last time I won something was for a diorama I built of a Star Wars Lambda-class T-4a shuttle for a model competition back in 1983 :-) I've already begun to design a special, hermetically sealed container/vault for the manual so it can be ready when the precious...
by itistoday
Tue Jan 15, 2008 10:11 pm
Forum: newLISP newS
Topic: Towards FOOP, Chapter 2: Polymorphism
Replies: 4
Views: 2144

I love these videos! Great job m i c h a e l!
by itistoday
Tue Jan 15, 2008 9:42 pm
Forum: newLISP newS
Topic: Announcing the First Annual Eastern US Newlisp Conference
Replies: 3
Views: 1903

I live in Miami (and sometimes Gainesville) so I could attend, I've been away on vacation the past couple of weeks so I didn't know about this "conference", but yeah, if you guys do it again I'd be happy to stop by and shoot the shit if I can. :-)
by itistoday
Thu Dec 13, 2007 2:57 pm
Forum: newLISP newS
Topic: Better array support?
Replies: 6
Views: 3136

cormullion wrote:nice one Lutz!

Code: Select all

newLISP v.9.2.9 on OSX UTF-8, execute 'newlisp -h' for more info.

> (set 'a (array 2 2 (randomize (sequence 1 10))))
((8 7) (2 10))
> (sort a)
((2 10) (8 7))
Awesome! Thanks Lutz! :D
by itistoday
Sat Dec 08, 2007 8:05 am
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Essentially I wrote a program in newLISP that tried its best to eliminate as many pieces as possible from a ChainShot game. Nice project. Perhaps you could add a GUI to it one day..! Yeah, I think I might actually, once I finish all my finals for school. Then if there's time I might enter it into t...
by itistoday
Sat Dec 08, 2007 8:03 am
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

I implemented a simple memory allocation hack: Wow, that's pretty neat. It's still doing a context-like trick by using named symbols for the pointers, and evaluating a pointer takes log(n) time (b/c of the red-black tree), but that's still a really cool trick. Thanks for sharing! Using this approac...
by itistoday
Fri Dec 07, 2007 5:44 pm
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Perhaps you are looking for is some sort of associative data access. A way to access a piece of information via a key pointing to a data-value. This is what binary-trees are used for in 99% of the cases. Well actually the binary tree was just an example, the original tree that I had in mind was lik...
by itistoday
Fri Dec 07, 2007 5:13 pm
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Are you thinking about speed? The need for speed...?! :) Oh... why yes, most definitely. :) I wonder how big your lists are going to be... What's the application, out of interest? It's for my artificial intelligence final class project. I was originally planning on using a tree, but since I ran out...
by itistoday
Fri Dec 07, 2007 3:59 pm
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Is it possible for there to be a hypothetical built-in function called 'unsafe-ref' that returned an internal reference (pointer) to something? Then you'd be able to do things like this without having to walk down the tree/list twice (once to find the indices, and once again for nth-set to follow th...
by itistoday
Fri Dec 07, 2007 3:49 pm
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Thank you both! Using 'ref' and 'nth-set', that's what I was looking for! Coming from far-away lands that always had references, I'm not used to this method of mutably modifying things.

Thanks again!
by itistoday
Fri Dec 07, 2007 2:49 am
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

OK, I fixed the problem, the code had a bug in the indexing, it should be: (define (TREE-label tree) (tree 1)) (define (TREE-left tree) (tree 2)) (define (TREE-right tree) (tree 3)) (define (set-TREE-label tree value) (nth-set (tree 1) value)) And also, I was right, this method does not allow you to...
by itistoday
Fri Dec 07, 2007 2:26 am
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

Thanks for your replies and the binary tree example, but I'm still worried that it won't work the way I want. For example, what will this do: (set-TREE-label (find-subtree tree 5) 2000) Will that update what's in the tree itself, or will that only update a copy of what was in the tree? Edit: I'm try...
by itistoday
Thu Dec 06, 2007 11:21 pm
Forum: Anything else we might add?
Topic: newLisp competition 2007
Replies: 68
Views: 45158

My second contribution is (although still in progress) (load " http://www.nodep.nl/downloads/newlisp/nlist.lsp ") Wow, I just spent some time using that to go through the newLISP files on your server, they're amazing! My favorite has to be worm.lsp! Great job! :-D And I love how you can load them j...
by itistoday
Thu Dec 06, 2007 9:12 pm
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

On a similar note, how would one implement something like a binary search tree in newLISP without having to generate named contexts? It doesn't seem ... possible.
by itistoday
Tue Dec 04, 2007 10:07 pm
Forum: newLISP newS
Topic: (length my-list) - O(n) or O(1) ?
Replies: 5
Views: 2986

Re: (length my-list) - O(n) or O(1) ?

Cyril wrote:Oops! Wrong! It's O(n)! Very, very evil typo. Sorry, folks. And nobody have corrected me. :-(
Are you saying that's what I get for trusting you? ;)

Yeah. That's a problem I think... Lutz?
by itistoday
Tue Dec 04, 2007 3:04 pm
Forum: Anything else we might add?
Topic: IRC channel
Replies: 2
Views: 2587

However, none of the newLISP users from this forum are into IRC, so the channel has been quiet for most of the year. Ah, oh well. It's just nice sometimes when you're a newLISPnewBIE and have a question that needs a quick answer. But if you like talking to yourself, it's kind of fun... :) I might t...
by itistoday
Tue Dec 04, 2007 3:01 pm
Forum: newLISP newS
Topic: (length my-list) - O(n) or O(1) ?
Replies: 5
Views: 2986

Thanks guys!
Lutz wrote:For 'last' the optimization was never done, but is trivial to add for 9.2.9.
That would be just hunky-dory! :-D
by itistoday
Tue Dec 04, 2007 4:19 am
Forum: newLISP newS
Topic: How to modify list within a list by reference?
Replies: 17
Views: 7786

How to modify list within a list by reference?

I'm trying to create a tree class using the data-type macro Lutz introduced . The class is created like so: (data-type (tree data children)) data can be anything, and children is a list of other trees. So say I want to define a function (or macro, don't know which) called tree:add-child that takes a...
by itistoday
Tue Dec 04, 2007 3:00 am
Forum: newLISP newS
Topic: (length my-list) - O(n) or O(1) ?
Replies: 5
Views: 2986

(length my-list) - O(n) or O(1) ?

Does (length) calculate the size of a list by iterating through its elements or is there a value stored somewhere internally?
by itistoday
Tue Dec 04, 2007 2:29 am
Forum: Anything else we might add?
Topic: More about Lutz's new macro
Replies: 22
Views: 11653

OK, this is getting frustrating, I'm starting to get the impression that newLISP just isn't designed for object oriented programming (edit: which appears to be what Lutz said above, now that I'm reading through this thread in more detail...). Using my previous code this does not work: (set 'points '...
by itistoday
Tue Dec 04, 2007 2:19 am
Forum: Anything else we might add?
Topic: More about Lutz's new macro
Replies: 22
Views: 11653

OK, I haven't been able to figure out how to get it working using the previous paradigm, but I did fix it by changing the semantics a bit. The data-type function is the same except the setter/getters are functions instead of macros: (define-macro (data-type) (let (ctx (context (args 0 0))) (set (def...
by itistoday
Tue Dec 04, 2007 1:31 am
Forum: Anything else we might add?
Topic: IRC channel
Replies: 2
Views: 2587

IRC channel

Is there an IRC channel for newLISP? I think it would be really helpful to the entire community if there was...