hoplon

2023-11-15T17:53:16.589249Z

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
2023-11-15T17:53:52.046549Z

2023-11-15T18:12:47.068999Z

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

🍾 7
borkdude 2023-11-15T21:38:59.429469Z

Awesome!

2023-11-15T22:20:17.418989Z

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

borkdude 2023-11-15T22:23:08.525719Z

cool!

2023-11-16T00:10:47.974919Z

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

2023-11-16T00:16:12.286399Z

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
2023-11-17T10:15:38.307429Z

PR for an improved sci config: https://github.com/babashka/sci.configs/pull/41

borkdude 2023-11-17T10:15:56.500399Z

merged!

2023-11-17T10:17:02.785429Z

This was crazy fast, thank you!

borkdude 2023-11-17T10:17:30.681579Z

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

2023-11-17T10:19:02.706889Z

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

borkdude 2023-11-17T10:19:21.299689Z

👍

2023-11-17T11:01:45.147659Z

https://babashka.org/sci.configs/?gist=d701f0393c058fb528534e2e076691d0 This is for cond-tpl.

2023-11-17T11:08:52.714409Z

This is for formula-of https://babashka.org/sci.configs/?gist=27e65a9d3c6fc24d59e554d55d84aee3

2023-11-17T11:12:09.885379Z

And this one is for formulet https://babashka.org/sci.configs/?gist=dba41fccf1af9d48793142743f8da909

2023-11-17T13:18:46.521709Z

@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.

borkdude 2023-11-17T13:19:31.172299Z

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

borkdude 2023-11-17T13:19:47.628419Z

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

borkdude 2023-11-17T13:20:12.927099Z

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

2023-11-17T13:24:35.103429Z

Ok, I will try to make them separated.

borkdude 2023-11-17T13:27:43.788929Z

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

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

borkdude 2023-11-17T13:28:00.360989Z

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

borkdude 2023-11-17T13:28:33.465189Z

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

borkdude 2023-11-17T13:28:39.214419Z

looking into it deeper

borkdude 2023-11-17T13:29:25.609809Z

it is as if counting the clauses makes something go wrong

borkdude 2023-11-17T13:30:30.594989Z

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

borkdude 2023-11-17T13:31:48.043789Z

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

borkdude 2023-11-17T13:33:56.031149Z

aaah it somehow drops arguments

borkdude 2023-11-17T13:39:51.650049Z

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

borkdude 2023-11-17T13:41:04.734189Z

that also fixed formulet

2023-11-17T13:50:55.362059Z

This is great!

2023-11-17T14:06:18.465159Z

All of them are working now. Thank you!

👍 2
2