Shell Games

Notices and updates
m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Shell Games

Post 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
Last edited by m i c h a e l on Sun Apr 20, 2008 8:38 pm, edited 1 time in total.

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post 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! ;-)
-- (define? (Cornflakes))

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

I like these. I think I'm going to have a go at making one this week.

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post 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...!

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post 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... :)

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post 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 ;-)
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

:) glad it worked for someone...! I must add a 'typewriter' sound to it.

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

hsmyers
Posts: 104
Joined: Wed Feb 20, 2008 4:06 pm
Location: Boise, ID, USA
Contact:

Post by hsmyers »

And Tuesday's child could be about making non-destructive functions destructive?

--hsm
"Censeo Toto nos in Kansa esse decisse."—D. Gale "ℑ♥λ"—Toto

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

I posted that one last Wednesday ;-)

m i c h a e l

hsmyers
Posts: 104
Joined: Wed Feb 20, 2008 4:06 pm
Location: Boise, ID, USA
Contact:

Post by hsmyers »

Why so you did! Silly me. Do we need an index yet?

--hsm
"Censeo Toto nos in Kansa esse decisse."—D. Gale "ℑ♥λ"—Toto

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

Still ahead of you :-)

Shell Games

m i c h a e l

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

... there is also an index at the bottom of the documentation page: http://www.newlisp.org/index.cgi?Documentation

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post 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... :)

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post 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

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

Wednesday brings us an existential episode:

Shell Games - Exists

m i c h a e l

Locked