Search found 394 matches

by m i c h a e l
Sun Nov 14, 2010 12:54 am
Forum: newLISP in the real world
Topic: context-awareness: function knows about the current context
Replies: 6
Views: 1934

Re: context-awareness: function knows about the current context

I like the mental state programming in Forth puts you in. Focusing on thinking about the problem first, then breaking it down into stack shuffling operations. This can be a deeply rewarding mental exercise. Chuck Moore is a brilliant person. I gave up on Forth after I realized the language seemed to...
by m i c h a e l
Sat Nov 13, 2010 8:45 pm
Forum: newLISP in the real world
Topic: context-awareness: function knows about the current context
Replies: 6
Views: 1934

Re: context-awareness: function knows about the current context

I'm not sure if it's possible either, unfortunately. I noticed something that could be a problem, though: the use of sys-info within my-sys-info after you redefine it to be my-sys-info . It's probably better to think of these kinds of macros as rewrite macros. I use them mostly for writing DSLs. The...
by m i c h a e l
Thu Nov 11, 2010 7:56 pm
Forum: newLISP in the real world
Topic: context-awareness: function knows about the current context
Replies: 6
Views: 1934

Re: context-awareness: function knows about the current context

Hi cormullion! Defining f as global hides the fact that f is still defined in MAIN . You can see this more clearly in the following: > (define (f) (context)) (lambda () (context)) > (f) MAIN > (context 'Fred) Fred Fred> (MAIN:f) MAIN Fred> _ In order to refer to f without the global definition, we m...
by m i c h a e l
Fri Oct 08, 2010 6:22 am
Forum: newLISP newS
Topic: newlisp.vim 1.32 (and 1.33!)
Replies: 5
Views: 4452

Re: newlisp.vim 1.32 (and 1.33!)

In the newLISP manual, under "1. Syntax on symbol variables and numbers" in the "Symbols for variable names" section, number four states: A symbol name starting with [ (left square bracket) and ending with ] (right square bracket) may contain any character except the right square bracket. I had to l...
by m i c h a e l
Tue Sep 28, 2010 9:41 pm
Forum: newLISP and the O.S.
Topic: Textmate editor
Replies: 3
Views: 3036

Re: Textmate editor

It looks like Seth used PCRE 5, which has "named groups," thus allowing for recursive matching. This feature does not appear to be in the regex library TextMate currently uses.

m i c h a e l
by m i c h a e l
Mon Sep 27, 2010 10:08 pm
Forum: newLISP and the O.S.
Topic: Textmate editor
Replies: 3
Views: 3036

Re: Textmate editor

Hi cormullion!

TextMate's parenthesis balancing has always been a weak spot. Since TextMate uses regular expressions to do the parsing, it's extremely difficult to balance a set of symbols to an arbitrary nesting depth.

And I agree with you on the colo(u)r schemes! :-)

m i c h a e l
by m i c h a e l
Mon Sep 20, 2010 12:41 am
Forum: newLISP in the real world
Topic: About Users Manual v.10.2.8
Replies: 4
Views: 1849

Re: About Users Manual v.10.2.8

Congratulations, johnu, on such a monumental accomplishment! This translation is very important for newLISP's wider adoption. Thank you, sincerely. About the verb in the first example, cormullion's right. Although, technically, the full verb is "will parallelize." It the second example, the second s...
by m i c h a e l
Wed Sep 01, 2010 8:52 pm
Forum: Anything else we might add?
Topic: new to newLISP
Replies: 20
Views: 11008

Re: new to newLISP

It's maybe to early to say that it totaly won me, but it seems that's on the way. It took me a while to fully appreciate newLISP, and I almost gave up twice. It's deceptively simple. Sometimes, it seems, too simple. If you've been habituated to complexity, it can take some time to see the straightf...
by m i c h a e l
Wed Sep 01, 2010 1:29 am
Forum: Anything else we might add?
Topic: new to newLISP
Replies: 20
Views: 11008

Re: new to newLISP

