Re: ClojureScript: browser REPL omitting namespace in generated JS

2012-03-14 Thread Stuart Campbell
I see what you mean. In fact, if I enter (ns foo) at the REPL instead of
(in-ns 'foo), the namespace is "created" in cljs.compiler/namespaces and
the compiled JS is output correctly.

On 3 March 2012 12:12, Brenton  wrote:

> Thanks Stuart,
>
> Looks like the problem might be here:
>
>
> https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/repl.clj#L117
>
> I'll dig into this this weekend.
>
> On Mar 2, 6:30 pm, Stuart Campbell  wrote:
> > Done!http://dev.clojure.org/jira/browse/CLJS-157
> >
> > On 3 March 2012 01:15, David Nolen  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Please open a ticket in JIRA. Thanks!
> >
> > > On Fri, Mar 2, 2012 at 4:50 AM, Stuart Campbell 
> wrote:
> >
> > >> Hello,
> >
> > >> I'm encountering a problem where the browser REPL sometimes omits the
> > >> ClojureScript namespace in its generated JavaScript, e.g. (def x 42)
> > >> compiles to ".x = 42" instead of "foo.x = 42".
> >
> > >> I've put together a minimal project, with steps to reproduce, on
> GitHub:
> > >>https://github.com/harto/cljs-eval-test
> >
> > >> It looks to me like compiling a set of ClojureScript files (using
> > >> cljs.closure/build) causes some side-effect that prevents the
> problem. See
> > >> the GitHub README for details.
> >
> > >> I'm on Mac OS X 10.5 with Java 1.6.0_26.
> >
> > >> Regards,
> > >> Stuart
> >
> > >>  --
> > >> 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
>
> --
> 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

Decorators Lib

2012-03-14 Thread Sean Devlin
Hey folks,
I released a library on github for working with decorators, you can find it 
here.

https://github.com/francoisdevlin/Decorate

You can learn more about it here, with my latest episode of full disclojure

https://vimeo.com/38507385

Sean

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

A New Core.logic Primer

2012-03-14 Thread David Nolen
Thanks to Edmund Jackson we have a new primer for core.logic:
https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer

Feedback appreciated!

David

-- 
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: A New Core.logic Primer

2012-03-14 Thread Daniel Gagnon
On Wed, Mar 14, 2012 at 3:00 PM, David Nolen  wrote:

> Thanks to Edmund Jackson we have a new primer for core.logic:
> https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer
>
> Feedback appreciated!
>
> David
>

It's pretty good and I think it's very accessible. If you compare to Learn
Prolog Now!  it
lacks in the Pulp Fiction references department but it's still good.

I think you should say a word about prolog and mention that unlike it
core.logic isn't turing complete and can't have infinite loops (unless I'm
mistaken about core.logic).

-- 
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] Immutant 0.1.0 released

2012-03-14 Thread Jim Crossley
Howdy all,

Just in time for my Clojure/West talk, we're happy to have published
our first official release of Immutant, the Clojure app server built
on JBoss AS7.

Read all about it here:  http://bit.ly/immutant010

Thanks,
Jim

-- 
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: A New Core.logic Primer

2012-03-14 Thread David Nolen
On Wed, Mar 14, 2012 at 4:09 PM, Daniel Gagnon  wrote:

>
>
> On Wed, Mar 14, 2012 at 3:00 PM, David Nolen wrote:
>
>> Thanks to Edmund Jackson we have a new primer for core.logic:
>> https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer
>>
>> Feedback appreciated!
>>
>> David
>>
>
> It's pretty good and I think it's very accessible. If you compare to Learn
> Prolog Now!  it
> lacks in the Pulp Fiction references department but it's still good.
>
> I think you should say a word about prolog and mention that unlike it
> core.logic isn't turing complete and can't have infinite loops (unless I'm
> mistaken about core.logic)
>

core.logic suffers the same pitfalls as Prolog for the most part :)

David

-- 
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  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: A New Core.logic Primer

2012-03-14 Thread Linus Ericsson
2012/3/14 David Nolen 

> On Wed, Mar 14, 2012 at 4:09 PM, Daniel Gagnon wrote:
>
>>
>>
>> On Wed, Mar 14, 2012 at 3:00 PM, David Nolen wrote:
>>
>>> Thanks to Edmund Jackson we have a new primer for core.logic:
>>> https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer
>>>
>>> Feedback appreciated!
>>>
>>> David
>>>
>>
>> It's pretty good and I think it's very accessible. If you compare to Learn
>> Prolog Now!  it
>> lacks in the Pulp Fiction references department but it's still good.
>>
>> I think you should say a word about prolog and mention that unlike it
>> core.logic isn't turing complete and can't have infinite loops (unless I'm
>> mistaken about core.logic)
>>
>
> core.logic suffers the same pitfalls as Prolog for the most part :)
>

