joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
2020-06-04T03:18:53.085400Z

cool. maybe if you don't mind I post simple questions here. e.g. what is core/object.go?

jcburley 2020-06-04T16:27:28.086600Z

core/object.go defines most of the core objects (types), along with implementations on them, for the Joker implementation code. Other such types are defined in core/ source files like hash_map.go, array_map.go, and so on.

2020-06-04T03:21:33.086400Z

how could I get the size of total memory allocated of the runtime?

jcburley 2020-06-04T16:30:37.086800Z

Depending on what, exactly, you’re looking for, you could try size, time (or gtime), top, etc., or maybe look into what the Go runtime offers. Other than size (which looks at the static executable), you’d invoke Joker and — for instantaneous measurements (unlike time) — put it in whatever state you want to measure, whether that be a REPL, waiting for input a la (read-line), sleeping, etc., and then taking the measurement.