00:24 | <devsnek> | if anyone has opinions -> https://github.com/tc39/proposal-iterator-helpers/issues/107 |
00:24 | <devsnek> | i don't think there's really enough of a consistency in Constructor() and Constructor.from() to draw a useful pattern |
00:24 | <devsnek> | s/draw/have/ |
00:29 | <bakkot_> | I find the OP pretty compelling |
00:30 | <bakkot_> | Array.from(array) makes a new array |
01:51 | <devsnek> | bakkot_: Constructor() often makes a new instance as well, so idk |
01:52 | <devsnek> | if i had to choose what i think is most likely to create a new instance of something i'd choose the thing that looks like a constructor |
01:52 | <bakkot_> | I agree with that but I don't think that means I would expect .from to_not_ make a new instance of the thing |
02:01 | <devsnek> | if "from" is the problem maybe it just needs a different name |
14:05 | <bendtherules> | Is there any repo which contains the https://tc39.es/ecma262 built page? |
14:08 | <bendtherules> | I am looking to extract the mapping json contained in "#menu-search-biblio" of ecma262 website |
14:09 | <bendtherules> | I understand it is possible to get that after doing build, but if it's already available in some repo - that'll be easier |
14:10 | <jmdyck> | try the ecma262 repo, in the gh-pages branch |
14:11 | <bendtherules> | Yes, that works. Thanks |
22:13 | <devsnek> | ljharb: i think String.prototype.indexOf step 8 should be removed |
22:23 | <jmdyck> | Why is the clause for StringIndexOf in "ECMAScript Language: Source Code" ? It doesn't have anything particularly to do with Source Code. |
22:40 | <devsnek> | how does one convert a utf16 codepoint to utf8 octets |
22:41 | <jmdyck> | no such thing as a "utf16 codepoint", I think. |
22:42 | <devsnek> | s/utf16// |
22:43 | <jmdyck> | how in the spec, you mean? |
22:43 | <devsnek> | like in js how would one achieve such a functionality |
22:45 | <jmdyck> | you mean, how do express the UTF-8 transform in JS? |
22:46 | <devsnek> | like what algorithm would be used to utf8 encode a codepoint |
22:49 | <jmdyck> | I'm not sure how to answer other than: the UTF-8 encoding algorithm. |
23:09 | <devsnek> | > If the two most significant bits in B are not 10, throw a URIError exception. |
23:10 | <devsnek> | does this mean if the two most significant bits are not 1 and 0, respectively? |
23:17 | <rkirsling> | devsnek: would have to; are you worried about an endianness assumption? |
23:17 | <devsnek> | no |
23:18 | <devsnek> | i'm trying to implement the uri functions in engine262 |
23:30 | <bakkot_> | devsnek: almost certainly yes |
23:32 | <bakkot_> | a fun article on the design of a general recoverable parser: https://marijnhaverbeke.nl/blog/lezer.html |
23:41 | <rkirsling> | oh this does look fun |