Page 1 of 3

Shell Games

Posted: Thu Apr 17, 2008 5:39 pm
by m i c h a e l
Dear Club,

I'm very happy to announce the first episode of a new video series called "Shell Games." They are short, command-line–centric videos showing newLISP in action. Shell Games, at first, will use examples taken from the newLISP documentation, but it might be fun to start a topic here (or use this one) where everyone could contribute code examples for future Shell Games videos.

But for now, just sit back and enjoy the first offering about number generators.

Shell Games - Number Generators

m i c h a e l

Posted: Thu Apr 17, 2008 5:56 pm
by newdep
Aaa nice... The way you type flawless the fibo function,
like you shake it out of your sleeves, doing it every day ;-)

Well We cant be left behind.. "shell games" means "shell games"

Your ON! ;-)

Posted: Thu Apr 17, 2008 7:16 pm
by m i c h a e l
Let's really start this off with a bang by having a Shell Games double feature :-)

Shell Games - Pushing and Popping Lists
newdep wrote:Aaa nice... The way you type flawless the fibo function,
like you shake it out of your sleeves, doing it every day ;-)
Yes, it's fantastic, isn't it ;-)

m i c h a e l

Posted: Fri Apr 18, 2008 6:01 pm
by cormullion
I like these. I think I'm going to have a go at making one this week.

Posted: Fri Apr 18, 2008 8:47 pm
by m i c h a e l
Today's episode: Packaging Data with Contexts. Enjoy.

Shell Game - Packaging Data with Contexts

m i c h a e l

Posted: Mon Apr 21, 2008 8:16 pm
by m i c h a e l
Today's episode of Shell Games is about implicit indexing. Make sure you have 8-1/2 minutes to spare before you start this one :-)

Shell Games - Implicit Indexing

m i c h a e l

Posted: Mon Apr 21, 2008 9:46 pm
by cormullion
I think these are really excellent. I admire your craftsmanship and attention to detail. I look forward to many more, and to the decline of the old-fashioned tutorial...! :)

I got as far as digging out my old copy of Keynote to see how it could be done... I think I found the essential ingredient (the build effect), but that's only the start of it.

Then I thought it would be cool to see what could be done at the opposite end of the spectrum - no state of the art quicktime movies, just an old VT100 terminal effect:

Code: Select all

(load {http://unbalanced-parentheses.nfshost.com/downloads/typewriter.lsp})
I expect this will only work occasionally from a VT100 style terminal and only on MacOS X, and probably not at all on other systems. But there's a little echo of your idea, from the other side of the computing universe...!

Posted: Mon Apr 21, 2008 10:12 pm
by m i c h a e l
cormullion,

Thank you for your kind words. It's all these videos cost ;-)

To see what effect your typewriter.lsp program is having here (OS X 10.4.11), I uploaded a video example:

Cormullion's Typewriter

Interesting, but probably not what you intended :-)

m i c h a e l

Posted: Tue Apr 22, 2008 5:39 am
by cormullion
Ha.... I seemed to remember thinking that the Terminal had changed a bit when I upgraded from Tiger to Leopard. To be honest, there are so many options now for Terminal it probably won't work unless you tune the settings to interpret ANSI escape codes correctly.

Never mind - you get the general idea... :)

Posted: Tue Apr 22, 2008 7:46 pm
by m i c h a e l
Ready for another episode? This one is about selecting multiple elements at once.

Shell Games - Selecting More Than One Element

m i c h a e l

Posted: Wed Apr 23, 2008 10:30 am
by newdep
cormullion wrote:

Code: Select all

(load {http://unbalanced-parentheses.nfshost.com/downloads/typewriter.lsp})
Aaa nice reminds me of the C64 days where I exchanged information
via data-cassetes by use of a tool called "Demo-Writer" or something,
It even had a bouncing cursor ;-)

Posted: Wed Apr 23, 2008 4:24 pm
by cormullion
:) glad it worked for someone...! I must add a 'typewriter' sound to it.

Posted: Wed Apr 23, 2008 9:13 pm
by m i c h a e l
Wednesday's episode is about passing by reference:

Shell Games - Passing by Reference

m i c h a e l

Posted: Fri Apr 25, 2008 5:37 am
by m i c h a e l
Here is tonight's episode of Shell Games about appending strings:

Shell Games - Appending Strings

m i c h a e l

Posted: Sat Apr 26, 2008 4:40 am
by m i c h a e l
Here's Friday's episode:

Shell Games - Manipulating Functions After Definition

Enjoy.

m i c h a e l

Posted: Tue Apr 29, 2008 2:11 am
by m i c h a e l
Monday's episode is about making those destructive functions not so destructive:

Shell Games - Making A Destructive Function Non-Destructive

m i c h a e l

Posted: Tue Apr 29, 2008 2:41 am
by hsmyers
And Tuesday's child could be about making non-destructive functions destructive?

--hsm

Posted: Tue Apr 29, 2008 3:34 am
by m i c h a e l
I posted that one last Wednesday ;-)

m i c h a e l

Posted: Tue Apr 29, 2008 5:30 am
by hsmyers
Why so you did! Silly me. Do we need an index yet?

--hsm

Posted: Tue Apr 29, 2008 7:36 pm
by m i c h a e l
Still ahead of you :-)

Shell Games

m i c h a e l

Posted: Tue Apr 29, 2008 8:19 pm
by Lutz
... there is also an index at the bottom of the documentation page: http://www.newlisp.org/index.cgi?Documentation

Posted: Tue Apr 29, 2008 9:54 pm
by cormullion
Monday's episode is about making those destructive functions not so destructive:

Shell Games - Making A Destructive Function Non-Destructive
Good one m! begin is nice! I think also and and or would do too? Trying to think of others...

amb - surely not... :)

Posted: Wed Apr 30, 2008 4:10 am
by m i c h a e l
Hi cormullion!

You're right, those work, as well (although not as conceptually attractive as begin for copying lists and strings).

Any Shell Games requests? How about some examples from Introduction to newLISP?

m i c h a e l

Posted: Wed Apr 30, 2008 4:20 am
by m i c h a e l
Tuesday's episode is about formatting data into strings:

Shell Games - Format

m i c h a e l

Posted: Thu May 01, 2008 3:14 am
by m i c h a e l
Wednesday brings us an existential episode:

Shell Games - Exists

m i c h a e l