Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Of all the languages that have these features, how do you conclude that ES is "smuggling" from E, a language I've never heard of before?


I get to be part of the discussions since I hack on E-related things.

Mark Miller worked on E and then on Google's Caja (stands for 'Capability JavaScript'). He has been leading an effort to port features from Caja into ES via the 'Secure ECMAScript' initiative: https://github.com/drses

Doug Crockford worked on E and ported E's data mini-language, TermL, to JS and it became JSON. He's also done many other things in the JS community. The json.org website still links into the E archeological site from its front page: http://erights.org/data/terml/embeddings.html

The WeakMap feature of ES doesn't mention it in the spec [0], but the 'sealer/unsealer' capability pattern can be implemented on top easily, and in fact having WeakMap is equivalent to having E's brand-maker or Monte's makeBrandPair, as discussed here: https://groups.google.com/forum/#!topic/cap-talk/4hPYemjPK_Y

[0] https://www.ecma-international.org/ecma-262/6.0/#sec-weakmap...


> Mark Miller worked on E and then on Google's Caja (stands for 'Capability JavaScript'). He has been leading an effort to port features from Caja into ES via the 'Secure ECMAScript' initiative: https://github.com/drses

So nothing to do with current ES, and if anything a dead effort, the "Secure ECMAScript" repository hasn't seen an update in 5 years.

> Doug Crockford worked on E and ported E's data mini-language, TermL, to JS and it became JSON.

Do you have any evidence for those assertions as explanations, rather than the rather obvious and much simpler "he was looking for a data format to communicate between frontend and backend and javascript literals could be trivially and quickly eval'd from the client"?

> The json.org website still links into the E archeological site from its front page: http://erights.org/data/terml/embeddings.html

Insultingly misleading. json.org links to that page from a section on json implementations in various languages, because that page has a section on "json in terml". In fact, that's the exact label of the link on json.or. It also links to pages for labview, M or PascalScript, that doesn't mean JSON traces its roots to any of those.

> The WeakMap feature of ES doesn't mention it in the spec [0] but the 'sealer/unsealer' capability pattern can be implemented on top easily

You can implement stuff on top of existing features, news at 11.

> and in fact having WeakMap is equivalent to having E's brand-maker or Monte's makeBrandPair

Of course WeakMap is also and more directly equivalent to having weak maps from dozens of preceding language.

Your comment distinctly looks like you're just seeing everything through the E lens because you really want it to be relevant, and hammering the ES peg in the E hole no matter how the fit is.


I'm not gonna bother quoting you to fisk you. Your approach towards my evidence is weak overall. I'm gonna throw more evidence at you.

Miller and Dean Tribble have been working on WeakRefs lately: https://github.com/tc39/proposal-weakrefs

Crockford's personal site no longer has the original JSON description, and neither does the Wayback Machine, but his site does still have a section on E: http://www.crockford.com/

In this talk [0], Crockford discusses the origin of JSON. He mentions working with Chip Morningstar (this guy http://habitatchronicles.com/2017/05/what-are-capabilities/) and has oblique references to his prior work. He doesn't bother to explain what he was doing during the 90s here, and at this point social interaction becomes required to learn more.

'hammering the ES peg in the E hole' is wrong. They're hammering the E peg into the ES hole. Not all of us believe in this approach; some of us think that JS is irredeemable and that we should keep iterating with languages like Pony and Monte which expand on the original E concepts.

Like I said, kicking and screaming. I don't know why you all kick and scream so much, but you do.

[0] http://www.youtube.com/watch?v=-C-JoyNuQJs


I've got nothing against E. But I have some ideas about why "we all" kick and scream so much. I think it's got something to do with the way you're packaging your message. If you start with an adversarial tone, there's a good chance the rest of the discourse will go that way too.

And I don't even like javascript.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: