"What to know about Deno 2.0"

Поделиться
HTML-код
  • Опубликовано: 17 авг 2023
  • (Originally livestreamed on SeattleJS: • The live stream for Se... )
    Kevin Whinnery talks about how Deno is radically simplifying cloud development and plans for Deno 2.0.
    Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
    Website: deno.land
    GitHub: github.com/denoland
    Discord: / discord
    Twitter: / deno_land
  • НаукаНаука

Комментарии • 52

  • @friendlywavingrobot
    @friendlywavingrobot 11 месяцев назад +50

    4:11 skips the intro

    • @Tejas-zx7ie
      @Tejas-zx7ie 11 месяцев назад +1

      Thank you.

    • @DAB009
      @DAB009 11 месяцев назад

      deo means god in Indian language Hindi 😅 thanks for helpful comment.

  • @stefankyriacou7151
    @stefankyriacou7151 11 месяцев назад +13

    The main thing that always stopped me from using deno in production is the lack of monorepo support, running tests only for the module i've changed, and the modules dependant on the module i've changed is not something i'm willing to trade for all the other benefits of deno's simplicity.

    • @seanknowles9985
      @seanknowles9985 11 месяцев назад +3

      Same, monorepo support, all this advanced functionality in the cloud environment with edge but something as basic as monorepo support has been missed makes me think they've not prioritised. Very frustrating as just get to get a repo going doesn't work so easy. Lastly they only implemented npm node_modules support after the success of Bun.

  • @larscwallin
    @larscwallin 11 месяцев назад +10

    Just imagine also having an IndexedDb implementation on the server, so you could run the same storage implementation on the backend as on the frontend😻

  • @SKeyreaper
    @SKeyreaper 11 месяцев назад +7

    LET'S GOOOOO

  • @DanelonNicolas
    @DanelonNicolas 11 месяцев назад +1

    omg!!! I love it!!! ❤❤❤❤❤ I want it live now ! 😊🎉

  • @DrDrero
    @DrDrero 2 месяца назад +2

    now how does deno registry fit into JSR?

  • @AwesomeAsh99
    @AwesomeAsh99 11 месяцев назад +2

    Very interesting.

  • @neoesm
    @neoesm 11 месяцев назад +6

    I'm seriously pumped and mega bullish in Deno. I just had to switch a project from bun to deno because bun as it stands atm is missing a bunch of stuff. I like all runtimes but recently deno has been solving everything for me

  • @cotyhamilton
    @cotyhamilton 11 месяцев назад +10

    Would like to know what Ryan thinks… he was against centralized registry and required metadata file like package.json
    I hope http imports stay in 2.0

    • @cg219
      @cg219 11 месяцев назад +3

      Yeeeeeeeah Im curious about this too. Seems like some stuff is getting walked back

    • @pookiepats
      @pookiepats 11 месяцев назад +1

      Literally answered in the talk

    • @kevinwhinnery
      @kevinwhinnery 11 месяцев назад +2

      You'll hear from Ryan directly in the not too distant future - this direction is something he's pretty passionate about.

    • @lionelrowe617
      @lionelrowe617 9 месяцев назад

      @@kevinwhinnery can you confirm that http(s) imports will continue to be fully supported, and won't be deprecated, even if no longer the recommended method of handling dependencies? Continued support is implied by your deno.jsonc "patches" example, but I don't think you explicitly stated that (unless I blinked and missed it) 😅

  • @cg219
    @cg219 11 месяцев назад +4

    Hmmmmm This seems like a reversal. Lets see how this goes. Still looking for 2.0
    Will Deno 1.xx run in the Deno 2.xx runtime or will they be segmented??

    • @pookiepats
      @pookiepats 11 месяцев назад

      😂 excellent deductionary chops sir, it appears you watched the video.

    • @cg219
      @cg219 11 месяцев назад +1

      @@pookiepats whats the timestamp where Kevin mentioned it?? Mustve looked away at that time everytime

    • @kevinwhinnery
      @kevinwhinnery 11 месяцев назад

      There will be some breaking changes from 1.x to 2.x, but with individual APIs rather than a wholesale switch. This will be closer to major version changes in React versus the schism in Python 2 and 3, for example.

  • @WalterSear
    @WalterSear 11 месяцев назад +3

    This left me with the impression that the only thing 'to know about Deno 2.0' is a fix for package management - somewhat underwhelming for a version release. And, for a 25 minute presentation.

    • @pookiepats
      @pookiepats 11 месяцев назад

      😂 not an actual dev if this didn't excite you, you're underwhelmed by the first real viable anti-npm / node compat catastrophe ? FOH dude you're a poser, this is fabulous!

    • @WalterSear
      @WalterSear 11 месяцев назад

      @@pookiepatsExcept this doesn't solve a key problem that npm/--compat was meant to solve - deno's lack of access to the node ecosystem. It only solves the problem that was incorporated along the way, and as a feature to boot - the lack of package management.
      Once is a mistake. Twice is teething problems. Three times is a deal breaker. I can't afford to spend any more time on Deno. Maybe 3.0 will turn things around.

    • @bricecarpentier5817
      @bricecarpentier5817 11 месяцев назад +3

      @@pookiepatslol, dude. This is a marked as a major version of Deno and literally the only new thing they talked about is a package manager, when the lack of one was touted as such a better thing throughout v0 and v1. There’s literally nothing to see.
      I’m super bullish on Deno, but this was vastly underwhelming and if you can’t grasp that then I guess there’s at least one poser in the room

    • @cg219
      @cg219 11 месяцев назад +1

      @@bricecarpentier5817 looks like he just responded to everyones post with the same energy lol.

  • @cg219
    @cg219 11 месяцев назад +2

    I wonder if DenoKV will see changes in 2.0.

    • @kevinwhinnery
      @kevinwhinnery 11 месяцев назад +1

      Not specifically related to 2.0, but KV will be adding some exciting updates soon (and will continue to outside of the 2.0 release schedule)

  • @dealloc
    @dealloc 11 месяцев назад +1

    I wonder how they are going to solve the issue with squatting. Because right now there's quite a discussion within the Rust community about some new CoCs and their rights to remove content and what implications that can have; One example is a prominent maintainer of multiple popular libraries that works on many projects. And to avoid a situation where he'd have to rename his entire work _if_* he's going to publish it, he often registers the name first with an empty project. Moreover, these projects can take everywhere from months to years, especially as he's also maintaining other libraries.
    Technically you could say that is a form of squatting but at what point does it warrant removal? When and how is a name considered "abandoned"? What happens if someone contacts Deno about wanting to take over a name that _seems_ abandoned?
    It will require a huge effort on Deno's side to take each and every case as individual with all the context in mind.

    • @mikwit
      @mikwit 11 месяцев назад +2

      Because you can easily import from URLs instead of a single registry it should be low drama. Anything that was removed can still be accessed by url instead of being whipped off the face of the earth like rust crates.

    • @dealloc
      @dealloc 11 месяцев назад

      @@mikwit Obviously the registry is going to be used by most people because of convenience of managing dependencies.
      There are pros and cons to both ways. If the problem of name squatting was solved by just using URLs within Rust, then you could also just use Git repo URLs for Cargo already.

  • @shafu_xyz
    @shafu_xyz 11 месяцев назад +4

    Is Deno slowly starting to look like Node?!!

    • @kevinwhinnery
      @kevinwhinnery 11 месяцев назад +4

      I don't think it will ever be exactly like Node - we want the programming model to be as close to browser JavaScript as possible, and over time I think you will see the runtime and standard library become more opinionated (versus Node I would foresee leaving tooling/platform APIs to userland).
      That said, in service of DX, we may end up working with or emulating the Node ecosystem in some ways.

  • @rikkitp
    @rikkitp 11 месяцев назад

    I want to know how Deno plan to working out npm problem "node_modules becoming black hole"

    • @kevinwhinnery
      @kevinwhinnery 11 месяцев назад +1

      Our new registry is going to be built on top of similar technology to the current registry (only downloading files on-demand), so we should be able to retain much of the efficiency of our current system. We'll be posting a technical blog post with more details in the coming weeks.

  • @JohnMcclaned
    @JohnMcclaned 8 месяцев назад

    deno is so good, it's just too painful to run into the 'not implemented' warning

  • @okerror1451
    @okerror1451 11 месяцев назад

    holy bleeping christ this is some cool stuff. feel like a dinosaur not using this yet

  • @abbass_almusawi
    @abbass_almusawi 11 месяцев назад +1

    What to know about Deno 2.0?

  • @amitlevy1861
    @amitlevy1861 11 месяцев назад +1

    Deno lacks documentation and support of private npm packages, until that is added, I cannot move convince my company to use deno

    • @pookiepats
      @pookiepats 11 месяцев назад

      Another ignorant fart that comments without watching, your company is lucky you're not pitching anything

  • @butterfly7562
    @butterfly7562 11 месяцев назад +1

    The reality is, although deno is good, but bun appear and better

  • @_modiX
    @_modiX 11 месяцев назад

    Sorry I strongly disagree with the points on HTTPS imports. You can handle all of these problems with a deps.ts (no duplicates, because centralized, deno.json (for easier imports) and lock.json (for integrity). All of those things can be enforced using shebangs, by providing the proper arguments to the deno runtime automatically.

  • @Stevexupen
    @Stevexupen 2 месяца назад

    8:17 dude manage to sneak in dik pic into his presentation

  • @tariqshafi3162
    @tariqshafi3162 11 месяцев назад +4

    Most of node js devs still use node js and not convince to use Deno. But most of node js and Deno devs going to easily got convinced to use Bun js

  • @nXqd
    @nXqd 11 месяцев назад

    progress, make it work wth current framework and save typescript =)) nodejs is dying

  • @dinoscheidt
    @dinoscheidt 11 месяцев назад

    Mh. Deno looks to me like a great idea in isolation, but when looking at the whole end to end life cycle I am not so sure. We have everything run in containers incl. DevContainers (so go ahead npm script and delete the file system 🤷🏻‍♂️), docker and kubernetes is adding native wasm execution with virtually no cold starts and npm is THE ecosystem to distribute not just js but binaries, wasm and utilities. In a world where containers don‘t exist and wasm wouldn’t be a thing, deno is probably a great solution. But for me: Deno provides both too little for me / my engineers too drop docker as our line of Defence for pure bare metal JS isolates and too marginal improvements to use it over wasm (when actually needed). I feel Deno is at a weird spot between the chairs…. too little benefit for integration anxiety of having stuff suddenly also not work on the package level. Incl lack of tooling, mono repo support etc… Mh…

  • @starlederer
    @starlederer 11 месяцев назад +5

    I love:
    * pnpm-style dependency store
    * importing by full URLs
    * consistency with web standards
    but I hate:
    * unacceptably slow lsp
    * too many built in things (ts, jsx support)
    * no-build-step approach

    • @cg219
      @cg219 11 месяцев назад +7

      Why don't you like built in ts support ??

    • @ollierkul
      @ollierkul 11 месяцев назад +3

      Built in ts support is maybe Deno's strongest selling point imo, makes it so easy to just write and run TypeScript.

    • @pookiepats
      @pookiepats 11 месяцев назад +2

      First legit comment I've seen, agree on no LSP; bummer.

    • @pookiepats
      @pookiepats 11 месяцев назад +2

      ​@@ollierkulI'd argue it's KV, people act like setting up TS is difficult. You can grab any config through AI / google / gist... it's trivial and better done as needed.

    • @ollierkul
      @ollierkul 11 месяцев назад +1

      @@pookiepats That's true, but I still love the simplicity of being able to have a single ts file and run it, no config, no extra files. KV is awesome though, been playing with it a bunch myself and using it for a serious project.