Re: Confused as to how generate-gl-function works

2013-10-30 Thread Bart Botta
On Wed, Oct 30, 2013 at 3:47 PM, Caelan Burris wrote: > IIRC, GLEW basically loads as many functions as possible from a static list > of names, and provides an error thunk for any names it can't load. So the > short version for GLEW is basically, "They don't". As far as I know, GLEW generates its

Re: Confused as to how generate-gl-function works

2013-10-30 Thread Caelan Burris
IIRC, GLEW basically loads as many functions as possible from a static list of names, and provides an error thunk for any names it can't load. So the short version for GLEW is basically, "They don't".

Re: Confused as to how generate-gl-function works

2013-10-30 Thread Bart Botta
On Wed, Oct 30, 2013 at 6:58 AM, Chris Bagley wrote: > We use runtime compiling to create our wrappers in case functionality is > not present. > Runtime compilation is more of an optimization, we could store the function pointers in a closure or global array or something instead (and in fact prob

Re: Confused as to how generate-gl-function works

2013-10-30 Thread Chris Bagley
@bart:sorry if you receive this twice. I didn’t reply-all in gmail. @all: Just resurrecting this question briefly as it has been playing on my mind. We use runtime compiling to create our wrappers in case functionality is not present. That is great, but how do more static languages that don’t have

Re: Confused as to how generate-gl-function works

2013-10-16 Thread Bart Botta
On Wed, Oct 16, 2013 at 8:58 AM, Chris Bagley wrote: > Cheers, good to know. OK going back and reading the code again, this all > seems to boil down to the fact that some implementations of opengl are > missing functions It is mainly intended for OpenGL extensions, but Windows in particular only

Re: Confused as to how generate-gl-function works

2013-10-16 Thread Chris Bagley
Cheers, good to know. OK going back and reading the code again, this all seems to boil down to the fact that some implementations of opengl are missing functions, which of course makes sense as there is plenty of difference between v2 and v4 (or gles etc) Does the resulting lisp program take a perf

Re: Confused as to how generate-gl-function works

2013-10-16 Thread Bart Botta
On Wed, Oct 16, 2013 at 6:45 AM, Chris Bagley wrote: > Or is it that once the lambda is compiled, it replaces the version with > generate-gl-function in it? Does that mean that the wrapper functions are > compiled on first call? Right, the call to COMPILE replaces the function with the result of

Re: Confused as to how generate-gl-function works

2013-10-16 Thread Chris Bagley
Or is it that once the lambda is compiled, it replaces the version with generate-gl-function in it? Does that mean that the wrapper functions are compiled on first call? On 16 October 2013 13:42, Chris Bagley wrote: > It seems to be compiling a new lambda on every call. I'll walk through my > l