Re: Composing Stuart Sierra's components

2015-03-18 Thread Stuart Sierra
On Tue, Mar 17, 2015 at 5:47 PM, James Gatannah james.gatan...@gmail.com wrote: FWIW, we've been using something that smells an awful lot like nested systems for months now. I never realized we weren't supposed to. It's not that nested systems *never* work, but from what I've seen they cause

Re: [GSoC] core.typed Annotations and Macros Proposal

2015-03-18 Thread Di Xu
Read code base, submit some patches to get familiar with the process, etc. Also you can reach Ambrose to discuss your idea proposal. Di Xu 2015-03-18 13:29 GMT+08:00 ZhanLin Shang shangzhan...@gmail.com: Hi, Thanks for replying, I've signed the CA and forwarded this post to the core.typed

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-18 Thread Jozef Wagner
Another big experiment for today. As new reducer features (continuations) will be applied heavily here, please read 5th experiment if you have not done so yet. Prepare for the longest write-up so far. Experiment #8 - Computer and Network Resources Most applications perform some file and

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-18 Thread Henrik Eneroth
Amazing work Jozef. Very interesting experiments. On Wednesday, March 18, 2015 at 9:21:25 AM UTC+1, Jozef Wagner wrote: Another big experiment for today. As new reducer features (continuations) will be applied heavily here, please read 5th experiment if you have not done so yet. Prepare

Re: Announcing oolong: a config-based glue for `component`

2015-03-18 Thread James Laver
Responses inline :) On 18 Mar 2015, at 09:49, James Henderson ja...@jarohen.me.uk wrote: On Wednesday, 18 March 2015 09:29:59 UTC, James Laver wrote: component’ is a difficult term to google for, so I hadn’t come across your project :) Same problem here when I started writing Phoenix -

Re: Extend java class to participate in sequence operations

2015-03-18 Thread Juvenn Woo
So in Clojure, I'd have: (defrecord MyNode [^Node node] clojure.lang. ISeq (seq [this] …)) Thanks Mikera! An enlightenment to me! — Sent from Mailbox On Wed, Mar 18, 2015 at 2:11 PM, Mikera mike.r.anderson...@gmail.com wrote: In that case, I would suggest writing a

Re: Announcing oolong: a config-based glue for `component`

2015-03-18 Thread James Henderson
Thanks - thoughts inline :) On Wednesday, 18 March 2015 09:29:59 UTC, James Laver wrote: Hi James, ‘component’ is a difficult term to google for, so I hadn’t come across your project :) Same problem here when I started writing Phoenix - there could be many libraries trying to solve the

Re: Announcing oolong: a config-based glue for `component`

2015-03-18 Thread James Henderson
Hi James, This looks very similar to Phoenix https://github.com/james-henderson/phoenix - a project I've been working on for the last few months. It's pretty likely you hadn't heard of it (and that's fine - it's not been hugely publicised!), but if you have, I was wondering whether there was

Re: Announcing oolong: a config-based glue for `component`

2015-03-18 Thread James Laver
Hi James, ‘component’ is a difficult term to google for, so I hadn’t come across your project :) I think your module had slightly different design goals from mine. Mine were: * everything in one config file (although i also provide support for separate data-config and system config) * be

Re: [GSoC] core.typed Annotations and Macros Proposal

2015-03-18 Thread ZhanLin Shang
Thanks for the information :) On Wed, Mar 18, 2015 at 2:35 AM Di Xu xudi...@gmail.com wrote: Read code base, submit some patches to get familiar with the process, etc. Also you can reach Ambrose to discuss your idea proposal. Di Xu 2015-03-18 13:29 GMT+08:00 ZhanLin Shang

Re: Composing Stuart Sierra's components

2015-03-18 Thread platonovadim
I've also been investigating the nested system approach/problem. The primary use case that I have is composing subsystems which are mostly independent modules using a higher order system to run in one process. The modules themselves can be easily extracted into separate applications thus

Re: Composing Stuart Sierra's components

2015-03-18 Thread platonovadim
A possible implementation for the idea expressed in the previous post - https://github.com/stuartsierra/component/pull/25 On Wednesday, March 18, 2015 at 2:41:46 PM UTC+1, platon...@gmail.com wrote: I've also been investigating the nested system approach/problem. The primary use case that I

Re: Streaming a large file onto a channel

2015-03-18 Thread Erick Pintor
Hi Adrian, What is exactly the issue that you're facing? I did my own version and it seems to be working fine. Please, take a look and I hope it helps. (defn process-file [ch file] (async/thread (with-open [input (io/reader file)] (doseq [line (line-seq input)] (async/!! ch

ThreatGRID/Cisco Looking for Clojure Hackers

2015-03-18 Thread Craig Brozefsky
[ Full disclosure: I am the technical lead on this product and the hiring manager in this case. Feel free to contact me with questions, and to pass this around. We are also looking for Go hackers on another team, if you are of that persuasion. ] Clojure Developer for Malware Analysis Product

Re: [GSoC] Source meta information model proposal

2015-03-18 Thread richard . moehn
Am Mittwoch, 18. März 2015 07:18:30 UTC+1 schrieb Reid McKenzie: Alex, glad to see we're on the same wavelength about this more or less. Christopher, some other deliverables worth considering: Hi all, so I'm the other student Alex mentioned. I'm not participating so much in this

