Fork me on GitHub
#hoplon
<
2016-06-09
>
piotrek07:06:39

@mac re: printing datastructures - take a look at https://github.com/noprompt/shodan#inspection

mac07:06:31

piotrek: Looks good, but the fancy folding stuff is done by the console, right?

piotrek07:06:10

I wasn’t sure if it’s for debugging or for user interface

piotrek08:06:18

@micha regarding weak references in js - which javascript version is hoplon aiming at? es6 provides WeakMap and WeakSet. Would that work for storing listeners/watchers in the cells?

mac09:06:22

It was for an interface, but for now this will work well too, thanks.

ul10:06:13

re: GCing cells I've already mentioned it here, but now I'm talking having more experience of using that stuff in production https://github.com/ul/carbon/blob/master/src/carbon/rx.cljs — most cases of cells GC needs are covered by triggering cleanup after changes propagation and watch removal. If formula has no sinks and watches, then detach it from its sources and it becomes available for GCing by JS.

ul10:06:48

We use dynamic reactive expressions w/o much care and had no memory leaks for some time (after the last significant bug in propagation/cleaning subsystem was fixed)

ul10:06:28

I think that it is possible to write similar extension for javelin

alandipert13:06:05

@piotrek: we need a weak ref ideally, weak set and weak map not ideal since you can't traverse them. They're really only useful for caches

alandipert13:06:59

Unfortunately it's unlikely we'll ever get them in JS because weak refs reveal information about memory that could be used to exploit JS vm, see jit splay

dm313:06:45

@ul do you have any examples of things built with carbon?

alandipert13:06:57

@ul: interesting. Does that mean anonymous cells for effect can disappear?

alandipert13:06:33

Eg (cell= (println foo)) at top level

micha13:06:50

also @lewix ^^^ carbon might interest you

jumblerg15:06:15

@micha: could we push a new jar with the innerHTML to empty string fix?

jumblerg15:06:18

i’m also thinking it might make sense to enhance the page macro so the user can specify whether to :refer :all of the element constructors, or in my case, the hoplon ui constructors

jumblerg15:06:15

i get bitten by the injection of the html element functions more often than i’d like

micha16:06:57

can we also revert that last commit before release?

micha16:06:07

the IParent one

jumblerg16:06:53

that revert fixed it, wasn’t mentioned in the msg though

flyboarder16:06:54

Is anyone playing around with front end templating (or template engine) in their hoplon app?

flyboarder16:06:43

hmmm I guess the html->hl task kinda does this

ul17:06:49

@dm3 no any public at the moment, but I should make TodoMVC or somewhat like that soon

ul17:06:40

@alandipert: yes, exactly. but i've found that it is not a problem, because anonymous top-level is always special case, so you can just add-watch or even make nice macro for that

ul17:06:28

the same reactive expressions system as in carbon is in ampere https://github.com/condense/ampere which is view-agnostic implementation of re-frame architecture, built primarily to be used with Om “classic”

ul17:06:21

actually, i'm thinking about trading virtual dom back to hoplon again