Re: [Chicken-users] Optimal C

2009-02-23 Thread Tobia Conforto
Rick R wrote: Code must compile in XCode and be either C/C++/Obj-C. Garbage collection is mostly disallowed. Program size and memory must fit below a threshold. It would be useful to understand what mostly means. Besides, I was under the impression that Obj-C had garbage collection. If

Re: [Chicken-users] Optimal C

2009-02-23 Thread Rick R
It doesn't explicitly forbid GC in the Developer agreement. However, Cocoa's own garbage collector is removed in the iPhone SDK. In the docs describing the API, it indicates that using Apple's or your own GC is disallowed. This means its not part of the official agreement, however, since they're

Re: [Chicken-users] Optimal C

2009-02-23 Thread Peter Bex
On Mon, Feb 23, 2009 at 03:02:01PM -0500, John Cowan wrote: Rick R scripsit: Something like Stalin, which has reduced need for GC is currently my best hope for converting to a ref counting scheme. I'll ask around on comp.lang.functional. There is also Pre-Scheme, which compiles

Re: [Chicken-users] Optimal C

2009-02-23 Thread John Cowan
Peter Bex scripsit: As a matter of fact, Ivan has been experimenting with a port of pre-scheme to Chicken. See the prescheme-compiler egg. I don't know what its current status is, so it may or may not work. Ask Ivan if you want to know more. What svn magic is needed to access unreleased

Re: [Chicken-users] Optimal C

2009-02-23 Thread Rick R
This is exactly what I need. It's strange, I even googled for systems level scheme and didn't come up with pre-scheme, but it seems to be mentioned everywhere now that I search for it. I'll work with the pre-scheme found in scheme48 source for now. If I find it sub-par, I might come bug Ivan for

Re: [Chicken-users] Optimal C

2009-02-23 Thread Peter Bex
On Mon, Feb 23, 2009 at 03:18:14PM -0500, John Cowan wrote: What svn magic is needed to access unreleased eggs? This egg is not mentioned on either the 3.x or the 4.x Eggs Unlimited page. You can simply make a checkout of the interesting part of the egg repository, in this case the following

Re: [Chicken-users] Optimal C

2009-02-23 Thread John Cowan
Peter Bex scripsit: svn co https://galinha.ucpel.tche.br/svn/chicken-eggs/release/3/prescheme-compiler Thanks. Doesn't look like much has happened here, except that it's based on some pre-1.8 release, given the copyright date of 1999 instead of 2008. The various svn co patterns for

Re: [Chicken-users] Optimal C

2009-02-23 Thread Peter Bex
On Mon, Feb 23, 2009 at 03:41:26PM -0500, John Cowan wrote: Peter Bex scripsit: svn co https://galinha.ucpel.tche.br/svn/chicken-eggs/release/3/prescheme-compiler Thanks. Doesn't look like much has happened here, except that it's based on some pre-1.8 release, given the copyright date

Re: [Chicken-users] Optimal C

2009-02-23 Thread Ivan Raikov
Actually, I worked on Pre-Scheme last summer. It is quite some work to get it to compile with Chicken, and I have more pressing tasks to do. I realize this is an old copy of Pre-Scheme, but my modifications so far have been limited to parts of the code that are nearly identical between the 1999

Re: [Chicken-users] Optimal C

2009-02-23 Thread Shawn Rutledge
I was also thinking of trying to do some Scheme on the iphone some day, but didn't realize they had disallowed GC. Meanwhile you can just jailbreak it and not worry about their GC restrictions. :-) ___ Chicken-users mailing list

Re: [Chicken-users] Optimal C

2009-02-23 Thread Thomas Chust
Hello, if I recall correctly, there is a Scheme interpreter for the GNUstep project. But I forgot what it was called :-( cu, Thomas On Feb 23, 2009 4:38 PM, Tobia Conforto tobia.confo...@gmail.com wrote: Rick R wrote: Code must compile in XCode and be either C/C++/Obj-C. Garbage collection

[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] 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

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

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