Search found 156 matches
- Tue Jan 29, 2008 4:09 pm
- Forum: newLISP Graphics & Sound
- Topic: Some Turtle Graphics for the fun
- Replies: 8
- Views: 7471
Here is a new (corrected) version of the "NewLISP Turtle", if there is no objection ;) with an example (another recursive tree) : #!/usr/bin/newlisp ;========================================================================= ; Turtle Graphics (NewLISP + GUI-server) - A recursive tree ; ; NewLISP v9.2...
- Tue Jan 29, 2008 3:10 pm
- Forum: newLISP newS
- Topic: development release newLISP 9.2.17
- Replies: 18
- Views: 7938
(I haven't enough time too, so I will write articles like a tech documentation (just for my knowledge, like a personal archive...) I can't update regularly a web site or a blog for lack of time (I have some other occupations which take time) but sometimes I try to translate help files or manuals, a...
- Tue Jan 29, 2008 2:08 pm
- Forum: newLISP newS
- Topic: development release newLISP 9.2.17
- Replies: 18
- Views: 7938
- Sun Jan 20, 2008 11:01 am
- Forum: Anything else we might add?
- Topic: 99 bottles of beer on the wall
- Replies: 18
- Views: 12349
- Sun Jan 20, 2008 10:56 am
- Forum: newLISP newS
- Topic: newlisp.vim updated
- Replies: 8
- Views: 4183
- Tue Jan 01, 2008 5:00 pm
- Forum: newLISP newS
- Topic: Happy new Year 2008
- Replies: 2
- Views: 2117
- Sat Dec 29, 2007 3:41 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8038
I think newLISP is unique in returning the last element for indices greater than the length of the list. Unique but not consistent. :-) Of course newLisp is the best programming language on earth, but I am still curious why this decision was made. If an index is counting backwards it wraps around a...
- Thu Dec 20, 2007 3:07 pm
- Forum: newLISP Graphics & Sound
- Topic: Merry Xmas and best wishes for 2008!
- Replies: 1
- Views: 3359
- Mon Dec 10, 2007 11:03 am
- Forum: newLISP newS
- Topic: Foop, the movie
- Replies: 7
- Views: 3596
I do have a question about your constructors. Since the values of the symbols np , ne , nn , etc. are lost with the completion of the constructor, why not this? (define (Atome:Atome nat) ; nat=atomic number (list Atome nat nat nat (table nat 1))) Or if you want to document the attributes: (define (...
- Sun Dec 09, 2007 10:15 am
- Forum: newLISP newS
- Topic: Foop, the movie
- Replies: 7
- Views: 3596
Re: OT!
Fine and funny :Dcormullion wrote:And when you mention elements in the periodic table just after I've watched michael's wonderful animated movie, I can't resist pointing you to this wonderful flash animation:
http://www.privatehand.com/flash/elements.html
Thanks
- Sat Dec 08, 2007 6:02 pm
- Forum: newLISP newS
- Topic: Foop, the movie
- Replies: 7
- Views: 3596
Fantastic movie ! I can't wait for Chapter 2 ! It made me want to put into practice at once with this little script (inspired by a Python script): #!/usr/bin/newlisp ; newlisp 2.9.7 - dec 2007 ; This script creates objects 'Atom' and 'Ion'. ; A ion is just an altered atom. So the class 'Ion' ; is de...
- Mon Dec 03, 2007 10:52 am
- Forum: Anything else we might add?
- Topic: Context or FOOP
- Replies: 11
- Views: 5778
- Sun Dec 02, 2007 12:32 pm
- Forum: Anything else we might add?
- Topic: Context or FOOP
- Replies: 11
- Views: 5778
FOOP is really an interesting and original manner to consider OOP. It reminds me of Elica NOOP (Natural OOP or "Easy" OOP) ... I always had trouble managing this 'self' (or 'this') in Python or in other languages using '"classical" OOP. With FOOP, I think it's an unnecessary shortcut which risks mak...
- Sat Dec 01, 2007 5:32 pm
- Forum: newLISP Graphics & Sound
- Topic: [Tool] Nlist - remote content/code-browsing -
- Replies: 48
- Views: 28502
- Fri Nov 30, 2007 9:57 am
- Forum: Anything else we might add?
- Topic: How did you find newLISP?
- Replies: 35
- Views: 25703
I was (and I'm still) a fan of Logo and I wanted to learn Lisp, the "forerunner" of Logo, but didn't find a Lisp that satisfied me (neither CLisp, nor XLisp, etc...). So I tried Scheme, a little too complex for me and too "heavy" in its implementation. I tried Python, simpler but still so heavy. And...
- Fri Nov 30, 2007 8:34 am
- Forum: Anything else we might add?
- Topic: Context or FOOP
- Replies: 11
- Views: 5778
Thanks for those insructive replies :) (that I store at once) I forgot a little that I must view an object as a list (rather than as a context). Now all is clearer for me. I see the the logic of the thing ! Moreover objects p1 and p2 are distinct even if they are equal, in relation to their coordina...
- Thu Nov 29, 2007 6:49 pm
- Forum: Anything else we might add?
- Topic: Context or FOOP
- Replies: 11
- Views: 5778
Context or FOOP
I want to create two distinct objects from the same class. I can do it with context but I don't manage with FOOP. Examples : (context 'Point) (set 'x 0 'y 0) (context MAIN) (new Point 'p1) (set 'p1:x 3 'p1:y 4) (new Point 'p2) (set 'p2:x 3 'p2:y 4) (println (= p1 p2)) ; => nil : p1 and p2 are two di...
- Thu Nov 29, 2007 12:39 pm
- Forum: Anything else we might add?
- Topic: OOP and inheritance
- Replies: 10
- Views: 5760
We are free to use any frameworks we wish in newLISP, including Fanda's. The problem with frameworks is they must be included (and maintained). So far, I've managed to get by without a framework. Yes I agree. This was a dilemna for me before... here: http://newlisp.org/index.cgi?page=newLISP-FOOP I...
- Wed Nov 28, 2007 1:48 pm
- Forum: Anything else we might add?
- Topic: OOP and inheritance
- Replies: 10
- Views: 5760
Hi newBert! Your code uses the earlier context-based way of doing OOP, which was found to have weaknesses. I was aware of the weakness of my code. It was an adaptation of what I learnt about OOP through Python first. I like your version which is closer to the "newLISP spirit" than mine (which is pe...
- Tue Nov 27, 2007 1:30 pm
- Forum: Anything else we might add?
- Topic: OOP and inheritance
- Replies: 10
- Views: 5760
Very good - clear and direct! I wondered whether the first (context MAIN) was needed. But in fact I think it demonstrates that (context 'square) isn't part of context rectangle although it inherits from it, neither is it a nested context (which don't exist...). So leaving it in is good! Yes, it was...
- Mon Nov 26, 2007 6:19 pm
- Forum: Anything else we might add?
- Topic: OOP and inheritance
- Replies: 10
- Views: 5760
OOP and inheritance
In chapter 17 of the NewLISP Manual (Object-Oriented Programming in newLISP) polymorphism is described clearly and simply. That shows how NewLISP can adapt easily to apparently complex things... I studied, with my poor knowledge and competence in computer science, the notion of inheritance and here ...
- Mon Nov 26, 2007 4:58 pm
- Forum: newLISP newS
- Topic: development release newLISP v.9.2.7
- Replies: 6
- Views: 4027
- Mon Nov 26, 2007 4:34 pm
- Forum: newLISP Graphics & Sound
- Topic: Some Turtle Graphics for the fun
- Replies: 8
- Views: 7471
how do I create a bigger mandala? increasing the width and height did not had any effect, its nicely hidden, I like to see thison full screen ;-) Norman, I think we can do it now with version 9.2.7 and the (gs:window-resized) function, adding these two procedures in the previous script : (gs:window...
- Sun Nov 25, 2007 1:30 pm
- Forum: newLISP Graphics & Sound
- Topic: Color with GUI-server in version 9.2.6
- Replies: 2
- Views: 3915
All colors are defined with folating point numbers decimal separator as a point in guiserver.lsp. But your UTF-8 enabled version expects a comma. Put this as your very first statement in your program: (set-locale "C") This will switch back to a point as a separator in your location. Development ver...
- Sun Nov 25, 2007 11:29 am
- Forum: newLISP Graphics & Sound
- Topic: Color with GUI-server in version 9.2.6
- Replies: 2
- Views: 3915
Color with GUI-server in version 9.2.6
When I do this (with NewLISP 9.2.6 on Win32): ;--------------------- ; initialize GUI-server ;--------------------- (load (append (env "NEWLISPDIR") "/guiserver.lsp")) (gs:init) ;------------------------- ; constants and variables ;------------------------- ; GUI size: (constant 'WIDTH 500 'HEIGHT 3...