Re: heaps in clojure vs SML

2015-02-01 Thread Mars0i
Criterium automates the JVM warmup process. On Sunday, February 1, 2015 at 1:16:37 PM UTC-6, Ashton Kemerling wrote: > > Also remember to give the JVM some warm up time, as the JVM depends > heavily on JIT style optimizations, and measuring performance without it > might not represent real world

Re: heaps in clojure vs SML

2015-02-01 Thread Maris Orbidans
I published my heap implementation on github: https://github.com/maruks/clj-data It has reasonable performance. I used it for https://www.hackerrank.com/challenges/messy-medians [org.clojars.maruks/maruks.data "0.0.1"] On Sun, Feb 1, 2015 at 7:16 PM, Ashton Kemerling wrote: > Also rem

Re: ANN: Om 0.8.6, Hello CLJSJS

2015-02-01 Thread Khalid Jebbari
On Sunday, February 1, 2015 at 9:16:05 PM UTC+1, Sebastian Bensusan wrote: > I changed the tutorial to use a new version of the figwheel template > https://github.com/bhauman/figwheel-template. When the new template is > published to Clojars we can update the Om wiki. I'll move on to the > Inter

ANN: ClojureScript 0.0-2755, Browser REPL, macros, and incremental compilation

2015-02-01 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-2755 Leiningen dependency information: [org.clojure/clojurescript "0.0-2755"] This release fixes regressions to the browser REPL

A clojruescript library for canvas applications

2015-02-01 Thread Timur
Hi everyone, Are there any cljs library recommendations for a modeling application based on canvas? There will be modeling elements which are associated with relationships (e.g., similar to UML modeling). Regards, Timur -- You received this message because you are subscribed to the Google G

Re: ANN: Om 0.8.6, Hello CLJSJS

2015-02-01 Thread Sebastian Bensusan
I changed the tutorial to use a new version of the figwheel template https://github.com/bhauman/figwheel-template. When the new template is published to Clojars we can update the Om wiki. I'll move on to the Intermediate tutorial. If by the time I'm done with all of the tutorials the template i

Re: Architectural doubts

2015-02-01 Thread Ashton Kemerling
Because of the way that Datomic stores it's data (5 tuples: entity, attribute, value, transaction, and operation) it has some pretty simple indexes that allow for powerful queries. EAVT allows for rapidly searching by entity, VAET allows for quick reverse look ups, etc. The only index that you

Re: heaps in clojure vs SML

2015-02-01 Thread Ashton Kemerling
Also remember to give the JVM some warm up time, as the JVM depends heavily on JIT style optimizations, and measuring performance without it might not represent real world behavior, -- Ashton On Saturday, January 31, 2015 at 11:39:05 PM UTC-7, Mars0i wrote: > > You also might want to use Criter

Re: call superclass constructor in clojure class generation with defrecord

2015-02-01 Thread Gary Verhaegen
The short answer is no, there is no way to override the constructor. proxy is not meant to create a class, it is meant to create an object. You have an API that requires an object of type A. So you can pass it either an object of type A, or an object of a subclass of A. You do not want to create a

Re: call superclass constructor in clojure class generation with defrecord

2015-02-01 Thread Fluid Dynamics
On Sunday, February 1, 2015 at 11:08:19 AM UTC-5, Michael Blume wrote: > > Yes, but that's for methods you're overriding and OP wants a constructor > For that you just replace (proxy foo ...) with (doto (proxy foo ...) (.doThisThingy x) (.addThatComponent y) (.etc)) I would expect. --

Re: call superclass constructor in clojure class generation with defrecord

2015-02-01 Thread Michael Blume
Yes, but that's for methods you're overriding and OP wants a constructor On Sun, Feb 1, 2015, 12:22 AM Fluid Dynamics wrote: > On Saturday, January 31, 2015 at 6:34:10 PM UTC-5, Michael Blume wrote: >> >> The defn wrapping the call to proxy basically is the constructor, so you >> wind up with so

Re: Architectural doubts

2015-02-01 Thread adrian . medina
If you're interested in efficient binary decoding/encoding with a more pleasant API than standard NIO ByteBuffers, check out Netty's buffer package, io.netty.buffer (http://netty.io/5.0/api/index.html). On Sunday, February 1, 2015 at 7:31:37 AM UTC-5, Milton Silva wrote: > > For now I'm hand co

ANN: org.clojure/tools.namespace "0.2.9"

2015-02-01 Thread Stuart Sierra
tools.namespace: parse namespace declarations and reload files in dependency order. https://github.com/clojure/tools.namespace Release 0.2.9 contains the following changes: * Fix [TNS-20]: Undefined 'unload' order after namespaces are first added to an new, empty tracker. * Improvement

Re: Architectural doubts

2015-02-01 Thread Milton Silva
For now I'm hand coding a big loop with transients and a bytebuffer. It is an incredibly ugly imperative mess but, it is fast enough and so far it fits nicely into ram. It takes 2s (at this point gloss was taking upwards of 5 minutes) to decode 200MB all the way to tcp and uses 500MB of heap. Th

Re: call superclass constructor in clojure class generation with defrecord

2015-02-01 Thread Fluid Dynamics
On Saturday, January 31, 2015 at 6:34:10 PM UTC-5, Michael Blume wrote: > > The defn wrapping the call to proxy basically is the constructor, so you > wind up with something roughly like > > (defn get-window [] > (let [this (proxy [Window] ["My Window!"] > ; any methods you wan