Re: [Chicken-users] German Lisp Workshop at the CCC in Cologne

2011-03-14 Thread Alex Queiroz
Hallo,

On Sun, Mar 13, 2011 at 11:43 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:

  Apparently, there is also a Common Lisp implementation of readline
 (MIT-licensed):

 http://common-lisp.net/project/linedit/

 It looks baroque, but perhaps bits and pieces can be scavenged for a
 minimal Chicken readline.


 It would probably be easier to steal something from Gambit-C's gsi.

-- 
-alex
http://www.artisancoder.com/

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] lazy-ffi coudn't find make-hash-table

2011-03-14 Thread Mehmet Kose
It seems lazy-ffi needs srfi-69. I've got this error:

#;1 (use lazy-ffi)
; loading /usr/local/lib/chicken/5/lazy-ffi.so ...

Error: unbound variable: make-hash-table

Call history:

syntax  (use lazy-ffi)
syntax  (##core#require-extension (lazy-ffi) #t)
syntax  (##core#begin (##core#begin (##core#begin
(##core#require-for-syntax (quote lazy-ffi)) (##sys#requir..
syntax  (##core#begin (##core#begin (##core#require-for-syntax
(quote lazy-ffi)) (##sys#require (quote lazy-..
syntax  (##core#begin (##core#require-for-syntax (quote 
lazy-ffi))
(##sys#require (quote lazy-ffi-support)))
syntax  (##core#require-for-syntax (quote lazy-ffi))
syntax  (quote lazy-ffi)
syntax  (##core#quote lazy-ffi)   --


Mehmet

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Possibly of interest to some, I put a couple of my chicken based projects online ...

2011-03-14 Thread Alan Post
What are you using that test harness for?  That program seems really
neat, would you mind talking more about it?

-Alan

On Sun, Mar 13, 2011 at 09:51:51PM -0700, matt welland wrote:
 I've been waiting for some free time to clean it up before making some
 of my projects public but obviously that day will never come. So, for
 better or for worse I've put a few of my little projects at
 http://www.kiatoa.com/fossils/opensrc just in case they are of use to
 someone. 
 
 Cheers,
 
 Matt
 -=-
 
 
 
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/chicken-users

-- 
.i ma'a lo bradi ku penmi gi'e du

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Hello World execution time

2011-03-14 Thread Tobia Conforto
John Cowan:
 It's astonishing that bash is faster than anything but C.

Astonishing indeed. The whole thing confirmed my hunch that Bash,
Chicken, and C provide a complete toolset to tackle 99.9% of
programming needs.

Bobby Powers :
 I got similar, but slightly different results

Maybe it depends on the way we are measuring things, maybe on hardware
or OS. Try using my bash script:

#!/bin/bash

run=$*

for ((i = 0; i  10; ++i)); do
time $run
sleep .1
done /dev/null

for ((i = 0; i  101; ++i)); do
time $run
sleep .1
done 21 /dev/null |
sed -nE $'s/^real\t0m(.*)s$/\\1/p' |
sort -n |
sed -n '52s/^/median /p'

You can save it as run.sh and then call it on the various hello worlds:

$ ./run.sh bash hello.sh
median 0.005
$ ./run.sh mono hello.exe
median 0.068
...

If you repeat each one a couple times, you should get the same result,
ie. 101 runs gave me an absolute error  1ms. So unless I've made some
bad mistake, the only way to get better precision would be to code
run.sh in some other language (so that it doesn't spawn sleep, sed,
and sort), to shut off all system daemons and cron, and to compute
mean and stddev. But frankly I couldn't be bothered :-)

Now I'll try and add haskell as requested.

Tobia

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Hello World execution time

2011-03-14 Thread Tobia Conforto
Here with Haskell (ghc compiled):

[image: hello-world2.png]

Zooming out the mammoths:

[image: hello-world2-zoom.png]

Tobia
hello-world2-zoom.pnghello-world2.png___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Fwd: [lisp-game-dev] industry journal article on lisp in games

2011-03-14 Thread Stephen Eilert
Not related to Chicken specifically, but I found it to be an interesting read.


--Stephen

Sent from my Emacs



-- Forwarded message --
From: David O'Toole dto1...@gmail.com
Date: Mon, Mar 14, 2011 at 1:55 AM
Subject: [lisp-game-dev] industry journal article on lisp in games
To: lisp-game-dev lisp-game-...@common-lisp.net


I found this really interesting industry article on Lisp in game
development (link below) Apparently this is being republished from a
print journal, so I'm not sure if anyone here has read it before. I've
read a chunk of the article and it's fascinating to finally see more
details on the legendary GOOL (predecessor of GOAL) used in some very
popular Playstation 2 games.

http://all-things-andy-gavin.com/2011/03/12/making-crash-bandicoot-gool-part-9/

Let's put more of our knowledge on the mailing list so that Google
(and people who don't use IRC) can see it :) I'll post thoughts after
I finish reading.

___
lisp-game-dev mailing list
lisp-game-...@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/lisp-game-dev

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Hello World execution time

2011-03-14 Thread Daniel Aquino
Did you add optimizations to the haskell build ?  I naively expected the
haskell assembly to be as short as C but after some testing it was not and
#haskell apparently explained to me it's haskell's runtime.  But none the
less I've read posts on much more complicated programs in haskell that came
blazingly close to C
http://cgi.cse.unsw.edu.au/~dons/blog/2008/06/04#fast-fusion  Perhaps it is
true that the initialization overhead there really does slow it down for
such a small program.

Then again the moment you add a single pipe into your bash script or try to
do anything more complicated requiring multiple utilities your going to see
much more latency.

Also I also wonder if everyone is using bash as their main shell and some
how that may give it an advantage since it's loaded into memory ?


2011/3/14 Tobia Conforto tobia.confo...@gmail.com

 Here with Haskell (ghc compiled):

 [image: hello-world2.png]

 Zooming out the mammoths:

 [image: hello-world2-zoom.png]

 Tobia

 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/chicken-users


hello-world2-zoom.pnghello-world2.png___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] lazy-ffi coudn't find make-hash-table

2011-03-14 Thread Felix
From: Mehmet Kose mehmet.k...@gmail.com
Subject: [Chicken-users] lazy-ffi coudn't find make-hash-table
Date: Mon, 14 Mar 2011 14:51:56 +0200

 It seems lazy-ffi needs srfi-69. I've got this error:
 

Thanks, Mehmet - fixed in version 1.8.4.


cheers,
felix

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Hello World execution time

2011-03-14 Thread Tobia Conforto
Daniel,
I know absolutely nothing of Haskell, so it took me a whole 20 minutes
to download it, discover the syntax for a hello world program, compile
it, and run it. I put an -O2 on the ghc commandline and stripped the
executable, but that's it.

This benchmark purposefully measures the startup overhead of the
runtime system. It's hot-start, meaning that everything is already in
the disk cache (in ram). It doesn't measure at all the size of the
executable, nor the performance of math algorithms, i/o, threads, gc,
or anything else. All of these things would give much different
results.

I'd be particularly interested in seeing a benchmark of Chicken's gc
vs. the other languages mentioned above (Python, Mono, Java) but I'm
not knowledgeable enough to write one. I'm still unsure of how
Chicken's gc actually works. All I could gather is that there's some
kind of dodgy magic going on with stack frames ;-)

Tobia

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] zip-alist documentation

2011-03-14 Thread John J Foerch
There seems to be an error in the documentation for zip-alist.  Possibly
due to a syntax error in the source?

  http://3e8.org/chickadee/list-utils/zip-alist

Second paragraph reads:

  Error signaling versions of the standard association lookup
  functions. When the KEY is not found and a NOT-FOUND value is not
  supplied an error is invoked.

This sounds like it is meant for a different function.

-- 
John Foerch


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users