into-array without the extra seq

2016-05-11 Thread László Török
Hi, The other day I was trying to do an (into (long-array 0) xform some-vec) which doesn't work, then I realized there is *into-array* for that, however, it turns everything into a *seq* first. Is there any plans for extending *into* to hand primitive array, or rewriting *into-array* to do awa

core.match: order of patterns

2015-01-29 Thread László Török
Hi, I started experimenting with core.match. One thing that isn't obvious to me, how it should work when matching more than one pattern. In the following example, the expression returns 3 or 4 depending on which pattern comes first: (require '[clojure.core.match :as cm]) (cm/match [:a true fal

Re: CIDER 0.8.2 released!

2014-12-21 Thread László Török
options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cloj

Re: futures + refs

2014-12-11 Thread László Török
sts there might be a problem somewhere. I figured > trying to optimize my code couldn't hurt, though. > > On Thu, Dec 11, 2014 at 11:43 AM, László Török wrote: > >> Hi Sam, >> >> have you tried putting the incoming (hashtag,tweet) tuples into a queue >> and have a

Re: futures + refs

2014-12-11 Thread László Török
ceived this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- László

Re: clojure.edn won't accept clojure.java.io/reader? How to work around this and why isn't this documented anywhere?

2014-12-08 Thread László Török
o unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group.

Re: assert inside an if-let

2014-11-19 Thread László Török
;> >> IMHO it is a bug. >> >> If anyone is of a different opinion please share. >> >> Thanks, >> >> -- >> László Török >> >> -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To

assert inside an if-let

2014-11-19 Thread László Török
Hi, the following form doesn't compile and I see no reason why it shouldn't: (if-let [a "a"] a (assert a)) IMHO it is a bug. If anyone is of a different opinion please share. Thanks, -- László Török -- You received this message because you are subscribed to the Go

Re: Idiomatic way to return a single value from an async function

2014-11-11 Thread László Török
ou received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

Re: On Testing

2014-10-31 Thread László Török
o the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- László Török Checkout justonemorepoi

Re: Transducers: Why left to right rather than right to left?

2014-10-30 Thread László Török
o unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > T

Re: Expanding The Use Of Transducers To Atoms?

2014-10-27 Thread László Török
+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop recei

Re: [ANN] Async Ring 0.1.0

2014-09-09 Thread László Török
from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received thi

Re: [ANN] Prone: Exception/debugging middleware

2014-09-01 Thread László Török
se you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> >

Re: [ANN] core.async (and more) video tutorials

2014-05-27 Thread László Török
Hi, > Btw When I click on the download video button, nothing gets downloaded. > Tried on Firefox/Chrome - Mac. Is that a known issue? > Same here. I could only download the videos I paid for, but not the free one. > Also, I had sent you this email via support on that site but didn't get > any r

Re: Question: defrecord accessor efficiency without protocols

2014-05-16 Thread László Török
nsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- László Török Checkout Lollyrewards.com <http://www.lollyrewards.com> - Giving credit, getting credit. Follow us on Twitter @lollyrewards <https://twitter.com/lollyrewards> Stay up to date

Re: data associated with a particular state

2014-03-25 Thread László Török
AFAIK the only thing that records do not support compared to StructMaps is namespaced keyword lookup, i.e. (:some-ns/a-key a-record). If you do not need this, you should consider using records. Las On Tue, Mar 25, 2014 at 4:52 PM, Moritz Ulrich wrote: > The data type created by defstruct isn't

Re: STM and persistent data structures performance on mutli-core archs

2014-03-20 Thread László Török
, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+uns

Re: Email delivery libs not working

2014-02-24 Thread László Török
> 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 fr

Re: (go (loop [ ..] (try ... (catch ..)))) won't compile

2014-01-22 Thread László Török
)) > > - James > > > On 22 January 2014 11:05, László Török wrote: > >> Hi, >> >> I have a processing loop in a go block and I wanted to make sure that the >> processing continue with the next iteration if an exception is thrown. >> >> The fol

Re: (go (loop [ ..] (try ... (catch ..)))) won't compile

