On 27 September 2011 07:43, Oleg Podsechin
<oleg.po...@gmail.com> wrote:
I do feel that there is a need for increased collaboration among synchronous server side JavaScript implementations.
I agree, 100%. Ondras and I speak frequently about implementations, and I have certainly found his experience useful when building similar modules in GPSEE.
I think Dean Landolt started something like this last year; also, you should definitely look at Narwhal. Lots of good reusable stuff in there.
Finally, you absolutely *must* look at Christoph Dorn's PINF loader.
- have all implementations support the same base CommonJS specs and have a separate package containing a bunch of unit tests, so that we would have one set of tests & to speed up development of new implementations
I agree 100%. However, we still need to get some very important spec pieces ratified. Like I/O streams. There is a ratified CommonJS spec which will let you open files, but not read them. That's so stupid. In fact, every time I think about how this group spent a full year arguing over module formats -- without a portable way to even read files -- my blood boils.
There is a good start in the Wiki that is implemented by RingoJS. I think Streams class in GPSEE is about as minimal as you can get and still be useful; I grafted that onto the end of the fs-base module, awaiting a real spec.
Also, I think eventually we should aim to have fewer implementations per engine.
What value does absence of code bring to the ecosystem?
Wes