Re: heaps in clojure vs SML

2015-01-31 Thread Mars0i
You also might want to use Criterium rather than *time *for accurate benchmarking*.* On Friday, January 30, 2015 at 6:54:52 AM UTC-6, Maris wrote: > > > yes, it helped :-) > > type hints make non-trivial difference > > thank you > > On Friday, 30

[ANN] Quil 2.2.5 Release

2015-01-31 Thread Nikita Beloglazov
Happy to announce Quil 2.2.5 release. Quil is a Clojure/ClojureScript library for creating interactive drawings and animations. Github repo . The release available on clojars: https://clojars.org/quil. This is a minor release with only 2 changes: - Support "globa

Re: call superclass constructor in clojure class generation with defrecord

2015-01-31 Thread Michael Blume
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 want to override on Window go here ) ; stuff making panels goes her

Re: Architectural doubts

2015-01-31 Thread John Wiseman
One trick I've used to speed up use of gloss is to use a lazy map so I only actually parse a piece of data if I need to. In my particular application this was an easy optimization because I was parsing a tagged data format, and I could do minimal parsing just to determine the tag of the next chunk

Re: call superclass constructor in clojure class generation with defrecord

2015-01-31 Thread coco
thanks Michael this does the job...in this code, now I've other doubt public class MyWindow extends Window { public MyWindow() // <--- not clear where I need declare it { super("My Window!"); Panel horizontalPanel = new Panel(new Border.Invisible(), Panel.Orientation.HORI

Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-31 Thread David Nolen
Template preferred. On Saturday, January 31, 2015, Sebastian Bensusan wrote: > Sure, I'll explore Figwheel's new REPL and add that instead. > > What about adding/configuring Figwheel? Should it be step by step inside > the tutorial, from mies-om to mies-om + Figwheel? Or it should just start > w

Re: Architectural doubts

2015-01-31 Thread Timothy Baldridge
Since the data you are handing to the datomic query engine is un-indexed, portions of the query will effectively be O(n). However if you do as Jan suggests and put the data into Datomic the data will automatically indexed several ways. Then when you query against the datomic db, the engine will pic

Re: Architectural doubts

2015-01-31 Thread Jan-Paul Bultmann
Why not stream frames directly into the datomic db as they fall out of gloss? This should be faster at query time anyhow due to indexes, and let's datomic handle the memory management. cheers Jan > On 31 Jan 2015, at 11:39, Milton Silva wrote: > > While using wireshark to analyse libpcap files

Re: Extending the LispReader with "embeded language lorms"

2015-01-31 Thread henrik42
*LOL* Can anybody change the title to "embeded language forms"? :-) -- 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 patient with y

Architectural doubts

2015-01-31 Thread Milton Silva
While using wireshark to analyse libpcap files (>= 200 MB) I routinely think that it would be great to preform relational queries but, wireshark only supports search. I thought I would decode the entire file, hold it in memory as clojure data structures and use datomic's datalog. Besides rela

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-31 Thread Sebastian Bensusan
Sure, I'll explore Figwheel's new REPL and add that instead. What about adding/configuring Figwheel? Should it be step by step inside the tutorial, from mies-om to mies-om + Figwheel? Or it should just start with a ready to go template "mies-om-wheel"? Thanks Sebastian Bensusan On Saturday, J

Extending the LispReader with "embeded language lorms"

2015-01-31 Thread henrik42
Hi, I would like to be able to include non-Lisp-ish DSLs in my clojure code (like bash HERE documents) e.g. for copy&pasting CSV data into the code without having to go through an external file and consume that. So I hacked an experiment that does the parsing and embeding (transforming to Clo

Re: Q: How to parse stream of text (from java.io.Reader) via instaparse with minimal input consuption

2015-01-31 Thread henrik42
Hi, I finally came up with a simple function that incremenally consumes the input stream, building the head of the input and calls an instaparse parser when it encounters a "]". If this fails, the function recurs. This function is not even dependent on instaparse directly. You can find the source