Re: Code compilation alternative to Function()

2014-01-21 Thread Sean Silva
On Tue, Jan 21, 2014 at 9:06 PM, Gustavs TÄ“bergs wrote: > On 22 January 2014 01:50, Sean Silva wrote: > > Your `load` routine is not how I described and is inducing a ton of > > cache-busting heap traffic. You need to put *all* strings in a single, > > constant array and

Re: Code compilation alternative to Function()

2014-01-21 Thread Sean Silva
lem, and you just need to develop an efficient codec for describing a string of JS. The approach in the Gist you linked is not a very efficient codec. The codec used in the above simple loop is probably not the most efficient, but if you add a couple special case opcodes and/or use a cheap varint

Re: Code compilation alternative to Function()

2014-01-11 Thread Sean Silva
as the standardized representation (it isn't, and I doubt JS engines would let that implementation detail be standardized), then they still need to do a format conversion, but this time walking a linked sea of GC-heap allocated JS objects inste

Re: if-scoped let

2013-12-04 Thread Sean Silva
on that this is a short-circuiting operator since it is a "doubled bitwise operator" like || and &&, but it can't be short-circuiting. -- Sean Silva > > > Waldemar > > ___ > es-discuss mailing list > es-dis

Re: Import: why are single-export modules favored?

2013-07-04 Thread Sean Silva
function is a "basic, 95% of use cases" functionality, and then the module exposes a richer, more advanced API by adding attributes to the function object. Here are a couple examples: https://github.com/isaacs/minimatch https://github.com/substack/dnode https://github.com/mikeal/request -- S

Re: Import: why are single-export modules favored?

2013-07-04 Thread Sean Silva
in a new way and made available to `import` statements, which use new language constructs to access the values aggregated by the module (`import foo from ...`, `module foo from ...`) and renaming values (`as`)). -- Sean Silva ___ es-discuss

Re: Array#sort() implementations not interoperable

2013-06-13 Thread Sean Silva
{ quicksortRec(this, 0, this.length, cmp); }; function quicksortRec(arr, begin, end, cmp) { if (end - begin < 20) { fastBaseCase(arr, begin, end, cmp); // what this does happens to be stable return; } // ... slow recursive case } -- Sean Silva _

Re: Array#sort() implementations not interoperable

2013-06-13 Thread Sean Silva
rder; I haven't looked in detail at what this would mean from an implementation standpoint, but I'm pretty sure that it is unrealistic. -- Sean Silva ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: First crack at a Streams proposal

2013-04-20 Thread Sean Silva
On Sat, Apr 20, 2013 at 8:10 PM, Tab Atkins Jr. wrote: > On Sat, Apr 20, 2013 at 4:13 PM, Sean Silva wrote: > > On Sat, Apr 20, 2013 at 3:47 PM, Tab Atkins Jr. > > wrote: > >> On Sat, Apr 20, 2013 at 9:19 AM, Isaac Schlueter wrote: > >> > I'm

Re: First crack at a Streams proposal

2013-04-20 Thread Sean Silva
this argument is about *usefulness*", except it's about usefulness of standardizing it compared to other ways of making the code available, and not about the intrinsic usefulness of the API (which, I'll point out, does not appear to be convincingly established). -- Sean Silva __