Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Dragan Djuric
Clojure only supports long and double primitives as function hints. You are using int; it didn't work with pre-1.8.0 clojure. -- 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 post

Re: ClojureScript Self-hosting Demo

2015-08-03 Thread kinleyd
Hi all, I've looked at the Optional Self-hosting section on the ClojureScript Github wiki. Would it be possible to have a more step-by-step set of instructions for experimentig with self hosting OR could someone point me to a resource which provides one? Thanks, Kinley -- You received this

Re: ClojureScript Self-hosting Demo

2015-08-03 Thread kinleyd
Hi all, I've looked at the Option Self-hosting section section on the ClojureScript Github wiki. Would it be possible to have a more step-by-step set of instructions for self hosting OR could someone point me to resource which provides one? Thanks, Kinley -- You received this message becaus

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Dmitri
My understanding is that the problem is actually caused by the stateless nature of the functions. Since the function accepts the connection as a parameter it's up to the user of the function to ensure that it's passed the correct connection. Every functional solution presented in this thread su

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Rob Lally
Everything you say is true. And programming is always about picking the right trade-offs at the right time, making this sort of conversation one that can never come to a *right* answer. But… in this case Pablo was experiencing concrete problems: those problems stemmed from how easy it was to ma

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Dmitri
While I generally agree that purity is something to strive for, I think it's also important to consider the problem that's being solved in each particular scenario. While creating stateless database query functions and passing the connection round explicitly achieves purity, it's not entirely c

Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Rangel Spasov
Thanks for the new alpha everyone! Getting a compiler error below. I think it's because of: https://github.com/hugoduncan/clj-ssh/blob/develop/src/clj_ssh/ssh.clj (defn ^int session-port "Return the port for a session" [^Session session] (.getPort session)) Is this by design? Rangel #

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread kirby urner
On Mon, Aug 3, 2015 at 1:25 PM, Mark Engelberg wrote: > The main reason I mentioned Intellij was because I didn't know whether > there was a satisfactory Python plugin for Eclipse and you said you wanted > to do all three languages on one IDE. > > Gotcha. The answer is yes, it's called PyDev

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Rob Lally
Hey Pablo, Sorry, you are completely correct: I accidentally typed transaction when I meant connection. My bad. I don’t understand what you mean by connections having to be global when dealing with an RDBMS. It is true that you normally want to pool them to conserve resources, and that pooling

Re: core.async: implementing pi.go

2015-08-03 Thread Divyansh Prakash
> > does maya automatically handle operator precedence? > maya always evals from left to right. (maya 1 + 5 :as six, six * 2 :as twelve, twelve / 3 * 2) ;=> 8 > > - Divyansh -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Mark Engelberg
I currently use Eclipse Counterclockwise and have me eye on Cursive (will evaluate it more seriously when it is officially released). Eclipse is reasonably well suited for beginners working in Clojure, I think. Certainly it has the simplest install process of any of the platforms right now. When

New Functional Programming Job Opportunities

2015-08-03 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Senior Clojure Software Engineer at Guaranteed Rate http://functionaljobs.com/jobs/8853-senior-clojure-software-engineer-at-guaranteed-rate Server Engineer at ActionX http://functionaljobs.com/jobs/8850-serve

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread kirby urner
On Mon, Aug 3, 2015 at 8:18 AM, Fluid Dynamics wrote: > On Monday, August 3, 2015 at 10:26:34 AM UTC-4, kirby urner wrote: >> >> >> (A) when a student hacks on a Python or Java project and want's mentor >> feedback, it's *not* a matter of the mentor remoting in to the student >> instance or acces

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Fluid Dynamics
On Monday, August 3, 2015 at 10:26:34 AM UTC-4, kirby urner wrote: > > > (A) when a student hacks on a Python or Java project and want's mentor > feedback, it's *not* a matter of the mentor remoting in to the student > instance or accessing the students V: drive. Rather, we have software > infr

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Thanks, Alex, I will give this a try the next time I run into this. Given a little distance from the problem, and the insights that you and Mars0i have been sharing, I have a clearer picture of what was going on at compile time. I suspect the problem is something along these lines: Leiningen in

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Alex Miller
You can just use the clojure.core/compile function to compile. There is a simple example at http://clojure.org/compilation. I have not seen or experienced a linkage error like this before and I'm not aware of any ticket like this. Generally a linkage error indicates you are seeing the wrong v

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Yay, this is the kind of insight I was hoping for! ^_^ On Monday, August 3, 2015 at 9:49:17 AM UTC-5, Mars0i wrote: > > Ah--if that's the problem, it sounds familiar. Try doing 'lein clean' > before 'lein compile' and see whether you get the same error. That's > assuming you have namespaces/cl

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Mars0i
On Monday, August 3, 2015 at 9:47:10 AM UTC-5, James Elliott wrote: > > Wow, that is a challenge, Alex! I would have no idea how to even compile a > project without Leiningen. If I ever am not using 200% > I think you can do this with compile and

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Mars0i
On Monday, August 3, 2015 at 9:27:47 AM UTC-5, James Elliott wrote: > > Indeed, I visited the page you cite while trying to pin down this problem. > However, I am fairly certain that in my case it is a weird side effect, not > a root cause: I get that message when compiling my Clojure file if I t

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Wow, that is a challenge, Alex! I would have no idea how to even compile a project without Leiningen. If I ever am not using 200% of my free time working on these projects, I may try to research that. I am afraid it may be some time, though. I was just hoping this was a known issue with know sol

Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Alex Miller
No, there are no plans to integrate this work. On Monday, August 3, 2015 at 9:18:26 AM UTC-5, Solomon wrote: > > Congratulations. Maybe the performance optimization based on new JVM > Graal/Truffle is the correct way. For instance: > http://ssw.jku.at/Teaching/MasterTheses/Graal/TruffleClojure.

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread Alex Miller
If you can create a small, reproducible test case (that does not require Leiningen), please file a ticket. On Monday, August 3, 2015 at 9:27:47 AM UTC-5, James Elliott wrote: > > Indeed, I visited the page you cite while trying to pin down this problem. > However, I am fairly certain that in my

