Re: confused on set!

2013-05-17 Thread Phillip Lord
Jim - FooBar(); jimpil1...@gmail.com writes:
 You can count on that! In addition, whenever I find some free time I'd like to
 have a look at the lib and familiarise myself with it...and who knows, I may
 even have some (humble yet constructive) comments/feedback. Also, I think
 you'll find Clojure is a joy to work with in most domains (my main discipline
 is NLP but anything that involves 'heavy-data-lifting' is also a good
 candidate).


It's a nice language, I think. It inherits however the some of the
nastiness of Java, in particular it doesn't integrate at all into the
OS; the makes it not a good fit for little scripting, one-off jobs which
form the basis of a lot of scientific computing.


 aha! I see what you mean...how about 'with-bindings' then? something like this
 should run the tests just fine:

 (defn ontology-reasoner-fixture [tests]
(with-bindings {#'r/*reasoner-progress-monitor*
 r/reasoner-progress-monitor-silent} tests))

 ...shorter, same behaviour and as a bonus you're not limited to vars declared
 as dynamic. This should work with vanilla 'def' too :)

Which gives me the dynamic scoped behaviour, but not the global
resetting behaviour.

Phil

-- 
-- 
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/groups/opt_out.




Re: [ANN] getclojure.org

2013-05-17 Thread Manuel Paccagnella
Nice! Thank you Devin.

Il giorno venerdì 17 maggio 2013 03:12:11 UTC+2, Devin Walters (devn) ha 
scritto:

  Hey All, 

 I put this ( http://getclojure.org ) together and wanted to share it with 
 all of you. It's a nifty way to search for example usage of clojure. It's 
 far less curated than ClojureDocs, so you may pick up some interesting 
 ideas by simply browsing.

 It supports boolean queries like: comp AND juxt and will let you search 
 for - (but you must quote it).

 If you're interested in contributing: https://github.com/devn/getclojure is 
 the place to do it.

 Thanks,
 -- 
 {:∂evin :√valters}



-- 
-- 
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/groups/opt_out.




asm-based clojure yet?

2013-05-17 Thread atkaaz
Ok, weird question: is there some clojure port on assembler yet? Even
if(/especially if) it doesn't have jvm/java/javalibs support

Or should I just check https://github.com/clojure/clojure-clr ?

I'm mainly interested in low memory footprint and fast startup times (does
clojure-clr have that?)

-- 
-- 
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/groups/opt_out.




Re: asm-based clojure yet?

2013-05-17 Thread Gary Trakhman
I think these qualify as low-footprint clojures:

https://github.com/clojure/clojurescript on node..
https://github.com/takeoutweight/clojure-scheme compiles to native
https://github.com/halgari/mjolnir llvm targets.


On Fri, May 17, 2013 at 7:10 AM, atkaaz atk...@gmail.com wrote:

 Ok, weird question: is there some clojure port on assembler yet? Even
 if(/especially if) it doesn't have jvm/java/javalibs support

 Or should I just check https://github.com/clojure/clojure-clr ?

 I'm mainly interested in low memory footprint and fast startup times (does
 clojure-clr have that?)

 --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.




Re: asm-based clojure yet?

2013-05-17 Thread Alan D. Salewski
On Fri, May 17, 2013 at 02:10:02PM +0300, atkaaz spake thus:
 Ok, weird question: is there some clojure port on assembler yet? Even
 if(/especially if) it doesn't have jvm/java/javalibs support
 
 Or should I just check https://github.com/clojure/clojure-clr ?
 
 I'm mainly interested in low memory footprint and fast startup times (does
 clojure-clr have that?)

You may want to check out ClojureScript, too. ClojureScript programs
leveraging nodejs for host interop have fast startup times:

https://github.com/clojure/clojurescript/wiki

-- 
-
a l a n   d.   s a l e w s k i   salew...@att.net
1024D/FA2C3588 EDFA 195F EDF1 0933 1002  6396 7C92 5CB3 FA2C 3588
-

-- 
-- 
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/groups/opt_out.




core.logic: Negation As Failure

2013-05-17 Thread David Nolen
I've finally got around to adding a negation as failure operator `nafc` to
core.logic. The constraint framework has allowed this to be done while
avoided the many pitfalls you might encounter with this operator in Prolog.
You can now write things like the following:

