Re: Concurrency, Parallelism, and State. And Zombies.

2014-03-26 Thread Di Xu
I really enjoy your post, especially the emacs one, I've been using vim for five years, and always want to learn something about emacs, but didn't have any good material to get start. That post is very useful for me. Thanks, Di Xu 2014-03-26 21:45 GMT+08:00 Daniel Higginbotham : > I've added a

Re: How did you learn Clojure?

2014-03-26 Thread gaz jones
A technique I use whenever I need to learn a new language is to write the same application I already have in another language. I generally choose downloading nzbs from usenet as it can involve a number of interesting programming techniques, at least enough to give you a pretty good idea of how a l

Re: Clojure/West 2014 Videos

2014-03-26 Thread Alex Miller
Nope, sorry. -- 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 e

Re: creating a map

2014-03-26 Thread Robert Marianski
into expects that because it is implemented with conj. > (conj {} [:foo :bar]) {:foo :bar} On Wednesday, March 26, 2014 4:41:16 PM UTC-4, Michael Gardner wrote: > > For reasons unclear to me, (into {} ...) expects a sequence of 2-element > *vectors*, not just 2-element collections. partition re

Re: data associated with a particular state

2014-03-26 Thread Atamert Ölçgen
I would use 3 records: (defrecord DownNode [] SomeInterfaceApplicableToDownState (wake-up [_] (->WaitingNode)) ... InterfaceApplicableToAllNodes ...) (defrecord WaitingNode [] SomeInterfaceApplicableToWaitingState (shutdown [_] (->DownNode)) (execute [_ job-id] (->RunningNode job-

mailing list for Session: session-platform

2014-03-26 Thread kovas boguta
I've created a google groups-based ML for Session, for those interested: https://groups.google.com/forum/#!forum/session-platform -- 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

Re: One more question about invoking java methods from Clojure

2014-03-26 Thread Brandon Barret
On Wednesday, March 26, 2014 8:24:15 PM UTC-4, Brandon Barret wrote: > > > > Wow...I am..wow, you are right. Thanks for the quick reply! So I would > set up the parameter as a file Object first and then it should work okay? I > think I am seeing the error of my ways quite clearly! > -- You r

Re: One more question about invoking java methods from Clojure

2014-03-26 Thread Brandon Barret
Wow...I am..wow, you are right. Thanks for the quick reply! -- 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

Re: One more question about invoking java methods from Clojure

2014-03-26 Thread Brandon Barret
Also, when I run either method, it returns "0". Do I need to set up the function so it can return a long value or date value, respectively? The .getName method seems to work fine. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: How did you learn Clojure?

2014-03-26 Thread Daniel Higginbotham
Chiming in a bit late, but here was my path: * Read "Land of Lisp" by Conrad Barski. This was my first real contact with lisp and functional programming. I found it challenging, but the book is well-written and the technique of teaching through writing games was perfect for me. It uses common l

Re: One more question about invoking java methods from Clojure

2014-03-26 Thread Moritz Ulrich
You are likely passing a string to the function, not a java.io.File object. On Thu, Mar 27, 2014 at 1:16 AM, Brandon Barret wrote: > > I am working on a project that requires me to get the size of a file and > access it's last date of modification. It seems like the java methods > .length and .

One more question about invoking java methods from Clojure

2014-03-26 Thread Brandon Barret
I am working on a project that requires me to get the size of a file and access it's last date of modification. It seems like the java methods .length and .lastmodified could be pretty handy in this situation. I am, however, having a bit of trouble wrapping my head around how to access a jav

Re: How did you learn Clojure?

2014-03-26 Thread Marcus Blankenship
This is awesome, thanks for sharing Aditya! (Thank you to all who shared as well!) I agree with your concept of "whatever makes the work real for oneself", and this is where I'm struggling a bit. I think finding an O/S project and contributing to it would do the trick, but we'll see. Thanks

Re: Clojure/West 2014 Videos

2014-03-26 Thread Brian Craft
Wow, it's nice to be able to watch the sessions I missed. Were the lightning talks recorded? On Tuesday, March 25, 2014 6:20:39 AM UTC-7, Alex Miller wrote: > > Enjoy! The ones that aren't up yet were recorded and edited but had > glitches in the upload or encoding that might take a bit to corr

Re: ANNN: ClojureScript 0.0-2197

2014-03-26 Thread Cesar Canassa
I've been playing around with Node.js and ClojureScript recently and I am very happy to see that the :none & :whitespace optimizations were added. Thanks David! Cesar Canassa On Wed, Mar 26, 2014 at 5:40 PM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marcus Blankenship
We could also decide on a schedule, so folks can "sign-up" to pair with each other. How many hours a week would people want to do this? On Mar 26, 2014, at 7:58 AM, Marc Bluemner wrote: > I guess wie Need to Devide on a pairing method "wemux oremacs or whatever > else there is .I use emac

Re: [ANN] Session 0.1.3 - A live-coding environment for Clojure

2014-03-26 Thread kovas boguta
If someone can figure out how to include the datomic transactor within a lein plugin, then its a possibility that can at least be considered. Overall though, I'm not sure its worth the effort. Session is more of a standalone app, like Light Table. If anything, the packaging should move towards tha

finding lein templates

2014-03-26 Thread Brian Craft
The lein help docs suggest finding templates with https://clojars.org/search?q=lein-template but the result is incomplete, and inaccurate. Using "lein-template" (with quotes) in the search field produces more accurate results, but they're still incomplete. parseapp/lein-template, for example, d

Re: creating a map

2014-03-26 Thread Michael Gardner
For reasons unclear to me, (into {} ...) expects a sequence of 2-element *vectors*, not just 2-element collections. partition returns a seq of lists, not vectors, which is why you're getting that exception. You could try (into {} (map vec (partition 2 2 "12"))) instead. On Mar 26, 2014, at 15:3

ANNN: ClojureScript 0.0-2197

2014-03-26 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2197 Leiningen dependency information: [org.clojure/clojurescript "0.0-2197"] Changes & Enhancements: * updated Google Closure Li

creating a map

2014-03-26 Thread Andy Smith
Hi all, I was wondering why this doesn't create a map 1 -> 2 : (into {} (partition 2 2 "12")) Must be yet another misunderstanding of mine. Thanks Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Leiningen Survey

2014-03-26 Thread Phil Hagelberg
On Wednesday, March 26, 2014 11:34:27 AM UTC-7, Hoàng Minh Thắng wrote: > What do you mean "unmanaged jars" in the question "What annoys you about Leiningen?" Some people are stuck using random jar files they downloaded manually from various places on the web rather than dependencies from a prop

Re: generators...?

2014-03-26 Thread Gary Trakhman
true, he did say 'or something that would be as useful', but lazy-seqs are more useful :-). On Wed, Mar 26, 2014 at 4:08 PM, Ben Wolfson wrote: > "cycle" isn't really the same thing, though, at least if the OP really > does require (for some reason) something that can be called repeatedly and >

Re: generators...?

2014-03-26 Thread Ben Wolfson
"cycle" isn't really the same thing, though, at least if the OP really does require (for some reason) something that can be called repeatedly and get a different answer each time. On Wed, Mar 26, 2014 at 1:05 PM, Gary Trakhman wrote: > cycle - http://clojuredocs.org/clojure_core/clojure.core/cyc

Re: generators...?

2014-03-26 Thread Ben Wolfson
If you really want something that can be called repeatedly and returns something different each time (rather than just iterating through an infinite sequence, which seems like it would be the more functional-ish approach): user> (defn cycle-gen [input] (let [iter (atom (cycle input))]

Re: generators...?

2014-03-26 Thread Gary Trakhman
cycle - http://clojuredocs.org/clojure_core/clojure.core/cycle And generally, this class of functionality is called lazy-seqs. On Wed, Mar 26, 2014 at 3:59 PM, Christopher Howard wrote: > Hi. I'm still fairly new to Clojure. I was wondering: What's the > easiest way to make a generator (or some

generators...?

2014-03-26 Thread Christopher Howard
Hi. I'm still fairly new to Clojure. I was wondering: What's the easiest way to make a generator (or something that would be as useful). In one application, I need something that will return a different color each time I call it - following a predefined list of colors, and starting over again at th

Re: Leiningen Survey

2014-03-26 Thread Gal Dolber
How do I turn on "auto-cleaning of transitively-compiled .class files"? On Wed, Mar 26, 2014 at 3:34 PM, Hoàng Minh Thắng wrote: > Hey Phil, > What do you mean "unmanaged jars" in the question "What annoys you about > Leiningen?" > > -- > You received this message because you are subscribed to

Re: Leiningen Survey

2014-03-26 Thread Hoàng Minh Thắng
Hey Phil, What do you mean "unmanaged jars" in the question "What annoys you about Leiningen?" -- 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 moderate

Leiningen Survey

2014-03-26 Thread Phil Hagelberg
Hello folks. Every year we run a survey of Leiningen users to get a better understanding of usage patterns and where we should focus development. I just opened this year's: https://lein-survey-2014.herokuapp.com It would be great if you could take a minute or two to fill it out. Thanks! -

[ANN] stch.sql 0.1.0 - A DSL for SQL query, DML, and DDL

2014-03-26 Thread david
I'm excited to announce stch.sql. A library for generating JDBC compatible SQL statements. Based on code from Honey SQLand ideas from Lobos and SQLingvo. Many thanks to the authors of those lib

not quite getting refs

2014-03-26 Thread Greg D
I've looked, but can't find, a discussion of the choice of a history mechanism for refs. I can't understand why the transactions just don't check #'identical? for the ref value, rather than maintaining a history queue. In other words, I don't see why (dosync (ref-set foo @foo))) should cause ot

Re: Garden, Thorn - Looking for contributors

2014-03-26 Thread Timothy Washington
Hi Joel, I think this is a good idea. We've discussed one of my pain points; particularly "*Exploring Garden At Rules*". Our thread basically looked like the below (last few messages ellided). Now, for the moment, I indeed went back to *SCSS*, because *i)* it did what I wanted out of the box and *

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marcus Blankenship
I'm a fan of ngrok + tmux/wemux + emacs. Have you guys used ngrok? On Mar 26, 2014, at 7:58 AM, Marc Bluemner wrote: > I guess wie Need to Devide on a pairing method "wemux oremacs or whatever > else there is .I use emacs but am good with vim and tmux too. I would > prefer emacs as I'm s

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marc Bluemner
I guess wie Need to Devide on a pairing method "wemux oremacs or whatever else there is .I use emacs but am good with vim and tmux too. I would prefer emacs as I'm switching  to it St the Moment  — Sent from Mailbox for iPhone On Wed, Mar 26, 2014 at 2:57 PM, Marcus Blankenship wrote: > Hi

[RFC] Roundtripping namespaced xml documents for data.xml

2014-03-26 Thread Herwig Hochleitner
Hi, I'm taking a stab at namespaced xml support: http://dev.clojure.org/jira/browse/DXML-4 I've uploaded a patch, that should implement 1:1 roundtripping, fully preserving prefixes and xmlns declarations: http://dev.clojure.org/jira/secure/attachment/12899/roundtrip-documents.patch This doesn't

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marcus Blankenship
Hi guys, I'm glad the idea of pairing to learn is interesting to you! Any suggestions on how we proceed? Sent from my iPhone > On Mar 26, 2014, at 5:23 AM, Marc Bluemner > wrote: > > Hahahah you saved your ass there Jason :) BDD is TDD with more focus on > business value and Costomer inter

Concurrency, Parallelism, and State. And Zombies.

2014-03-26 Thread Daniel Higginbotham
I've added a new chapter to Clojure for the Brave and True, "Concurrency, Parallelism, and State. And Zombies." Here's an excerpt: === In this chapter you'll learn what concurrency and parallelism are and why they matter. You'll learn about the challeng

Re: [ANN] Session 0.1.3 - A live-coding environment for Clojure

2014-03-26 Thread Marc Limotte
I do like that Gorilla is distributed as a lein plugin, so I can easily start it up in the context of my project alongside my classpath and my code. Would a plugin make sense as an option for Session? marc On Tue, Mar 25, 2014 at 6:07 PM, kovas boguta wrote: > On Tue, Mar 25, 2014 at 3:05 PM,

Problem in clojars SSL Cert

2014-03-26 Thread radhika shashank
Hi, I am trying to run incubator-storm-master but I am getting the following error: It is clear that the error is for “clojars” SSL Certificate. I ll be glad if you could tell me how to

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marc Bluemner
Hahahah you saved your ass there Jason :) BDD is TDD with more focus on business value and Costomer interviews. I got a copy of BDD in action but Im a reviewer so I dont realy have it ;) On Tuesday, March 25, 2014 4:45:32 PM UTC+1, Jason Felice wrote: > > I do TDD, even with my clojure (combine

Re: Clojure + BDD + TDD + Pairing...

2014-03-26 Thread Marc Bluemner
Yes I think replica driven development is sctualy TDD :) they probuably didnt call it that back in the good old lisp days. Its funny how some praktises from 20 years ago are comming back and everyone pretends like its the newest trendy stuffLEAN, LISP :) I use emac how would we do pairprogr

Woops

2014-03-26 Thread JPH
Sorry all, somehow I hit the send button multiple times while editing. -- 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 wit

Writing tests for a live trading API?

2014-03-26 Thread JPH
Hi all. I'm still relatively new to Clojure and I haven't spent much time on testing before. I've recently written some libraries to talk to Bitcoin exchanges (clj-havelock, clj-btce, cryptick), and I'd like to add tests to them. I'd like some advice around how to test against a live service (ther