Fork me on GitHub
#dirac
<
2017-03-13
>
qqq00:03:44

@darwin: okay, so: (1) cljs devtools = pretty-printed data in console; javascript names in stackframe, javascript data in view source (2) dirac devtools = pretty-printed data in console; pretty-printed names in stackframe; pretty-printed data in view source ?

darwin06:03:38

not exactly, cljs-devtools is a collection of enhancements that can be implemented in javascript, for example :formatters feature leverages Custom Formatters subsystem available in Chrome DevTools since 2015: https://github.com/binaryage/cljs-devtools/blob/master/docs/faq.md

darwin06:03:17

Dirac is a full-blown fork of Chrome DevTools which adds stuff which cannot be implemented directly

darwin06:03:45

custom formatters are currently presented in console and “scope” view of “Sources Panel”, they are not presented as inline data in source view

darwin06:03:02

Dirac modifies DevTools to additionally present them in source view

qqq00:03:11

atleast the vars are observable in the "scope" sidebar, so it's not a complete loss; I can tolerate this

qqq00:03:00

alright, so cljs devtools works fine in remote debugging

qqq00:03:03

and it's awesome

qqq00:03:07

dirac, I guess dirac I'll give up

qqq01:03:52

@darwin: https://github.com/binaryage/cljs-oops/search?p=2&amp;q=ocall&amp;utf8=%E2%9C%93 <-- is there a list of examples for how to use ocall ? the readme.md has screenshots of oget/oset! , but I can't find docs ofr ocall anywhere

darwin06:03:23

yes, I didn’t document it yet, it works similar to javascript .call, it does “this” retargeting, which is something you would normally do by hand: https://github.com/binaryage/cljs-oops/releases/tag/v0.5.0 you can get some inspiration here: https://github.com/binaryage/cljs-oops/blob/master/test/src/tests/oops/main.cljs#L291

qqq07:03:46

@darwin : cljs devtools, by itself, suprisingly does alot; if you were to estimate, how many times harder is groking dirac codebase than groking cljs devtools codebase ?

qqq07:03:06

(dirac seems too hard to jump in; I'm considering hacking on cljs dev tools myself for mobile needs)

darwin09:03:00

why don’t you just look?

darwin09:03:45

As you can guess Dirac is definitely more complex, but both are quite compex

darwin09:03:55

cljs-devtools taps into ClojureScript internals a lot

qqq09:03:42

@darwin: my question definitely looks lazy, but it's because I know so little about devtool internals that I'm not even sure how to estimate it

darwin09:03:00

I think you need a goal first, a feature you want to implement, a bug you want to fix maybe, it does not make sense to me just to read the code for the sake of it

qqq09:03:02

@darwin: I'll think of a featureI absolutely need, then I'll look intto cljs devtools