Page MenuHomePhabricator

Request for supporting Deno on Toolforge
Open, LowPublic

Description

I would like to propose a new runtime for Toolforge. Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Developed by Ryan Dahl, also known for the creation of Node.js.

Core advantages with Deno:

  • Security is integrated
  • A more complete standard library (compared to Node.Js)
  • Integrated Typescript
  • No more NPM

No NPM? So how is Deno handling dependencies? By simply allowing you to require modules from anywhere. In other words, you can simply do:

import { serve } from "https://deno.land/std@0.53.0/http/server.ts";

External links:

I hope that this is something that could be consider to be integrated in Toolforge.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 24 2020, 10:17 AM

Hi @Premeditated, servers run on Debian, hence we need Debian packages to install. Please link to a Debian package for Deno.

Hi @Premeditated, servers run on Debian, hence we need Debian packages to install. Please link to a Debian package for Deno.

@Aklapper I can't find .deb package, but I found that this can be installed via bash script (https://deno.land/#installation).

At this point there are no Debian package (https://github.com/denoland/deno/issues/1583).
It can be installed via a bash script, like mentioned by @Zoranzoki21.
And updated by running deno upgrade.

It's unlikely that Toolforge will provide a system-wide installation of Deno anytime soon. Even for Rust (which is a precursor for Deno support), we're initially looking at per-user rustup installs (see T194953). I would suggest you do the same, install deno in your tool's home directory and proceed from there, letting us know how it goes.

For completeness, the Debian ITP for deno is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961337

Aklapper triaged this task as Low priority.Fri, Jul 24, 9:58 AM