. . . but i'm wondering how much people use it, and what they build in the real world with it. Hi Ormente! Welcome. I hope you find newLISP as rewarding and productive as I have. I'm not a real programmer (I don't even play one on TV), but I've been using newLISP exclusively for four years now, and...
by m i c h a e l
Sat Jul 03, 2010 5:10 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6604

Re: SBCL to newLISP

Here's one more way to set variables:

Code: Select all

> (define a 1)
1
> a
1
> _
Of course, define cannot be used to do multiple assignments. I think Lutz said this form was designed for Scheme programmers to feel more at home.

m i c h a e l
by m i c h a e l
Fri Jul 02, 2010 6:15 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6604

Re: SBCL to newLISP

Michael, I've never used setf like that. I don't normally use setf for variable assignment either, but the comment from Greg (itistoday) sparked the new test. I was really surprised by the results. I assumed setf was slower since it's used, as you quote: when setting list or array references I wond...
by m i c h a e l
Thu Jul 01, 2010 1:21 am
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6604

Re: SBCL to newLISP

setf is faster than set : (define (test-setf-once) (setf a 1 b 2 c 3 d 4 e 5 f 6 g 7)) (define (test-setf-multiple) (setf a 1) (setf b 2) (setf c 3) (setf d 4) (setf e 5) (setf f 6) (setf g 7) ) (println (time (test-setf-once) 1000000)) ;=> 372.934 (println (time (test-setf-multiple) 1000000)) ;=> ...
by m i c h a e l
Tue Jun 29, 2010 6:07 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6604

Re: SBCL to newLISP

And a single call to set is faster, too: (define (test-once) (set 'a 1 'b 2 'c 3 'd 4 'e 5 'f 6 'g 7)) (define (test-multiple) (set 'a 1) (set 'b 2) (set 'c 3) (set 'd 4) (set 'e 5) (set 'f 6) (set 'g 7) ) (time (test-once) 1000000) ;=> 447.211 (time (test-multiple) 1000000) ;=> 609.038 m i c h a e l
by m i c h a e l
Fri Jun 11, 2010 11:16 pm
Forum: newLISP in the real world
Topic: Getting my current function name
Replies: 10
Views: 3805

Re: Getting my current function name

This works: (setq $fn "myfuncname") (context 'test) (set (sym $fn) (lambda (num) (for (i 1 num) (println i ":" $fn) ) )) (context MAIN) (test:myfuncname 5) Since you're defining the function within the test context, sym already creates the symbol there. Hope that helps. m i c h a e l
by m i c h a e l
Sat Jun 05, 2010 4:04 am
Forum: Whither newLISP?
Topic: Lisp and "symbols": difference with Python or other script!
Replies: 9
Views: 5948

Re: Lisp and "symbols": difference with Python or other script!

John McCarthy wrote in the LISP 1.5 programmer’s manual that LISP differs from most programming languages in three ways: The first way is the data. In the LISP language, all data are in the form of symbolic expressions usually referred to as S-expressions. The second important part of the LISP langu...
by m i c h a e l
Sat May 15, 2010 6:25 pm
Forum: newLISP newS
Topic: Espionage in Macworld
Replies: 1
Views: 2490

Espionage in Macworld

Congratulations to Greg (itistoday) of Tao Effect for a positive review of his Espionage program in the June issue of Macworld (page 18).

Good show!

m i c h a e l
by m i c h a e l
Fri May 07, 2010 2:38 pm
Forum: newLISP in the real world
Topic: Frame Version of Manual Not Working Correctly in Chrome
Replies: 0
Views: 2232

Frame Version of Manual Not Working Correctly in Chrome

It seems the links in the left-hand frame of the manual aren’t working correctly in Chrome. Clicking on a link opens a new window with the non-frame version scrolled to the end of the document. They work fine in Safari and Firefox, however, so it’s probably just a Chrome issue.

m i c h a e l
by m i c h a e l
Fri May 07, 2010 7:32 am
Forum: newLISP in the real world
Topic: Show all contexts?
Replies: 1
Views: 1377

Re: Show all contexts?

How about this?

Code: Select all

(filter context? (map eval (symbols)))
m i c h a e l
by m i c h a e l
Fri Apr 23, 2010 6:15 pm
Forum: newLISP in the real world
Topic: Stitching lists together
Replies: 5
Views: 2361

Re: Stitching lists together

This does the trick:

Code: Select all

(map list a b)
I’m sure there’s an even better way, though.

m i c h a e l
by m i c h a e l
Thu Mar 25, 2010 7:15 am
Forum: newLISP newS
Topic: What the FOOP?
Replies: 11
Views: 8027

Re: What the FOOP?

The error Rick pointed out has been fixed and the new video uploaded. Thanks again, Rick!

m i c h a e l
by m i c h a e l
Tue Mar 23, 2010 8:21 pm
Forum: newLISP newS
Topic: What the FOOP?
Replies: 11
Views: 8027

Re: What the FOOP?

Rick, wonderful to hear from you! As always, your kind and thoughtful words bring me great encouragement. The club is a certainly a poorer place without your presence. (One small error: at 14:43 you can see that the point given in the constructor and the point reflected by the REPL (constructor) are...
by m i c h a e l
Fri Mar 19, 2010 5:43 pm
Forum: newLISP newS
Topic: What the FOOP?
Replies: 11
Views: 8027

Re: What the FOOP?

Very aesthetic video! I have seen that Rob Britton had presentation on FOOP few days ago: Thanks, Kazimir! There are a number of meanings for FOOP, some of them quite distasteful ! When I first considered FOOP as a name back in 2006, I found a reference to Functional Object-Oriented Programming in ...
by m i c h a e l
Thu Mar 18, 2010 4:14 am
Forum: newLISP newS
Topic: What the FOOP?
Replies: 11
Views: 8027

What the FOOP?

I'm happy (and relieved) to announce the release of "What the FOOP?", a video overview of the current state of FOOP.

m i c h a e l
by m i c h a e l
Fri Mar 05, 2010 2:31 am
Forum: newLISP newS
Topic: Wikipedia for newLISP
Replies: 1
Views: 2593

Re: Wikipedia for newLISP

All done!

m i c h a e l
by m i c h a e l
Tue Feb 23, 2010 6:20 pm
Forum: newLISP newS
Topic: newLISP development release v.10.1.12
Replies: 4
Views: 3474

Re: newLISP development release v.10.1.12

Lutz wrote:Symbol protection for containers of mutable FOOP objects
Not sure what you mean here, Lutz. Can you elaborate?

Thanks for another release!

m i c h a e l