[FoRK] Leopard scripting
Jeff Bone
<jbone at place.org> on
Fri Jan 18 08:19:22 PST 2008
On Jan 17, 2008, at 12:33 PM, Stephen D. Williams wrote:
> A list of environments / languages / runtimes that you think are
> sufficient
> and concise for these would be great.
I think existence proofs serve better:
>> * p2p file sharing framework
Well, not a "framework" per se, but an app in 15 lines of Python:
http://linuxreviews.org/news/2005/11/11_tinyp2p/
>> * web server
This is the "hello, world" of networking apps, there's a web-server-
in-one-page-of-code in every language. Notable: a bash version,
with templates!
http://hyperrealm.com/wtfd00d/shsp/
http://www.rebol.net/cookbook/recipes/0057.html (rebol)
>> * blog engine
These are also a dime-a-dozen. Bloxsom was one of the first tiny
wiki engines, though it's considerably larger and more feature-rich
now...
>> * wiki
Among others:
http://blog.kiwitobes.com/?p=18 (a two-minute wiki using web.py
--- nb. web.py says something about web frameworks!)
http://c2.com/cgi/wiki?WikiEngines
http://c2.com/cgi/wiki?TinyWiki (Perl)
http://bachman.infogami.com/another_simple_wiki (Python)
http://wiki.flexion.org/YetAnotherAwkiAwki.html (bash, awk)
Etc...
>> * IM server
I should've said "IM or chat server..." If the web server is the
"hello, world" of networking apps, this is a close second for that
title. ("Ping pong" being the "hello, world" of concurrency demos...)
http://www.haskell.org/haskellwiki/Implement_a_chat_server (Haskell)
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/531824
(Python)
http://www.hackosis.com/index.php/2007/12/01/diy-simple-chat-
server-with-netcat/ (1 line! ;-)
cf. Inferno / InfernoSpaces docs, etc.
>> * web storage server
Have seen several of these, but apparently only bookmarked this one;
Ruby, bigger than 100 lines, but intended as a full local
replacement for S3:
http://code.whytheluckystiff.net/parkplace/
--
Roundup of various things:
http://snippets.dzone.com/tag/tiny
Also, how about a "MUD engine" in 15 lines of Ruby?
http://redhanded.hobix.com/bits/mudIn15LinesOfRuby.html
>> And now, maybe?
>>
>> * web browser
Forthcoming, maybe... ;-)
One point of my somewhat over-exuberant rant was that with high-level
scriptable access to all of Cocoa, Mac OS X just became a lot more
interestingly hackable (from my quick-and-dirty perspective, at
least...) than it was previously as a stock UNIX scripting host...
--
Languages mentioned / covered here: Haskell, bash, perl, python,
ruby, awk, rebol.
Point being, many if not most or all existing languages and their
runtimes are sufficient to squeeze surprising functionality into very
little code. Most of the above aren't anywhere near "production
ready" in any sense, but they imply something very interesting about
code bloat...
jb
PS, I just registered tinyhacks.{com,net,org} --- if I get around to
it perhaps I'll set up a site on which we can roundup such things...
More information about the FoRK
mailing list