TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JavaScript language proposal: function implementation hiding

3 点作者 tardismechanic大约 2 年前

2 条评论

rektide大约 2 年前
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.
josephcsible大约 2 年前
I don&#x27;t like this. It&#x27;s too useful to malicious developers relative to how useful it is for legitimate purposes.