2014-01-22 Thread László Török
Sorry, too eager too soon. (loop (try ..) ) obviously doesn't work :) 2014/1/22 László Török > Hi, > > I have a processing loop in a go block and I wanted to make sure that the > processing continue with the next iteration if an exception is thrown. > > The following

(go (loop [ ..] (try ... (catch ..)))) won't compile

2014-01-22 Thread László Török
7;t think of an alternative right now, any ideas? -- László Török -- -- 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 pati

Re: contains? and transient set

2013-12-04 Thread László Török
nsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving em

Re: contains? and transient set

2013-12-04 Thread László Török
ups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more option

Re: ANN 2 years of ClojureWerkz

2013-11-20 Thread László Török
Hi Michael, outstanding work, thanks for taking the lead on this effort and many thanks to all the contributors. Las Sent from my phone On Nov 20, 2013 12:13 AM, "Bruce Durling" wrote: > Michael, > > Congrats and keep on going. I love using your libraries. > > cheers, > Bruce > > On Tue, Nov 1

Re: abysmal multicore performance, especially on AMD processors

2013-11-06 Thread László Török
age because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Lás

Re: always function?

2013-08-25 Thread László Török
an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- László Török -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: [ANN] Carmine (Redis client) v2, Nippy (serializer) v2 are out

2013-07-22 Thread László Török
Peter this is wonderful, kudos! I'll give it a spin tonight. Las Sent from my phone On Jul 22, 2013 7:04 PM, "Peter Taoussanis" wrote: > Hey all, quick update: just pushed *Carmine v2.0.0* and *Nippy v2.0.0* to > Clojars. > > Carmine: GitHub | > Changel

Re: Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-24 Thread László Török
Thanks Kevin, it's all clear now. Sent from my phone On Jun 24, 2013 6:38 PM, "Kevin Downey" wrote: > On 6/24/13 7:53 AM, Jörg Winter wrote: > > Hi Stuart, > > > > ok, so my question is actually more about how to create some clojure > Runtime, filling it with additional namespaces, i.e. more tha

Re: clojure 1.5 cheatsheet?

2013-06-24 Thread László Török
Andy > > > On Mon, Jun 24, 2013 at 3:18 AM, terjesb wrote: > >> http://jafingerhut.github.io >> >> kl. 11:38:41 UTC+2 mandag 24. juni 2013 skrev Las følgende: >> >>> Hi, >>> >>> is there a clojure 1.5 cheatsheet somewhere, the last I could

clojure 1.5 cheatsheet?

2013-06-24 Thread László Török
Hi, is there a clojure 1.5 cheatsheet somewhere, the last I could find was 1.4. Thanks, -- László Török -- -- 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 post

Re: multimethods for non constant values?

2013-06-23 Thread László Török
p and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- László Török -- -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-23 Thread László Török
Can you please provide an example for such a usw cause? Thanks Las On Jun 23, 2013 1:38 PM, "Stuart Halloway" wrote: > Hi Joerg, > > I am not sure I understand your question. The API class is for > intraprocess communication, not interprocess. > > All API does is provide a public, supported ent

Re: Why does peek on a seq of vector fail?

2013-06-20 Thread László Török
> clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop re

Re: cannot import namespace reducers

