Diagrams A Functional EDSL for Vector Graphics Ryan Yates Brent - - PowerPoint PPT Presentation

diagrams
SMART_READER_LITE
LIVE PREVIEW

Diagrams A Functional EDSL for Vector Graphics Ryan Yates Brent - - PowerPoint PPT Presentation

Diagrams A Functional EDSL for Vector Graphics Ryan Yates Brent Yorgey FARM Vancouver, BC, Canada 5 September 2015 What is diagrams? Domain-specific language for vector graphics What is diagrams? Domain-specific language for vector


slide-1
SLIDE 1

Diagrams

A Functional EDSL for Vector Graphics Ryan Yates Brent Yorgey FARM Vancouver, BC, Canada 5 September 2015

slide-2
SLIDE 2

What is diagrams?

  • Domain-specific language for vector graphics
slide-3
SLIDE 3

What is diagrams?

  • Domain-specific language for vector graphics
  • Embedded in Haskell
slide-4
SLIDE 4

What is diagrams?

  • Domain-specific language for vector graphics
  • Embedded in Haskell
  • 7+ years of development
slide-5
SLIDE 5

What is diagrams?

  • Domain-specific language for vector graphics
  • Embedded in Haskell
  • 7+ years of development
  • Large, active, creative community
slide-6
SLIDE 6

Why an EDSL?

  • Powerful, programmable alternative to Illustrator,

Inkscape, PGF/TikZ

slide-7
SLIDE 7

Why an EDSL?

  • Powerful, programmable alternative to Illustrator,

Inkscape, PGF/TikZ

  • Tools influence the creative process
slide-8
SLIDE 8

cabal install diagrams http://projects.haskell.org/diagrams (second Google result!)

slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12

Demo: visualizing binary trees

slide-13
SLIDE 13

Tree visualizations

slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

More examples

slide-18
SLIDE 18

3D Trees

seeds/seeds.html http://www.cs.rochester.edu/u/ryates/art/seeds/

slide-19
SLIDE 19

Burrows-Wheeler Transform

slide-20
SLIDE 20

Weaving a Torus

http://mathr.co.uk/blog/2013-04-05_weaving_a_ torus.html

slide-21
SLIDE 21

Parking in Westminster

https://idontgetoutmuch.wordpress.com/2013/10/23/ parking-in-westminster-an-analysis-in-haskell/

slide-22
SLIDE 22

ghc-events-analyze

http://www.well-typed.com/blog/86/ hackage.haskell.org/package/ghc-events-analyze

slide-23
SLIDE 23

Cretan maze

http://www.corentindupont.info/blog/posts/ 2014-02-17-Cretan-Maze.html

slide-24
SLIDE 24

Puzzles

https://maybepuzzles.wordpress.com/2014/04/07/ drawing-puzzles-with-the-haskell-diagrams-framework/

slide-25
SLIDE 25

Stencil diagrams

https://readerunner.wordpress.com/2014/04/29/ red-black-neighbourhood-stencil-diagrams/

slide-26
SLIDE 26

Num chart

https://martingalemeasure.wordpress.com/2014/07/ 07/haskell-numeric-types-quick-reference/

slide-27
SLIDE 27

Happy diagramming!