Karel Sedláček

Results 17 comments of Karel Sedláček

I must admit, I'm not particularly convinced by this argument. Coco has always adopted a strongly "It's just Javscript" mentality, and this somehow feels contradictory to that, if only peripherally....

In order to stay neutral, the syntax extensions needn't necessarily be limited to only binary, but also Strings. Essentially what I'm looking for is some kind of structured assignment where...

@qqueue, that's about right; notice, though, that "prefix" and "suffix" are just character sequences that match the data, where "middle" is an identifier for a capturing group. I'd recommend use...

The binary example uses length-based parsing and packing, so might look something like: ``` javascript // = apnsData var ref$ = new bitjs.io.BitStream(apnsData, true, 0, apnsData.length); var timestamp = ref$.readBits(4);...

Yep, that regex desugar seems fine (minus the usual undiscovered problems, of course ;). Sort of a double desugar too, which is fun. I think checking for a match could...

Definitely, this proposal and the proposal for `=~` are quite separate. Of course, if you're trying to match against a string literal, you can just replace your quotes with `//`...

If we have foreknowledge of the values used in the specifier lengths, e.g. your ``, where the bit-widths of the two components are fixed, then the compiler can optimize this...

Agreed; that sounds like a good solution. Can we always count on typed arrays/buffers having a 32-bit word size, or is it system dependent?

About the future, http://blog.nodejs.org/2012/06/25/node-v0-8-0/. That said, buffers are pretty ingrained in the source of node as of now, so we'll see if this transition makes it sooner rather than later....

It's worth a clarification that this really shouldn't apply to single-quoted strings, e.g. "There's a space at the end. "; the clarity is already pretty well there, and, moreover, one...