<div dir="ltr">Ah, yes, I did run into mention of David Sheets' work and got stuck at the<div style>Ashima site with a cute looking game, but I was looking for implementation</div><div style>details at the time. ;) Thanks for those links Anil!</div>
<div style><br></div><div style>I never did get into browser-based applications, but that's the new way now</div><div style>and that does seem pretty cool to be able to program OCaml through your</div><div style>browser with no installation steps and even leverage WebGL! It sounds</div>
<div style>easy enough that I might try jumping in. Although... one thing about GLES2</div><div style>is that it takes a bit of groundwork to be able to use it (being a thinner</div><div style>layer between the hardware). Does WebGL add a bunch of convenience</div>
<div style>functions, or does Sheets? Or is there a lot of copy/paste into TryOCaml</div><div style>to get something visible?</div><div style><br></div><div style>Buffer abstraction... I use Bigarray a lot. Strings-as-data only if I don't care</div>
<div style>about what the data is -- treating it like a binary blob. Because strings are</div><div style>quite limited, and I think I tend to use them immutably.</div><div style><br></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Mar 13, 2013 at 1:51 PM, Anil Madhavapeddy <span dir="ltr"><<a href="mailto:anil@recoil.org" target="_blank">anil@recoil.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 13 Mar 2013, at 19:41, Anthony Tavener <<a href="mailto:anthony.tavener@gmail.com">anthony.tavener@gmail.com</a>> wrote:<br>
><br>
> In response to this mailing-list starting, and apparent interest in OpenGL<br>
> with OCaml, I looked into the current state of things yesterday. Not much<br>
> has changed... except you (Florent) have gotten a patch into LablGL for<br>
> shader support -- hooray! And I also found someone else has added<br>
> changes to glcaml/sdlcaml and posted them here:<br>
<br>
My interest in OpenGL has also been renewed by js_of_ocaml and WebGL...<br>
David Sheets did a great presentation on his work on WebGL at the last<br>
OCaml workshop: <a href="http://www.youtube.com/watch?v=ll9z1ULtgqo" target="_blank">http://www.youtube.com/watch?v=ll9z1ULtgqo</a><br>
<br>
...and there's lots of WebGL/OCaml code up at:<br>
<a href="https://github.com/ashima/" target="_blank">https://github.com/ashima/</a><br>
(last I looked, it uses ocamljs and not js_of_ocaml yet, though).<br>
<br>
I have in my head an awesome demo that involves the TryOCaml js toplevel,<br>
and a WebGL window that responds in realtime :-)<br>
<br>
I'm not really sure what the right buffer abstraction is that will work<br>
with js_of_ocaml and OpenGL too. js_of_ocaml has some trickery to cast<br>
strings as either immutable (i.e. native Javascript) and mutable (i.e.<br>
native OCaml). This doesn't work in native code, and Bigarrays are<br>
much more explicit and flexible since they wrap system memory that is<br>
outside the OCaml heap.<br>
<br>
Anyway, lots to play with here...<br>
<span class="HOEnZb"><font color="#888888"><br>
-anil<br>
</font></span></blockquote></div><br></div>