Re: [ANN] collection-check: validation for data structure variants

2013-10-30 Thread Zach Tellman
Yes, this is some very simple sugar atop simple-check, Reid is owed most of the credit here. On Oct 30, 2013 10:44 PM, "Alex Baranosky" wrote: > Thanks Zach for this cool testing library, and thanks Reid for > simple-check! > > -- > -- > You received this message because you are subscribed to the

Re: [ANN] collection-check: validation for data structure variants

2013-10-30 Thread Colin Fleming
This looks like a really useful library, but I mostly came here to say +1 for the use of "lacunae". Now I have to find a way to insert that into my own conversations. On 31 October 2013 15:13, Zach Tellman wrote: > It's relatively rare that people write variants of Clojure data > structures.

Resources for learning techniques for isolating pure functions

2013-10-30 Thread Ben Brinckerhoff
Clojure is the first functional programming language I've used for anything more than toy examples, so I'm learning functional programming in general as well as Clojure specifically. I understand the value of creating pure functions in theory, but when writing applications, I'm finding that logi

Re: [ANN] collection-check: validation for data structure variants

2013-10-30 Thread Alex Baranosky
Thanks Zach for this cool testing library, and thanks Reid for simple-check! -- -- 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 p

Re: SQL to logic rule mapping

2013-10-30 Thread Brian Craft
On Wednesday, October 30, 2013 8:37:51 PM UTC-7, ArturoH wrote: > > One other thing I did not know is that there are Datalog to SQL bridges > that is good to know. > > That python script is the only one I've found. I'd be curious to hear of any others. -- -- You received this message becau

Re: SQL to logic rule mapping

2013-10-30 Thread Brian Craft
On Wednesday, October 30, 2013 8:04:25 PM UTC-7, ArturoH wrote: > > On Wednesday, October 30, 2013 12:01:02 PM UTC-5, Brian Craft wrote > >> On Wednesday, October 30, 2013 7:56:46 AM UTC-7, ArturoH wrote: >>> >>> I think the shortcoming of ORM tools is that they bring a higher level >>> technol

Re: SQL to logic rule mapping

2013-10-30 Thread ArturoH
Christopher, thanks for the info. My hesitation with Datalog comes from the separation from database and general purpose code. In a way it has the same problem as SQL. Once you get your result set then you are on your own. Clojure is a fantastic language, but I'd like to extend that same logic

Re: SQL to logic rule mapping

2013-10-30 Thread ArturoH
On Wednesday, October 30, 2013 12:01:02 PM UTC-5, Brian Craft wrote > On Wednesday, October 30, 2013 7:56:46 AM UTC-7, ArturoH wrote: >> >> I think the shortcoming of ORM tools is that they bring a higher level >> technology like SQL and lower it down to the low level of imperative >> languages

Re: road map for clojure?

2013-10-30 Thread Andy Fingerhut
I'm not saying it puts the total number of commits up with other projects, or that it needs to, but the development of core.async has effectively been part of the core Clojure development work done in the last several months, and it has been moving along: https://github.com/clojure/core.async

Re: road map for clojure?

2013-10-30 Thread Mikera
Even looking at this repo, it's not many commits. I count around 50 commits in the last 6 months. By way of comparison, JRuby and Scala both have more than that in the last couple of weeks. P.S. Not intended as a criticism of anybody: just an observation. On Thursday, 31 October 2013 07:05:18

[ANN] collection-check: validation for data structure variants

2013-10-30 Thread Zach Tellman
It's relatively rare that people write variants of Clojure data structures. Partially, this is because the existing data structures are quite good, but it's also because it's surprisingly difficult. Clojure's vectors, sets, and maps each implement about a dozen interfaces with overlapping fun

Re: road map for clojure?

2013-10-30 Thread Andy Fingerhut
Also a list of features planned for Clojure 1.6, and some that were postponed to after Clojure 1.6: http://dev.clojure.org/display/design/Release.Next+Planning Andy On Wed, Oct 30, 2013 at 4:29 PM, Sean Corfield wrote: > Roadmap: > http://dev.clojure.org/jira/browse/CLJ#selectedTab=com.atl

Re: Any interest in Compojure/Ring screencasts?

2013-10-30 Thread Paddy Gallagher
And me. cheers Paddy On Wednesday, October 30, 2013 2:36:45 AM UTC, Yuan He wrote: > > Count me in too.. > > >_> > Best regards > - > Yuan blog github > > > > > > On Wed, Oct 30, 2013 at 7:19 AM, Luc Prefontaine > > >

request for feedback

