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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Deno 1.14

257 点作者 sondr3超过 3 年前

21 条评论

sqs超过 3 年前
I tried out Deno last weekend for a fun little hack project (syncing a local Markdown file to a formatted Google Doc), and it was awesome.<p>Writing TypeScript code for Deno feels a lot like writing Go (which is a very good thing to me):<p>- opinionated build&#x2F;fmt&#x2F;deps<p>- well-designed stdlib<p>- no need for scaffolding files (.eslintrc, babel.config.js, jest.config.js, mocha.opts, etc.)<p>If that sounds good to you, try Deno!
评论 #28553164 未加载
评论 #28555134 未加载
评论 #28554015 未加载
评论 #28555296 未加载
评论 #28570518 未加载
评论 #28554681 未加载
simonw超过 3 年前
It&#x27;s always worth reading the Deno release notes even if you&#x27;re not using Deno because it&#x27;s such a fascinating collection of interesting ideas.<p>I always learn something new from them.<p>In this case it was the existence of the URLPattern web API: <a href="https:&#x2F;&#x2F;pr8734.content.dev.mdn.mozit.cloud&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;URLPattern" rel="nofollow">https:&#x2F;&#x2F;pr8734.content.dev.mdn.mozit.cloud&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;AP...</a><p>Also that Mutual TLS is an alternative term for client authentication.
评论 #28566664 未加载
eins1234超过 3 年前
One of the most exciting opportunities IMO that Deno opens up, compared to most traditional server-side frameworks, is the possibility for simple url-based live-reload workflows in production.<p>I&#x27;d love to be able to develop backend services by pushing source code to some url as I develop, and then have the production instances of the service notified of the changes and reload themselves immediately for a super-tight feedback loop.<p>In theory, building this kind of workflow in Deno should be very feasible, so I&#x27;m hoping to give it a shot in the not too distant future, but I&#x27;m wondering if anyone else has already tried it?
评论 #28554852 未加载
评论 #28554772 未加载
评论 #28555019 未加载
nexuist超过 3 年前
Does anyone know if Deno has undergone a security audit yet? I&#x27;m interested in using it as a sandbox to run user-submitted JS, and I know its permission model is powerful, but I don&#x27;t know if it is formally certified (if that&#x27;s even a thing) and if you can prove that there can&#x27;t be some exploit that can be used to break out of the sandbox.
评论 #28556557 未加载
评论 #28555368 未加载
ravenstine超过 3 年前
Funny, I was just looking into whether I could add a Deno config file to my project. Nice to know this was just made possible!
评论 #28551516 未加载
aikah超过 3 年前
Love Deno and using it as a node replacement. Fantastic work. I encourage anybody who has npm packages to move everything to deno.
评论 #28552408 未加载
评论 #28559485 未加载
qsort超过 3 年前
Only tangentially related, but what&#x27;s the point of a static class block? What problem does it solve that&#x27;s not covered by either the class constructor or a static const? Doesn&#x27;t it introduce a weird (stateful!) computation that&#x27;s hard to reason about?<p>There&#x27;s probably a use-case I&#x27;m missing, because intuitively I&#x27;d automatically classify it as bad a practice.
评论 #28551622 未加载
评论 #28551869 未加载
评论 #28553866 未加载
评论 #28551348 未加载
评论 #28551577 未加载
评论 #28552325 未加载
up6w6超过 3 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;denoland&#x2F;deno&#x2F;discussions&#x2F;11771" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;denoland&#x2F;deno&#x2F;discussions&#x2F;11771</a><p>&gt; NodeJS compatibility, what is our high-level strategy, goals, next steps?<p>&gt; Do we see Node and Deno co-existing, or do we want to think of Node as &quot;legacy&quot;? (Note, there was no clear decision on this question, it was just a conversation)<p>&gt; If we could say &quot;you can run your Express server under Deno faster than Node&quot; would that encourage adoption? No clear answer<p>I really wish they go for a better compatibility with Node and sell themselves as a replacement that is strictly better.
评论 #28554559 未加载
评论 #28555175 未加载
benatkin超过 3 年前
Deno is awesome, and it&#x27;s great to see the WebCrypto additions!<p>My current top feature request is that I wish Deno would have the same permission model for the repl.<p>I highly recommend listening to this recent podcast with Ryan Dahl: <a href="https:&#x2F;&#x2F;changelog.com&#x2F;podcast&#x2F;443" rel="nofollow">https:&#x2F;&#x2F;changelog.com&#x2F;podcast&#x2F;443</a>
评论 #28555205 未加载
IshKebab超过 3 年前
Deno is really awesome for shell scripts. Forget Bash. Forget Python. Deno is way better.<p>You get a fairly sane type system, good performance, easy deployment (it doesn&#x27;t count as easy if it&#x27;s a pain on Windows), supports single file scripts <i>with third party dependencies</i>, and no compilation to deal with.<p>There aren&#x27;t really any alternatives that offer all that as far as I know.
cylde_frog超过 3 年前
I&#x27;m convinced to try deno. I only use node for small testing scripts so it should be easy enough.
a5aAqU超过 3 年前
&gt; This release allows deno lint and deno fmt to be configured.<p>That&#x27;s good news. The main thing holding me back from seriously looking at Deno was the lack of config for the formatting. The default settings weren&#x27;t right for me, and I tend to avoid projects where you have to fight the tools. I&#x27;m going to take another look now.
rubyist5eva超过 3 年前
Anyone using Deno in production? Would love to hear how it&#x27;s going for your team.
评论 #28552413 未加载
Zababa超过 3 年前
I know it&#x27;s a bit superficial, but I love Deno&#x27;s branding. Their logo is cute and evokes a sense of calm, and the variations on the mascot are nice.
e12e超过 3 年前
Looks good. Interesting that they are &quot;bringing back&quot; mutual tls (after browsers pretty much axed it..).<p>Is there support on the (deno http) server-side too? Eg: easy to set up mutually trusted, private-&#x2F;non-ca tls between a deno client and deno server? Perhaps via a self-signed&#x2F;private CA?
评论 #28554924 未加载
scns超过 3 年前
Does anyone know of providers for running deno FAAS style? Or is a VPS needed?
siscia超过 3 年前
How it is the zero-copy ArrayBuffer transfer function implemented?
评论 #28552700 未加载
nikolay超过 3 年前
My son is 13. He loves Deno. What I don&#x27;t get is why a 13-year-old can get Deno, and we don&#x27;t, and it&#x27;s not as widely popular as it must be for its merits!
nathanjmorton超过 3 年前
you got me at no need for scaffolding files babel.config.js
mastrsushi超过 3 年前
Why’d they have to give a JS environment the name of a guido.
sgtnasty超过 3 年前
How many runtimes are there for JS? They seem to pop up once a week...
评论 #28556277 未加载
评论 #28555161 未加载