TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JavaScript language proposal: function implementation hiding

3 pointsby tardismechanicabout 2 years ago

2 comments

rektideabout 2 years ago
I know there&#x27;s valid uses but everytime JS ships something that isn&#x27;t a first-class object, everytime it adds security &amp; privacy, it makes me sad for the language.<p>To have been such a promising exciting open place, where we could ask the runtime anything &amp; see everything... To go from such a blissful state to such a sad industrial world where we just lock down &amp; restrict &amp; control... I hate it. Industrial demands having their claws in computing is shit, &amp; the industry doesn&#x27;t deserve it&#x27;s bad things.<p>But we certainly do see a lot of scary industrial systems spying on &amp; surveilling others. Gross, &amp; defense feels semi justifiable. (Albeit if this starts running in TPM&#x2F;security enclaves &amp; isn&#x27;t ddvtools-ad then we can burn it all down &amp; pitchfork some fucking <i>villians</i>).<p>Also WebAssembly is coming &amp; isnt hidden code (you load the code itself into an address space before launching it I believe?) , but it&#x27;s going to be vastly less understandable anyways. Making js also dead closed &amp; worthless is parity!<p>I wish it wasn&#x27;t like this. I still think &quot;private&quot; is a poison that is un-JS, &amp; whatever merit it has is outweighed by far by it&#x27;s badness. Almost no one needs it, we did great without it &amp; with informat this. _foo. There are a couple real sensitive uses but mostly we&#x27;d be better with loose walls not higher ones. But the fear-based ideology features prominently in the computer-science psyche, and the looking down our noses at a language without hard protection won.<p>And now people don&#x27;t reach for convention &amp; lax awesome caveat emptor, we just write tons of stuff with private just because it&#x27;s in the language and that is absolutely a worse state, is woefully sadder &amp; narrower &amp; more pathetic than where JS was. Awful sadness of letting fear win, of being desperate for control, it defeats us.
josephcsibleabout 2 years ago
I don&#x27;t like this. It&#x27;s too useful to malicious developers relative to how useful it is for legitimate purposes.