Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2014-07-09 Thread Dry Jin
By the way, how does Clojure-Scheme hand the Clojures's libraries over to 
Gambit-C?

2012년 3월 15일 목요일 오전 6시 8분 2초 UTC+9, Nathan Sorenson 님의 말:

 I've modified the output of the ClojureScript compiler to emit Scheme 
 code. At this point the core library is successfully compiled by Gambit 
 Scheme. A nice advantage of this is that Gambit compiles code via C, 
 meaning that stand-alone Clojure executables are now available for any 
 platform with a suitable gcc compiler!

 Gambit, notably, also compiles to iOS. Just recently I've confirmed that 
 Clojure's core library runs on the iPad simulator.

 There is a ton of yak-shaving required at this point---compilation 
 consists of a combination of shell commands, Clojure-interpreted commands 
 and Gambit-interpreted commands. Hopefully this will soon be streamlined.

 https://github.com/takeoutweight/clojure-scheme


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] clojure-scheme - Compiling Clojure to Scheme to C

2014-05-24 Thread Dry Jin
Great work! Many thanks.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-28 Thread Nathan Sorenson
ClojureScript has plenty of sharp edges, and this project is a bit rougher 
than even ClojureScript at the moment so you'll have to pardon the mess.

The magic happens in the cljs.compiler namespace. Load up a clojure repl 
and do something along the lines of:

(do (require 'cljs.compiler) (require 'cljs.core) (in-ns 'cljs.compiler) )

after that, you'll be able to compile .cljs files to .scm files via 
(compile-file /Users/nathansorenson/src/c-clojure/src/cljs/cljs/core.cljs)

Note how I'm having to be real obvious about the filename right now. You 
should get an .scm file in the same directory. At that point you can 
compile it to an .o file with gambit, or just load it in the interpreter to 
play with

$ gsc
gsc-repl (load core.scm ;interpreted

$ gsc core.scm   ;outputs core.o
gsc-repl (load core) ; loads the compiled .o

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-26 Thread Devin Walters
I've been itching to try this out. I pulled down the repo, grabbed 
gambit-scheme, and started to look around, but I'm a little lost as to how I 
can get it working. Could you provide the magic required to make one pass from 
cljs to scm to c? I would be happy to contribute to the project, but I'm in 
need of a bit of hand-holding to get started. 

Thanks in advance,
'(Devin Walters)


On Thursday, March 22, 2012 at 4:19 PM, Patrick Logan wrote:

 Gambit Scheme especially has a great interface to C/C++/Objective-C. I've 
 been happily using Gambit quite a bit for 20+ years, when it originated as 
 gambit-68k for the Motorola 68000.
 
 Gambit-C's been ported to iOS, Nintendo DS, etc.
 
 In addition to the great C interface, it also has a great Unix/Posix 
 interface, a great threads and message passing library (in the neighborhood 
 of Erlang's performance for numbers of threads and messages per second), etc. 
 It comes with Termite which is an Erlang-like programming model with mobile 
 continuations.
 
 So porting to Gambit provides some good avenues to explore.
 
 -Patrick
 
 
 On Wednesday, March 21, 2012 12:46:13 AM UTC-7, Nathan Sorenson wrote:
  I see the C code generation as an advantage, in that it becomes possible to 
  target any platform with a C compiler.
  
  Can Clozure compile to iOS? 
  
   Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? 
   
   That way there would no be any C compiler dependency. 
 
 On Wednesday, March 21, 2012 12:46:13 AM UTC-7, Nathan Sorenson wrote:
  I see the C code generation as an advantage, in that it becomes possible to 
  target any platform with a C compiler.
  
  Can Clozure compile to iOS? 
  
   Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? 
   
   That way there would no be any C compiler dependency. 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com 
 (mailto:clojure@googlegroups.com)
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com 
 (mailto:clojure+unsubscr...@googlegroups.com)
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en 

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-22 Thread Patrick Logan
Gambit Scheme especially has a great interface to C/C++/Objective-C. I've 
been happily using Gambit quite a bit for 20+ years, when it originated as 
gambit-68k for the Motorola 68000.

Gambit-C's been ported to iOS, Nintendo DS, etc.

In addition to the great C interface, it also has a great Unix/Posix 
interface, a great threads and message passing library (in the neighborhood 
of Erlang's performance for numbers of threads and messages per second), 
etc. It comes with Termite which is an Erlang-like programming model with 
mobile continuations.

So porting to Gambit provides some good avenues to explore.

-Patrick


On Wednesday, March 21, 2012 12:46:13 AM UTC-7, Nathan Sorenson wrote:

 I see the C code generation as an advantage, in that it becomes possible 
 to target any platform with a C compiler.

 Can Clozure compile to iOS? 

 Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? 

 That way there would no be any C compiler dependency. 


On Wednesday, March 21, 2012 12:46:13 AM UTC-7, Nathan Sorenson wrote:

 I see the C code generation as an advantage, in that it becomes possible 
 to target any platform with a C compiler.

 Can Clozure compile to iOS? 

 Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? 

 That way there would no be any C compiler dependency. 



-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-21 Thread Nathan Sorenson
I see the C code generation as an advantage, in that it becomes possible to 
target any platform with a C compiler.

Can Clozure compile to iOS? 

Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? 

 That way there would no be any C compiler dependency. 


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-18 Thread Paulo Pinto
Great work!

Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure?

That way there would no be any C compiler dependency.

--
Paulo

On Mar 14, 10:08 pm, Nathan Sorenson n...@sfu.ca wrote:
 I've modified the output of the ClojureScript compiler to emit Scheme code.
 At this point the core library is successfully compiled by Gambit Scheme. A
 nice advantage of this is that Gambit compiles code via C, meaning that
 stand-alone Clojure executables are now available for any platform with a
 suitable gcc compiler!

 Gambit, notably, also compiles to iOS. Just recently I've confirmed that
 Clojure's core library runs on the iPad simulator.

 There is a ton of yak-shaving required at this point---compilation consists
 of a combination of shell commands, Clojure-interpreted commands and
 Gambit-interpreted commands. Hopefully this will soon be streamlined.

 https://github.com/takeoutweight/clojure-scheme

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-15 Thread Chip Collier
Holy excellent development Batman!


On 3/14/12 2:08 PM, Nathan Sorenson wrote:
 I've modified the output of the ClojureScript compiler to emit Scheme
 code. At this point the core library is successfully compiled by
 Gambit Scheme. A nice advantage of this is that Gambit compiles code
 via C, meaning that stand-alone Clojure executables are now available
 for any platform with a suitable gcc compiler!

 Gambit, notably, also compiles to iOS. Just recently I've confirmed
 that Clojure's core library runs on the iPad simulator.

 There is a ton of yak-shaving required at this point---compilation
 consists of a combination of shell commands, Clojure-interpreted
 commands and Gambit-interpreted commands. Hopefully this will soon be
 streamlined.

 https://github.com/takeoutweight/clojure-scheme
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient
 with your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en 




signature.asc
Description: OpenPGP digital signature


Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-15 Thread Ambrose Bonnaire-Sergeant
Wow, nice work Nathan!

Ambrose

On Thu, Mar 15, 2012 at 5:08 AM, Nathan Sorenson n...@sfu.ca wrote:

 I've modified the output of the ClojureScript compiler to emit Scheme
 code. At this point the core library is successfully compiled by Gambit
 Scheme. A nice advantage of this is that Gambit compiles code via C,
 meaning that stand-alone Clojure executables are now available for any
 platform with a suitable gcc compiler!

 Gambit, notably, also compiles to iOS. Just recently I've confirmed that
 Clojure's core library runs on the iPad simulator.

 There is a ton of yak-shaving required at this point---compilation
 consists of a combination of shell commands, Clojure-interpreted commands
 and Gambit-interpreted commands. Hopefully this will soon be streamlined.

 https://github.com/takeoutweight/clojure-scheme

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

[ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-14 Thread Nathan Sorenson
I've modified the output of the ClojureScript compiler to emit Scheme code. 
At this point the core library is successfully compiled by Gambit Scheme. A 
nice advantage of this is that Gambit compiles code via C, meaning that 
stand-alone Clojure executables are now available for any platform with a 
suitable gcc compiler!

Gambit, notably, also compiles to iOS. Just recently I've confirmed that 
Clojure's core library runs on the iPad simulator.

There is a ton of yak-shaving required at this point---compilation consists 
of a combination of shell commands, Clojure-interpreted commands and 
Gambit-interpreted commands. Hopefully this will soon be streamlined.

https://github.com/takeoutweight/clojure-scheme

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-14 Thread David Nolen
Excellent work!

On Wed, Mar 14, 2012 at 5:08 PM, Nathan Sorenson n...@sfu.ca wrote:

 I've modified the output of the ClojureScript compiler to emit Scheme
 code. At this point the core library is successfully compiled by Gambit
 Scheme. A nice advantage of this is that Gambit compiles code via C,
 meaning that stand-alone Clojure executables are now available for any
 platform with a suitable gcc compiler!

 Gambit, notably, also compiles to iOS. Just recently I've confirmed that
 Clojure's core library runs on the iPad simulator.

 There is a ton of yak-shaving required at this point---compilation
 consists of a combination of shell commands, Clojure-interpreted commands
 and Gambit-interpreted commands. Hopefully this will soon be streamlined.

 https://github.com/takeoutweight/clojure-scheme

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-14 Thread Herwig Hochleitner
That's mighty!

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en