(run* [q]
  (membero q '(:a :b :c :d))
  (nafc membero q '(:a :b :c)))
;; = (:d)

As you can see nafc can take a goal (or constraint) and list of arguments
and produce a negated goal. The main limitation is that negated goals will
not run until the arguments are ground (fully instantiated). This is to
avoid the issues normally found in Prolog.

This is very experimental but I'm excited that it will simplify the writing
of many interesting core.logic programs.

This is available in master. Feedback very welcome!

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
--- 
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/groups/opt_out.




Re: confused on set!

2013-05-17 Thread Jim

On 17/05/13 11:00, Phillip Lord wrote:

It's a nice language, I think. It inherits however the some of the
nastiness of Java, in particular it doesn't integrate at all into the
OS; the makes it not a good fit for little scripting, one-off jobs which
form the basis of a lot of scientific computing.



aaa yes indeed...the jvm is indeed very heavy-weight for such scripting 
tasks...on the other hand have you looked at clojure-py? I'm not 
up-to-date with its current state/features but it should be viable for 
little scripting jobs... :)

Which gives me the dynamic scoped behaviour, but not the global
resetting behaviour.
well, the thing is that Clojure in general is not well suited for 
imperative style code. There are some constructs that make it easier 
(e.g. with-local-vars), but for the most part you are expected to follow 
the 'functional-transformation' route instead of the 
'imperative-mutation' one...If you absolutely need the global resettable 
behaviour I can only suggest an atom. Then, when you want to use that in 
tests, a little try-finally macro which swaps the atom and resets it in 
the finally clause would simulate your dynamic scope. I quickly wrote 
the following but I get an exception which I don't have the time to sort 
at the moment...maybe later this evening... :)


(defmacro abinding [bs  body]
  (let [pairs (partition 2 bs)  ;;partition the bindings
 old-values (map (comp deref first) pairs) ;;save the original 
values

 _   (doseq [[b v] pairs] (reset! b v)) ;;introduce the new values
restore (fn [] (map #(reset! (first %1) %2) pairs 
old-values))]  ;;define the restoring fn

   `(try
  ~@body
 (finally (restore))) ))

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
--- 
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/groups/opt_out.




Re: confused on set!

2013-05-17 Thread Phillip Lord
Jim jimpil1...@gmail.com writes:

 On 17/05/13 11:00, Phillip Lord wrote:
 It's a nice language, I think. It inherits however the some of the
 nastiness of Java, in particular it doesn't integrate at all into the
 OS; the makes it not a good fit for little scripting, one-off jobs which
 form the basis of a lot of scientific computing.


 aaa yes indeed...the jvm is indeed very heavy-weight for such scripting
 tasks...on the other hand have you looked at clojure-py? I'm not up-to-date
 with its current state/features but it should be viable for little scripting
 jobs... :)


Well, I an proficient in python, so it's probably easier just to use
python. Even if the documentation sucks.


 Which gives me the dynamic scoped behaviour, but not the global
 resetting behaviour.
 I quickly wrote the following but I get an exception which I
 don't have the time to sort at the moment...maybe later this evening... :)


It's okay! I have a workable solution now, even if it still seems a
little unfair that I cannot take the same approach that clojure.core
does under the same circumstances!

Phil

-- 
-- 
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/groups/opt_out.




Re: Strange exception intializing clojure.core using Spring-Hadoop

2013-05-17 Thread Dave Kincaid
A quick update on a little more progress troubleshooting this issue. We 
have gotten to the point where we are seeing this stacktrace:

java.lang.IllegalStateException: Attempting to call unbound fn: 
#'clojure.core/refer
at clojure.lang.Var$Unbound.throwArity(Var.java:43)
at clojure.lang.AFn.invoke(AFn.java:39)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.RT.doInit(RT.java:460)
at clojure.lang.RT.clinit(RT.java:329)

does that give anyone an idea?

On Thursday, May 16, 2013 7:53:27 PM UTC-5, Dave Kincaid wrote:

 I'm posting this here in hopes that someone might be able to steer us in 
 the right direction. We have a Cascalog process that we're using 
 Spring-Hadoop  Spring-Batch to send to a remote Hadoop cluster. It seems 
 as though Spring-Hadoop is doing something funky with the 
 classpath/classloader and we're getting the following exception when we run 
 it:

 java.lang.ExceptionInInitializerError
 at clojure.core__init.__init0(Unknown Source)
 at clojure.core__init.clinit(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:266)
 at clojure.lang.RT.loadClassForName(RT.java:2098)
 at clojure.lang.RT.load(RT.java:430)
 at clojure.lang.RT.load(RT.java:411)
 at clojure.lang.RT.doInit(RT.java:447)
 at clojure.lang.RT.clinit(RT.java:329)
 at cascalog.Util.clinit(Util.java:29)
 at jcascalog.Api.setApplicationConf(Api.java:99)
 at com.test.DataShredder.run(DataShredder.java:113)

 in trying to trace it we think that this is happening while 
 clojure.lang.RT is scanning all the classes on the classpath. It seems to 
 get to one class called StepExecution.class, which is part of the Spring 
 Framework, and it throws this exception. We've got this posted over on the 
 Spring forums too, since it's most likely something with Spring's 
 manipulation of classpath and/or classloader while it's trying to get the 
 MR jobs over to Hadoop.

 If anyone has another idea, we'd love to hear it. We're kind of stuck 
 right now and been working on it for a few days.

 Thanks,

 DAve


-- 
-- 
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/groups/opt_out.




Getting highlighted clojure code into a presentation

2013-05-17 Thread Korny Sietsma
Hi folks - I had to prepare some slides for a conference, and I struggled
to get nice looking clojure code onto a slide.  I eventually arrived at the
following, but it's awfully clunky:

* write code in emacs
* turn off rainbow delimiters as html-fontify doesn't like them
* M-x load-theme whiteboard  (for high contrast)
* M-x htmlfontify-buffer (and save)
* M-x browse-url-of-file (loads in Chrome)
* load same url in Safari as for some reason cut-and-paste from Chrome to
Powerpoint is broken
* copy code from Chrome
* paste-special into PowerPoint, as styled text

Yes, I know I can just take a screenshot, but that gives you a bitmap that
doesn't scale nicely or give you any ability to do last minute editing.
 But the above gets tedious very fast - I wonder if there's a better option
I've missed?

- Korny

-- 
Kornelis Sietsma  korny at my surname dot com http://korny.info
.fnord { display: none !important; }

-- 
-- 
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/groups/opt_out.




Re: asm-based clojure yet?

2013-05-17 Thread Julian
If you had a hobbyist interest in representing S-expressions in assembler - 
then you could take a look at the tutorial written by Abdulaziz Ghuloum 
called Compilers: Backend to Frontend and Back to Front Again. It used to 
be available 
here: http://www.cs.indiana.edu/~aghuloum/compilers-tutorial-2006-09-16.pdf

I don't know if it available anywhere else on the internet - but I grabbed 
another copy and put it 
here: 
https://sites.google.com/site/juliangamble/Home/Compilers%20Tutorial%202006-09-16.pdf?attredirects=0d=1

For a more serious representation of Clojure's persistent data structures, 
I don't recommend trying to implement them in ASM. 

Cheers
Julian

On Friday, 17 May 2013 22:06:45 UTC+10, Alan D. Salewski wrote:

 On Fri, May 17, 2013 at 02:10:02PM +0300, atkaaz spake thus: 
  Ok, weird question: is there some clojure port on assembler yet? Even 
  if(/especially if) it doesn't have jvm/java/javalibs support 
  
  Or should I just check https://github.com/clojure/clojure-clr ? 
  
  I'm mainly interested in low memory footprint and fast startup times 
 (does 
  clojure-clr have that?) 

 You may want to check out ClojureScript, too. ClojureScript programs 
 leveraging nodejs for host interop have fast startup times: 

 https://github.com/clojure/clojurescript/wiki 

 -- 
 - 
 a l a n   d.   s a l e w s k i   sale...@att.netjavascript: 
 1024D/FA2C3588 EDFA 195F EDF1 0933 1002  6396 7C92 5CB3 FA2C 3588 
 - 


-- 
-- 
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/groups/opt_out.




seancorfield /clj-soap

2013-05-17 Thread marc
Hoping someone has already explored this. Has anyone ever used clj-soap as 
a client and managed to pass in Basic authentication credentials?

I tried putting them into the URL to the WSDL but that did seem to work…

Off to read up on Axis 2…



-- 
-- 
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/groups/opt_out.




Re: Getting highlighted clojure code into a presentation

2013-05-17 Thread Phil Hagelberg
I just present from within Emacs itself usually. But when fancier visuals
are required I'll present from a browser with HTML produced by htmlize.el.
Using a program that doesn't let you store the slide source as plain text
(for version control) sounds like a bad idea.

Phil

-- 
-- 
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/groups/opt_out.




Re: [ANN] - purnam 0.0.10 - angular.js language extensions

2013-05-17 Thread Murtaza Husain
Hi,

Thanks for the project , the language extensions are fantastic !

One of the problems I have had in working with cljs is the compatibility 
and awkward syntax in working with external js libs. This goes a long long 
way in resolving it. 

Thanks,
Murtaza


On Monday, May 13, 2013 5:28:00 AM UTC+5:30, zcaudate wrote:

 I had a vague description for purnam 0.0.9:
 https://groups.google.com/forum/?fromgroups=#!topic/clojure/AgZ_wVtdUFI

 Its the same code with a different read me... 

 Get it here:  https://github.com/zcaudate/purnam

 Excerpt:

  Features
 Purnam has three main components:

 1. Angular Language Extensions
 2. Jasmin Language Extensions for TDD with Karma
 3. Clojurescript Language Extensions (which the previous two are built 
 upon)

  Why not use lispyscript/coffeescript/clang?
 I like each of the languages for their own features:

- coffeescript for its succinctness
- lispyscript for its syntax and macros
- clang for its sheer brilliance and audacity

 However, in using each language I did find some weaknesses

- coffeescript and its ambiguous syntax that changes meaning with 
 whitespace
- lispyscript is too new for me and not widely adopted
- clang is to ambitious in what it is trying to do (make angular work 
 with clojure) and I think there are definite performance implications in 
 doing so.

 The goal of this project is to provide opt-in language extensions for 
 clojurescript to have the same sort of succintness when working with 
 angular and all other javascript libraries.



-- 
-- 
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/groups/opt_out.




Re: ANN lein-daemon, lein-test-out

2013-05-17 Thread Zhemin Lin
Hey guys,

Thank Allen Rohner for his lein-test-out.
If you're using Leiningen 2 as well as I do and got some problem, please 
feel free to check out my branch at https://github.com/miaoski/lein-test-out 
before 
he has time to merge the pull request.
In Trend Micro, we use Hudson and automated unit tests  report generation 
is thus important.
Easy to do that with lein-test-out + Ring/Mock.
Great to stand on the shoulders of giants :)

Zhemin.

-- 
-- 
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/groups/opt_out.




Re: asm-based clojure yet?

2013-05-17 Thread atkaaz
Thanks very much everyone! I'm looking into all of those, but currently
planning to read Julian's pdf. I didn't want to say anything until I had
something definite, but just letting y'all know that I'm considering each
recommendation.


On Sat, May 18, 2013 at 7:12 AM, Julian juliangam...@gmail.com wrote:

 If you had a hobbyist interest in representing S-expressions in assembler
 - then you could take a look at the tutorial written by Abdulaziz Ghuloum
 called Compilers: Backend to Frontend and Back to Front Again. It used to
 be available here:
 http://www.cs.indiana.edu/~aghuloum/compilers-tutorial-2006-09-16.pdf

 I don't know if it available anywhere else on the internet - but I grabbed
 another copy and put it here:
 https://sites.google.com/site/juliangamble/Home/Compilers%20Tutorial%202006-09-16.pdf?attredirects=0d=1

 For a more serious representation of Clojure's persistent data structures,
 I don't recommend trying to implement them in ASM.

 Cheers
 Julian


 On Friday, 17 May 2013 22:06:45 UTC+10, Alan D. Salewski wrote:

 On Fri, May 17, 2013 at 02:10:02PM +0300, atkaaz spake thus:
  Ok, weird question: is there some clojure port on assembler yet? Even
  if(/especially if) it doesn't have jvm/java/javalibs support
 
  Or should I just check 
  https://github.com/clojure/**clojure-clrhttps://github.com/clojure/clojure-clr?
 
  I'm mainly interested in low memory footprint and fast startup times
 (does
  clojure-clr have that?)

 You may want to check out ClojureScript, too. ClojureScript programs
 leveraging nodejs for host interop have fast startup times:

 
 https://github.com/clojure/**clojurescript/wikihttps://github.com/clojure/clojurescript/wiki

 --
 --**--**-
 a l a n   d.   s a l e w s k i   sale...@att.net
 1024D/FA2C3588 EDFA 195F EDF1 0933 1002  6396 7C92 5CB3 FA2C 3588
 --**--**-

  --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.




Re: Getting highlighted clojure code into a presentation

2013-05-17 Thread atkaaz
I feel silly for even suggesting but is pprint not good enough? do you need
colors? (unaware of what those do in emacs)


On Sat, May 18, 2013 at 6:42 AM, Korny Sietsma ko...@sietsma.com wrote:

 Hi folks - I had to prepare some slides for a conference, and I struggled
 to get nice looking clojure code onto a slide.  I eventually arrived at the
 following, but it's awfully clunky:

 * write code in emacs
 * turn off rainbow delimiters as html-fontify doesn't like them
 * M-x load-theme whiteboard  (for high contrast)
 * M-x htmlfontify-buffer (and save)
 * M-x browse-url-of-file (loads in Chrome)
 * load same url in Safari as for some reason cut-and-paste from Chrome to
 Powerpoint is broken
 * copy code from Chrome
 * paste-special into PowerPoint, as styled text

 Yes, I know I can just take a screenshot, but that gives you a bitmap that
 doesn't scale nicely or give you any ability to do last minute editing.
  But the above gets tedious very fast - I wonder if there's a better option
 I've missed?

 - Korny

 --
 Kornelis Sietsma  korny at my surname dot com http://korny.info
 .fnord { display: none !important; }

 --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.




Re: Strange exception intializing clojure.core using Spring-Hadoop

2013-05-17 Thread atkaaz
I've some idea, but it may not be right; I'm thinking that clojure needs
its own classloader and if that spring thing overriden it somehow, it's not
going to work initing clojure, just like in minecraft bukkit server with
clojure-based plugins, ie. https://github.com/CmdrDats/clj-minecraft/
 I'm thinking maybe you need to do something similar with temporarily
restoring clojure's classloader when clojure inits or something like that
(I don't remember) but you may look at the code in clj-minecraft like here:
https://github.com/CmdrDats/clj-minecraft/blob/master/javasrc/cljminecraft/BasePlugin.java#L56

What clojure version were you using when the above stacktrace happened?



On Fri, May 17, 2013 at 7:38 PM, Dave Kincaid kincaid.d...@gmail.comwrote:

 A quick update on a little more progress troubleshooting this issue. We
 have gotten to the point where we are seeing this stacktrace:

 java.lang.IllegalStateException: Attempting to call unbound fn:
 #'clojure.core/refer
 at clojure.lang.Var$Unbound.throwArity(Var.java:43)
 at clojure.lang.AFn.invoke(AFn.java:39)
 at clojure.lang.Var.invoke(Var.java:415)
 at clojure.lang.RT.doInit(RT.java:460)
 at clojure.lang.RT.clinit(RT.java:329)

 does that give anyone an idea?

 On Thursday, May 16, 2013 7:53:27 PM UTC-5, Dave Kincaid wrote:

 I'm posting this here in hopes that someone might be able to steer us in
 the right direction. We have a Cascalog process that we're using
 Spring-Hadoop  Spring-Batch to send to a remote Hadoop cluster. It seems
 as though Spring-Hadoop is doing something funky with the
 classpath/classloader and we're getting the following exception when we run
 it:

 java.lang.**ExceptionInInitializerError
 at clojure.core__init.__init0(**Unknown Source)
 at clojure.core__init.clinit(**Unknown Source)
 at java.lang.Class.forName0(**Native Method)
 at java.lang.Class.forName(Class.**java:266)
 at clojure.lang.RT.**loadClassForName(RT.java:2098)
 at clojure.lang.RT.load(RT.java:**430)
 at clojure.lang.RT.load(RT.java:**411)
 at clojure.lang.RT.doInit(RT.**java:447)
 at clojure.lang.RT.clinit(RT.**java:329)
 at cascalog.Util.clinit(Util.**java:29)
 at jcascalog.Api.**setApplicationConf(Api.java:**99)
 at com.test.DataShredder.run(**DataShredder.java:113)

 in trying to trace it we think that this is happening while
 clojure.lang.RT is scanning all the classes on the classpath. It seems to
 get to one class called StepExecution.class, which is part of the Spring
 Framework, and it throws this exception. We've got this posted over on the
 Spring forums too, since it's most likely something with Spring's
 manipulation of classpath and/or classloader while it's trying to get the
 MR jobs over to Hadoop.

 If anyone has another idea, we'd love to hear it. We're kind of stuck
 right now and been working on it for a few days.

 Thanks,

 DAve

  --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.




Re: Strange exception intializing clojure.core using Spring-Hadoop

2013-05-17 Thread atkaaz
looks like it didn't properly load clojure.core (possibly due to that
classloader being wrong?) but I am not sure why it didn't fail sooner
than on the line with refer

static void doInit() throws ClassNotFoundException, IOException{
load(clojure/core); //this wasn't loaded ok?!

Var.pushThreadBindings(
RT.mapUniqueKeys(CURRENT_NS, CURRENT_NS.deref(),
   WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref()
,RT.UNCHECKED_MATH, RT.UNCHECKED_MATH.deref()));
try {
Symbol USER = Symbol.intern(user);
Symbol CLOJURE = Symbol.intern(clojure.core);

Var in_ns = var(clojure.core, in-ns);
Var refer = var(clojure.core, refer);
in_ns.invoke(USER); //wonder why it didn't fail here
refer.invoke(CLOJURE); //fails here
maybeLoadResourceScript(user.clj);
}
finally {
Var.popThreadBindings();
}
}


On Fri, May 17, 2013 at 7:38 PM, Dave Kincaid kincaid.d...@gmail.comwrote:

 A quick update on a little more progress troubleshooting this issue. We
 have gotten to the point where we are seeing this stacktrace:

 java.lang.IllegalStateException: Attempting to call unbound fn:
 #'clojure.core/refer
 at clojure.lang.Var$Unbound.throwArity(Var.java:43)
 at clojure.lang.AFn.invoke(AFn.java:39)
 at clojure.lang.Var.invoke(Var.java:415)
 at clojure.lang.RT.doInit(RT.java:460)
 at clojure.lang.RT.clinit(RT.java:329)

 does that give anyone an idea?

 On Thursday, May 16, 2013 7:53:27 PM UTC-5, Dave Kincaid wrote:

 I'm posting this here in hopes that someone might be able to steer us in
 the right direction. We have a Cascalog process that we're using
 Spring-Hadoop  Spring-Batch to send to a remote Hadoop cluster. It seems
 as though Spring-Hadoop is doing something funky with the
 classpath/classloader and we're getting the following exception when we run
 it:

 java.lang.**ExceptionInInitializerError
 at clojure.core__init.__init0(**Unknown Source)
 at clojure.core__init.clinit(**Unknown Source)
 at java.lang.Class.forName0(**Native Method)
 at java.lang.Class.forName(Class.**java:266)
 at clojure.lang.RT.**loadClassForName(RT.java:2098)
 at clojure.lang.RT.load(RT.java:**430)
 at clojure.lang.RT.load(RT.java:**411)
 at clojure.lang.RT.doInit(RT.**java:447)
 at clojure.lang.RT.clinit(RT.**java:329)
 at cascalog.Util.clinit(Util.**java:29)
 at jcascalog.Api.**setApplicationConf(Api.java:**99)
 at com.test.DataShredder.run(**DataShredder.java:113)

 in trying to trace it we think that this is happening while
 clojure.lang.RT is scanning all the classes on the classpath. It seems to
 get to one class called StepExecution.class, which is part of the Spring
 Framework, and it throws this exception. We've got this posted over on the
 Spring forums too, since it's most likely something with Spring's
 manipulation of classpath and/or classloader while it's trying to get the
 MR jobs over to Hadoop.

 If anyone has another idea, we'd love to hear it. We're kind of stuck
 right now and been working on it for a few days.

 Thanks,

 DAve

  --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.