Re: Complete lack of helpful compilation errors with :gen-class

2015-08-03 Thread James Elliott
Indeed, I visited the page you cite while trying to pin down this problem. However, I am fairly certain that in my case it is a weird side effect, not a root cause: I get that message when compiling my Clojure file if I try to call a function which is defined later in the file. If I move the fun

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread kirby urner
On Mon, Aug 3, 2015 at 3:02 AM, Colin Fleming wrote: > For Clojure nothing beats emacs + CIDER >> > > As a clearly biased participant here (I develop Cursive) I'd like to > politely disagree with this. Lots of people are switching to Cursive from > Emacs, including many that you've heard of. Obvi

Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Qihui Sun
Congratulations. Maybe the performance optimization based on new JVM Graal/Truffle is the correct way. For instance: http://ssw.jku.at/Teaching/MasterTheses/Graal/TruffleClojure.pdf Do the Clojure core team have the plan ? 2015-08-03 20:32 GMT+08:00 Alex Miller : > Clojure 1.8.0-alpha4 is now ava

Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Qihui Sun
Could we study from JRuby 9.0.0.0 http://jruby.org/2015/07/22/jruby-9-0-0-0.html https://github.com/jruby/jruby/wiki/Truffle 2015-08-03 22:17 GMT+08:00 Qihui Sun : > Congratulations. Maybe the performance optimization based on new JVM > Graal/Truffle is the correct way. For instance: > http://ssw

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Joe R. Smith
I’ll come out as an Emacs -> Cursive convert. I had been using emacs for Clojure development for 6+ years before I switched. Originally I had no intention of actually switching, but, as Colin suggested, I found enough additional value in Cursive to make my experimentation with Cursive permanent.

Re: [ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Alex Miller
Few bugs corrected below. On Monday, August 3, 2015 at 7:32:37 AM UTC-5, Alex Miller wrote: > > Clojure 1.8.0-alpha4 is now available. > > Try it via > - Download: > https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-alpha4 > - Leiningen: [org.clojure/clojure "1.8.0-alpha4"] > > Below is a

[ANN] Clojure 1.8.0-alpha4

2015-08-03 Thread Alex Miller
Clojure 1.8.0-alpha4 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-alpha4 - Leiningen: [org.clojure/clojure "1.8.0-alpha4"] Below is a list of the tickets included in this release (about half were added in alpha2, the rest in alpha4). Also see

Re: [ANN] Initial release of Glow, a tiny library for syntax highlighting Clojure source code

2015-08-03 Thread W. David Jarvis
Unfortunately, since Glow doesn't use a lisp reader as it's underlying syntax engine, locals highlighting isn't something that the project can easily support. Allen Rohner pointed me in the direction of a few other underlying lisp/clojure readers that might open up avenues for that sort of feature,

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
Other than the fact that this approach doesn't reach the level of functional purity that some people want, after playing with it for a while, we found it very productive and leads to clean/readable code and tests, so we decided to turn it into a library: https://clojars.org/conman https://github.

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
Rob, The transactions are not global, the transactions are local. Connections are global and there's no way around it with the constraints of a traditional RDBMs. Your idea of making the global connection unavailable for code that's in the context of a transaction would prevent the errors I'm tryi

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Colin Yates
I have heard this approach before, but I have never seen how it works in real life. For example, what about 'selects' - where do they happen? What about if my updates are not independent (e.g. if the first update works then do the second update otherwise do this completely different thing?). For s

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
James, I'm not new to functional programming and I understand the principles and why they are good. I worked in Haskell, Erlang and other Lisps before. Even if only a tiny portion of my codebase deals with the database, I still need a pattern for that part of the codebase. It is very easy to say

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Colin Fleming
> > For Clojure nothing beats emacs + CIDER > As a clearly biased participant here (I develop Cursive) I'd like to politely disagree with this. Lots of people are switching to Cursive from Emacs, including many that you've heard of. Obviously different strokes for different folks etc, but a lot of