bartlomieju | 2 years ago | on: Deno in 2023
bartlomieju's comments
bartlomieju | 2 years ago | on: Deno in 2023
bartlomieju | 2 years ago | on: A Node, TypeScript, TS-Node and ESM experience that works
bartlomieju | 2 years ago | on: A Node, TypeScript, TS-Node and ESM experience that works
bartlomieju | 2 years ago | on: Deno 1.35: A fast and convenient way to build web servers
Eg. if you have a Vite app (or any other app really) with "package.json" and some "scripts" defined there, just try running "deno task <script_name>". Deno will automatically pick up "package.json" and try its best to run the that script.
It's not fully done, but in our testing we got a lot of non-trivial projects running that way. If something doesn't work in your case, I would greatly appreciate a bug report to help us fix this.
As for the written guide - there's not a single one at the moment - it's something we'll be looking into in the coming months.
bartlomieju | 2 years ago | on: Deno 1.35: A fast and convenient way to build web servers
I'd love to hear what problems did you hit and look into solving them.
bartlomieju | 2 years ago | on: Node.js built-ins on Deno Deploy
bartlomieju | 2 years ago | on: Node.js built-ins on Deno Deploy
> for one the security model is incompatible with node APIs.
All Node.js APIs are polyfilled using Deno APIs and as such these Node.js API are subject to the same permission model as regular Deno programs.
> however if deno were to support all npm packages, it would necessarily basically have to implement the entire node api, including support for pre async/await (aka callbacks)
We're not aiming for 100% compatibility, though we managed to polyfill a hefty amount of built-in Node modules, including ones that are callback based.
> consider just the c++ embedder apis. how exactly would deno deal with that with respect to permissions?
This is the same situation as with Deno's FFI API. You need to pass `--allow-ffi` flag to enable usage of `Deno.dlopen` (or `require("./foo.node")` for N-API extensions). That said when you load dynamic libraries all bets are off - we can't control what the dynamic library can do and you effectively open up your whole system. Still, you can't load such libraries unless `--allow-ffi` flag is passed.
Hope this clears up some things.
bartlomieju | 2 years ago | on: Deno 1.34: Deno compile supports NPM packages
We're debating how to best tackle that. If you have a specific use case in mind I would appreciate opening a feature request in our issue tracker.
bartlomieju | 2 years ago | on: Deno 1.34: Deno compile supports NPM packages
bartlomieju | 2 years ago | on: Deno 1.34: Deno compile supports NPM packages
bartlomieju | 3 years ago | on: Roll your own JavaScript runtime (2022)
bartlomieju | 3 years ago | on: Roll your own JavaScript runtime (2022)
[0] https://doc.rust-lang.org/book/ [1] https://www.youtube.com/watch?v=8aGhZQkoFbQ
bartlomieju | 3 years ago | on: Roll your own JavaScript runtime (2022)
Just yesterday we posted a second part of this post [0] where we add "fetch"-like API and TypeScript transpilation.
Happy to answer your questions.
[0] https://deno.com/blog/roll-your-own-javascript-runtime-pt2
bartlomieju | 3 years ago | on: Big changes ahead for Deno
The development is well under way, we expect to ship first iteration of this feature in the next release (v1.25) in the coming weeks.
bartlomieju | 3 years ago | on: Big changes ahead for Deno
bartlomieju | 3 years ago | on: Big changes ahead for Deno
bartlomieju | 3 years ago | on: Big changes ahead for Deno
We are consuming sources as they are provided in npm using "compat layer" that is part of Deno's standard library. We had to provide special module resolution, but besides polyfill for built-in Node APIs, it works very similar to how Node consumes these packages.
bartlomieju | 3 years ago | on: Big changes ahead for Deno
bartlomieju | 3 years ago | on: Big changes ahead for Deno