An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
May 14, 2020 12:13 am GMT
Original Link: https://dev.to/wobsoriano/deno-1-0-is-out-10p7
Deno 1.0 is out!
What is Deno?
From deno.land:
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
- Secure by default. No file, network, or environment access, unless explicitly enabled.
- Supports TypeScript out of the box.
- Ships only a single executable file.
- Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
- Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno: deno.land/std
But why!?
From Ryan Dahl:
JavaScript has changed significantly since Node was designed in 2009. Notably:
- Promises / Async / Await
- ES Modules
- Typed Arrays
Node has problems:
- A poorly designed module system, with centralized distribution.
- Lots of legacy APIs that must be supported.
- Security
(These problems aren't unique to Node. Python and Ruby suffer similary)
Ryan Dahl's HolyJS talk
Installation
Using shell
curl -fsSL https://deno.land/x/install/install.sh | sh
Using homebrew
brew install deno
Getting Started
A sample http server
import { serve } from "https://deno.land/[email protected]/http/server.ts";const s = serve({ port: 8000 });console.log("http://localhost:8000/");for await (const req of s) { req.respond({ body: "Hello World\n" });}
Blog post: https://deno.land/v1
Are you guys excited to try?
Original Link: https://dev.to/wobsoriano/deno-1-0-is-out-10p7
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To