Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Juraj Martinka
Works great for me. Thank you very much for publishing this! Previously, I tried to use jol-cli but it was much more cumbersome. On Monday, 5 March 2018 11:56:20 UTC+1, Alexander Yakushev wrote: > > I'm happy to release the first version of clj-

RE: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Sean Corfield
Could you try that again and immediately after getting the exception from the require, type in: *e (instead of trying the mm/measure call) In the exception that prints out, look for the Caused by portion of the exception. That’s going to be the underlying exception that will help

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread numbch...@gmail.com
Got error when requiring: clj -Sdeps "{:deps {com.clojure-goes-fast/clj-memory-meter {:mvn/version \"0.1.0\"}}}" Clojure 1.9.0 user=> (require '[clj-memory-meter.core :as mm]) CompilerException java.lang.reflect.InvocationTargetException, compiling:(clj_memory_meter/core.clj:50:1) user=> (mm/measu

Re: clojure.spec gen-testing VS NaN

2018-03-06 Thread Wes Morgan
Yes it did: https://dev.clojure.org/jira/browse/CLJ-2054 On Tuesday, March 6, 2018 at 12:15:26 PM UTC-7, Wes Morgan wrote: > > Did this ticket get created? > > On Monday, November 7, 2016 at 3:26:15 PM UTC-7, Jim foo.bar wrote: >> >> Alright cool, I'll do that tomorrow :) >> >> Thanks, >> >> Dimi

Re: clojure.spec gen-testing VS NaN

2018-03-06 Thread Wes Morgan
Did this ticket get created? On Monday, November 7, 2016 at 3:26:15 PM UTC-7, Jim foo.bar wrote: > > Alright cool, I'll do that tomorrow :) > > Thanks, > > Dimitris > > On 07/11/16 22:07, Alex Miller wrote: > > I think it would be reasonable to log a jira enhancement request for the > spec any?

Re: clojure.zip: skip a node

2018-03-06 Thread Marco Rucci
Hi all, thank for the helpful discussion. I've stumbled upon the same issue of needing to skip a subtree during a traversal and solved it with the following skip function that is a slight modification of one in the original message: (defn skip-subtree "Fast-forward a zipper to skip the subtree

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Alexander Yakushev
user=> (count nn) 25000 user=> (mm/measure nn) "940.3 KB" ;; Still shared though! user=>(mm/measure [mm nn]) "1.8 MB" -- 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

Re: Why does the `def-` not exist?

2018-03-06 Thread Léo Noel
That's what I do ! However I have the gut feeling that the :private metadata was designed for exactly this purpose, and many people (including me) don't use it because they don't want to rely on dirty hacks to access implementation from the outside. That's why I half-jokingly suggested the compi

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-06 Thread Matching Socks
Unrealized lazy sequence... user=> (def mm (filter even? (range 10))) #'user/mm user=> (mm/measure mm) "160 B" Realized... user=> (count mm) 5 user=> (mm/measure mm) "1.8 MB" Structural sharing? user=> (def nn (drop 25000 mm)) #'user/nn user=> (mm/measure nn) "1.8 MB" user=> (mm/me