planck

Planck ClojureScript REPL
pesterhazy 2017-07-10T13:41:49.310551Z

@bherrmann Max, not Maxwell I think?

bherrmann 2017-07-10T13:42:48.341758Z

@pesterhazy Yes, Max not Maxwell. https://en.wikipedia.org/wiki/Max_Planck

mfikes 2017-07-10T13:57:49.837915Z

Yeah. My thinking at the time was surrounding startup time. I thought of the shortest time possible, and that’s where the name came from. https://en.wikipedia.org/wiki/Planck_time

mfikes 2017-07-10T13:59:40.902844Z

Interestingly, if you can get below 80 milliseconds, because of the way the human brain works, you can’t perceive any latency. If you are curious about this effect: https://blogs.scientificamerican.com/observations/time-on-the-brain-how-you-are-always-living-in-the-past-and-other-quirks-of-perception/

kommen 2017-07-10T15:28:11.167734Z

so what would be needed to get cljfmt working with planck? in my first try I couldn’t get the read-resource macro working, I think there’s something I don’t yet understand with clojurescript macros. https://github.com/weavejester/cljfmt/blob/master/cljfmt/src/cljfmt/core.cljc#L26

mfikes 2017-07-10T15:32:14.319211Z

@kommen I suppose you could make a Planck-specific version that makes use of <http://planck.io/resource|planck.io/resource> and planck.core/slurp. What specific issue are you encountering?

kommen 2017-07-10T15:48:37.918148Z

ah, I didn’t know about <http://planck.io/resource|planck.io/resource>. but how would I be able to require it in cljfmt/core?

mfikes 2017-07-10T15:52:19.052560Z

@kommen If you don’t want to make a Planck-specific version, you might be able to get away with monkey-patching it after it has been required (assuming you can get that far). If so, planck.core/intern might be useful.

mfikes 2017-07-10T15:53:12.084330Z

Meaning, you might be able to intern your own read-resource* Var

kommen 2017-07-10T16:00:28.352001Z

ok, thanks will have another stab at it later

slipset 2017-07-10T19:46:27.733263Z

Of course, @mfikes should’ve mentioned his effort https://github.com/abiocljs/abio. If you could use this when working with cljfmt, you’d be making it easier to port to eg lumo.

pesterhazy 2017-07-10T20:18:54.735912Z

fwiw https://github.com/kkinnear/zprint already works in clojurescript

pesterhazy 2017-07-10T20:19:27.752597Z

though if the goal is to speed things up, see https://github.com/kkinnear/zprint/blob/master/doc/filter.md#appcds-version