You raise an interesting point I have been thinking about. Currently 15!:0 targets arguments of various types and always requires boxing each. This has never been an issue. However the opengl API has a large class of calls,where performance may be an issue, that have scalar args of the same type. It would be fairly easy to introduce a new 15!:x that took a list of scalars. I'm not sure if this is worth it, but would consider it if presented with arguments.

----- Original Message ----- From: "Miller, Raul D" <[EMAIL PROTECTED]>
To: "Beta forum" <[email protected]>
Sent: Tuesday, April 04, 2006 6:48 PM
Subject: RE: [Jbeta] 601 j beta for windows now available.


A few more notes, working through the opengl lab:

── (18 of 42) Isigraph Control (ctd) ────────────────────────
Calls with all scalar args are defined to box each scalar (as
required by cd) and to be rank 1. This allows calls with a
simple scalar list and allows application to tables.

Wouldn't unboxed right arguments with 15!:0 be radically more
efficient for these cases?  (Not that efficiency should be
a primary concern, but in this case it also seems like it
should be simpler.)

── (19 of 42) Isigraph Control (ctd) ────────────────────────
...
modifiers) is often added for the common case. For
glVertex... the added definition is: glVertex=: glVertex4d

That's not completely accurate.  (Not that I'm complaining,
I'm talking about minor rough edges here, and releasing even
a small piece of software can involve a lot of work and time.)

  glVertex__ogl
[EMAIL PROTECTED](4 = {:@$)

I'd also be inclined to use
[:`[:[EMAIL PROTECTED]({:@$)

── (32 of 42) Cube (ctd) ────────────────────────────────────

Here, I got an error:

error in: jijs_jctrl_fkey

domain error: gluDeleteQuadric
  gluDeleteQuadric obj

Also, when I restarted the lab without creating a fresh J
session, no opengl rendering window would appear (though
the buffer manipulations without a window seemed to work
just find).

When I restarted the lab in a fresh J session, section 32
seemed to work just fine, so I'm suspecting a race condition.

FYI,

--
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to