datavis

2016-02-10T14:03:46.000133Z

@stathissideris: can dali render in realtime, in a window, somewhat reminiscent of web svg element?

stathissideris 2016-02-10T14:05:02.000134Z

@nooga: haven't tried it, I suspect it way be a bit slow. I'm planning to make an Cljs version soon(ish) which will be fast enough for real time stuff

2016-02-10T14:05:18.000135Z

I see

stathissideris 2016-02-10T14:06:02.000136Z

what's your use case?

2016-02-10T14:06:04.000137Z

I’m looking for something that would let me build custom 2d gui in clj

2016-02-10T14:06:38.000138Z

I like using web svg w/ reagent in cljs but if I wanted a desktop app, this would mean bringing webkit in

2016-02-10T14:07:03.000139Z

Quil and Java2d are either slow or resource hungry

stathissideris 2016-02-10T14:08:14.000140Z

if you're going in that direction, maybe bringing webkit in is not so bad (since it's part of the JDK anyway). If you used dali to do it, you would have to rasterize every frame, and then you'd have to keep track of regions to detect clicks etc yourself

stathissideris 2016-02-10T14:08:27.000141Z

if you have a DOM, that's taken care of for you

2016-02-10T14:08:53.000142Z

right

stathissideris 2016-02-10T14:10:19.000143Z

so what's your experience with svg+reagent? it's very relevant to me for the cljs version

2016-02-10T14:16:15.000145Z

I mostly write simple components that render svg tags, mount everything onto a single <svg> and it just seems to work, there are some caveats with visibility and mouse events handling. Mostly text and simple shapes though - never actually tried drawing complex paths etc. as it would require generating strings and I’m too lazy for that

2016-02-10T14:16:17.000146Z

:simple_smile:

2016-02-10T14:16:53.000147Z

also my approach assumes layouting by hand

stathissideris 2016-02-10T14:16:58.000148Z

well, with dali-cljs you wont have to anymore!

stathissideris 2016-02-10T14:17:09.000149Z

I just need to find some time to do it

stathissideris 2016-02-10T14:17:19.000150Z

writing all that documentation has exhausted me

2016-02-10T14:17:23.000151Z

i could use some auto layout for grids or groups of objects

2016-02-10T14:19:08.000152Z

dali seems nice, I’m browsing the examples and docs right now

stathissideris 2016-02-10T14:19:26.000153Z

thanks :simple_smile:

2016-02-10T14:21:19.000154Z

👍

stathissideris 2016-02-10T14:22:26.000155Z

@nooga: the best example I have is this (and it should probably be in the front page): https://github.com/stathissideris/dali/blob/master/examples/output/architecture.svg

stathissideris 2016-02-10T14:22:57.000157Z

that's the most complex thing I've done with dali

2016-02-10T14:27:20.000158Z

yeha, looks impressive and shows things like :dali/align which I’d love to have in web svg... vide knobs in http://83.136.254.164:3000/index.html

stathissideris 2016-02-10T14:28:05.000159Z

@nooga: https://github.com/stathissideris/dali/blob/master/examples/output/surround.svg :simple_smile:

stathissideris 2016-02-10T14:30:06.000161Z

looks similar

stathissideris 2016-02-10T14:30:10.000162Z

cool project btw

stathissideris 2016-02-10T14:30:35.000163Z

and cool monty python reference

2016-02-10T14:30:49.000164Z

thx, you’re looking at dev version of our entry for clojure cup 2015

2016-02-10T14:31:00.000165Z

we actually won 2nd place ;D

👏 1
stathissideris 2016-02-10T14:31:17.000166Z

oh nice! I didn't follow that very closely

stathissideris 2016-02-10T14:31:22.000167Z

who was 1st?

2016-02-10T14:32:28.000168Z

@pesterhazy and friends with interactive Quil tutorial, very impressive

2016-02-10T14:35:34.000169Z

I’m watching dali now, I’ll come back when it gets web backend 😉

2016-02-10T14:41:07.000170Z

TMTGP uses web audio for realtime synthesis and we want to write more music software that’s for desktop and uses faster DSP than the web one. Eyecandy is the main problem though :K

stathissideris 2016-02-10T14:53:30.000171Z

@nooga: use seesaw (which is swing), this book will tell you how to make it look good: http://filthyrichclients.org/

stathissideris 2016-02-10T14:53:51.000173Z

swing can look amazing (if you override renderers etc)

stathissideris 2016-02-10T14:54:47.000174Z

https://github.com/daveray/seesaw

2016-02-10T14:56:21.000176Z

thanks