Thank you for making learning resources availiable in this vibrant and
powerful clojure-functionality.

I'm missing a (very) short note on how to get started. Using leiningen
with

:dependencies [[org.clojure/clojure "1.3.0"]
  [core.logic "0.6.1-SNAPSHOT"]]

and defining a file for the primer as

(ns logictest.primer
  (:refer-clojure :exclude [==])
  (:use [clojure.core.logic]))

according to the Readme.md just renders a

"Could not locate clojure/core/logic__init.class or clojure/core/logic.clj
on classpath:" for me when executed, which is unexpected.

Will carry on trying, but I remeber this have bitten me before when trying
to hacking core.logic. What is a correct minimal experimental setup?

/Linus

-- 
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: A New Core.logic Primer

2012-03-14 Thread Sean Corfield
On Wed, Mar 14, 2012 at 2:43 PM, Linus Ericsson
 wrote:
> :dependencies [[org.clojure/clojure "1.3.0"]
>   [core.logic "0.6.1-SNAPSHOT"]]

You want: [org.clojure/core.logic "0.6.7"]

http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go has
a link to Maven Central versions of all the contrib libraries and has
this for core.logic:

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22core.logic%22
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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: A New Core.logic Primer

2012-03-14 Thread Daniel Jomphe
On Wednesday, March 14, 2012, Dan wrote:
>
> David Nolen wrote:
>
>> Thanks to Edmund Jackson we have a new primer for core.logic: 
>> https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer
>
>
> [...] I think you should say a word about prolog and mention that unlike 
> it core.logic isn't turing complete and can't have infinite loops (unless 
> I'm mistaken about core.logic).
>

Dan, you probably read that recently about Datalog, while you were 
reviewing Datomic. Ain't that right? :)

-- 
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: A New Core.logic Primer

2012-03-14 Thread Daniel Gagnon
>
>
>> Dan, you probably read that recently about Datalog, while you were
> reviewing Datomic. Ain't that right? :)
>
>
I didn't check out Datomic yet. I'll do that soon.

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


Re: [ANN] jark 0.4.0

2012-03-14 Thread Sunil S Nandihalli
Thank you Icy,
 Jark has been a great tool! .. and have had the privelege of being on the
bleeding edge of jark.
Sunil.

On Tue, Mar 13, 2012 at 10:11 AM, isaac praveen  wrote:

> I am pleased to announce the release of jark v0.4.0.
> So why another Clojure tool ?
>
> Problem
>
> Startup time of the JVM is slow and therefore the command-line
> applications running on it are slow as well. There are tools like
> Nailgun that partly solve the problem. However, there isn't a tool
> that is Clojure-aware, lightweight, secure and extensible.
>
> Solution
>
> * Implement a client/server system that uses a protocol such as nREPL
>  to communicate Clojure data structures over the wire
>
> * Build a client that is extremely lightweight and  has minimum
>  runtime dependencies
>
> * Provide a server-side framework to interact with the JVM Runtime
>
> Jark is one such tool that helps run clojure programs on the JVM,
> interactively and remotely using the nREPL protocol.
> It has 2 components - a client written in OCaml and a server written
> in Clojure/Java. The client is compiled to native code and is
> extremely tiny (~200KB).
>
> Here are some features: http://icylisper.in/jark/features.html
> See http://icylisper.in/jark/started.html to get started.
>
> Catch us on #jark on irc.freenode.net
>
> Mailing list: https://groups.google.com/group/clojure-jark
>
> Project page: http://icylisper.in/jark
>
> Caveats
> ---
>
> 1. The current jark version still uses nREPL 0.0.5.
>   However, We are currently working on jark 0.5.0 that uses newer
>implementation of the protocol.That should be out soon.
>
> 2. lein plugin / lein2 integration has been moved to 0.5.0
>   release. Once that plugin is ready, it should help run lein
>   interactively.
>
> 3. The Windows client binary has not been completely tested yet.
>   Hopefully we will have a test-suite in place for the client.
>
> 4. REPL does not work on windows yet.
>
> THANKS to:
> * Martin DeMello, co-author of jark
> * Lucas Stadler
> * Abhijith Gopal
> * Chas Emerick (for nREPL)
>
> Happy Hacking. Go ahead and give it a try!
>
> --
> isaac
>
> --
> 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