Fork me on GitHub
#datavis
<
2016-02-10
>
nooga14:02:46

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

stathissideris14:02:02

@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

stathissideris14:02:02

what's your use case?

nooga14:02:04

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

nooga14:02:38

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

nooga14:02:03

Quil and Java2d are either slow or resource hungry

stathissideris14:02:14

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

stathissideris14:02:27

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

stathissideris14:02:19

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

nooga14:02:15

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

nooga14:02:53

also my approach assumes layouting by hand

stathissideris14:02:58

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

stathissideris14:02:09

I just need to find some time to do it

stathissideris14:02:19

writing all that documentation has exhausted me

nooga14:02:23

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

nooga14:02:08

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

stathissideris14:02:26

@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

stathissideris14:02:57

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

nooga14:02:20

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

stathissideris14:02:10

cool project btw

stathissideris14:02:35

and cool monty python reference

nooga14:02:49

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

nooga14:02:00

we actually won 2nd place ;D

stathissideris14:02:17

oh nice! I didn't follow that very closely

nooga14:02:28

@pesterhazy and friends with interactive Quil tutorial, very impressive

nooga14:02:34

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

nooga14:02:07

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

stathissideris14:02:30

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

stathissideris14:02:51

swing can look amazing (if you override renderers etc)