LambdaCube 3D(lambdacube3d.com)
lambdacube3d.com
LambdaCube 3D
http://lambdacube3d.com/
8 comments
that OpenGL code is written like this in LambdaCube 3D:
main = ScreenOut (FrameBuffer (ColorImage @1 (V4 0 1 0 1.0)))
or with depth + color buffer main = ScreenOut (FrameBuffer (DepthImage @1 1000, ColorImage @1 navy))For anyone else wondering what this has to do with https://en.wikipedia.org/wiki/Lambda_cube -- in a few minutes I couldn't find anything.
http://lambdacube3d.com/editor.html why type inference (for hints in editor) is so cool?
Can I do something similar for haskell (without pain if possible)?
[deleted]
Does anything like this exist in Ocaml?
it compiles, but how does it run ?
Just edit the code, and if there are no compile errors, it will reload a new version. To make sure it works for you, load the example "Example01.lc" and change the color (the tuple at the end of the line). it should change the color displayed after a second or two.
Compared with:
State management is a nightmare in OpenGL, but that second chunk of code is a lot easier to wrap my head around even if it's objectively worse in a lot of ways. Still though, I'm waiting to see the language tutorial before I make up my mind. Looks interesting!