Webassembly as a Clojure target platform

2016-04-03 Thread JvJ
Is there any plan in the future to have clojure (or some dialect of clojure) compile to webassembly? I can't say for sure if it is the "next big thing" for the web, but it is a very interesting concept. I suppose that, if Java bytecode could cross-compile to Webassembly, we would essentially g

Re: Core.async performance with many channels

2016-04-03 Thread JvJ
This thing just an idea at this point. Basically, your typical game loop will consist of iterating over a collection of objects and calling some kind of update operation on each. I would like to replace this with asynchronous signaling. Signaling could include messages like "update this obje

Re: Cross platform date/time libarary

2016-04-03 Thread JvJ
OK. As long as a single import in a cljc will suffice. On Sunday, 3 April 2016 21:20:54 UTC-7, Sean Corfield wrote: > > On 4/3/16, 7:36 PM, "JvJ" on > behalf of kfjwh...@gmail.com > wrote: > > Is there a date/time library that is written for both clojure and > clojurescript? > > Probably the

Re: Protocols in another namespace, retract-type possible ?

2016-04-03 Thread Derek Troy-West
Hi Neils, If I've understood you correctly, can you just redefine the protocol implementation for Associative? E.g. (defprotocol ProtX (do-thing [x])) => ProtX (extend clojure.lang.Associative ProtX {:do-thing (fn [x] (str/lower-case (get x :a-val)))}) => nil (do-thing {:a-val "Some Str

Re: Cross platform date/time libarary

2016-04-03 Thread Sean Corfield
On 4/3/16, 7:36 PM, "JvJ" wrote: > Is there a date/time library that is written for both clojure and > clojurescript? Probably the closest thing is this pair of libraries: https://github.com/clj-time/clj-time https://github.com/andrewmcveigh/cljs-time Same API, different implementations. Sea

Re: Core.async performance with many channels

2016-04-03 Thread Rangel Spasov
Without knowing too much about the internals, but having used core.async/channels a lot, I don't think "hundreds" of channels will be a problem ever. However, as always the devil is in the details. People might be able to give better feedback if you give more details about your use case. On S

Cross platform date/time libarary

2016-04-03 Thread JvJ
Is there a date/time library that is written for both clojure and clojurescript? -- 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

Re: ClojureScript def, vars, and binding

2016-04-03 Thread whitespace
Any chance that this could be supported now core.async is here? I think the arguments of brandon bloom are still valid. I have implemented Erlang-like supervisors for core.async and now got stuck in the last step when I realized that the supervisor binding is broken in cljs. (1) I can pass expl

Re: [ANN] Aleph 0.4.1

2016-04-03 Thread Zach Tellman
Hi Adrian, Glad to hear that you're getting good use out of Aleph. As for the UDP side of things, if you're using it (as games often do) to reimplement half of TCP, that may not work well with the functional operators in manifold.stream. However, using `put!`, `take!`, and a few operators from m

Re: [ANN] Aleph 0.4.1

2016-04-03 Thread adrian . medina
Awesome! At Vital Labs we use Aleph in production for our HTTP and (soon to be) websocket services. I have nothing but good things to say about it. It makes using Netty a breeze in Clojure. For an unrelated side project, I have been using Aleph to communicate over UDP with an old MMORPG called

Re: [ANN] [book] Mastering Clojure published!

2016-04-03 Thread Timothy Baldridge
gvim, aside from the rather poor taste of critiquing a book's pricing in the second reply to the announcement of that book. Perhaps also consider that one book is named "Mastering", while the other is a introduction to web programming. I have not read either of these books, but shouldn't we prefer

Re: [ANN] [book] Mastering Clojure published!

2016-04-03 Thread gvim
On 03/04/2016 05:46, Akhil Wali wrote: I'm pleased to announce that Mastering Clojure has been published. This book is a fast paced exploration of the more advanced features of the Clojure language. It also demonstrates a handful of interesting libraries, such as core.async, pulsar, core.logic an

Re: Clojure library

2016-04-03 Thread Ashish Negi
By default build tool : lein would not do AOT i.e. create .class files. So, your jar with `lein uberjar` would have .clj files. You can verify with un-tar the jar. If you have a `-main` then you can use :skip-aot for not doing aot.. see https://github.com/technomancy/leiningen/blob/master/samp

Re: [ANN] [book] Mastering Clojure published!

2016-04-03 Thread Colin Yates
Congratulations! - I know how much effort goes into this sort of thing. I look forward to reading a copy at some point. On 3 April 2016 at 05:46, Akhil Wali wrote: > I'm pleased to announce that Mastering Clojure has been published. > This book is a fast paced exploration of the more advanced fea

Re: Trouble using r/fold to optimise a reduce

2016-04-03 Thread Divyansh Prakash
Thanks a lot for taking the time out to explain this stuff in detail! Will go through your solution shortly. On Sunday, April 3, 2016 at 12:02:48 PM UTC+5:30, Francis Avila wrote: > > I had some fun with playing around with faster solutions. > https://gist.github.com/favila/0573e3f644dea252bdaae