Re: [ANN] Morph v0.1.0 Monads & friends: pure functions, less boilerplate

2013-02-07 Thread Marek Šrank
btw, have you seen https://github.com/jduey/protocol-monads ? Marek On Thursday, February 7, 2013 1:06:39 AM UTC+1, Armando Blancas wrote: > > Morph is a new implementation of monads based on protocols. It's intended > to provide the common patterns of error-handling, short-circuit sequencing,

Re: *read-eval* vulnerability

2013-01-30 Thread Marek Šrank
The most simple thing would be to change the default value of *read-eval* to false... Marek On Wednesday, January 30, 2013 8:02:54 AM UTC+1, Takahiro Hozumi wrote: > > As more and more projects are using edn format for config, > communication and etc, I think that default value of *read-eval*,

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Marek Šrank
On Saturday, January 19, 2013 8:56:28 PM UTC+1, Andy Fingerhut wrote: > > Irakli: > > I am curious about the possibility of auto-creating patches from git pull > requests, in case that would bridge the divide between people that would > prefer submitting pull requests, and Clojure screeners tha

Re: Numerical Clojure - discussion open!

2013-01-11 Thread Marek Šrank
The url is https://groups.google.com/forum/#!forum/numerical-clojure Marek On Friday, January 11, 2013 10:41:58 AM UTC+1, Shantanu Kumar wrote: > > Hi Mike, > > Could you please share the discussion group URL? > > Shantanu > > On Jan 11, 9:12 am, Mikera wrote: > > Hello everybody, > > > >

Re: list* not returning a list

2013-01-04 Thread Marek Šrank
I found CLJ-1060 [1] and added there a patch with Cons implementing IPersistentList and (apply list args) in one-argument case of list*. Marek [1] http://dev.clojure.org/jira/browse/CLJ-1060 On Wednesday, December 26, 2012 9:35:25 PM UTC+1, Marek Šrank wrote: > > function list* doesn&#x

Re: list* not returning a list

2012-12-27 Thread Marek Šrank
ure/clojurescript/commit/88b36c177ebd1bb49dbd874a9d13652fd1de4027 > > It looks like the only thing missing to make Cons implement > IPersistentList is IPersistentStack. Why not implement it? > > On Wednesday, December 26, 2012 4:13:38 PM UTC-6, Ben wrote: >> >> On Wed,

list* not returning a list

2012-12-26 Thread Marek Šrank
function list* doesn't return a list, because it uses 'cons' under the hood: (list? (list* 1 2 3 '())) ;=> false (class (list* 1 2 3 '())) ;=> clojure.lang.Cons ...however, its docstring says: "Creates a new list containing the items prepended to the rest, the last of which will be treated as a

Re: Confused about comp

2012-12-15 Thread Marek Šrank
...which should be also a lot faster :) On Saturday, December 15, 2012 5:44:01 PM UTC+1, Armando Blancas wrote: > > (comp (partial apply str) (partial filter #{\a})) >> > > Or, (comp join (partial filter #{\a})) > > -- You received this message because you are subscribed to the Google Groups "

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 Š

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Marek Šrank
On Friday, December 14, 2012 12:32:17 PM UTC+1, 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 > > In the process I als

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 (espec

Re: abysmal multicore performance, especially on AMD processors

2012-12-08 Thread Marek Šrank
> Just tried, my first foray into reducers, but I must not be understanding > something correctly: > > (time (r/map burn (doall (range 4 > > returns in less than a second on my macbook pro, whereas > > (time (doall (map burn (range 4 > > takes nearly a minute. > > This feels lik

Re: Proposed change to let-> syntax

2012-12-01 Thread Marek Šrank
+1 On Saturday, December 1, 2012 6:38:54 PM UTC+1, Andy Fingerhut wrote: > > I don't have suggestions for the best names for these new things, but one > good example in the doc string would go a long way to making it clearer > what they *do* and how they are intended to be used. The doc strings

Re: lein 2.x not working on Mac OS X 10.7.5 -- Exception in thread "main" java.lang.ClassNotFoundException:

2012-11-14 Thread Marek Šrank
Yep, leiningen now doesn't create -main function in the default template Marek. On Wednesday, November 14, 2012 8:40:20 PM UTC+1, Alec Ramsay wrote: > > My bad: I did not have (defn -main[] (...)) defined. > > > On Wednesday, November 14, 2012 7:42:20 AM UTC-8, Alec Ramsay wrote: >> >> Thanks

Re: lein 2.x not working on Mac OS X 10.7.5 -- Exception in thread "main" java.lang.ClassNotFoundException:

2012-11-13 Thread Marek Šrank
I also had the same issue some time ago and it was caused by incorrect using of dash ('-') vs. underscore ('_') in project/namespace name... I don't remember what concretely was wrong, but you at least can try all possibilities Also, are you using gen-class ? Marek. On Wednesday, November

Re: pattern-matching in Closure?

2012-11-04 Thread Marek Šrank
At the wiki: https://github.com/clojure/core.match/wiki :-) Marek. On Sunday, November 4, 2012 11:03:40 PM UTC+1, Vladimir Tsichevski wrote: > > Hi Moritz, > > this looks promising. Do you know where can I get any > documentation/examples for this module? > > Regards, > Vladimir > > On Monday, N

Re: Why is a non-transient `into` faster than the built-in one?

2012-11-04 Thread Marek Šrank
These are my results using (dotimes (time (dotimes ...))) combo to get consistent results: - on sets: (dotimes [i 10] (time (dotimes [j 100] (into #{} (range 1e4) "Elapsed time: 388.595226 msecs" "Elapsed time: 406.666801 msecs" "Elapsed time: 421.559753 msecs" "Elapsed time: 444.719263 mse

Re: leiningen: RuntimeException: Unable to resolve symbol: doc in this context

2012-10-27 Thread Marek Šrank
Oh yes, I've found the commit https://github.com/clojure/clojure/commit/728972b026a323fc941a5d560b81d37453dc6cad . I should look at the commits first Marek. On Saturday, October 27, 2012 10:26:22 PM UTC+2, Marek Šrank wrote: > > Please ignore that github link. I some

Re: leiningen: RuntimeException: Unable to resolve symbol: doc in this context

2012-10-27 Thread Marek Šrank
Please ignore that github link. I somehow got the feeling that it's about a bug in leiningen (really don't know why :), but now I see that it's (probably) totally unrelated :D Marek On Saturday, October 27, 2012 10:20:34 PM UTC+2, Marek Šrank wrote: > > When using [org.c

leiningen: RuntimeException: Unable to resolve symbol: doc in this context

2012-10-27 Thread Marek Šrank
When using [org.clojure/clojure "1.5.0-beta1"] in my project.clj, calling: (doc function) gives me this exception: CompilerException java.lang.RuntimeException: Unable to resolve symbol: doc in this context, compiling:(NO_SOURCE_PATH:1:1) And similarly with find-doc, source, javadoc and clojure