Kotlin goes WebAssembly!

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • Visit kotl.in/wasm to get started yourself!
    Kotlin 1.8.20 introduces the newest multiplatform compilation target for Kotlin - WebAssembly! This opens up new possibilities for Kotlin developers, ranging from writing web apps, to blazing fast server-side development with Node.js and standalone WebAssembly runtimes, and even bringing your Compose Multiplatform apps to the browser! Together with Sebastian Aigner ( / sebi_io , explore the examples, get an overview of WebAssembly as a technology, and learn the current state and future plans of Kotlin for WebAssembly. While it’s still early for Kotlin/Wasm, it’s the perfect time to take a look, do some experiments and build some toy projects. This video features a number of examples from the ecosystem.
    We can’t wait to see what you’ll build with this first version of Kotlin/Wasm!
    Want to learn more? Here’s the links mentioned in the video:
    Samples showcased in this video: github.com/Kotlin/kotlin-wasm...
    Docker & Wasm (Beta): docs.docker.com/desktop/wasm/
    “The Huge Potential of Kotlin/Wasm” by Sébastien Deleuze: seb.deleuze.fr/the-huge-poten...
    Compose Multiplatform: jb.gg/compose
    WebAssembly: A new development paradigm for the web: • WebAssembly: A new dev...
    Introducing Kotlin/Wasm by Zalim Bashorov & Sébastien Deleuze: • Introducing Kotlin/Was...
    Scale to Zero with Spring + GraalVM or WebAssembly by Sébastien Deleuze: • Scale to Zero with Spr...
    KotlinConf Keynote: blog.jetbrains.com/kotlin/202...
    0:00 Introduction
    0:40 WebAssembly as a technology
    3:07 Hands on with Kotlin/Wasm
    12:34 Wasm beyond the browser
    14:03 Compose Multiplatform on Wasm
    16:06 What’s next for Kotlin for Wasm
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Blazingly fast!

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

    Really excited for this! Thanks to the Kotlin team!

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

    Multiplatform looks awesome!

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

    Thank you for this great overview! 🙂

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

    Eagerly awaiting

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

    Great stuff.. 🎉

  • @jesprotech
    @jesprotech ปีที่แล้ว +15

    I think this video is a good pointer to be aware that Kotlin now supports WASM and great that it opens these possibilities. I was expecting a bit more in-depth explanation of the where, when, and how's of this though.

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

    Cool tech

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

    I already tried wasm with compose. But the experimental status is clearly noticable when using ktor, serialization and coroutines. A few of the compose apis are also not working. But its gonna be great when things get stable :)

    • @NoPainInLife
      @NoPainInLife 4 หลายเดือนก่อน

      Yeah can not use Ktor here!! It is actually quite anoying for me to see this

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

    I can understand the Kotlin/Wasm use case for the browser, but somehow I fail to see the use case for NodeJS. Wouldn't it be better, also from an ecosystem perspective, to just run Kotlin/JVM on a, well, JVM container? Is this all about hot reload / deployment? I'd be interested in the performance differences between the two.

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

      I think in 2023 you'd want to use JVM, but this is a JVM competitor long-term. But now, especially using Kotlin it currently doesn't make much sense, Kotlin Multiplatform's ecosystem doesn't hold a candle to JVM's.

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

      I think the good part is the ability to deploy to nodejs/deno isolates on the many providers which allows to have serverless services with low (50-80ms) startup time
      Now we can write them on many languages and deploy to same infra

  • @alskaa1
    @alskaa1 ปีที่แล้ว +9

    I really want compose have hot reload before the next move :)

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

      that would be so cool 😁

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

      I thought that compose already has it...

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

      @@nem1st this is not hot reload. Just preview.

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

    🎉 Kotlin ❤

  • @henrys6099
    @henrys6099 7 หลายเดือนก่อน

    which http client is supported in wasm ?

  • @sreeenivas00706
    @sreeenivas00706 3 หลายเดือนก่อน

    you showed how to invoke Kotlin from JS, but what about the other way? I'd ideally like to not use JS and use a more structure appraoch like kotlin, can I embed Kotlin into my HTML?

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

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

    Does compose web use this technology to work?

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

      Compose-web: yes. Compose-html (what used to be called compose-web): no.

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

    If you have any questions about Kotlin/Wasm or Wasm GC, don't hesitate to ask below.

    • @______yawn6419
      @______yawn6419 8 หลายเดือนก่อน

      whats the difference between this and the kobweb framework?

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

    It was a great example, but I was expecting a real example of using wasm with a React project.

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

    This will be great to use in combination with wasm containers!
    Goodbye graalvm.

  • @NoPainInLife
    @NoPainInLife 4 หลายเดือนก่อน

    I am getting mad becas there is no Ktor support

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

    I thought WASM is Watcom Assembler

  • @anthonymadhvani5593
    @anthonymadhvani5593 9 หลายเดือนก่อน

    I get runtime errors even when running the basic example. Should we not be using the main branch?

  • @bode-fun
    @bode-fun ปีที่แล้ว

    Idk about that web thing. Why ship skia if you habe the dom. Just render to the dom. I think you did that before with compose for web

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

      Because you can't consistently render things with the dom. The Dom is designed to change based on browser settings, OS settings, etc. Shipping skia ensures a consistent experience across platforms

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

      ​@@kyay10 but browser settings exist for a reason. If someone sets their font size to something large, they probably have eyesight issues and can't read small fonts. Consistent experience does not mean better experience

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

      @@dominikotocan1348 you can still support those settings. The point is to have pixel-perfect consistent rendering without having differing bugs between websites.

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

    16:20 dedciated => dedicated

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

    I cannot be the only one triggered by that white paint splash on the red cabinet behind seb.

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

      You are not the only one who saw that white paint splash. It was actually the first thing I noticed in this video. :)

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

      It a reflection of the ceiling light

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

      @@gi1dor or of the light box to get better lighting. That makes sense. 😅

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

    More shit!😂