Re: symbolic protocols

2013-01-08 Thread kovas boguta
Letting interprete also consume functions as well as protocols would let it bottom out into actual clojure code that actually implements some logic. Though it would also be handy so have some kind of (escape [bindings] body) clause to allow binding to normal code to temporary names for the sake

Re: Unit testing

2013-01-08 Thread Meikel Brandmeyer (kotarak)
Hi, Am Dienstag, 8. Januar 2013 08:50:05 UTC+1 schrieb Eric MacAdie: Is there a common unit testing framework for Clojure? I did some googling, put all the results were a couple of years old. clojure.test ships with clojure proper. And midje is also very popular. Kind regards Meikel --

Re: Unit testing

2013-01-08 Thread keeds
Expectations is a good framework. https://github.com/jaycfields/expectations On Tuesday, January 8, 2013 7:50:05 AM UTC, Eric MacAdie wrote: Is there a common unit testing framework for Clojure? I did some googling, put all the results were a couple of years old. - Eric MacAdie -- You

Re: Unit testing

2013-01-08 Thread Alex Baranosky
There's also Midje: https://github.com/marick/Midje On Tue, Jan 8, 2013 at 12:54 AM, keeds akee...@gmail.com wrote: Expectations is a good framework. https://github.com/jaycfields/expectations On Tuesday, January 8, 2013 7:50:05 AM UTC, Eric MacAdie wrote: Is there a common unit testing

Re: Convincing employer to go for Clojure

2013-01-08 Thread Marko Topolnik
2. What are good examples of complex domains that have been tackled with Clojure web apps and API layers? At my company we have built an entire B2B platform that drives the exchange of business documents for my country's largest company. Our first production version was on Clojure 0.9 and

Feature Expressions

2013-01-08 Thread Irakli Gozalishvili
Hi Folks, I wanted to comment on Feature Expressions feature page, but it looks like special privileges are required, so I thought I'd post my questions / feedback here. I've being working on client side JS for a while and I'm well aware of hazards associated with platform specific code

Re: Convincing employer to go for Clojure

2013-01-08 Thread Colin Yates
I would ask what problem would Clojure solve that the current technology X doesn't? There are no invalid answers to this, but it is important to understand *why* you want to move to Clojure. Perfectly valid answers might be: - our domain is best solved with functional programming and we want

Re: Feature Expressions

2013-01-08 Thread Dave Sann
there have been a number of previous discussions FYI. This was one I could find: https://groups.google.com/d/topic/clojure/LQcBEph-3Bg/discussion On Tuesday, 8 January 2013 22:24:26 UTC+11, Irakli Gozalishvili wrote: Hi Folks, I wanted to comment on Feature Expressions feature page, but

Re: core.logic: datomic unification

2013-01-08 Thread David Nolen
The dispatching mechanism was more trouble than it was worth but we did lose some flexibility. Do you really need to unify Sequential or is unifying with a concrete type like PersistentVector work well enough for your use case? David On Tue, Jan 8, 2013 at 2:01 AM, Austin Haas

nREPL 0.2.0-RC2

2013-01-08 Thread Chas Emerick
I released [org.clojure/tools.nrepl 0.2.0-RC2] last night. Thanks to Tim Pope for raising a couple of issues he encountered through the course of his integrating nREPL into foreplay last month. This will be 0.2.0 final later this week, barring any jarring new bug reports. Also note that nREPL

Re: Convincing employer to go for Clojure

2013-01-08 Thread Colin Yates
(please ignore the atrocious speling mistax in my previous post - not enough sleep) On Tuesday, 8 January 2013 12:05:11 UTC, Colin Yates wrote: I would ask what problem would Clojure solve that the current technology X doesn't? There are no invalid answers to this, but it is important to

Re: Clojure Conj Videos

2013-01-08 Thread Lynn Grogan
Alright, the first 2012 video is up on Youtube: http://www.youtube.com/watch?v=Mfsnlbd-4xQ. Chris Ford on Functional Composition. Expect 1-2 more videos every day. Cheers! Lynn On Sunday, January 6, 2013 5:26:33 AM UTC-5, kinleyd wrote: You are right Alex. I got it mixed up since I've

Re: Clojure Conj Videos

2013-01-08 Thread Paul deGrandis
Thanks for the update Lynn! Paul On Tuesday, January 8, 2013 7:06:32 AM UTC-8, Lynn Grogan wrote: Alright, the first 2012 video is up on Youtube: http://www.youtube.com/watch?v=Mfsnlbd-4xQ. Chris Ford on Functional Composition. Expect 1-2 more videos every day. Cheers! Lynn On

Re: Client-Server comunication with shoreleave

2013-01-08 Thread Francesco Agozzino
Hi Paul, I'd like to thank You for you precious help. We managed to use your library and we are going to publish the tutorial in the modern-cljs series: https://github.com/magomimmo/modern-cljs . Cheers, Francesco Il giorno lunedì 7 gennaio 2013 18:39:41 UTC+1, Paul deGrandis ha scritto: Hi

Re: Clojure Conj Videos

