Search found 394 matches
- Sun Sep 06, 2009 5:23 pm
- Forum: Whither newLISP?
- Topic: Is a lisp with only functional parentheses possible?
- Replies: 33
- Views: 19165
Attempts to remove the parentheses from Lisp, both big (like Dylan in the ’90s) and small (such as Sweet-expressions today) have assumed the problem was with the parenthesis itself, instead of the prejudice of non-Lisp programmers against it. Like all differences we encounter for the first time, the...
- Tue Jul 14, 2009 7:35 pm
- Forum: Anything else we might add?
- Topic: Counting dup
- Replies: 2
- Views: 2622
- Tue Jul 14, 2009 2:51 pm
- Forum: Whither newLISP?
- Topic: Values and void
- Replies: 8
- Views: 5347
- Tue Jul 14, 2009 3:01 am
- Forum: Anything else we might add?
- Topic: Counting dup
- Replies: 2
- Views: 2622
Counting dup
Lutz, This isn't really a request so much as sharing an idea: What would you think of adding $idx to dup ? Something like this: > (dup (format "%c" $idx) 10) ("" "\001" "\002" "\003" "\004" "\005" "\006" "\007" "\008" "\t") > _ Of course, we can do it this way: > (map (fn (ea) (format "%c" ea)) (seq...
- Tue Jul 14, 2009 2:59 am
- Forum: Whither newLISP?
- Topic: Values and void
- Replies: 8
- Views: 5347
I usually always end my silent expressions this way: > (silent (println "ok?") (print "> ")) ; notice the space after '>' ok? > _ silent is merely suppressing the prompt newlisp usually prints. Hitting enter on an empty line prints the prompt again (what you are experiencing). (print "> ") at the en...
- Tue Jul 14, 2009 2:55 am
- Forum: Whither newLISP?
- Topic: More Mutable FOOP
- Replies: 4
- Views: 3472
This is getting difficult... Uh-oh, I thought I was making it easier! I’ve abandoned using named objects for now (the updated obj function), but my current experiments have been very promising. I'm also working on a useable define-keyword macro. It functions the way I would want keyword arguments t...
- Fri Jul 10, 2009 11:36 am
- Forum: Whither newLISP?
- Topic: More Mutable FOOP
- Replies: 4
- Views: 3472
I forgot to include the object? predicate used by the second version of the obj function:
m i c h a e l
Code: Select all
(set (global 'object?) (fn (it)
(and
(list? it)
(not (empty? it))
(context? (it 0))
)
))
- Fri Jul 10, 2009 3:50 am
- Forum: Whither newLISP?
- Topic: More Mutable FOOP
- Replies: 4
- Views: 3472
More Mutable FOOP
In my continued experiments with mutability in FOOP, I've discovered another technique that simplifies and unifies the previous system. It’s done without the use of symbols stored in the MAIN context and doesn’t require two types of objects (mutable and immutable). The earlier technique required bot...
- Mon Jun 22, 2009 12:30 pm
- Forum: newLISP newS
- Topic: Documentation for release 10.1.0
- Replies: 36
- Views: 17704
we still don't have a good way of doing this distributed proof-reading. I think more people would contribute if the mechanics were easier. Something like WikiBooks might be something to consider one day... This is something I hoped newLISP wiki could handle, but I probably underestimate the difficu...
- Thu Jun 04, 2009 10:10 pm
- Forum: Whither newLISP?
- Topic: Mutable FOOP
- Replies: 6
- Views: 4795
At the time I was wondering how to integrate FOOP with newLISP-GUI... Ie, an object to represent state and behaviour, then instances of it created and displayed on a canvas or layout. For example, an object that describes how an analog meter works, then placed as instances so that they could show d...
- Thu Jun 04, 2009 6:54 pm
- Forum: newLISP Graphics & Sound
- Topic: Some almond bread for tea
- Replies: 3
- Views: 5394
- Thu Jun 04, 2009 6:47 pm
- Forum: Whither newLISP?
- Topic: Mutable FOOP
- Replies: 6
- Views: 4795
cormullion, Weren't you working on something to do with GS that needed mutable objects? Maybe this solution can help you achieve that. It really just moves the resetting of the variable into the accessors, but if there ever was a good reason for accessors, this is it. I'm glad my Gödel/Escher/Bach c...
- Wed Jun 03, 2009 9:44 pm
- Forum: Whither newLISP?
- Topic: Mutable FOOP
- Replies: 6
- Views: 4795
you know micheal, first of all I always write your name wrong dont know why that is. Norman, that's meta! But maybe I'm only saying that because I've got metaness on the brain ;-) and secondly every time you post these wonderful solutions I always need to read it 2 or 3 times befor i get it. Elegan...
- Wed Jun 03, 2009 7:01 pm
- Forum: Whither newLISP?
- Topic: Mutable FOOP
- Replies: 6
- Views: 4795
Mutable FOOP
Dear Club, My continuing adventures in FOOP have led me to a new discovery: mutable FOOP objects. By adding a self-reference to its second element, a mutable object can preserve its state without manually resetting the reference each time the object is updated. (Actually, manual resetting still occu...
- Tue May 19, 2009 7:07 pm
- Forum: Anything else we might add?
- Topic: A Computer Programming Course Featuring newLISP
- Replies: 5
- Views: 4345
- Tue May 19, 2009 2:40 am
- Forum: Anything else we might add?
- Topic: Nominate newLISP in Sourceforge
- Replies: 10
- Views: 6675
- Thu May 14, 2009 5:36 pm
- Forum: newLISP newS
- Topic: Contexts/namespaces naming in modules
- Replies: 7
- Views: 5016
I think what cormullion is responding to here is the reason standards committees are set up to begin with. I, too, was bitten by 10, but the bites have mostly healed now. Granted, I have no modules of code floating around to continue mauling me. It’s the ol’ ebb-and-flow between freedom and security...
- Thu May 14, 2009 2:33 pm
- Forum: Anything else we might add?
- Topic: Nominate newLISP in Sourceforge
- Replies: 10
- Views: 6675
- Wed May 13, 2009 1:22 am
- Forum: Whither newLISP?
- Topic: Macros need explanation
- Replies: 11
- Views: 7113
"Lisp is a programmable programming language." — CACM, September 1991 The quote continues: “Not only can you program in Lisp (that makes it a programming language) but you can program the language itself. This is possible, in part, because Lisp programs are represented as Lisp data objects, and par...
- Fri May 01, 2009 7:14 am
- Forum: Whither newLISP?
- Topic: newLISP coding form
- Replies: 13
- Views: 8117
- Mon Apr 20, 2009 2:05 am
- Forum: Anything else we might add?
- Topic: May 10, 2009 Stacks Menlo Park Lisp and Scheme Brunch
- Replies: 3
- Views: 3645
- Wed Apr 15, 2009 12:57 am
- Forum: So, what can you actually DO with newLISP?
- Topic: Twitter command-line utility update v.03
- Replies: 9
- Views: 6846
Just wanted to mention that I deleted my Twitter account a few days ago. I did this because a couple of my entries were “disappeared,” and I had lost confidence in Twitter. I mention this because I didn’t want those individuals whom I was following to think I simply stopped following them :-) m i c ...
- Tue Apr 07, 2009 12:45 am
- Forum: newLISP newS
- Topic: Kenwood
- Replies: 7
- Views: 5577
- Mon Apr 06, 2009 12:16 pm
- Forum: Whither newLISP?
- Topic: newLISP Challenge: The seemingly simple 'my-or'
- Replies: 37
- Views: 23403
Here's a minimal version:
m i c h a e l
Code: Select all
(define-macro (my-or)
(or (eval (args 0)) (eval (args 1)))
)
- Thu Apr 02, 2009 10:58 pm
- Forum: Anything else we might add?
- Topic: Foil Spar
- Replies: 7
- Views: 4822