Search found 18 matches
- Sat Oct 30, 2004 5:43 pm
- Forum: Anything else we might add?
- Topic: anonymous context-objects
- Replies: 5
- Views: 5969
thanks for your help Lutz. unfortunately, the more i experiment with NewLISP the more i discover how much i am biased towards the everything-is-a-first-class-value approach. so i will probably convert my code to some Scheme or Scheme derivative. that makes sense because animating LEGO scenes also re...
- Fri Oct 29, 2004 8:06 pm
- Forum: Anything else we might add?
- Topic: anonymous context-objects
- Replies: 5
- Views: 5969
anonymous context-objects
i experiment with NewLISP and LEGO bricks, using the LDraw library standard. i use a newlisp BRICK class, here is an excerpt: (constant 'red 4) (context 'BRICK) (define color MAIN:red) (define (BRICK:new ctx col x y z) (MAIN:new BRICK ctx) (set 'ctx (eval ctx)) (set 'ctx:color col) ctx ) now what i ...
- Sun Oct 17, 2004 1:12 am
- Forum: newLISP and the O.S.
- Topic: GCC also for Palm OS
- Replies: 2
- Views: 4059
- Sun Oct 17, 2004 12:36 am
- Forum: newLISP newS
- Topic: newLISP now on Graham's list
- Replies: 55
- Views: 69521
i think newLISP is good because it is an alternative. * can you live without closures ? * can you live without classes (and use prototypes instead) ? * can you live without continuations ? if the answer is "yes" then newLISP is a serious candidate. otherwise one may be happier with Scheme. anyway, i...
- Fri Aug 13, 2004 10:31 pm
- Forum: Anything else we might add?
- Topic: aspect oriented computing and scope
- Replies: 7
- Views: 7981
(inc 'Lutz:balance 1000000) ;; please ;-) many prototype languages (such as NewtonScript) even create the "balance" slot if it is read but do not exist. that's too much flexibility, typos become unnotified, additionnal expressiveness is insignificant :( one great thing with newLISP contexts is conte...
- Wed Aug 11, 2004 6:22 pm
- Forum: Anything else we might add?
- Topic: aspect oriented computing and scope
- Replies: 7
- Views: 7981
- Wed Aug 11, 2004 6:19 pm
- Forum: Anything else we might add?
- Topic: common lisp live cd
- Replies: 4
- Views: 5063
- Tue Aug 10, 2004 10:15 pm
- Forum: Anything else we might add?
- Topic: aspect oriented computing and scope
- Replies: 7
- Views: 7981
this PDF document describes a minimal Scheme extension for AOP: http://www.cs.uri.edu/~dbtucker/pubs/aosd2003-tk.pdf thus, dynamic scoping is not necessary to benefit AOP. the Scheme AOP extension seems more powerful, however i agree it is also far less intuitive because it's based on a continuation...
- Wed Jul 07, 2004 10:24 pm
- Forum: newLISP in the real world
- Topic: integer parsing
- Replies: 5
- Views: 5797
well, i use newLISP for prototyping some useless functions. only time will say if the functions are actually usefull and how they eventually are. the functions manipulate LEGO bricks, represent them as cubes, and test if they overlap and if they connect: (constant 'black 0) (constant 'blue 1) (const...
- Tue Jul 06, 2004 3:09 pm
- Forum: newLISP in the real world
- Topic: integer parsing
- Replies: 5
- Views: 5797
It would not avoid the problem you ran into and you would have: (= apos 090) interpreted as (= apos 0 90), which would always evaluate to nil. But breaking the token where the legal octal string ends would be a more consistent approach when parsing numbers. the problem is not here in my opinion. co...
- Tue Jul 06, 2004 1:31 am
- Forum: newLISP in the real world
- Topic: integer parsing
- Replies: 5
- Views: 5797
integer parsing
every language has its pitfalls. the code is supposed to print a simple rotation matrix: (if (= apos 000) (print "1 0 0 0 1 0 0 0 1") (= apos 090) (print "0 0 1 0 1 0 -1 0 0") (= apos 180) (print "-1 0 0 0 1 0 0 0 -1") (= apos 270) (print "0 0 -1 0 1 0 1 0 0") ) pretty code alignment is not always a...
- Fri Jul 02, 2004 9:13 pm
- Forum: Anything else we might add?
- Topic: implementing delegation
- Replies: 7
- Views: 8459
that's indeed how delegation is implemented in LISP languages: an object is a lexical closure that exports its bindings. nested lexical closures provide the inheritance effect. unfortunately, without lexical closures newLISP is not suitable for implementation of new OOP systems. so newLISP is only a...
- Fri Jul 02, 2004 1:00 am
- Forum: Anything else we might add?
- Topic: implementing delegation
- Replies: 7
- Views: 8459
thanks eddier. the new code may be less efficient, yet it removes the arguments problem. that also partially solves the "identity" problem, because objects are macros whereas methods are lambdas. (define (handler) (define-macro (self msg) (define slot (eval (eval msg))) (if (lambda? slot) (eval (con...
- Wed Jun 30, 2004 10:05 pm
- Forum: Anything else we might add?
- Topic: haiku
- Replies: 4
- Views: 6167
- Wed Jun 30, 2004 9:44 pm
- Forum: Anything else we might add?
- Topic: implementing delegation
- Replies: 7
- Views: 8459
thanks for your attention. my understanding of newLISP OOP model is it's much more practical than i thought at first. it even offers multiple inheritance with no hassle. finally i even have removed my OCAML installation, i can't even read the OCAML documentation, CAML is really nice but in my opinio...
- Tue Jun 29, 2004 7:32 pm
- Forum: Anything else we might add?
- Topic: implementing delegation
- Replies: 7
- Views: 8459
implementing delegation
this is a quick and dirty example of delegation prototype programming in newLISP: (define-macro (handler) (define (self msg a b) (define slot (eval msg)) (if (lambda? slot) (eval (list slot a b)) slot ) ) ) (define (interval x1 x2) (define xmin x1) (define xmax x2) (define (glide dx) (inc 'xmin dx) ...
- Tue Jun 29, 2004 3:21 pm
- Forum: Anything else we might add?
- Topic: First impressions
- Replies: 2
- Views: 4191
Hello nigelbrown, seems you are right, i am more familiar with delegation, protos and parents, so i misbelieved when it's not delegation then it's concatenation. also seems the newLISP approach is not so marginal, the popular Rebol language has the same actually. i think the correct term is "embedde...
- Mon Jun 28, 2004 7:36 pm
- Forum: Anything else we might add?
- Topic: First impressions
- Replies: 2
- Views: 4191
First impressions
in the endless search for the ultimate programming language, i finally have found newLISP. i want to congratulate the author of newLISP, because after installing newLISP i have removed: * Galapagos * SIOD * MzScheme+Swindle * SCM * PocketScheme * Rebol from my HD, thus making my programmer practice ...