2013-01-08 Thread Marco Munizaga
This is perfect! I've been waiting forever to show this off to the world. Thanks! On Tuesday, January 8, 2013 10:06:32 AM UTC-5, Lynn Grogan wrote: Alright, the first 2012 video is up on Youtube: http://www.youtube.com/watch?v=Mfsnlbd-4xQ. Chris Ford on Functional Composition. Expect 1-2

Re: Convincing employer to go for Clojure

2013-01-08 Thread Softaddicts
Many businesses are short term driven. The paradigm change so called cost is a good way to spread fud. However, it may be hard to analyze this solely on specific language features versus what benefits you may get. Here, we had a mixed Java/JRuby/Clojure code base since we went in production in

Re: core.logic: datomic unification

2013-01-08 Thread Austin Haas
Ok, thanks, I'll try to get it to work with PersistentVector. I just started looking at core.logic's internals, and I'm still fairly new to Clojure, so everything is a little fuzzy. I took Sequential for granted, since that is referenced in the existing code. Thanks for the help. -austin

Re: Clojure Conj Videos

2013-01-08 Thread Andrew Cristina
Thanks, by the way, for setting up Clojure TV on youtube. The experience is much nicer than the old location (was it blip? I don't even remember now). On Tuesday, January 8, 2013 7:06:32 AM UTC-8, Lynn Grogan wrote: Alright, the first 2012 video is up on Youtube:

clojure for the java noob(while experienced functional programmers)?

2013-01-08 Thread bob zhang
Hi List, * * I am interested in learning clojure these days(mainly for the JVM), I am a long-term functional programmer(one of the maintainers of the ocaml compiler, designing my language Fan (a variant of ocaml which has the similar macro mechanism as clojure), quite familiar with common

Re: Convincing employer to go for Clojure

2013-01-08 Thread David Jacobs
Thanks for all of the feedback and suggestions, everyone. To clear one thing up, I'm working at an early-stage SF startup, so the alternatives are along the lines of Ruby/Python/Node, not Java. That said, I think these arguments are great -- I'll definitely share them with team. Cheers, David

[ANN] Typed Clojure 0.1.6, New Documentation Wiki

2013-01-08 Thread Ambrose Bonnaire-Sergeant
Hi, Typed Clojure 0.1.6 fixes some bugs, but perhaps more excitingly there is a new wiki for user documentation, screencasts and other goodies. https://github.com/frenchy64/typed-clojure https://github.com/frenchy64/typed-clojure/wiki Check the README for the changes. Enjoy! Ambrose -- You

Re: Convincing employer to go for Clojure

2013-01-08 Thread David Jacobs
With the* team, that is. (Couldn't let that stay uncorrected heh. I hear ya, Colin, re: sleep.) On Tuesday, January 8, 2013 10:35:07 AM UTC-8, David Jacobs wrote: Thanks for all of the feedback and suggestions, everyone. To clear one thing up, I'm working at an early-stage SF startup, so the

CLJS: Issue with requiring goog.storage.mechanism.HTML5LocalStorage (?)

2013-01-08 Thread Frank Siebenlist
Not sure what to make of this issue. Tried to compile/run shoreleave.browser.storage.localstorage module, but it gave me the following js-console error: ERROR - required goog.storage.mechanism.HTML5LocalStorage namespace never provided goog.require('goog.storage.mechanism.HTML5LocalStorage')

Re: clojure for the java noob(while experienced functional programmers)?

2013-01-08 Thread Marko Topolnik
On Tuesday, January 8, 2013 6:52:58 PM UTC+1, bob zhang wrote: Hi List, * * I am interested in learning clojure these days(mainly for the JVM), I am a long-term functional programmer(one of the maintainers of the ocaml compiler, designing my language Fan (a variant of ocaml which has the

Re: core.logic: datomic unification

2013-01-08 Thread David Nolen
I've updated the experimental core.logic Datomic support so that you can unify PersistentVector and Datoms again. In a real system I'd probably recommend providing your own tuple type that does not implement Sequential for doing unification with Datoms. David On Tue, Jan 8, 2013 at 11:55 AM,

Re: Unit testing

2013-01-08 Thread Sean Corfield
On Mon, Jan 7, 2013 at 11:50 PM, Eric MacAdie emaca...@gmail.com wrote: Is there a common unit testing framework for Clojure? I did some googling, put all the results were a couple of years old. As others have noted separately, Clojure has clojure.test built-in which is fairly straightforward

[ANN] 9th episode of modern-cljs on dom manipulation

2013-01-08 Thread Mimmo Cosenza
Hello everyone, I just published the 9th tutorial of modern-cljs series. It addresses DOM manipulation using both domina and hiccups libraries here is the link https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-09.md Hope it helps in your clojurescript programming. Mimmo --

Re: core.logic: datomic unification

2013-01-08 Thread Austin Haas
Thanks! I had just finished making similar changes. It was a good exercise and I'm glad to be able to compare code. A couple of questions: 1. Why is there no case for unifying a Datom with another Datom? 2. Why aren't multimethods used for dispatching to the appropriate unification

Re: CLJS: Issue with requiring goog.storage.mechanism.HTML5LocalStorage (?)

2013-01-08 Thread Paul deGrandis
Hi Frank, Two situations cause this error: - Sometimes paths to the third-party jar get jangled up. - Names/paths will sometimes change slightly between the dev releases and the final official releases of the Goog jar. (This is happening a lot with HTML5 stuff) In both cases you just have to

Re: core.logic: datomic unification

2013-01-08 Thread David Nolen
On Tue, Jan 8, 2013 at 3:29 PM, Austin Haas aus...@pettomato.com wrote: Thanks! I had just finished making similar changes. It was a good exercise and I'm glad to be able to compare code. A couple of questions: 1. Why is there no case for unifying a Datom with another Datom? Oversight. I

Re: CLJS: Issue with requiring goog.storage.mechanism.HTML5LocalStorage (?)

2013-01-08 Thread Frank Siebenlist
Thanks Paul for the hints - can't wait for your finished upgrade… -FrankS. On Jan 8, 2013, at 12:57 PM, Paul deGrandis paul.degran...@gmail.com wrote: Hi Frank, Two situations cause this error: - Sometimes paths to the third-party jar get jangled up. - Names/paths will sometimes

Re: Unit testing

2013-01-08 Thread Tony Pitluga
If you are coming from Ruby, there is speclj which has an RSpec feel. https://github.com/slagyr/speclj On Tue, Jan 8, 2013 at 1:57 PM, Sean Corfield seancorfi...@gmail.comwrote: On Mon, Jan 7, 2013 at 11:50 PM, Eric MacAdie emaca...@gmail.com wrote: Is there a common unit testing framework

Re: CLJS: Issue with requiring goog.storage.mechanism.HTML5LocalStorage (?)

2013-01-08 Thread Frank Siebenlist
A dependency on domina 1.0.0 pulled in a goog-jar-*.jar file which didn't work well with the google-closure-library-*.jar. Seems that goog-jar was providing similar access to the goog.* modules as the google-closure-library, but was hopelessly outdated… no html5 goog-files in goog-jar but they

What's the current status of Clojure-in-Clojure?

2013-01-08 Thread Thor
I think this would be a fun project to contribute to, but a few searches haven't led me to where the development is taking place. Is it just part of the main Clojure github project? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

deploying clojure/compojure web apps

2013-01-08 Thread Josh Kamau
Hi There ; I am new to clojure. My question is: Whats the common practice when it comes to deploying webapps built on compojure? running via lein ring server or creating a war file ? I would also like to know which is the best way to put load configuration files i.e using properties file... or

[ANN] Persistent disjoint-set forests for Clojure

2013-01-08 Thread Jordan Lewis
Hi all, I couldn't find any implementations of union-find[1] for Clojure, so I wrote one. It's a persistent rendition of the disjoint-set forest implementation by Tarjan, including the union-by-rank and path compression optimizations. It acts like a native Clojure collection, as well as

Re: symbolic protocols

2013-01-08 Thread Brandon Bloom
The defmulti would be closer to (defmulti mm first) because we need to dig into the list to get the first symbol. I don't think that there is anything stopping you from creating such a code walker now. Maybe you should built a proof of concept to demonstrate some use cases

Re: What's the current status of Clojure-in-Clojure?

2013-01-08 Thread Brandon Bloom
ClojureScript has the best chance of forming a base of Clojure-in-Clojure. I believe David Nolen would consider any patches that help decouple us from JavaScript. On Tuesday, January 8, 2013 3:44:16 PM UTC-8, Thor wrote: I think this would be a fun project to contribute to, but a few searches

Please help this newbie out!

2013-01-08 Thread Jacob Goodson
(let [frame (doto (JFrame.) (.setSize 100 100)) height (.getHeight a) width (.getWidth a) image (.createImage a b c)] image) Why does this return nil? Thank you! -- You received this message because you are subscribed to the Google Groups

Re: Please help this newbie out!

2013-01-08 Thread juan.facorro
I think the code you posted might not be the working code since a, b and c don't seem to exist in it. :P Check out the docs for the createImage(int, int)http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html#createImage(int, int) method: *Returns:**an off-screen drawable image,

Re: Please help this newbie out!

2013-01-08 Thread Jacob Goodson
Whoops! I changed the code to be more readable, those were my previous values...argh! I read the documentation over and over and never noticed that...sigh. Thank you for the response. On Tuesday, January 8, 2013 9:57:13 PM UTC-5, juan.facorro wrote: I think the code you posted might not

Re: Convincing employer to go for Clojure

2013-01-08 Thread Peter Mancini
Our company was recently formed in stages. The first stage did a lot of research and decided we needed strong NLP tools and felt that the right direction to go with the NLP was Python. I had spent 7 years doing NLP and advised them on that aspect and had spent a lot of time doing NLP in

Re: core.matrix proposal

2013-01-08 Thread Brandon Bloom
There's a bunch of useful operations that games animation systems perform frequently that are less common in other uses of linear algebra. For example: linear and spline interpolations. The DirectXMath library is worth studying: