https://discord.cloudflare.com logo
Join Discord
Powered by
# general-discussions
  • p

    Plotzes

    11/16/2021, 4:29 PM
    πŸ‘€ πŸ‘€ πŸ‘€ πŸ‘€
  • p

    Plotzes

    11/16/2021, 4:29 PM
    I'm exited
  • p

    Plotzes

    11/16/2021, 4:35 PM
    English isn't my first language, is it exited or excited?
  • d

    Deleted User

    11/16/2021, 4:35 PM
    The latter
  • d

    Deleted User

    11/16/2021, 4:35 PM
    Excited
  • e

    Erisa | Support Engineer

    11/16/2021, 4:59 PM
    exited is when you exit (leave) from somewhere
  • e

    Erisa | Support Engineer

    11/16/2021, 5:00 PM
    then people would say you have exited
  • m

    moomoo

    11/16/2021, 5:00 PM
    Is URLPattern available on workers yet? it was added in Chrome 95? Would be very handy for routing: https://developer.chrome.com/blog/new-in-chrome-95/#urlpattern
  • j

    James

    11/16/2021, 5:01 PM
    Not yet, but I know that interest has been shared to add it
  • l

    LeviW

    11/16/2021, 7:01 PM
    The new "promote between environments" feature of https://blog.cloudflare.com/introducing-worker-services/ looks super awesome! I'm excited to experiment with it! I had two questions: 1. Will the Terraform provider be updated to support them? 2. Is there a way to protect/limit environments by user? For example, a developer can promote from dev to staging but only QA could promote from staging to prod?
  • w

    Walshy | Pages

    11/16/2021, 7:04 PM
    Live discussion about Full Stack Week on Twitter https://twitter.com/i/spaces/1PlKQaBPoDYKE
  • l

    lfd

    11/16/2021, 7:12 PM
    what is the big benefit with URLPattern instead of using a router that takes of all that with e.g. path-to-regexp ?
  • j

    James

    11/16/2021, 7:21 PM
    Native, less to bundle, consistent across the browser and other environments without bundling (eventually once everyone supports the spec), and probably faster.
  • l

    lfd

    11/16/2021, 7:26 PM
    Yea I agree that native is better but there are already awesome alternatives that are performant and tiny such as itty and tiny. πŸ™‚ So I did not see the big benefit here unless there are some issues or you are a router developer.
  • t

    theGagne

    11/16/2021, 7:28 PM
    I use both, the main benefit of vanilla in my mind is that it's vanilla πŸ™‚
  • t

    theGagne

    11/16/2021, 7:29 PM
    but I love me some rocky road too
  • t

    theGagne

    11/16/2021, 7:29 PM
    I've been bit by an unusually large nut in the rocky road, but I still love it
  • l

    lfd

    11/16/2021, 7:29 PM
    Good points @User! Who does not love some vanilla! πŸ˜„
  • j

    James

    11/16/2021, 7:30 PM
    Oh for sure. It's becoming increasingly common for JS libraries like this to be wrapped up into a standardised spec though, which will only result in more cross compatibility and better DX. Off the top of my head, some recent examples include things like
    .replaceAll
    - totally possible with regex and tonnes of libraries, but made easier and more semantic. And
    .at()
    for array indexes (useful for negative indexes).
    .flat/flatMap
    , etc. πŸ™‚
  • t

    theGagne

    11/16/2021, 7:30 PM
    I think I need to go talk icecream in #812577823599755274
  • j

    James

    11/16/2021, 7:30 PM
    https://web.dev/urlpattern/ talks about some of the design considerations behind it too.
  • l

    lfd

    11/16/2021, 7:31 PM
    I love specs and standars as they make our lives easier and enable us to easily switch providers and libraries!
  • j

    James

    11/16/2021, 7:32 PM
    100%. That's also why I'm so excited about Cloudflare standardising the Sockets API they announced yesterday in https://blog.cloudflare.com/introducing-socket-workers/
  • l

    lfd

    11/16/2021, 7:35 PM
    Yea saw that too, awesome news! Can't wait to opening a bunch of TCP sockets. 🍻
  • t

    theGagne

    11/16/2021, 7:39 PM
    ssh from workers sounds dangerous and awesome
  • l

    lfd

    11/16/2021, 7:40 PM
    Doubt you can do ssh with within 10 or even 50 ms :p
  • t

    theGagne

    11/16/2021, 7:41 PM
    depends on where you're going to / from! Also in some cases you might not care how fast it is, you just need to get something done.
  • l

    lfd

    11/16/2021, 7:43 PM
    I meant workers cpu limits as all the handshaking takes bunch of cpu time
  • j

    James

    11/16/2021, 7:43 PM
    I would assume (like with fetch), the TCP connection time wouldn't be counted towards the CPU wall time
  • t

    theGagne

    11/16/2021, 7:44 PM
    can always use unbound if it's that important
1...789...4267Latest