2013-06-16 Thread László Török
rs.clj:56:21) > > A second input of > (require '[clojure.core.reducers :as r]) > > generates the message: > Exception namespace 'clojure.core.reducers' not found > clojure.core/load-lib (core.clj:5380) > > Johannes > > Am 16.06.2013 um 23:16 schr

Re: cannot import namespace reducers

2013-06-16 Thread László Török
#x27; not found > clojure.core/load-lib (core.clj:5380) > > any further hints? > > Johannes > Am 16.06.2013 um 22:43 schrieb Johannes Brauer > : > > thank you, Las, for the quick tip. I will give Java 7 a try. I hope > there are no problems on Mac OS 1

Re: cannot import namespace reducers

2013-06-16 Thread László Török
I'm on Java7 and OS X 10.8.4, no problem over here. :) 2013/6/16 Johannes Brauer > thank you, Las, for the quick tip. I will give Java 7 a try. I hope there > are no problems on Mac OS 10.8.4 > > Johannes > Am 16.06.2013 um 22:15 schrieb László Török > : > > .

Re: cannot import namespace reducers

2013-06-16 Thread László Török
legroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an

Re: cannot import namespace reducers

2013-06-16 Thread László Török
.. sorry, gmail's new annoying keyboard shortcut b) include the dependency to the forkjoin library [1] that is not included in Java6 Las [1] http://mavenhub.com/mvn/central/org.coconut.forkjoin/jsr166y/070108 2013/6/16 László Török > Hi, > > there are two ways to deal with th

Re: cannot import namespace reducers

2013-06-16 Thread László Török
s message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. &g

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread László Török
>>> Groups "Clojure" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to clojure+u...@**googlegroups.com. >>>> >>>> For more options, visit >>>> https://groups.

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread László Török
Hi, I think ac-nrepl doesn't play nice with ritz, try disabling it. Las Sent from my phone On Jun 3, 2013 5:28 PM, "Novi Border" wrote: > Hi > > I am currently developing clojure in sublime text, and have tried eclipse > before, but I would like to switch to emacs for all the goodies it brings

Re: Looking for Clojure freelancers

2013-06-03 Thread László Török
Damn Gmail, sorry this was not meant for the list. 2013/6/3 László Török > Hi Peter, > > I might be interested. I am a PhD candidate in Munich, where are you based? > > Regards, > > Laszlo Török > > > 2013/6/3 Peter Taoussanis > >> Hi all, >> &g

Re: Looking for Clojure freelancers

2013-06-03 Thread László Török
- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/o

Re: [ANN] Leiningen 2.2.0 released

2013-05-29 Thread László Török
This amazing! Thanks everyone who contributed! Sent from my phone On May 29, 2013 7:37 PM, "Phil Hagelberg" wrote: > > > Greetings fellow humans. > > I'm happy to announce the release of Leiningen 2.2.0. Notable new > features include support for -javaagent, (used for certain VM-level > instrumen

Re: [ANN] http-kit 2.0.0 released

2013-05-03 Thread László Török
ou received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_

Re: [ANN] Prismatic's Plumbing/Graph 0.1.0 is released with huge performance improvements

2013-05-02 Thread László Török
ogle > 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 email to > clojure+unsubscr...@googlegroups.co

Re: [ANN] Prismatic's Plumbing/Graph 0.1.0 is released with huge performance improvements

2013-05-02 Thread László Török
Hi, First all congratulations to the new release! Looking at the change log, I'm not sure I understand the following: "Explicit output-schema metadata on a fnk is taken as gold, rather than being merged with explicit data by analyzing the fnk body, and must be explicit rather than a spec" Thx Se

Re: Reducers newbie question

2013-04-26 Thread László Török
Hi, Not sure what you are trying to do, but xxx is a lazy seq, thus it can only be consumed sequentially and fold falls back to reduce You need a vector. Las Sent from my phone On Apr 26, 2013 4:46 PM, "Stanislav Yurin" wrote: > I was assuming that following code will fold in parallel, but it

Re: Prismatic Plumbing and Graph Open-Source Release

2013-02-07 Thread László Török
because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- László Tö

Re: Prismatic Plumbing and Graph Open-Source Release

2013-02-06 Thread László Török
or more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to c

Re: Prismatic Plumbing and Graph Open-Source Release

2013-01-29 Thread László Török
Graph was THE library I've been waiting for to be open sourced! Yay, thanks! Las Sent from my phone On Jan 29, 2013 7:57 PM, "Aria Haghighi" wrote: > Hey all, > > Prismatic has open-sourced our Plumbing and Graph library on > github. > Jason Wolfe gave

Re: is intellij idea a good ide for clojure development?

2013-01-29 Thread László Török
+1 emacs live Id seriously discourage any Emacs newbie trying vanilla Emacs for Clojure development. Here, I'd also like to express my greatest appreciation to the creators for publishing and maintaining it. Las Sent from my phone On Jan 29, 2013 7:48 PM, "Jay Fields" wrote: > I use it for Clo

Re: Is there a better way to update a map atom?

2013-01-21 Thread László Török
from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- László Török -- You rece

Re: Little namespace question

2012-12-17 Thread László Török
I wanted! > > > On Mon, Dec 17, 2012 at 10:51 PM, László Török > > > wrote: > >> Try (in-ns 'user-ns) >> >> Las >> On Dec 18, 2012 7:50 AM, "Alan Shaw" > 'cvml', 'noden...@gmail.com');>> >> wrote: >> &g

Re: Little namespace question

2012-12-17 Thread László Török
Try (in-ns 'user-ns) Las On Dec 18, 2012 7:50 AM, "Alan Shaw" wrote: > user=> *ns* > # > user=> (def user-ns *ns*) > #'user/user-ns > user=> user-ns > # > user=> (in-ns user-ns) > ClassCastException clojure.lang.Namespace cannot be cast to > clojure.lang.Symbol clojure.lang.RT$1.invoke (RT.java

Re: core/group-by with optional value-mapper function

2012-12-17 Thread László Török
;Rex"]} >>>> >>>> (group-by :type #(.toUpperCase (:name %)) animals) ; hell yeah! >>>> > {:cow ["BETSY"], :cat ["MURMUR" "ROSIE" "ALF"], :dog ["LESSIE" >>>> "DINGO" "REX"]} >>

Re: Meaning of "="

2012-12-11 Thread László Török
Great paper btw! On Dec 12, 2012 12:42 AM, "Phil Hagelberg" wrote: > On Tue, Dec 11, 2012 at 3:32 PM, Raoul Duke wrote: > > one of the things which seem to be true but nowhere completely > > successfully fleshed out is the fact that "equality" is very > > subjective. there can and should be many

Re: Meaning of "="

2012-12-11 Thread László Török
Hi, Equality is never subjective. There maybe different equality relations defined. In most cases (integer) one os well served by intuition. In other cases (clojure's =) the definition may not be intuitive, but never subjective. On Dec 12, 2012 12:32 AM, "Raoul Duke" wrote: > one of the things w

Re: group-by vs. reducers?

2012-12-07 Thread László Török
>>> (fn group-by-reducef [keyfn ret x] >>>> (let [k (keyfn x)] >>>> (assoc ret k (conj (get ret k []) x)))) >>>> >>>> where keyfn is provided by a partial function application. >>>> >>>> fold needs a combi

Re: Easy update function for nested structures

2012-12-03 Thread László Török
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 email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.g

group-by vs. reducers?

2012-12-03 Thread László Török
p://clojure.com/blog/2012/05/08/reducers-a-library-and-model-for-collection-processing.html [3] http://clojure.com/blog/2012/05/15/anatomy-of-reducer.html -- László Török -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Object identity and with-meta

2012-11-23 Thread László Török
r first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- László Török -- You received this message because you are subscribed to the Google Groups &qu

Re: ease of use

2012-11-22 Thread László Török
subscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- László Török -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: macroexpand-1 for "clojurescript" macros

2012-11-21 Thread László Török
damn, stupid mistake of mine, thanks! 2012/11/21 Herwig Hochleitner > Try quoting the code you want to macro expand, like: (macroexpand-1 > '(cljs.core/gen-apply-to)) > > Otherwise clojure would try to macroexpand the result of (gen-apply-to) > Am 21.11.2012 13:07 s

macroexpand-1 for "clojurescript" macros

2012-11-21 Thread László Török
) CompilerException java.lang.RuntimeException: Unable to resolve symbol: *unchecked-if* in this context, compiling:(NO_SOURCE_PATH:5) Btw, if I don't require 'cljs.compiler first, I get CompilerException java.lang.ClassNotFoundException: cljs.compiler, compiling:(cljs/core.clj:41

Will the upcoming Clojure 1.5 stuff be available in Clojurescript too?

2012-11-20 Thread László Török
was wondering whether that will become available in Clojurescript as soon as 1.5 is baked. Las -- László Török -- 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 post

Re: Are agents suitable for c10k concurrency?

2012-11-17 Thread László Török
Hi I would only add, that with Clojure 1.5 you can supply your own Executor using (send-via ), the default threadpools are not hard-wired anymore. See https://github.com/clojure/clojure/commit/f5f4faf95051f794c9bfa0315e4457b600c84cef#src/jvm/clojure/lang/Agent.javafor further details. Las On No

Re: Proposed change to let-> syntax

2012-11-16 Thread László Török
from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure"

Re: Coding Standard - ns usage

2012-11-08 Thread László Török
Hi, I thought :require with :refer superseded :use :only. Or am I mistaken? Las On Nov 8, 2012 6:03 PM, "Jim - FooBar();" wrote: > I'm pretty sure this is still valid > :) > > Jim > > On 08/11/12 16:57, David McNeil wrote: > >> I notice the following item at http://dev.clojure.org/** >> displa

Re: Rich's "The Value of Values" and REST

2012-08-15 Thread László Török
ups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-07-06 Thread László Török
://groups.google.com/**group**/clojure?hl=en<http://groups.google.com/group/clojure?hl=en> >>> >> >> -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googleg

Re: clojure.java.jdbc not handling datetime correctly?

2012-07-05 Thread László Török
Disregard my email, apparently java.sql.Date maps to SQL Date, time value is truncated. L 2012/7/6 László Török > Hi, > > I can't get c.j.jdbc to save a java.sql.Date correctly, as it only saves > the date part not the time. > > Reproducible on mysql 5.1: > > CRE

clojure.java.jdbc not handling datetime correctly?

2012-07-05 Thread László Török
, in the database I get: 2012-05-26 00:00:00 instead of the expected 2012-05-26T10:48:27 Is this a bug? Thanks -- László Török -- 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

Re: 'last' on empty collections

2012-07-01 Thread László Török
Returning nil is consistent across seq functions and play well with when, if-let, when-let, just to name a few... On Jul 2, 2012 12:12 AM, "Sean Corfield" wrote: > On Sun, Jul 1, 2012 at 12:47 PM, Warren Lynn wrote: > > Right now > > > > (last []) => nil > > (last [nil]) => nil > > > > So there

Re: Why cannot "last" be fast on vector?

2012-06-30 Thread László Török
ot of all evil >> > -- > 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: [ANN] C2 v0.2.0: now with cljs data binding

2012-06-28 Thread László Török
ew members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- László Török -- You received

Re: How to read a file into a string up until a line? Any way to make it lazy?

2012-06-22 Thread László Török
ew members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- László Török -- You received

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-20 Thread László Török
+1, I had the same experience as Chris, lot of frustration until I found Emacs-live On Jun 20, 2012 1:54 PM, "Chris Zheng" wrote: > I was using textmate and a repl for the longest time because I was put off > by the intricacies of emacs.. and then I found this: > > https://github.com/overtone/ema

Docstring state deftype, defrecord etc. are still alpha?

2012-06-16 Thread László Török
till alpha? Thanks! -- László Török -- 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 u

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-06-08 Thread László Török
+1 On Jun 8, 2012 6:54 PM, "Stuart Halloway" wrote: > Whatever we do let's make sure we think about how to make it available in > all Clojure dialects. > > Stu > > On Jun 8, 2012, at 8:49 AM, Jay Fields wrote: > > I wouldn't mind seeing more in clojure.string. e.g. daserize, underscore, > pascal-

Re: [ANN] Itsy 0.1.0 released, a threaded web spider written in Clojure

2012-06-01 Thread László Török
e and take out Itsy for a spin. :) Las 2012/6/1 Michael Klishin > László Török: > > > I was wondering though how do you make sure two > > crawlers do not crawl the same URL twice if there is no global state? :) > > By adding sharing state, for a single app instance

Re: [ANN] Itsy 0.1.0 released, a threaded web spider written in Clojure

2012-06-01 Thread László Török
e that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- László Török

Re: ANN Welle 1.0 final

2012-05-23 Thread László Török
On May 23, 2012 11:35 AM, "Peter Taoussanis" wrote: > > Looks great - well done! I passed over Riak a while back because of the lack of a good client- might be time to take a real look at it again. > > Love the ClojureWerkz pages btw. +1 > > - Peter Taoussanis > > -- > You received this message be

Re: apply a function to every item in a sequence without realizing the sequence

2012-05-01 Thread László Török
Map IS lazy but it still returns the entire realized sequence, as expected. On May 2, 2012 8:31 AM, "Sean Neilan" wrote: > I don't think so. > > On Wed, May 2, 2012 at 1:22 AM, Stuart Campbell wrote: > >> On 2 May 2012 14:44, Baishampayan Ghose wrote: >> >>> You can't use `map` because `map` wi

Re: apply a function to every item in a sequence without realizing the sequence

2012-05-01 Thread László Török
Wow lot of active people in the early morning, all typing faster than me on my phone... :-) On May 2, 2012 6:36 AM, "László Török" wrote: > You can also use doseq afaik, altough every element must realized at least > once, you just have to make sure you don't hold onto the h

Re: apply a function to every item in a sequence without realizing the sequence

2012-05-01 Thread László Török
You can also use doseq afaik, altough every element must realized at least once, you just have to make sure you don't hold onto the head of the sequence as you proceed. It is not immediately apparent to me why that doesn't happen with your loop-recur solution On May 2, 2012 6:27 AM, "Sean Neilan"

Re: Loading a huge graph

2012-04-13 Thread László Török
consume when you do this? Are you giving the > > JVM enough memory? > > > > On Thu, Apr 12, 2012 at 6:17 PM, László Török wrote: > > > > > Hi, > > > > > > I'm trying figure out how to load a huge file that contains some 800k pair > > &

Re: Loading a huge graph

2012-04-13 Thread László Török
takes all the memory it >>> needs. As your program gets closer to the JVM memory limit it'll spend >>> more and more time doing garbage collection, with less and less real >>> work getting done. You can pass an -Xmx flag to give java access to >>> more memor

Re: Loading a huge graph

2012-04-13 Thread László Török
programs do. > > > On Thu, Apr 12, 2012 at 5:22 PM, David Nolen > wrote: > > How much memory do Python & Go consume when you do this? Are you giving > the > > JVM enough memory? > > > > > > On Thu, Apr 12, 2012 at 6:17 PM, László Török > wrote: &g

Loading a huge graph

2012-04-12 Thread László Török
seconds. What am I doing wrong? Thanks -- László Török -- 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 y

Re: ClojureScript gets PersistentVectors

2012-03-29 Thread László Török
oogle > 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 email to > clojure+unsubscr...@googl

Re: Alternate set literal syntax?

2012-03-26 Thread László Török
ibe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- László Török -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: the role of #_ reader macro in cljs.core

2012-03-25 Thread László Török
xpect an exception (to get the same behavior as in clojure)? Las Baishampayan Ghose 2012. március 26., hétfő napon a következőt írta: > The #_ reader macro simply comments out the form, so it's a no op. > > Sent from phone, please excuse brevity. > On Mar 26, 2012 10:23 AM, &quo

the role of #_ reader macro in cljs.core

2012-03-25 Thread László Török
y] ... ... (-pop [coll] (if (> (.-length array) 0) (let [new-array (aclone array)] (. new-array (pop)) (Vector. meta new-array)) (throw (js/Error. "Can't pop empty vector" there are other examples at ln 68, ln 127, ln 146 for other forms. Thx

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-23 Thread László Török
gt; 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 fr

Re: Clojure-mode + aquamacs + paredit and character literals

2012-03-22 Thread László Török
ved 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 ema

Re: into applied to transient vectors undocumented?

2012-03-20 Thread László Török
gt; transient as an argument. Originally it only took persistent collections > as arguments (perhaps also seqs, but those are immutable, too). > > Andy > > On Mar 20, 2012, at 11:17 AM, László Török wrote: > > Ok, > > so the pattern is: > > func! (bang) takes a transient a

Re: into applied to transient vectors undocumented?

2012-03-20 Thread László Török
can > take a transient as input is an accidental consequence of that, I think. > Before into was changed to use transients internally, it could only take > persistent data structures as input, and return a persistent data structure. > > Andy > > On Mar 20, 2012, at 10:32 AM, Lá

into applied to transient vectors undocumented?

2012-03-20 Thread László Török
at (source into) does in fact support a transient collection as the first argument, however it calls persistent! on the result. What was the rationale behind the decision? (Note: I'm not questioning it, just interested.) Is there a particular reason why this feature remains undocumented? -- L

  1   2   >