2013-10-30 Thread Anton Podviaznikov
Hey everyone, I'm working on project called jarkeeper (https://github.com/hashobject/jarkeeper.com). It's a simple tool that may be helpful in few cases: 1. Can help you understand if some Clojure library uses latest dependencies (e.x. http://www.jarkeeper.com/korma/Korma) 2. Provides status o

Re: SQL to logic rule mapping

2013-10-30 Thread Brian Craft
I did that recently, as well. Found this: https://github.com/ghxiao/nrdatalog2sql Haven't done more than glance at the code. On Wednesday, October 30, 2013 4:29:33 PM UTC-7, Mark wrote: > > > > On Wednesday, October 30, 2013 4:27:31 PM UTC-7, Christopher Allen wrote: >> >> If you just want to bu

Re: SQL to logic rule mapping

2013-10-30 Thread Mark
On Wednesday, October 30, 2013 4:27:31 PM UTC-7, Christopher Allen wrote: > > If you just want to build up and apply constraints, Korma can do that. > > If you want something closer to Datalog with unification, then a Datalog > to SQL bridge is the most practical of largely impractical choices.

Re: road map for clojure?

2013-10-30 Thread Sean Corfield
Roadmap: http://dev.clojure.org/jira/browse/CLJ#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel On Wed, Oct 30, 2013 at 4:02 PM, julius wrote: > Hi, > > Is clojure under dev? there is no much commits in months, any plan or road > map for clojure? > > thanks > > -- > -- > Yo

Re: SQL to logic rule mapping

2013-10-30 Thread Christopher Allen
If you just want to build up and apply constraints, Korma can do that. If you want something closer to Datalog with unification, then a Datalog to SQL bridge is the most practical of largely impractical choices. On Tuesday, October 29, 2013 9:35:45 AM UTC-7, ArturoH wrote: > > I am interested in

Re: What non-deprecated Clojure Web libraries to use?

2013-10-30 Thread Manuel Paccagnella
A probably simplistic consideration: maybe there should be a data model expressed as a data structure so that it can be leveraged by arbitrary libs. This way there would be a single representation, but no explicit dependencies between single libs. Here probably Datomic could be an example. Il g

Re: road map for clojure?

2013-10-30 Thread John D. Hume
Are you looking at the right repo? https://github.com/clojure/clojure/commits/master On Wed, Oct 30, 2013 at 6:02 PM, julius wrote: > Hi, > > Is clojure under dev? there is no much commits in months, any plan or road > map for clojure? > > thanks > > -- > -- > You received this message because

road map for clojure?

2013-10-30 Thread julius
Hi, Is clojure under dev? there is no much commits in months, any plan or road map for clojure? thanks -- -- 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 membe

Re: Which Json parser can parse a complete jason string?

2013-10-30 Thread James Reeves
Cheshire should parse the whole JSON object. I haven't noticed any problem with it. What do you mean by "one layer of json string"? Could you provide an example? - James On 30 October 2013 21:36, Gary Zhao wrote: > Hi > > I noticed jason parser such as Cheshire, data.json only parse one layer

Which Json parser can parse a complete jason string?

2013-10-30 Thread Gary Zhao
Hi I noticed jason parser such as Cheshire, data.json only parse one layer of json string. In order to get the whole object, I have to write a recursive method to do that. Is there a library can do it automatically? Thanks Gary -- -- You received this message because you are subscribed to th

[ANN] Clojure Support for the Intellij Sublime Theme

2013-10-30 Thread Murtaza Husain
Hi, I have been using the Sublime Theme https://github.com/y3sh/Intellij-Colors-Sublime-Monokai for IntelliJ, however it doesnt play nice with clojure. So added support for clojure forms too, so that will not look ugly. Here is my fork which adds the support - https://github.com/murtaza52/I

how to turn on smartparens-strict-mode in emacs-live

2013-10-30 Thread cig
Where should I place the setting to turn on smartparens-strict-mode in emacs-live? Following this thread, https://github.com/Fuco1/smartparens/issues/158 I tried adding this to my own pack but that did not work, subsequently added it to the clojure-pack under the smartparents-conf.el but that

Re: Why isn't a docstring allowed for defrecord?

2013-10-30 Thread Jim - FooBar();
On 30/10/13 16:54, Phillip Lord wrote: "Jim - FooBar();" writes: On 30/10/13 16:19, Mars0i wrote: Still, I'm surprised. /Why/ can't I document a record type with a docstring? of course you can...just add a :doc key in the record's meta :) The OP is correct. He says "why can't I document a r

Re: Incanter/vector-clj use error

2013-10-30 Thread Jim - FooBar();
On 30/10/13 16:56, P Martin wrote: Thanks - I'm still a little confused on the different between use and require. 'use' is sort of deprecated after it was noticed that people were abusing it. It's not exactly deprecated because in some cases like incremental development at the repl it is real

Re: SQL to logic rule mapping

2013-10-30 Thread Brian Craft
On Wednesday, October 30, 2013 7:56:46 AM UTC-7, ArturoH wrote: > > I think the shortcoming of ORM tools is that they bring a higher level > technology like SQL and lower it down to the low level of imperative > languages. > Can you give an example? -- -- You received this message because

Re: Incanter/vector-clj use error

2013-10-30 Thread P Martin
Thanks - I'm still a little confused on the different between use and require. When I try your suggestion for the matrix library, (require '(clojure.core.matrix :as mat)), I get: IllegalArgumentException Don't know how to create ISeq from: clojure.lang.Keyword clojure.lang.RT.seqFrom (RT.java:

Re: Why isn't a docstring allowed for defrecord?

