Forced Optimization

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 105

  • @josebreijo3850
    @josebreijo3850 ปีที่แล้ว +54

    This removes so much friction!
    Thanks for the fantastic work, folks. Working with Deno is just... great!

  • @MyAmazingUsername
    @MyAmazingUsername 9 หลายเดือนก่อน +2

    I absolutely love Ryan Dahl. Such a visionary and cool dude. First he dragged the world kicking and screaming into multi-threaded servers, and now he's gonna do it again with security. The NPM import system is so cool.

  • @_purple_44_
    @_purple_44_ ปีที่แล้ว +8

    I DM'ed him on discord and he responded, what a generous guy

  • @sle6423
    @sle6423 ปีที่แล้ว +41

    KV is going to be huge. Calling it
    If the first half was about eating Node’s lunch the second is about eating Cloudflare Worker’s
    2nd mover energy is real

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj ปีที่แล้ว +1

      if they making kv db built-in, why not also vector dbs, ain't those also all about read speeds.
      or maybe i just don't know what i'm talking about..; )

  • @AwesomeAsh99
    @AwesomeAsh99 ปีที่แล้ว +13

    Excited for the 2.0 launch, I truly believe deno has a great path ahead in the future. Keep up the good work guys!

    • @SmartWizzard
      @SmartWizzard ปีที่แล้ว

      What about Nodejs, it's became an ocean now with all those packages and project. I don't think it will go away?

  • @benburton4598
    @benburton4598 ปีที่แล้ว +5

    The sponsor static images contribute to about 20% of the vertical space. Please cut that out so we can read the console.

  • @Felipe-53
    @Felipe-53 ปีที่แล้ว +6

    Thanks for the great work, Deno team!

  • @khuiification
    @khuiification ปีที่แล้ว +22

    KV is interesting, but will people be able to e.g. use a postgres, redis, mongo or whatever backend for it later? Nothing against deno deploy, but i dont want vendor locking on a runtime level. If it is only really useful for deno deploy (in practice, for a large scale app) i dont think i will be using this feature and would prefer it being a 3rd party library rather than a core API

    • @deno_land
      @deno_land  ปีที่แล้ว +26

      Yes, that is the plan :)

    • @ollierkul
      @ollierkul ปีที่แล้ว +1

      Had a school project last semester where I convinced my group to use Fresh and Deno Deploy (we were meant to test out new technology). We used SurrealDB as our database and it worked brilliantly on Deno Deploy.

    • @very_unique_username
      @very_unique_username ปีที่แล้ว +1

      This 100%. KV should be treated as an abstraction for built in persistent data storage with sane defaults, rather than a vendor lock-in service which only works with Deno Deploy at scale.

  • @tiborifj.fazekas6251
    @tiborifj.fazekas6251 ปีที่แล้ว +9

    Common Deno W

  • @_vicary
    @_vicary ปีที่แล้ว +6

    The legend speaks again.

  • @otmanm4095
    @otmanm4095 ปีที่แล้ว +8

    Deno KV, huuuuge!

  • @loucadufault6549
    @loucadufault6549 ปีที่แล้ว +2

    I really don't see the feasibility of the new security model if it is evaluated at runtime... Having a deployed application suddenly break because an edge case caused a dependency to request access to an environment variable sounds like a nightmare.
    I would imagine a lot of devs would opt to run apps with --allow-all to avoid such unforseen scenarios.
    A better approach (not sure if this is scalable) would be to analyze dependencies before runtime to determine the set of permissions they might request, and then declare these before the dependency is ever hooked up to the project. You would then be able to know exactly what is required by a dependency when installing it.
    This also begs the question... why even provide the option to deny a permission request? In which case would a dev want to rely on a dependency only to intentionally sabotage it to fail at runtime? Is the expectation that dependencies should gracefully handle being denied a permission? That might work for packages going forward, but certainly won't hold for existing npm packages.

  • @madhanganesh1
    @madhanganesh1 ปีที่แล้ว +5

    Neat stuff. Thanks Ryan and Dino team on giving this. would there a pointer to know the cost of the KV?

  • @skiesaboveunlimitedstargaz7316
    @skiesaboveunlimitedstargaz7316 ปีที่แล้ว +1

    I am now moved from Node into Deno!! Deno is really awesome!! Since Deno is also written in Rust!!

  • @nemartin1
    @nemartin1 ปีที่แล้ว +3

    28:14 Did he say tokio instead of Tokyo 😁 Looking forward to the new KV store.

  • @kasper369
    @kasper369 ปีที่แล้ว +5

    Amazing ❤

  • @thi-m10
    @thi-m10 ปีที่แล้ว +3

    I'm the number 7884. And it's working fine, incrementing one by one. I guess a lot a people accessed at the same time

  • @wertrager
    @wertrager ปีที่แล้ว +2

    Great work 👏

  • @cg219
    @cg219 ปีที่แล้ว +5

    Amin with the trolly question lmaooo

    • @thi-m10
      @thi-m10 ปีที่แล้ว

      The root question was due the # at the end of the cwd I guess 😂

  • @thisweekinreact
    @thisweekinreact ปีที่แล้ว +1

    Thumbs up and subscribed 👍

  • @shinebayar
    @shinebayar ปีที่แล้ว +10

    I don't understand this secure by default thing. Looks like it's not possible to manage permissions at the dependency level. One of your dependencies asked for some permission, cool you grant it, then everyone gets that permission. Isn't it just .. useless at that point?

    • @neoesm
      @neoesm ปีที่แล้ว +2

      It's at the process level so you allow the running process to have these permissions or not

    • @vuongnh0607l
      @vuongnh0607l ปีที่แล้ว

      @@neoesm that means if I want to give only a certain dependency permission, I will have to split it onto another process and use some sort of interprocess communication right?

    • @henriquealmeida348
      @henriquealmeida348 ปีที่แล้ว +4

      Yea this security thing feels useless, unless if you are one of the very few devs that work in a very sensitive area. It should only be active if configured this way. Many (or most) people not only don't care at all about this micro security that actually feels weak but also feel annoyed by it. They talk about that so much since Deno beginning but feels like a waste of resource and marketing.

    • @soniablanche5672
      @soniablanche5672 ปีที่แล้ว +3

      you can specify what is allowed
      --allow-net=domain1,domain2,domain3
      --allow-env=env1,env2
      --allow-read=path_to_file1,path_to_file2,path_to_directory1
      etc

    • @henriquealmeida348
      @henriquealmeida348 ปีที่แล้ว +2

      @@soniablanche5672 bad DX tbh and is not useful for most situations.

  • @laptopuser5198
    @laptopuser5198 ปีที่แล้ว

    A True visionary.

  • @jaymartinez311
    @jaymartinez311 ปีที่แล้ว +35

    better docs. That’s all i’m saying. It keeps saying node isn’t this or that but you have to really present some docs where I’m like wow 🤩 I like the idea of deno. I’m not a programming expert at work. Like most people I know. So i need some more hand holding if I would ever adopt deno. Side note qwik came out last year (frontend framework) and even their docs are better than deno’s. Node doesn’t need docs. Just type node with whatever and boom there. No problem. I’m just telling the truth. It’s the same with solidjs. Great framework apparently but instead of giving me these lower level explanations just show me how to start from A to get to B, C etc… The one page example isn’t working for me. Even angular has you build an app though it’s a frontend app to get the usage of it across. This idea of, here’s the base of what you can do and figure the rest stuff is getting old. If it’s so much better show me. All these benchmarks mean nothing if I don’t know how to use it. I’ll just keep using Java 😂. the best default with tons of boilerplate but examples galore 😂 . I’m a horrible programmer by the way 😊Rant over

    • @Xe054
      @Xe054 ปีที่แล้ว +2

      Thank you. The docs are part of the product just as much as the technology.

    • @sofianikiforova7790
      @sofianikiforova7790 ปีที่แล้ว +1

      I agree. At this point the SEO and docs for Deno are pretty weaksauce. Hopefully they release a lot more with the 2.0 launch

    • @jaymartinez311
      @jaymartinez311 ปีที่แล้ว +1

      @@sofianikiforova7790 I’m just getting tired 🥱 of the whole we are better then this or that. Show me. Make a million deno small projects on youtube. Link them in the docs. Not just github links. Give me a basic app, then a medium app and maybe a edge case app for the really advanced, so like that i can say, “you know I had this same issue at work with node and this implementation is much more straight forward” or “We did this in node with typescript at work but this deno implementation is amazing!”. I can’t walk in there with a one page example telling them oh let’s stop what we are doing cause deno is here and from now on that’s what we are using 😂. That would be my last scrum meeting ever hahaha. I am not hating because I like the things I have seen but when you get up there and give me this deeply technical low level talk that means nothing in a meeting at work where half the people won’t understand what the hell Im saying anyway. I’ve already been fired from a job (which sucked) where I couldn’t for the life of me speak in a more metaphorical way and got canned.

    • @altairbueno5637
      @altairbueno5637 ปีที่แล้ว +3

      What is wrong with Denos docs? Also, everything in MDN works with Deno too

    • @jaymartinez311
      @jaymartinez311 ปีที่แล้ว

      @@altairbueno5637 i literally wrote a blog size comment explaining why 😂. Read it again and you’ll have the reply your looking for.✌🏾🗣️

  • @cg219
    @cg219 ปีที่แล้ว +3

    Oh time to mess with this unstable feature 👀

  • @cg219
    @cg219 ปีที่แล้ว +4

    Waitlisted :D

  • @edgeeffect
    @edgeeffect ปีที่แล้ว +2

    I'd have rolled my eyes before answering "what is ELF?"

  • @mash808
    @mash808 ปีที่แล้ว +14

    Cool to see Dahl branching out from children's novels.

    • @neanda
      @neanda ปีที่แล้ว

      Wtf are you on about? Ryan never wrote kids books, that was his father

  • @vikingthedude
    @vikingthedude ปีที่แล้ว +8

    Markiplier is really doing it all huh

    • @tunisoft7465
      @tunisoft7465 ปีที่แล้ว

      He is markiplying 😅😢😂

  • @Narblo
    @Narblo ปีที่แล้ว +3

    Just use go or rust or C++ or Odin or zig. Anything that does not require a heavy runtime, both in ram and cpu usage.

  • @TobiasBuschor
    @TobiasBuschor ปีที่แล้ว +1

    since deno wants to be as compatible as possible with the web, i would welcome indexeddb.

  • @jurgentreep
    @jurgentreep ปีที่แล้ว +1

    This looks very interesting 🧐

  • @eduingarciacordero9255
    @eduingarciacordero9255 ปีที่แล้ว +2

    The power of js is the avility to create Objects as easy as possible. JSON is the real power os js. For me every languaje that shoose this as a standard for objects is going to be successfull.

  • @coder_one
    @coder_one ปีที่แล้ว +4

    I am looking for a good and up-to-date course from Deno. Is anyone able to recommend something reasonable?

    • @deno_land
      @deno_land  ปีที่แล้ว

      What are you looking to learn specifically? e.g. build a web server, a saas app, etc.

    • @coder_one
      @coder_one ปีที่แล้ว +1

      @@deno_land something complete about Deno, for a front-end developer ;)

  • @crowlsyong
    @crowlsyong ปีที่แล้ว

    Keep the component library for Fresh alive! It’s great but i would love more resources to draw from.

  • @keithprice1950
    @keithprice1950 ปีที่แล้ว +3

    If deno now has (or will have) built in node modules and support for npm what would be the point starting any new project with node and not deno?

    • @deno_land
      @deno_land  ปีที่แล้ว +4

      Built in security model. ESM. URL imports, Web standards. Native TypeScript support. Robust toolchain including testing, linting. Compile your script to a single binary executable. A vetted std lib. And more :)

    • @vuongnh0607l
      @vuongnh0607l ปีที่แล้ว +5

      @@deno_land i don't think you understand what's being said

    • @iatheman
      @iatheman ปีที่แล้ว

      @@vuongnh0607l No, but it works none the less.

    • @sn-xc7rv
      @sn-xc7rv ปีที่แล้ว

      @@vuongnh0607l Node has most of those things now. Too bad you can’t copyright ideas.

  • @logiclandco
    @logiclandco ปีที่แล้ว +5

    Why not kv as a module? Its just making deno unnecessarily huge. Use global imports, if you have to..

    • @AbhishekPathak21
      @AbhishekPathak21 ปีที่แล้ว +1

      I think primarily because rarely there are any non let-me-automate-it projects which don't require a kv store for caching.

  • @kodejohan
    @kodejohan ปีที่แล้ว

    Awesome! Why was the choice made to use KV instead of IndexedDB to comply with web standards?

    • @alurma
      @alurma ปีที่แล้ว

      Is indexed eventual and distributed?

    • @gilbertsenyonjo963
      @gilbertsenyonjo963 ปีที่แล้ว

      IndexedDB is hard to work with, maybe thats why

    • @alurma
      @alurma ปีที่แล้ว +1

      I tried modifying indexedDB yesterday and almost died

  • @zeenimbalkar6137
    @zeenimbalkar6137 ปีที่แล้ว

    Just a question, node js is single threaded and deno which is build in rust which can use multiple threads but still doing single threading, why ?

    • @ollierkul
      @ollierkul ปีที่แล้ว

      Isn't that just how JavaScript works? Even if the runtime is created in Rust, JavaScript I believe is a single-threaded language? But from my very limited understanding of it, I think you can use Deno's implementation of Web Workers to achieve multi-threading.

  • @the_primal_instinct
    @the_primal_instinct ปีที่แล้ว +2

    Easier accessobility for newer developers usually means less accessibility for intermediate developers. I *want* to know what's going on under the hood and I *want* to be able to tune and adjust how the things work.

    • @Sacramentix
      @Sacramentix ปีที่แล้ว +4

      For me deno is for simple thing, if you really want to adjust thing you should pick a low level language like rust to maximize performance or make binding to deno code

  • @vladimirkrasulya8693
    @vladimirkrasulya8693 ปีที่แล้ว

    maybe I'm missing something but why do you need to embed access restriction logic into interpreter if you can do the same on OS level ?

    •  ปีที่แล้ว

      It is useful for where you don't have access to the underlying OS, like deploying to serverless environment on clouds.

  • @relaxwithai
    @relaxwithai ปีที่แล้ว +3

    Great talk, but I must say Ryan sound different compared to his other talks. 🤔

    • @neek01
      @neek01 ปีที่แล้ว +2

      I haven’t listened to any of his other talks but he sounds super nervous, lots of stuttering, lots of checking notes. Almost felt like he was presenting while being held at gunpoint.

    • @relaxwithai
      @relaxwithai ปีที่แล้ว

      @@neek01 Exactly my point 😀

    • @relaxwithai
      @relaxwithai ปีที่แล้ว +1

      My guess is that the talk was planned for a release that didn't make it so he had to quickly come up with something.

  • @TravisTennies
    @TravisTennies ปีที่แล้ว

    So glad to hear him pronounce it as Deno...and not Denno like everyone else you lameTube. Yay!

  • @Matlockization
    @Matlockization ปีที่แล้ว +2

    I wish game developers would adopt the same attitude rather than over develop how a game looks when the game itself takes a log time to load. It seems to me that the game software isn't using the full capability of the hardware available.

    • @mccGoNZooo
      @mccGoNZooo ปีที่แล้ว +1

      If there ever was an industry that completely dropped the ball on performance I would say that the web development one would be a great candidate. A few steps in the right direction (by adding more complication, not simplifying things, really) is not enough to make up for the immense waste that most people in the web dev industry are causing daily. I like Deno, but to say that this type of thinking is even remotely close in effort to what game devs have been doing for decades to make things run fast is either incredibly naïve/ignorant or disingenuous.

    • @Matlockization
      @Matlockization ปีที่แล้ว

      @@mccGoNZooo True that.

  • @codemuhammed
    @codemuhammed ปีที่แล้ว

    A proof of stake blockchain that uses deno as it’s execution environment.

  • @beardymonger
    @beardymonger ปีที่แล้ว

    He seemed quite uneasy promoting this 🤣
    I sensed the "Let me just continue creating stuff with vim" vibe :-)

  • @AtomTCP
    @AtomTCP ปีที่แล้ว

    PHP mum.

  • @ddobren
    @ddobren ปีที่แล้ว

    Php mum

  • @js-ny2ru
    @js-ny2ru ปีที่แล้ว

    Lizz is just beautiful!
    BTW. Do something so Microsoft will finally add Deno to Azure. Right now I can only use it with Linux docker...

  • @1998goodboy
    @1998goodboy ปีที่แล้ว +5

    Thought deno would fix typescript, now its just officially bloated. My programming language should not also be my database, two separate concerns.

    • @sbruchmann
      @sbruchmann ปีที่แล้ว +7

      Tell me you don't understand programming languages without telling me you don't understand programming languages.

    • @1998goodboy
      @1998goodboy ปีที่แล้ว +2

      @@sbruchmann tell me ur a soydev without telling me ur a soydev

    • @raglandasir6885
      @raglandasir6885 ปีที่แล้ว +1

      The language is still JavaScript. Deno is the runtime

    • @1998goodboy
      @1998goodboy ปีที่แล้ว

      @@raglandasir6885 yes, but deno was basically fixing at lot of the issues with js and making it usable bc ts was supported out the box with stupid transportation

    • @ami6014
      @ami6014 ปีที่แล้ว +1

      @@1998goodboy I don’t think you know what you are saying. You are just putting words together. A language and a runtime are not the same thing. A runtime does not fix a language.