Re: Profiling in Counterclockwise

2014-10-09 Thread Christophe Grand
To profile whithin Eclipse you need to have the TPTP pugin installed http://www.eclipse.org/tptp/. That said, I *never* managed to have it work (I haven't tried for at least two years), launching from Eclipse as usual and connecting an external profiler (VisualVM or Yourkit works fine -- Yourkit ev

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Eduard Bondarenko
I think the point is to not generate values by producer if external service is not available "The producer only unparks when the value is effectively consumed by the external service. That's my objective." "external ready" channel here serves as a latch that stops producer generating value. On Th

Re: Understanding how a collection reduce itself

2014-10-09 Thread Hussein B.
Thank you all and especially @James. That is exactly what I'm missing. Thanks again for help. On Wednesday, September 24, 2014 5:51:09 PM UTC+2, James Reeves wrote: > > Reducers primarily have two benefits: > > 1. You don't need to create intermediate seqs > 2. You can use them to perform a parall

Re: Profiling in Counterclockwise

2014-10-09 Thread Gary Verhaegen
On Sunday, 5 October 2014, Fluid Dynamics wrote: > On Sunday, October 5, 2014 3:57:37 PM UTC-4, Gary Verhaegen wrote: >> >> When I need to profile (which is asmittedly quite rare), I use VisualVM, >> which should have been installed along with the JDK. I'd recommend editing >> the default setting

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Fergal Byrne
Hi Nahuel, I think it's worth stepping back from discussing solutions and have a look at the problem. If I'm reading things right you need the following: 1. Producer produces values one at a time - should not step until last value has been handled correctly elsewhere. 2. Middleman needs to consum

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Nahuel Greco
Fluid: as you said, backpressure on the outgoing channel will be sufficient to avoid producer to overrun consumer (without using any extra ack-channel), but the producer will compute a new not-yet-used value before blocking on sending it to consumer. That's what I want to avoid. I can also use alt

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Fergal Byrne
Hi Nahuel, Thanks for the clarification. Multiple producers, single middleman is a different problem from the one we (or at least I) thought we were dealing with. In that case, the put your ack channel in your product, block on the ack channel method is the right one. (loop [...] ..something expe

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Nahuel Greco
Fergal: I knew about the ack channel solution (note I mentioned it a while couple of mails ago), I was trying to avoid it with the objective of making the producer code extra simple. Also note, in core.async the producers aren't totally decoupled from consumers, there is an implicit consumer->prod

Re: help with sequence, "seq", Seq, and `seq`

2014-10-09 Thread John Gabriele
On Thursday, October 9, 2014 12:51:47 AM UTC-4, Ambrose Bonnaire-Sergeant wrote: > > On Wed, Oct 8, 2014 at 10:55 PM, John Gabriele > wrote: > >> * (when calling `seq` on a coll) "...In either case, if the collection >> is empty, `seq` returns nil and never an empty sequence. Functions that >

Requiring namespaces *just* to register multimethod implementations?

2014-10-09 Thread Laurens Van Houtven
I am writing some software that is essentially an interpreter for structures called plans, which are either: - steps, maps that have a specific way of handling them based on their :type. Examples include e.g. make a http request, which would look like {:type :http :url "http://whatever"; :metho

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Fergal Byrne
Hi Nahuel, If you look at the definition of "simple" it means "not compound". In your case, you are trying to have a single thing (the channel) do two jobs: convey the value, and control the producer. This is not simple, and makes the producer trust that the middleman will always respect this hidd

Re: help with sequence, "seq", Seq, and `seq`

2014-10-09 Thread James Reeves
On 9 October 2014 03:55, John Gabriele wrote: > > > * (when calling `seq` on a coll) "...In either case, if the collection > is empty, `seq` returns nil and never an empty sequence. Functions that > promise to return seqs (not sequences), such as `next`, work the same way." > > Hm. "seqs (not se

Re: help with sequence, "seq", Seq, and `seq`

2014-10-09 Thread Gary Verhaegen
I have not checked the second edition yet, but when I read JoC, my understanding was that seq is used specifically for an object that implements ISeq and is used as such (i.e. by calling first and rest on it) while sequence denotes any ordered collection. Under this interpretation, they are not in

Re: help with sequence, "seq", Seq, and `seq`

2014-10-09 Thread James Reeves
On 9 October 2014 15:38, Gary Verhaegen wrote: > I have not checked the second edition yet, but when I read JoC, my > understanding was that seq is used specifically for an object that > implements ISeq and is used as such (i.e. by calling first and rest on it) > while sequence denotes any ordere

Re: help with sequence, "seq", Seq, and `seq`

2014-10-09 Thread John Gabriele
On Thursday, October 9, 2014 10:38:42 AM UTC-4, Gary Verhaegen wrote: > > I have not checked the second edition yet, but when I read JoC, my > understanding was that seq is used specifically for an object that > implements ISeq and is used as such (i.e. by calling first and rest on it) > while s

Re: [PSA] Clojars scp disabled until further notice

2014-10-09 Thread Eric Normand
Hey Nelson, I would love to help out with raising funds for Clojars. I've got a great idea that I need to talk to you about. I can provide execution and promotion. Let's talk. Eric On Wednesday, October 8, 2014 7:49:38 PM UTC-5, Bridget wrote: > > > > On Friday, September 26, 2014 11:09:55 AM

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Nahuel Greco
Fergal: readability when using an ack channel is improved, you are totally right on this point and is probably the most important argument for using acks, besides there is no peek currently on core.async (note if you have a long producer-consumer1-consumerN chain everyone must implement the ack pro

[PSA] Rock the Clojure JIRA vote

2014-10-09 Thread Andy Fingerhut
Sorry, I know of no musicians who will perform at special events to rock the Clojure JIRA vote. Perhaps if some of the musicians among Cognitect employees become inspired ... Why vote? It can make a difference in how soon Clojure tickets are addressed. Quotes from Alex Miller: "In particular

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Leon Grapenthin
On Thursday, October 9, 2014 2:22:50 PM UTC+2, Nahuel Greco wrote: > > Fluid: as you said, backpressure on the outgoing channel will be > sufficient to avoid producer to overrun consumer (without using any extra > ack-channel), but the producer will compute a new not-yet-used value before > bloc

Seeking Large Companies That Employ Clojure

2014-10-09 Thread Jan Drake
Greetings, You can learn a bit about me here . I am looking to connect with engineering teams and managers of those teams that are using Clojure in enterprise and/or web scale scenarios to discuss various topics important to users of Clojure at scale, in produ

Re: Seeking Large Companies That Employ Clojure

2014-10-09 Thread Sean Corfield
That's very vague. Can you explain _why_ you want to talk to such users? I'm in your target audience but I would not contact you based on such a vague post. My first reaction is you're trying to sell me something... Sean On Oct 9, 2014, at 12:13 PM, Jan Drake wrote: > You can learn a bit about

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Nahuel Greco
Leon: your :useless example is equivalent to one using the hypothetical peek operation and to the ack-channel solution, but what you define as ":useless multithreading" because at one time only one thread is working, is a valid synchronization scenario and the one I was searching for. The objective

Re: Where can one find low hanging fruit for open source contribution?

2014-10-09 Thread Michael Blume
Agree with Michael Klishin, I've gotten a few patches into Leiningen as a relative Clojure newb and the maintainers have been super friendly and helpful. On Friday, September 26, 2014 11:45:18 PM UTC-7, Michael Klishin wrote: > > On 27 September 2014 at 10:34:28, kurofune (jessel...@gmail.com >

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-09 Thread Lee Spector
FWIW I'm another person using Clojure mostly for academic research. And for computer science education, e.g. I'm currently teaching a Clojure-based AI course. I'd be curious to know how many others of us are out there. And BTW I think that attention to users in these categories could help to gr

Re: core.async: peek the next value from a channel without consuming it

2014-10-09 Thread Leon Grapenthin
On Thursday, October 9, 2014 10:25:38 PM UTC+2, Nahuel Greco wrote: > > Leon: your :useless example is equivalent to one using the hypothetical > peek operation and to the ack-channel solution, but what you define as > ":useless multithreading" because at one time only one thread is working, >

Re: Where can one find low hanging fruit for open source contribution?

2014-10-09 Thread António Monteiro
this website has a weekly curated list of simple tasks to be done in open source Clojure projects (it appeared to me on HN the other day): http://www.longstorm.org/weekly/cito/1/ Hope it helps. On Friday, October 10, 2014 12:06:06 AM UTC+2, Michael Blume wrote: > > Agree with Michael Klishin, I'

Re: Where can one find low hanging fruit for open source contribution?

2014-10-09 Thread Beau Fabry
LightTable, the editor written in Clojurescript is currently looking for contributors, and have started tagging issues as beginner friendly. https://github.com/LightTable/LightTable On Saturday, September 27, 2014 4:34:19 PM UTC+10, kurofune wrote: > > I am an looking for a good, active, open so

Re: How to read a transit string from client side (transit-cljs) on server side (tansit-clj)

2014-10-09 Thread Bin Li
More detail here, thanks for help~ https://groups.google.com/forum/#!msg/transit-format/c_5BuPb1R1A/_jXl3mCS-1IJ On Thursday, September 25, 2014 9:44:23 PM UTC+8, Ashton Kemerling wrote: > > I think you should take a look at the transit-Clj README, it has docs and > examples. > > https://github

Re: [ANN] Example project to illustrate usage of system library

2014-10-09 Thread Atamert Ölçgen
prod-system has a REPL but dev-system doesn't. Is this intentional? https://github.com/danielsz/system/blob/master/example/src/example/systems.clj On Wed, Oct 8, 2014 at 7:57 PM, Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > Hello everybody, > > I noticed a demand for examples in how

Re: Where can one find low hanging fruit for open source contribution?

2014-10-09 Thread Eric Normand
There's a new weekly newsletter called Clojure in the Open that lists small tasks that Open Source projects are asking for: http://www.longstorm.org/weekly/cito/1/ Eric On Saturday, September 27, 2014 1:34:19 AM UTC-5, kurofune wrote: > > I am an looking for a good, active, open source Clojure

Re: [ANN] Clojure Videos (with options for Linux users)

2014-10-09 Thread Eric Normand
Hello, To plug my own videos, the LispCast core.async videos are coming out soon! I have a strict deadline of "before the conj". You can get on the mailing list to get a discount when they come out. You'll also get a core.async cheatsheet for signing up. http://purelyfunctional.tv/core-async

Re: [ANN] Example project to illustrate usage of system library

2014-10-09 Thread Daniel Szmulewicz
Yes, because locally you are in the repl already. The repl in production is brought in explicitly to be able to login/debug remotely into the application where it’s hosted. Does that make sense? On Friday, October 10, 2014 7:13:39 AM UTC+3, Atamert Ölçgen wrote: > > prod-system has a REPL bu

Recursive codec/frames in gloss?

2014-10-09 Thread Ken Restivo
I'm playing around with Gloss, trying to decode a packet, part of which has the following nested struture: header-length (1 byte, value n) byte0 ... byten (count defined by that header-length byte) actual payload (length of which is the sum of the values of the above bytes) S