2013-10-30 Thread Phillip Lord
"Jim - FooBar();" writes: > On 30/10/13 16:19, Mars0i wrote: >> Still, I'm surprised. /Why/ can't I document a record type with a docstring? > > of course you can...just add a :doc key in the record's meta :) The OP is correct. He says "why can't I document a record type with a docstring", rat

Re: Why isn't a docstring allowed for defrecord?

2013-10-30 Thread Jim - FooBar();
On 30/10/13 16:19, Mars0i wrote: Still, I'm surprised. /Why/ can't I document a record type with a docstring? of course you can...just add a :doc key in the record's meta :) Jim -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Why isn't a docstring allowed for defrecord?

2013-10-30 Thread Mars0i
I understand that defrecord can't take a docstring (see "Doc string for variables and record" in this group), and I have learned that record types are somewhat odd beasts. I know that there are workarounds (http://clojure-log.n01se.net/date/2010-10-03.html). Still, I'm surprised. *Why* can'

Re: SQL to logic rule mapping

2013-10-30 Thread ArturoH
Say you have a simple rule that if people pay within a timeframe they get a X% discount select . price*(1-X/100)from where ... paydate between startdiscount and enddiscount It is likely that there will be multiple SQL statements that will contain some form of this rule. A good

Re: SQL to logic rule mapping

2013-10-30 Thread Ray Miller
On 30 October 2013 11:47, Kris Jenkins wrote: > FWIW, I too am interested in a better SQL tool for Clojure, but my take on > it is that we don't need a new language on top of SQL, but a better way to > use SQL directly. > > My thinking, plus an *alpha-grade* library, can be found here: > https://

[ANN] The long awaited Dire 0.5.0 - Slingshot integration

2013-10-30 Thread Michael Drogalis
This feature has been requested for a few months, and it's finally made its way into Dire. I'd like to thank Dylan Paris for sending in a patch to do this. The tl;dr: error handling can now dispatch based on predicates rather than types. Dire: https://github.com/MichaelDrogalis/dire Slingshot:

Re: .length vs. count for string length

2013-10-30 Thread Luc Prefontaine
Strings are character sequences, count is a better option to stay within the sequence abstraction. Lic P. > count does some type checks, but it's negligible in most cases as I already > said. len can give a clear intention than count somtimes. > > I'm not suggesting that it should be included

Re: .length vs. count for string length

2013-10-30 Thread Alice
count does some type checks, but it's negligible in most cases as I already said. len can give a clear intention than count somtimes. I'm not suggesting that it should be included in clojure.string, but if count is currently not preferred over .length, including it can be a good option. On We

Re: SQL to logic rule mapping

2013-10-30 Thread Kris Jenkins
FWIW, I too am interested in a better SQL tool for Clojure, but my take on it is that we don't need a new language on top of SQL, but a better way to use SQL directly. My thinking, plus an *alpha-grade* library, can be found here: https://github.com/krisajenkins/yesql#rationale Cheers, Kris O

Re: .length vs. count for string length

2013-10-30 Thread Baishampayan Ghose
What'd clojure.string/len do any differently than clojure.core/count? count already provides does the fastest possible thing for strings. ~BG On Wed, Oct 30, 2013 at 4:14 PM, Alice wrote: > Which one is preferred? > > .length needs to be type hinted, so more verbose. > The performance penalty of

.length vs. count for string length

2013-10-30 Thread Alice
Which one is preferred? .length needs to be type hinted, so more verbose. The performance penalty of count is negligible in most cases. I think including len in clojure.string would be a good idea because it's used so often. -- -- You received this message because you are subscribed to the Go

Re: [ClojureScript] Re: [ANN] modern-cljs - Tutorial 22

2013-10-30 Thread Mimmo Cosenza
Thanks Boris. I'm glad you found it useful. That's the best ROI to me. I would like to have more time to add more tutorials quickly than I'm doing now to better serve this extraordinary community. Mimmo On Oct 30, 2013, at 8:40 AM, Boris Kourtoukov wrote: > Thanks for putting this one tog

Re: eval-after-load

2013-10-30 Thread Phillip Lord
Hmm, well, it was a nice idea, but it fails, as the eval happens before the load. Can't quite work out why this is true, but it is. Far as I can tell, this requires Java level changes. Or I can provide support in the package. Shame. Phil Phillip Lord writes: > Well, yes, but it always does i

Re: [ANN] modern-cljs - Tutorial 22

2013-10-30 Thread Boris Kourtoukov
Thanks for putting this one together! I like that the tutorial series has a steady ramp up to complexity and nuance, it really turns it into a long term learning experience. On Tuesday, October 29, 2013 3:12:34 PM UTC-4, Magomimmo wrote: > Hi all, > I just published the 22th tutorial - Learn by

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

2013-10-30 Thread Josh Kamau
I can do it with you if we limit the hours to Saturday and sunday. I am a noob though i have 2 apps in production. (You can get alot done without knowing the whole of clojure) I am in GMT +3 Thanks. On Wed, Oct 30, 2013 at 6:43 AM, Marcus Blankenship wrote: > Hi Folks, > > I’m a Clojure n00b