<div class="gmail_quote">On 17 January 2012 14:43, David <span dir="ltr"><<a href="mailto:d@dav1d.de">d@dav1d.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 17.01.2012 05:31, schrieb Kiith-Sa:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
David wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 16.01.2012 03:54, schrieb JoeCoder:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 1/15/2012 1:42 PM, Walter Bright wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
A nice vector math library for D that puts us competitive will be a nice<br>
addition to Phobos.<br>
</blockquote>
<br>
The gl3n library might be something good to build on:<br>
<a href="https://bitbucket.org/dav1d/gl3n" target="_blank">https://bitbucket.org/dav1d/<u></u>gl3n</a><br>
<br>
It looks to be a continuation of the OMG library used by Deadlock, and<br>
is similar to the glm (<a href="http://glm.g-truc.net" target="_blank">http://glm.g-truc.net</a>) c++ library which emulates<br>
glsl vector ops in software.<br>
<br>
We'd need to ask if it can be re-licensed from MIT to Boost.<br>
</blockquote>
Hi,<br>
<br>
that's definitly possible! But to be honest, I don't  think putting gl3n<br>
into phobos is a good idea. Why does phobos, the std. lib, need a<br>
vector-lib? I haven't seen any other language with something like gl3n<br>
in the std. lib. Also I used my own PEP-8, C (K&R with spaces) style, it<br>
would be a real pain changing this to the Phobos style. One more point<br>
is, that it's not just a Vector-lib, it also does Matrix-,<br>
Quaternion-math, interpolation and implements some other useful<br>
mathematical functions (as found in GLSL).<br>
Of course I am open to a discussion.<br>
<br>
PS:// I already talked with Manu about this topic, and I don't wait too<br>
long, gl3n will have core.simd support soon.<br>
</blockquote>
<br>
gl3n has a really good API with regards to game development<br>
(resembling GLSL helps), although I guess changing to a more Phobos<br>
style might be needed for inclusion. I think having it in the standard<br>
library would be extremely useful, though - no need to implement it myself<br>
then. Typical matrices used in gamedev (4x4 etc) woud be really useful as<br>
well (as said before, I'd even like stuff like AABBoxes, but let's go for<br>
vectors/matrices/quaternions first .<br>
</blockquote></div></div>
AABB are also planed for gl3n.<br>
</blockquote></div><br><div>Yeah I probably wouldn't put anything that high level in a standard library. Everyone will want a slightly different flavour.</div><div>I think linear algebra with vectors, matrices, quats is about the fair extent of a std lib. That stuff is pretty un-debatable, but beyond that, it starts getting very subjective or context specific. Better left for higher level libraries that may also integrate with renderers/physics systems/etc.</div>