# Deno

- Speaker: [Benjamin Gruenbaum](/wiki/speakers/benjamin-gruenbaum.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=948by_y1VKI
- Transcript: [/transcripts/2019/21-948by_y1VKI.md](/transcripts/2019/21-948by_y1VKI.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [JavaScript](/wiki/topics/javascript.md), [Software Engineering](/wiki/topics/software-engineering.md), [Security](/wiki/topics/security.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker introduces Deno, a modern runtime for JavaScript and TypeScript created by the original author of Node.js to address historical design flaws. The talk covers the motivations behind Deno, such as better security via sandboxing, native TypeScript support, and strict Promise error handling. The speaker explains that while Deno is not yet ready for production use, it represents an exciting experimental shift in backend JavaScript development.

## Key points

- [0:10](https://www.youtube.com/watch?v=948by_y1VKI&t=10s) The speaker introduces Deno as a new runtime for JavaScript and shares their background in the Node.js core and open-source ecosystems.
- [1:19](https://www.youtube.com/watch?v=948by_y1VKI&t=79s) A brief history of backend JavaScript is provided, explaining why Node.js was originally created to handle asynchronous I/O and high concurrency.
- [7:22](https://www.youtube.com/watch?v=948by_y1VKI&t=442s) The creator of Node.js returned to a conference after years away to reflect on the architectural mistakes made in Node's early days, which sparked the creation of Deno.
- [11:36](https://www.youtube.com/watch?v=948by_y1VKI&t=696s) Deno handles Promises and unhandled rejections much more aggressively than Node.js, crashing the application immediately if an error is uncaught.
- [14:44](https://www.youtube.com/watch?v=948by_y1VKI&t=884s) Security is addressed in Deno by running scripts inside a strict sandbox where explicit permissions are required to access the file system or network.
- [19:10](https://www.youtube.com/watch?v=948by_y1VKI&t=1150s) Deno natively executes TypeScript out of the box, aiming to prevent common runtime errors caused by missing type safety.
- [28:38](https://www.youtube.com/watch?v=948by_y1VKI&t=1718s) The speaker advises that Deno is still experimental and not yet ready for production, but encourages developers to experiment with it for fun and learning.

## Takeaways

- Deno is designed from the ground up to support TypeScript natively without external build configurations.
- Security in Deno relies on a sandboxed execution model where file system and network access must be explicitly granted.
- Unhandled Promise rejections in Deno cause the program to crash immediately to enforce strict error handling.

## Questions this talk answers

- How does Deno differ architecturally from Node.js?
- How does Deno handle security and module permissions compared to traditional Node.js applications?
- Is Deno currently recommended for production-grade software projects?

## Technologies

Deno, Node.js, TypeScript, JavaScript, Rust, V8, NPM

## Tags

backend, deno, javascript, nodejs, runtime, security, typescript
