Interactive constraint solving in Haskell
mattkeeter.com
mattkeeter.com
I've done visualizations like this in Mathematica, which is really awesome for doing interactive visualizations, but it'd be fun to redo these in Haskell. I haven't done much plotting in Haskell, what libraries do people favor?
c_x - b_y = 1
It should read c_x - b_x = 1 "([True,True],fromList [('x',1.7500000780766642),('y',-0.24999969839074443)])"
when i run print $ show $ solveSystem
[ ((2 * x) + (3 * y)) * (x - y) === 2
, (3 * x) + y === 5 ]
$ Map.fromList [('x', 0),('y', 0)]
which doesn't match the suggested solutions.. using this code: https://gist.github.com/80e982016a267b1f2e48* edit - lowering the precedence of === fixed it
Although, I thought that animations were done completely in haskell but it seems that necessary functions were exported and data used in d3js.
But it highlights one of the thing people forget when their language gets a JavaScript compiler: your render target is now the DOM, so you have to start caring/learning about that cross-browser world of pain!
Slightly less likely: modern Haskell distills some ideas that have proven to be beneficial to software projects regardless of the language(s) they choose. As long as the number of HN users grows, and more and more of them realize the benefits of the FP paradigms championed by Haskell, there will be more upvotes for related submissions to the front page.