Search found 394 matches

by m i c h a e l
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...
by m i c h a e l
Tue Jul 14, 2009 7:35 pm
Forum: Anything else we might add?
Topic: Counting dup
Replies: 2
Views: 2622

That's great, Lutz! series is one of those functions I've overlooked in the past, so now maybe I'll start using it more.

m i c h a e l
by m i c h a e l
Tue Jul 14, 2009 2:51 pm
Forum: Whither newLISP?
Topic: Values and void
Replies: 8
Views: 5347

You're welcome. Glad I could be of help.

m i c h a e l
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
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:

Code: Select all

(set (global 'object?) (fn (it)
	(and 
		(list? it)
		(not (empty? it))
		(context? (it 0))
	)
))
m i c h a e l
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
Thu Jun 04, 2009 6:54 pm
Forum: newLISP Graphics & Sound
Topic: Some almond bread for tea
Replies: 3
Views: 5394

These are gorgeous, cormullion. Hooray for pixel-level generation!

m i c h a e l
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
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...
by m i c h a e l
Tue May 19, 2009 7:07 pm
Forum: Anything else we might add?
Topic: A Computer Programming Course Featuring newLISP
Replies: 5
Views: 4345

cormullion wrote:Nice to see Leo Brodie's books in there, too. I liked him.
One of my favorite books about Forth was by Leo. Thinking Forth (I think). His cartoons always made it more fun to learn and illustrated his points well.

Maybe we could persuade him to write one on newLISP ;-)

m i c h a e l
by m i c h a e l
Tue May 19, 2009 2:40 am
Forum: Anything else we might add?
Topic: Nominate newLISP in Sourceforge
Replies: 10
Views: 6675

Rick! Long time, no hear :-)

Working on anything interesting?

m i c h a e l
by m i c h a e l
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...
by m i c h a e l
Thu May 14, 2009 2:33 pm
Forum: Anything else we might add?
Topic: Nominate newLISP in Sourceforge
Replies: 10
Views: 6675

Done.

When clicking the above link, I noticed the URL is filled in like so:
Is this a mistake?

I removed the trailing backslash and double quote when I submitted mine.

m i c h a e l
by m i c h a e l
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...
by m i c h a e l
Fri May 01, 2009 7:14 am
Forum: Whither newLISP?
Topic: newLISP coding form
Replies: 13
Views: 8117

duke,

There is no single, correct way to format newLISP code. Do whatever makes it easier for you to understand the code's structure. Lutz intentionally uses various code formats in the manual to help encourage freedom in this area.

m i c h a e l
by m i c h a e l
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

Thanks for the invite, Nick. Alas, I don’t live close enough to attend (plus, I hardly consider myself a newLISP hacker), but I would love to see a newLISPer there as a representative of the language.

newLISP certainly doesn’t get the respect and attention it so richly deserves.

m i c h a e l
by m i c h a e l
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 ...
by m i c h a e l
Tue Apr 07, 2009 12:45 am
Forum: newLISP newS
Topic: Kenwood
Replies: 7
Views: 5577

While we’re on the subject, I just wanted to express my appreciation to Ryon for all his efforts at keeping this such a nice place to visit.

m i c h a e l
by m i c h a e l
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:

Code: Select all

(define-macro (my-or) 
   (or (eval (args 0)) (eval (args 1)))
)
m i c h a e l
by m i c h a e l
Thu Apr 02, 2009 10:58 pm
Forum: Anything else we might add?
Topic: Foil Spar
Replies: 7
Views: 4822

xytroxon wrote:I think we all better re-think our foolish language plans...

RedSnake is the future!!!
Darn it. And I just finished converting all my newLISP code into REALbasic, too! At least it’ll be fun typing all those tildes. They look like pretty windswept waves upon the ocean.

m i c h a e l