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.

Deno 1.13 Release

134 pointsby 0xedbalmost 4 years ago

10 comments

qbasic_foreveralmost 4 years ago
One little deno feature I didn&#x27;t realize until digging in to play with it more was that it can &#x27;compile&#x27; code and the V8 runtime into a single standalone executable. IMHO this is really nifty and feels very go-like in building tools with zero other dependencies. Obviously the V8 runtime adds a lot of size (seems like a hello world is 90MB or so in quick testing) but I like the potential for building tools that are easy to give to others to install and use.<p>It seems great for internal use where you have analysts and such using a mish-mash of scripts and one-offs with lots of dependencies and little documentation or time to help people setup and use them. Just hook up your CI to spit out new executables and be done with walking people through how to troubleshoot their broken homebrew node, python, etc. environments.
评论 #28133538 未加载
评论 #28136569 未加载
评论 #28132326 未加载
brundolfalmost 4 years ago
Is anybody using Deno at work?<p>I feel like there was this rush of excitement when it first came out, and that&#x27;s mellowed to a steady stream of updates and some sustained low-medium interest. It seems like everybody&#x27;s following it from the sidelines, waiting to see what happens. That&#x27;s my situation at least.<p>I&#x27;d love a world where I can write everything in TypeScript with minimal building hassle, but I&#x27;m curious to what degree that&#x27;s panning out in industry.
评论 #28131911 未加载
评论 #28132237 未加载
评论 #28131974 未加载
评论 #28131984 未加载
评论 #28132367 未加载
评论 #28132618 未加载
评论 #28132177 未加载
评论 #28132441 未加载
评论 #28132217 未加载
bartlomiejualmost 4 years ago
Bartek from deno.land here, happy to answer your questions should you have any.<p>Deno 1.13 is one of the biggest releases to date - we&#x27;re especially happy with stabilization of native HTTP server bindings. We plan to focus on squeezing the last bits of performance out of it in the coming weeks.<p>Personally I&#x27;m most excited about type checking example code in Markdown files. It&#x27;s critical to keep your documentation up to date and doing so for code blocks embedded in JSDoc comments or Markdown files was very challenging. With this release we got you covered - just run &quot;deno test --doc&quot; on your codebase.
评论 #28134427 未加载
评论 #28132985 未加载
lxealmost 4 years ago
I&#x27;m still not a fan of the async iterator API example for server handlers:<p><pre><code> for await (const conn of Deno.listen({ port: 4500 })) { (async () =&gt; { for await (const { respondWith } of Deno.serveHttp(conn)) { respondWith(new Response(&quot;Hello World&quot;)); } })(); } </code></pre> It&#x27;s hard to reason, and ugly with that async iffe in the middle adding layers of nesting and bf-like `})();` junk.<p>I think the event subscription API is much easier on the eyes and the mind.
评论 #28133098 未加载
floatbothalmost 4 years ago
<p><pre><code> const libSuffix = { darwin: &quot;so&quot;, linux: &quot;so&quot;, windows: &quot;dll&quot;, }[Deno.build.os] </code></pre> oh no, what a bad example. Hope no one ever actually copies that…<p>(it&#x27;s bad because it unnecessarily limits the list of platforms to just three. great way to make BSD users hate you. just do: if (windows) &quot;dll&quot; else &quot;so&quot;)
评论 #28132422 未加载
rektidealmost 4 years ago
Small thing but I dig the new --eval flag.<p>To do something like this in node, I used to do:<p><pre><code> (echo 2+2; cat -) | node -i </code></pre> Which would generate some stdin via echo, then use cat to feed stdin to node. --eval 2+2 is a blissfully elegant upgrade to this.<p>As a comment points out, node has a &#x27;-e&#x27; (and a -p which prints the evalled thing) but does not open a repl after. This shell receipt, like --eval, leaves the repl open.
评论 #28131861 未加载
评论 #28131791 未加载
aitchnyualmost 4 years ago
The example makes me ask, is there a current&#x2F;planned function to compare two complex objects are value-equalm like lodash `_.isEqual`?
评论 #28139405 未加载
holodukealmost 4 years ago
Any reason why I would use this over expressjs?
FaisalAbidalmost 4 years ago
Is Deno production ready?
russellbeattiealmost 4 years ago
Seriously, HN, is Deno going to hit the front page with every single point release??
评论 #28133473 未加载