Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Meetup Paris TypeScript #special 2018

Meetup Paris TypeScript #special 2018

Deno: The death of Node.js?

Sylvain PONTOREAU

July 04, 2018
Tweet

More Decks by Sylvain PONTOREAU

Other Decks in Programming

Transcript

  1. function send(channel: string, ...ab: ArrayBuffer[]): ArrayBuffer[] | null; function poll():

    ArrayBuffer[]; function print(x: string): void; https://github.com/ry/deno/blob/golang/msg.proto
  2. function main() { // Setup... while (true) { const messages

    = deno.poll(); processMessages(messages); } }
  3. deno.readFileSync(filename: string): ArrayBuffer; deno.writeFileSync(filename: string, data: Uint8Array, perm: number): void;

    setTimeout(cb: TimerCallback, delay: number, ...args: any[]): number; setInterval(cb: TimerCallbac, duration: number, ...args: any[]): number; clearTimeout(timerId: number); clearInterval(timerId: number);