@bherrmann Max, not Maxwell I think?
@pesterhazy Yes, Max not Maxwell. https://en.wikipedia.org/wiki/Max_Planck
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
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/
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
@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?
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?
@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.
Meaning, you might be able to intern your own read-resource*
Var
ok, thanks will have another stab at it later
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.
fwiw https://github.com/kkinnear/zprint already works in clojurescript
though if the goal is to speed things up, see https://github.com/kkinnear/zprint/blob/master/doc/filter.md#appcds-version