Re: [Chicken-users] Spiffy + Windows

2009-02-22 Thread Rafael Ibraim
Here we go: Warning: local assignment to unused variable `*sendfile:last-selected-implement tion*' may be unintended sendfile.c:10:21: chicken.h: No such file or directory In file included from sendfile.c:12: os-dep.h:8:21: chicken.h: No such file or directory sendfile.c:14: error: syntax error

[Chicken-users] Optimal C

2009-02-22 Thread Rick R
I have been looking for a functional language that compiles to efficient C/C++ to fufill two rather odd criteria. 1. To conform to the requirements of the iPhone Developers Program. Code must compile in XCode and be either C/C++/Obj-C. Garbage collection is mostly disallowed. Program size and

Re: [Chicken-users] Optimal C

2009-02-22 Thread Thomas Chust
2009-02-22 Rick R rick.richard...@gmail.com: I have been looking for a functional language that compiles to efficient C/C++ to fufill two rather odd criteria. [...] Hello Rick, you may want to have a look at crunch (http://chicken.wiki.br/crunch), which is a restricted dialect of Scheme that

Re: [Chicken-users] Spiffy + Windows

2009-02-22 Thread Jim Ursetto
On Sun, Feb 22, 2009 at 6:56 AM, Rafael Ibraim ibraim...@gmail.com wrote: sendfile.c:10:21: chicken.h: No such file or directory If this is the original error, it means it can't find your Chicken installation at all, a bigger problem than just a missing #define. Can you build any other eggs?

Re: [Chicken-users] Optimal C

2009-02-22 Thread Rick R
Thanks! This is exactly what I was looking for. I've been playing with it a bit, and I've run into a few snags. 1. crunch.h wasn't created/copied it my std include. I had to chicken-setup -keep and go to the directory. The file is named include. I'm guessing that the script expected there to be a

[Chicken-users] http egg and the Host request-header field

2009-02-22 Thread Drew Hess
Hi, The HTTP/1.1 spec states that in the Host request-header field, the port designation is optional if the default port is used for the request. Chicken Scheme's http egg always sends the port, but some petulant web servers don't like that. Here are a couple of examples. Each of the examples

Re: [Chicken-users] Optimal C

2009-02-22 Thread felix winkelmann
On Sun, Feb 22, 2009 at 10:56 PM, Rick R rick.richard...@gmail.com wrote: Thanks! This is exactly what I was looking for. I've been playing with it a bit, and I've run into a few snags. 1. crunch.h wasn't created/copied it my std include. I had to chicken-setup -keep and go to the directory.

Re: [Chicken-users] Optimal C

2009-02-22 Thread felix winkelmann
On Sun, Feb 22, 2009 at 11:44 PM, felix winkelmann bunny...@gmail.com wrote: 1. crunch.h wasn't created/copied it my std include. I had to chicken-setup -keep and go to the directory. The file is named include. I'm guessing that the script expected there to be a local directory named include

[Chicken-users] Chicken-Profile exclusive time.

2009-02-22 Thread Nicholas Indy Ray
I'm having a problem while trying to profile a program that is taking far too long, The program is structured so that it makes tail calls back to prior functions (define (func-a p) (if (...) (func-a (... p)) (func-b (... p (define (func-b p) (if (...) (func-b (...

Re: [Chicken-users] Optimal C

2009-02-22 Thread Rick R
Ahh, I was going overboard by including the crunch macro while using chicken-crunch. When I use one technique or the other, the .cpp's are created fine, however it results in this error from gcc: /usr/local/include/crunch.h:420: error: explicit template specialization cannot have a storage class

Re: [Chicken-users] Optimal C

2009-02-22 Thread John Cowan
felix winkelmann scripsit: Note that crunch is highly experimental and incomplete. You requirements are tough, and you will not find many functional languages that don't require GC. Stalin and MLton come to mind (perhaps one can make GC at least unlikely, or reduce it to a minimum). Stalin

Re: [Chicken-users] Optimal C

2009-02-22 Thread Rick R
It would also appear that MLton uses its own GC. Both compilers do fufill the 2nd requirement of using unboxed numberics and arrays for fast math. On Sun, Feb 22, 2009 at 6:21 PM, John Cowan co...@ccil.org wrote: felix winkelmann scripsit: Note that crunch is highly experimental and