Re: concat primitive arrays

2013-07-21 Thread Alex Fowler
Java's System.arraycopy is the fastest you can get, since it delegates execution to a function implemented in C inside JVM. Simply, this is the fastest that your computer hardware can get. All in all Java arrays meet the same difficulties and implications as C arrays and that is why

Re: Making RPCs with Shoreleave

2013-07-21 Thread Alex Fowler
Considering the severity of the bug that i found, i want to ask if someone is using Shoreleave's rpc without any problems? Maybe it's me missing something? Or maybe someone run into the same problem too? On Saturday, July 20, 2013 2:16:02 PM UTC+4, Alex Fowler wrote: That wasn't hte case

using httpkit + core.async to build a simple WebSocket-based chat demo

2013-07-21 Thread Dave Della Costa
Hi folks, More core.async fun. Would love to hear comments, criticisms, etc., especially on how to better integrate core.async into this. Otherwise, maybe it can be inspiration to someone else to do something grander. Granted, it's pretty stupidly simple.

Re: using httpkit + core.async to build a simple WebSocket-based chat demo

2013-07-21 Thread Christopher Martin
Thanks for sharing this! I'm in a similar mindset right now, working on a cljs port of a JS WebSocket library (AutoBahnJS) for clj-wamphttp://cljwamp.us . Examples like these have been very helpful for getting up to speed on ClojureScript and core.async. Cheers, ~Christopher Martin On Sunday,

Re: concat primitive arrays

2013-07-21 Thread Brian Craft
Is there a way to create an array with the type of another array? (type arr) returns the array type, but make-array wants the element type not the array type, so (make-array (type arr) n) doesn't work as one might hope. On Sunday, July 21, 2013 8:36:22 AM UTC-7, Alex Fowler wrote: Java's

Re: java interop: passing int[]

2013-07-21 Thread Alex Fowler
Hmmm, true about proxies.. as for hiphip - I did not use it yet, but I thought that it may be useful for fast array operations, sorry confused the posts :) I gonna try it sometime I think.. and I think that it has no built-in matrix ops, but there was a library somewhere that did matrix ops..

Re: concat primitive arrays

2013-07-21 Thread Brian Craft
Using getComponentType, it appears to be handling different primitive array types ok: (defn fconcat [ arrays] (let [sizes (map count arrays) sizes_r (vec (reductions + sizes)) offsets (cons 0 (drop-last sizes_r)) total (last sizes_r) out (make-array

Re: concat primitive arrays

2013-07-21 Thread Brian Craft
(make-array (.getComponentType (class arr)) n) seems to work. On Sunday, July 21, 2013 12:22:41 PM UTC-7, Brian Craft wrote: Is there a way to create an array with the type of another array? (type arr) returns the array type, but make-array wants the element type not the array type, so

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Timothy Washington
Ooh. Ok, lemme check it out. On Sat, Jul 20, 2013 at 10:34 PM, Chris Allen callen.2...@gmail.com wrote: http://github.com/bitemyapp/neubite/ Could probably use a WYSIWYG editor, beyond that, pretty serviceable. -- -- You received this message because you are subscribed to the Google

Re: concat primitive arrays

2013-07-21 Thread Brian Craft
Cool, thanks. On Sunday, July 21, 2013 12:59:16 PM UTC-7, Alex Fowler wrote: Glad you've found it! :D As an off-topic side-note: please, use no underscores in naming, use hyphens instead, this is lisp's style... like sizes_r become sizes-r. Many ppl will thank you later :) On Sunday,

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Manuel Paccagnella
Il giorno domenica 21 luglio 2013 01:09:48 UTC+2, frye ha scritto: Cool. I'm very open to any help you can offer. Right now, I'm working through: - if / how to attach assets (images, etc) to .rtf or .md file formats (see

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Steven Degutis
Lately, a lot of people are moving away from dynamic blog engines like Wordpress, and starting to use static blog generators like Jekyll. You may want to consider this route instead. I'm sure a plugin system would still be relevant and useful for a static blog generator. -Steven On Thu, Jul

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Steven Degutis
The more I think about the static blog generator idea, the more I think it's different enough to be a separate project. But anyway, I already wrote this list of pros/cons to why I think static blog generators are better, so might as well post it: Pros: - Runs anywhere you can host HTML, such

Re: concat primitive arrays

2013-07-21 Thread Alex Fowler
Glad you've found it! :D As an off-topic side-note: please, use no underscores in naming, use hyphens instead, this is lisp's style... like sizes_r become sizes-r. Many ppl will thank you later :) On Sunday, July 21, 2013 11:39:17 PM UTC+4, Brian Craft wrote: Using getComponentType, it

Re: using httpkit + core.async to build a simple WebSocket-based chat demo

2013-07-21 Thread Dave Della Costa
Excellent, glad to hear it. And I'd love to hear more about how porting AutobahnJS goes for you! Seems like a perfect application of core.async on the client-side. (2013/07/22 3:10), Christopher Martin wrote: Thanks for sharing this! I'm in a similar mindset right now, working on a cljs port

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Colin Fleming
I'm a fan of static generators too, but one large con for a lot of people is lack of commenting. Personally I like the article-with-no-comments format, but it's not for everyone. You can use Disqus or similar, but it has its own issues starting with the fact that you give all your data to someone

Re: Interest in a Full Featured Clojure Blog Engine

2013-07-21 Thread Keith Irwin
On Jul 21, 2013, at 10:01 PM, Colin Fleming colin.mailingl...@gmail.com wrote: I'm a fan of static generators too, but one large con for a lot of people is lack of commenting. Personally I like the article-with-no-comments format, but it's not for everyone. You can use Disqus or similar, but