Re: Need ideas for carving project into namespaces

2012-12-14 Thread Mark Engelberg
On Thu, Dec 13, 2012 at 11:43 PM, Meikel Brandmeyer (kotarak) m...@kotka.dewrote: You can still use load to split the implementations accross different files to keep things organised if that is your main concern. In the early 1.0 days of Clojure, I experimented with splitting code across

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Ilshad Khabibullin
Leo, yes, here: https://itunes.apple.com/ru/podcast/michael-fogus-fertile-ground/id275488598?i=126465057mt=2 On 14.12.2012, at 3:59, Leonardo Borges leonardoborges...@gmail.com wrote: Are these videos available elsewhere? Yes, in iTunes podcasts. Really? I tried finding them in

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Ilshad Khabibullin
I'm sorry, Russian link. English is: https://itunes.apple.com/en/podcast/michael-fogus-fertile-ground/id275488598?i=126465057mt=2 On 14.12.2012, at 12:19, Ilshad Khabibullin astoon@gmail.com wrote: Leo, yes, here:

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Leonardo Borges
Ilshad, Thanks a lot! Cheers, Leonardo Borges www.leonardoborges.com On Fri, Dec 14, 2012 at 7:21 PM, Ilshad Khabibullin astoon@gmail.comwrote: I'm sorry, Russian link. English is: https://itunes.apple.com/en/podcast/michael-fogus-fertile-ground/id275488598?i=126465057mt=2 On

Re: Need ideas for carving project into namespaces

