3 ms·
Well D3 is I guess a DSL in disguise. Javascript is just the vessel here, so to speak. Similar to OpenGL with it's state machine or even worse GLSL with it's de
by dsego 8y ago
Well D3 is I guess a DSL in disguise. Javascript is just the vessel here, so to speak. Similar to OpenGL with it's state machine or even worse GLSL with it's deceptively familiar syntax.
Here are two tiny examples I've made with D3. I'd probably choose raw svg and a vdom lib next time, since I'm currently working on a project that mixes Mithril.js and SVG very nicely (although D3 or equivalent would be useful for mapping domains and scaling).
https://htmlpreview.github.io/?https://github.com/dsego/dsego.github.io/blob/master/complex.html https://htmlpreview.github.io/?https://github.com/dsego/dseg...
https://htmlpreview.github.io/?https://github.com/dsego/dsego.github.io/blob/master/polezero.html https://htmlpreview.github.io/?https://github.com/dsego/dseg...
- blt 8y agoThis is the first time I've heard anyone complain about GLSL syntax. (I am only a dilettante in gfx.) What is the problem? It seems pretty well suited to the task in my opinion.
- dsego 8y agoNot saying it's bad or not suited, but might be the “uncanny valley” situation for someone used to C/C++.