On 05/25/2010 07:09 PM, Waldemar Horwat wrote:
Khronos group joint meeting: The issues are visible endianness and aliasing. Khronos found that the operations that they needed for file i/o were somewhat distinct from those they needed for graphics work. Possible alternatives that don't expose endianness: Lightweight structs. Khronos: it's less efficient to index into those. Why? Arrays of structs are preferable to sets of homogeneous element arrays due to cache and convenience effects. Allen: Trade off lots of different views of scalar values vs. a richer set of SSE-like operations that might be a better semantic match. Example: smalltalk bitblt allowed a rich set of customizations. Don't currently have scatter/gather operations. Would like to have them. Well-supported arrays of structs (as schemas) might be a satisfactory compromise. Consensus emerging around that solution.
Structs in ECMA-334 are value types, and consist of members that also are value types. Would structs in future revisions of ECMA-262 share these characteristics?
Is it fair to assume that there would end up being a more richer set of primitives to select from when composing a struct than simply "object", "boolean", "number", "string" and the like? Again, ECMA-334 defines the following:
http://en.csharp-online.net/ECMA-334:_11.1.5_Integral_types Would something similar be envisioned for ECMA-262?
Khronos would like to continue developing their API as WebGL host objects in the meantime. This may lead to forking of APIs in the developers' minds. The possible danger is failure to reuse common abstractions. Need a champion. Waldemar offered to work with Khronos to drive a proposal.
If structs are anything like value types, then I am interested in participating. I'm particularly interested in working through the details of how arithmetic of integer like quantities would work.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss
- Sam Ruby _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