2012-12-14 Thread Meikel Brandmeyer (kotarak)
Hi, Am Freitag, 14. Dezember 2012 09:04:32 UTC+1 schrieb puzzler: Has the situation improved? (Specifically, are you speaking from experience with splitting files up in this way, or is this just a theoretical idea? If you have done this and had a good experience, what tools were you

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Marco Dalla Stella
Hi, what about put a torrent somewhere? Unfortunately Not everybody has iTunes... Cheers, 2012/12/14 Leonardo Borges leonardoborges...@gmail.com: Ilshad, Thanks a lot! Cheers, Leonardo Borges www.leonardoborges.com On Fri, Dec 14, 2012 at 7:21 PM, Ilshad Khabibullin

Re: STM - a request for war stories

2012-12-14 Thread kovas boguta
On Fri, Dec 14, 2012 at 12:55 AM, Paul Butcher p...@paulbutcher.com wrote: On 14 Dec 2012, at 00:30, kovas boguta kovas.bog...@gmail.com wrote: If you can't incorporate novelty without cloning the entire datastructure, thats not that useful. I'm not 100% sure what you mean by this - can you

Re: clojure.string/capitalize API

2012-12-14 Thread Pierre Allix
I agree that with regards to 'least astonishment' the core fn should capitalize all characters. This is what I'd expect from a fn called 'capitalize'. There is already an upper-case function, thus capitalize should either capitalize the first character or all characters who begin a

Re: Need ideas for carving project into namespaces

2012-12-14 Thread Timo Mihaljov
On Thursday, December 13, 2012 11:43:48 PM UTC+2, puzzler wrote: On Thu, Dec 13, 2012 at 1:31 PM, Timo Mihaljov ti...@mihaljov.infojavascript: wrote: (ns example.patron The patron doesn't have an artistic vision (that's the artist's job), nor does it know how to talk to a graphics

Re: Strange behaviour: nested def in proxy method body

2012-12-14 Thread kristianlm
Ah, thanks for your reply, both of you! That's why I got confused: it seemed to work when I didn't use proxy. I'll stop using nested defs for now. But I will miss them: they allow me to evaluate them top-level in the REPL (using C-x C-e in emacs) and play around with them. K. On Thursday,

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Marek Šrank
While they are not on http://blip.tv/clojure , I was able to google them: https://google.com/search?q=site:blip.tv/clojure - all the links are here: http://is.gd/clojure_blip_videos In the process I also found the rss channel http://blip.tv/clojure/rss which has direct links to the files

Re: big atoms (was Re: STM - a request for war stories)

2012-12-14 Thread Marko Topolnik
In the epic thread about the STM between Rich and Cliff Click[1] the main argument against the STM was that it didn't help solve the problem of where to place guards around the data. From one of Cliff's arguments: In a trivial example I can say �go up one call level and atomic

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Alex Grigorovich
On Friday, December 14, 2012 6:32:17 PM UTC+7, Marek Šrank wrote: While they are not on http://blip.tv/clojure , I was able to google them: https://google.com/search?q=site:blip.tv/clojure - all the links are here: http://is.gd/clojure_blip_videos Yeah, blip seems to gradually bring the

Re: Slime and heroku setup question

2012-12-14 Thread Jonathon McKitrick
Thanks for pointing me to Vagrant. That looks like a great idea, especially since I develop primarily on a mac. On Thursday, December 13, 2012 6:47:46 PM UTC-5, Phil Hagelberg wrote: So anything that's a heroku add-on will translate to a lein profile entry, correct? No, add-ons and

Re: (#({:a %}) :b)

2012-12-14 Thread Michael Fogus
The limitation was only on - but I think that is due for a fix in the next version. On Thu, Dec 13, 2012 at 5:48 PM, JvJ kfjwhee...@gmail.com wrote: Clever, but I always thought - had to take more than one parameter. Maybe that's only for - On Thursday, 13 December 2012 13:35:33 UTC-5,

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Marek Šrank
So I downloaded them to make a backup, but I found that I have only 10GB/30days upload limit on my current academic internet network, so It'll take time till I upload them all :-/ Then I'll post the download links, just in a case the Blip TV will delete them in a future... Marek On Friday,

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Marek Šrank
Btw, seems that Rich won't allow sharing his videos by ourselves: https://twitter.com/richhickey/status/279414741582114817 , but he's going to find an alternate location where to put them, so it should be all okay then :) Marek. On Friday, December 14, 2012 2:20:09 PM UTC+1, Marek Šrank

Re: STM - a request for war stories

2012-12-14 Thread Rich Hickey
On Dec 14, 2012, at 12:55 AM, Paul Butcher wrote: On 14 Dec 2012, at 00:30, kovas boguta kovas.bog...@gmail.com wrote: My recommendation is either Persistent Datastructures or Database as a Value Interesting. I'd be interested to hear others thoughts on this. In particular Rich's

[ANN] tools.namespace 0.2.2 and Flow 0.1.0

2012-12-14 Thread Stuart Sierra
tools.namespace (a Clojure contrib library): Tools for managing reloading namespaces. Changelog more info: https://github.com/clojure/tools.namespace Leiningen dependency: [org.clojure/tools.namespace 0.2.2] Flow (non-contrib, EPL): Building up computations out of dependency

Re: Help: instance? always false for record type (in tomcat but not in jetty)

2012-12-14 Thread CGAT
For others who might have this problem, I've reduced this to the following: (defrecord A ...) (instance? A (A. ...)) ;= true (instance? A (map-A {...})) ;= can be false (e.g., in a tomcat servlet) The map-A constructor uses the create method, and as Chris said earlier, this seems to have to

Re: Injecting new clojure.core functions into third-party libraries

2012-12-14 Thread Stuart Sierra
`in-ns` is special. To create Vars in another namespace, use `intern` instead of `defn`. -S -- 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 -

Re: Who's using Clojure?

2012-12-14 Thread Jeff Heon
I'm asked to log in now to access this page. On Thursday, April 28, 2011 11:03:53 PM UTC-4, Christopher Redinger wrote: We've got a good start to the list going http://dev.clojure.org/display/community/Clojure+Success+Stories Any more we should get listed? -- You received this message

Re: STM - a request for war stories

2012-12-14 Thread Paul Butcher
On 14 Dec 2012, at 13:52, Rich Hickey richhic...@gmail.com wrote: On Dec 14, 2012, at 12:55 AM, Paul Butcher wrote: Rich - what is the soundbite description of Clojure's concurrency model you're happiest with? Ah, soundbites, the foundation of modern programmer education :) Maybe I should

Re: STM - a request for war stories

2012-12-14 Thread Marko Topolnik
When you choose an atom you are effectively saying that nobody else will ever need to ensure consistency between this identity and another. This is fine if you're writing an application, where you can stake a claim and create an atom for global state, but what when a library you use does

Flow Q (Re: [ANN] tools.namespace 0.2.2 and Flow 0.1.0)

2012-12-14 Thread Frank Siebenlist
Does Flow work with ClojureScript? It feels like expressing and using those Flows could solve similar call-back-hell problem in the single-threaded asynchronous javascript world, and could be an alternative to promises (?). (hopefully I understood the functionality well after a quick scan and

[ANN] clojure-sec

2012-12-14 Thread Chas Emerick
Some recent discussions related to my development of Friend have prompted me to create a new group: https://groups.google.com/group/clojure-sec Dedicated to discussing security issues affecting those building applications with Clojure and its variants. I'm sure many of us are building

Re: [ANN] clojure-sec

2012-12-14 Thread Jonathan Irving
Neat! I realize this isn't exclusively web-oriented, but given Friend, I expect that will dominate. So, I give you OWASP: https://www.owasp.org/index.php/Main_Page There is a lot of documented and codified experience in OWASP that may be fruitfully extracted and hopefully contributed back

Re: Need ideas for carving project into namespaces

2012-12-14 Thread Jack Moffitt
I've done this for a project in Emacs, and Slime needed to get slightly confused sometimes. As I recall the buffer names got out of sync with the filenames somehow or something like that. Has anyone gotten this working smoothly with Slime or nrepl-el? It works well even with the minor quirks.

core/group-by with optional value-mapper function

2012-12-14 Thread Daniel Dinnyes
Hi, I would like to suggest an enhancement to the clojure.core/group-by function. The idea came from using Enumerable.GroupBy http://msdn.microsoft.com/en-us/library/bb534304.aspxextension method in .NET quite much. It is really handy to have an optional value-mapper function which

Re: Flow Q (Re: [ANN] tools.namespace 0.2.2 and Flow 0.1.0)

2012-12-14 Thread Stuart Sierra
FrankS wrote: Does Flow work with ClojureScript? I haven't tried. In principle, there's no reason why it couldn't. It uses macros, so it would require some porting. It feels like expressing and using those Flows could solve similar call-back-hell problem in the single-threaded asynchronous

Re: Slime and heroku setup question

2012-12-14 Thread Phil Hagelberg
On Fri, Dec 14, 2012 at 4:23 AM, Jonathon McKitrick jmckitr...@gmail.com wrote: Ah, right. Add-ons add capabilities, and lein plugins interface with them. My mistake. No, Leiningen plugins have nothing to do with Heroku add-ons. Some add-ons (databases, etc) require dependencies for your app

Re: Countdown numbers game in clojure.core.logic

2012-12-14 Thread David Nolen
Looks nice and short to me. Again I don't have the time to ponder optimizations so I'm curious myself how it could be made faster. David On Thu, Dec 13, 2012 at 9:22 PM, Adam Clements adam.cleme...@gmail.comwrote: Hi, so I chose this problem as my first foray into core.logic too My solution

Re: abysmal multicore performance, especially on AMD processors

2012-12-14 Thread Herwig Hochleitner
I've created a test harness for this as a leiningen plugin: https://github.com/bendlas/lein-partest You can just put :plugins [[net.bendlas/lein-partest 0.1.0]] into your project and run lein partest your.ns/testfn 6 to run 6 threads/processes in parallel The plugin then runs the

Re: Slime and heroku setup question

2012-12-14 Thread Jonathon McKitrick
I confused the lein-noir plugin in profiles.clj with noir in my project.clj. Okay, I think I got it now On Friday, December 14, 2012 3:01:43 PM UTC-5, Phil Hagelberg wrote: On Fri, Dec 14, 2012 at 4:23 AM, Jonathon McKitrick jmcki...@gmail.com javascript: wrote: Ah, right. Add-ons

clojure.core/format generalization

2012-12-14 Thread Alexander Semenov
Hi, folks. I need a generalized version of clojure.core/format function, i.e. function that accepts a pattern like -%s-%s-%s-, two functions and format args. It most return a 'formatted' seq. The first supplied function is called for each non-special character from the pattern and returns its

Re: tuple spaces (was Re: STM - a request for war stories)

2012-12-14 Thread Patrick Logan
I've used javaspaces a fair bit in high-flexibility situations, although not in a truly high-scale situation. I am aware of truly high-scale implementations. Just be careful extrapolating from one case to another. Contact the apache river folks for detailed reports of javaspaces in

Re: STM - a request for war stories

2012-12-14 Thread Patrick Logan
Contact the apache river folks for details. There have been several published accounts, but it is definitely the case that many jini/javaspaces users felt it was in their own interest not to draw attention to this technology as it was determined to be a competitive advantage.

Re: How am I using partial-map wrong in core.logic?

2012-12-14 Thread David Nolen
Yeah that's not how partial maps work are intended to be used, though it's not very clear - Philip Potter actually brought up a good criticism of the behavior of partial maps at ClojureX in London when I gave a quick demonstration - you lose transitivity. I'm inclined to push the functionality of

Re: How am I using partial-map wrong in core.logic?

2012-12-14 Thread David Nolen
Oh to answer your question - expecting two separate unifications to change a var defeats the spirit of logic programming - you're back to something stateful. That said the framework is probably laid well enough to implement CLP(Map). I don't have any time to do such a thing but I can explain how

Import many classes with the same name

2012-12-14 Thread Christian Sperandio
Hi, I'm writing a wrapper to use JavaFX with Clojure. But I hava an issue. I called a class javafx.clojure.Application, then in a source code I wrote: (ns javafx-clj.wrapper (:import javafx.clojure.Application) (:import javafx.application.Application javafx.application.Platform)) ... But

Re: Import many classes with the same name

2012-12-14 Thread juan.facorro
One would have the same problem importing those classes in Java code. It's just not possible to import two classes with the same name, because there is no way to tell which one you are referring to when you use the class' name only (e.g. (Application.)). However it's possible to just import

Re: Import many classes with the same name

2012-12-14 Thread Christian Sperandio
I just tried but I get the same error. Le samedi 15 décembre 2012 03:13:14 UTC+1, juan.facorro a écrit : One would have the same problem importing those classes in Java code. It's just not possible to import two classes with the same name, because there is no way to tell which one you are

Re: abysmal multicore performance, especially on AMD processors

2012-12-14 Thread cameron
Thanks Herwig, I used your plugin with the following 2 burn variants: (defn burn-slow [ _] (count (last (take 1000 (iterate #(reduce conj '() %) (range 1)) (defn burn-fast [ _] (count (last (take 1000 (iterate #(reduce conj* (list nil) %) (range 1)) Where conj* is just a

Clojure Full Syntactical Reference

2012-12-14 Thread lincoln
I'm learning Clojure, and I learn best by jumping in. I'm interested in using Noir. Noir has a full API reference, so when I'm reading other people's Noir code, I can just look up the exact function and see what it does. I can't find a similar thing for Clojure. I'm looking through other

Re: Clojure Full Syntactical Reference

2012-12-14 Thread Andy Fingerhut
I would recommend checking out http://clojuredocs.org If you use Leiningen version 2, you can get similar output with these two commands: lein repl user= (doc first) user= (cdoc first) doc gives the doc string built into Clojure. cdoc gives the examples from ClojureDocs.org for that symbol,

Re: abysmal multicore performance, especially on AMD processors

2012-12-14 Thread cameron
I'd be interested in seeing your GP system. The one we're using evolves Push programs and I suspect that whatever's triggering this problem with multicore utilization is stemming from something in the inner loop of my Push interpreter (https://github.com/lspector/Clojush)... but I don't

Confused about comp

2012-12-14 Thread Peter West
I want to compose and apply a function as follows: A (= (function to extract \a abBcdAa) aa) I can filter the argument using filter #(= \a %) string. If I (def s (filter #(= \a %) abBcdAa)) I get (\a \a\). If I (str s) I get clojure.lang.LazySeq@fe1 If I (apply str s) i get aa But what I am

Re: Confused about comp

2012-12-14 Thread Mark Engelberg
(comp (partial apply str) (partial filter #{\a})) -- 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

Re: Confused about comp

2012-12-14 Thread Mark Engelberg
(I took the liberty of replacing #(= \a %) with #{\a}) On Fri, Dec 14, 2012 at 11:37 PM, Mark Engelberg mark.engelb...@gmail.comwrote: (comp (partial apply str) (partial filter #{\a})) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this