hoplon 2023-11-15

Build reports using the version currently on master and soon to be released, and a project that uses all attributes provided by the providers. • dom: [JS: 155.65 KB] [GZIP: 33.75 KB] • goog: [JS: 166.3 KB] [GZIP: 37.93 KB] • jquery: [JS: 244.38 KB] [GZIP: 65.56 KB] There are differences in features, but those are small. I need to document the supported attributes in each case now that I have a demo that uses them all.

👍 1

Hoplon v7.5.0 released with the new native dom provider hoplon.dom

🍾 7

I will update the sci.config next, and add the missing macros.

Re: missing macros, are you talking about *-tpl etc? I noticed those weren't available yesterday

Those too, but defelem and defc are the ones I noticed first as missing. I'll attempt to write something that uses all macros to make sure we got them all.

3

This was crazy fast, thank you!

I can have a look at one of those macros, perhaps you can prepare a gist for the playground that shows the intent

Ok, thank you. I need to go now, but I will create a gist later.

@borkdude about the scittle plugin, should I create a hoplon one that includes javelin, or should I create one plugin each and have the hoplon one depending on the javelin one? Not sure about how a plugin can depend on another.

yes, you can make a separate javelin plugin if you think that javelin will be used without hoplon

plugins correspond to shadow-cljs modules and modules can depend on one another

if you think most people will only use hoplon, just don't bother maybe

Ok, I will try to make them separated.

so I'm debugging cond-tlp and just inserted some printlns:

(prn :yo)
  (assert (even? (count clauses)))
  (prn :yoa)

and yo gets printed, yoa does not. I usually just use this way of debugging stuff if nothing shows up

however, the count is 8 so I don't see why it's going wrong

looking into it deeper

it is as if counting the clauses makes something go wrong

(prn :yoa)
  (try (prn :clauses (vec clauses))
       (catch :default e
         (js/console.log e)))
nothing except :yoa in the console

got it, it's something weird with varargs in the m/defmacro thing

aaah it somehow drops arguments

ok, fixed cond-tlp, now looking at the next

that also fixed formulet

All of them are working now. Thank you!

👍 2
2