Re: Streaming a large file onto a channel

2015-03-18 Thread Adrian Mowat
Hi Erick Thanks for getting back to me. On my system, I wasn't seeing the contents of my file being listed in the REPL. Your code is working fine though and I can't see anything significantly different so I wonder if I had managed to corrupt my session in some way. Anyway, it's good to know

Re: [GSoC] Source meta information model proposal

2015-03-18 Thread Christopher Medrela
Hello! Alex decided to proceed with Richard. Therefore, I'd like to find some other project. I'm glad to see so much feedback and I'd really like to reply to all your feedback but there is not much time to the end of application period and therefore I will focus exclusively on the another

ANN: ClojureScript 0.0-3126, fix for minor REPL regression

2015-03-18 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-3126 Leiningen dependency information: [org.clojure/clojurescript 0.0-3126] This release just fixes a minor REPL related

Support for IBM JVM?

2015-03-18 Thread Aaron Cummings
Is there an official statement of support (or non-support) for the IBM JVM? I'm finding that when building Clojure from source with the IBM JVM that one of the tests fails. The failure appears to be caused by the IBM implementation of BigInteger.hashCode() being different from Oracle's. Is this

Re: Support for IBM JVM?

2015-03-18 Thread Andy Fingerhut
Clojure is regularly built and tested with the following JVM versions, as you can find out here: http://build.clojure.org/view/Clojure/job/clojure-test-matrix/ Sun JDK 1.6 Oracle JDK 1.7 Oracle JDK 1.8 IBM JDK 1.6 OpenJDK 1.6 I believe a JIRA ticket would be appropriate. The core team can

case-insensitive data structures, contrib fnmap

2015-03-18 Thread Brian Craft
I found an earlier thread about case-insensitive maps, which pointed to a contrib lib, fnmap. It doesn't appear to have survived. Is there another lib that does this, or a better way of doing case-insensitive data structs? -- You received this message because you are subscribed to the Google

Re: case-insensitive data structures, contrib fnmap

2015-03-18 Thread Fluid Dynamics
On Thursday, March 19, 2015 at 12:32:02 AM UTC-4, Brian Craft wrote: I found an earlier thread about case-insensitive maps, which pointed to a contrib lib, fnmap. It doesn't appear to have survived. Is there another lib that does this, or a better way of doing case-insensitive data

Re: Streaming a large file onto a channel

2015-03-18 Thread Adam Clements
It's possible you are simply not seeing the println output from a background thread, depending on how your repl etc is set up. On Wed, 18 Mar 2015 3:19 pm Adrian Mowat adrian.mo...@gmail.com wrote: Hi Erick Thanks for getting back to me. On my system, I wasn't seeing the contents of my file

Re: Streaming a large file onto a channel

2015-03-18 Thread Adrian Mowat
Hi Adam I'm using the latest version on cider + cider-nrepl but it's a possibility. I suspect it's more of a case that I tried so many different combinations I polluted my repl beyond repair. My fault for not just using components from the outset :-( Thanks Adrian Sent from my iPhone

Re: Streaming a large file onto a channel

2015-03-18 Thread Christopher Small
It seems like you're generally on the right track here (though Erick Pintor's code has some nice cleanup, like removal of necessary do, etc). The one thing I'd recommend is testing what happens with a larger channel buffer; if the file io isn't the bottleneck, but rather the processing, this

`(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread John Gabriele
I see that you can pass extra args to `apply` --- between the func and the coll args --- and `apply` will prepend the extras to the coll before proceeding. For example, these all work: (apply + [1 2 3 4]) (apply + 1 2 [3 4]) (apply + 1 2 '(3 4)) While thinking about how the

Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread Ben Wolfson
Because symbols can only take one argument: ('vector :a) --- nil ('vector :a :i :x) --- the exception you saw. On Wed, Mar 18, 2015 at 2:01 PM, John Gabriele jmg3...@gmail.com wrote: I see that you can pass extra args to `apply` --- between the func and the coll args --- and `apply` will

Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread Ambrose Bonnaire-Sergeant
[vector] is a vector with the vector predicate. '(vector) is a vector with the symbol 'vector. `(~vector) is similar to what [vector] gives you. On Wed, Mar 18, 2015 at 5:01 PM, John Gabriele jmg3...@gmail.com wrote: I see that you can pass extra args to `apply` --- between the func and the

Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread John Gabriele
Ah! I was passing `apply` a list who's first element was a symbol, rather than the function itself. Got it. Thanks Ambrose and Ben! On Wednesday, March 18, 2015 at 5:10:45 PM UTC-4, Ambrose Bonnaire-Sergeant wrote: [vector] is a vector with the vector predicate. '(vector) is a vector with

Re: Extend java class to participate in sequence operations

2015-03-18 Thread Mikera
In that case, I would suggest writing a minimal wrapper, either in Java or Clojure. To get the basic sequence operations, you can simply implement the interface clojure.lang.ISeq on the wrapper. On Wednesday, 18 March 2015 09:17:09 UTC+8, juvenn wrote: Thanks Niels, but what if a java class

Re: [GSoC] Source meta information model proposal

2015-03-18 Thread Reid McKenzie
Alex, glad to see we're on the same wavelength about this more or less. Christopher, some other deliverables worth considering: - What format is documentation in? As Grimoire is evidence, plain doc text is pretty badly formatted on average certainly in comparison to HTML or even