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
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
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
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
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
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
{
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
_
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
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
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
__
10 matches
Mail list logo