Re: Pathetic n00b wonders how to deploy

2008-11-05 Thread Robert Pfeiffer

On 31 Okt., 04:46, JCB <[EMAIL PROTECTED]> wrote:

> 1) does Clojure maintain the CL notion of a "running image" (ACL
> terms), or a "core" (sbcl terms)?

You can do this with Scriba. Scriba allows you to save a "running
image" of a scripting session on the JVM. It does not in particular
support Clojure, but I think it can be adapted to any scripting
language. And it's open sourced.

http://www.kobrix.com/scriba.jsp

hth, Robert Pfeiffer

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Pathetic n00b wonders how to deploy

2008-10-31 Thread Geoffrey Teale
mb <[EMAIL PROTECTED]> writes:
> On 31 Okt., 04:46, JCB <[EMAIL PROTECTED]> wrote:

--- %< ---

>> 2) Does Clojure have anything similar to fasl files? It looks right
>> now like the way to deploy a Clojure program is to deploy the source
>> (.clj) files and (load) them, is this correct?
>
> My guess for deployment would be to create a .jar file, which
> is distributed. The users put the .jar in their classpath and are
> able to load the library with require/use. For this to work the file
> layout has to follow the guidelines for namespace / filename
> translation, of course.

I have a project that's actually in live usage right now.  I am taking
the  approach to making JARs detailed here:

http://rpdillon.googlepages.com/creatingexecutablejarswithclojure

In my case my customer is using Mac OS X and I use the rather natty
little JAR bundler app in the OS X dev tools to make it into a native
Java .app bundle.

I would take the time right now to say that Clojure is the single most
positive "first experience" of a programming language I have ever had.
Building on the base of Java, but supporting concurrency and bringing in
all that Lisp goodness means that Clojure is as close to my "dream
language" as you can probably get.

Thanks Rich, et al!

-- 
Geoffrey Teale
Freelance Software and Technology Consultant
Munich, Germany

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Re: Pathetic n00b wonders how to deploy

2008-10-31 Thread mb

Hi,

On 31 Okt., 04:46, JCB <[EMAIL PROTECTED]> wrote:
> 1) does Clojure maintain the CL notion of a "running image" (ACL
> terms), or a "core" (sbcl terms)?
>
> For example, in ACL I can do (dumplisp), and I think sbcl has
> something called (save-lisp-and-die) ..

I don't think so, no.

> 2) Does Clojure have anything similar to fasl files? It looks right
> now like the way to deploy a Clojure program is to deploy the source
> (.clj) files and (load) them, is this correct?

My guess for deployment would be to create a .jar file, which
is distributed. The users put the .jar in their classpath and are
able to load the library with require/use. For this to work the file
layout has to follow the guidelines for namespace / filename
translation, of course.

I would use load only inside a ns to suck in different files for
a namespace in case the implementation is split up. I would
never use it to "load" a library. That's what require/use are for.

To deploy a program one can create a Java class via gen-class,
which contains a main function which "require"s the implementation
of the program and starts the application running. In the
MANIFEST.MF one can specify this class as Main-Class.
So the user can do java -jar MyApp.jar to run the program.

Just my 0.02€.

Sincerely
Meikel

--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Pathetic n00b wonders how to deploy

2008-10-31 Thread JCB

Hi, I am totally new to Clojure, but not new to CL. I have been poking
around a little bit and I have a couple questions:

1) does Clojure maintain the CL notion of a "running image" (ACL
terms), or a "core" (sbcl terms)?

For example, in ACL I can do (dumplisp), and I think sbcl has
something called (save-lisp-and-die) ..


2) Does Clojure have anything similar to fasl files? It looks right
now like the way to deploy a Clojure program is to deploy the source
(.clj) files and (load) them, is this correct?

Thanks,
John



--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---