https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
webassembly
  • s

    sdeleuze

    10/16/2018, 11:31 AM
    I have shared my thoughts in this gist called "My call for Kotlin as a major frontend language" https://gist.github.com/sdeleuze/0da8c3d6a43c659977a16e017020503b
    👍 11
    g
    z
    +2
    • 5
    • 4
  • p

    pabl0rg

    10/17/2018, 12:22 PM
    in the C# world, they are using wasm to great effect in Blazor: https://github.com/aspnet/blazor
    s
    n
    • 3
    • 2
  • s

    sdeleuze

    10/18/2018, 9:08 AM
    I am proposing indeed to use WASM as the target for the entire frontend and keep JavaScript as an interrop concern, not the mandatory building block than unlike Java is not seemless when used from Kotlin. Everything compiled to WASM can be exposed with a JS API if you want to consume it from JS world, see Lin Clark articles about that.
    ✔️ 2
    ➕ 1
    n
    z
    +3
    • 6
    • 29
  • z

    zjuhasz

    10/18/2018, 9:35 AM
    There would probably need to be a frontend framework (like react and others) developed along side this WASM support for it to get adopted quickly. Of course there would be community frameworks made down the road if this was adopted but it could take a very long time.
    👍 1
    n
    s
    g
    • 4
    • 27
  • z

    zjuhasz

    10/18/2018, 9:37 AM
    Didn't @abreslav sort of touch on this whole WASM only idea at the KotlinConf 2017 keynote? He seemed to like it but also seemed to think it was more for the future. It was really brief, I don't think he said what his reasons were.
    n
    • 2
    • 2
  • z

    zjuhasz

    10/18/2018, 10:42 AM
    What would the interop be like with WASM compiled from other languages like C and Rust? Would it be similar to kotlin/native where interop needs to be worked out for each language separately? Or would we go through the js bindings they generate? Or just have no interop at all?
    • 1
    • 1
  • s

    sdeleuze

    10/23/2018, 9:32 AM
    This blog post is pure gold, please read it: https://hacks.mozilla.org/2018/10/webassemblys-post-mvp-future/
    👍 18
    n
    o
    • 3
    • 2
  • s

    sdeleuze

    11/09/2018, 11:21 AM
    Binaryen looks like a pretty interesting WebAssembly toolchain, and it also allows to compile WASM to JS. While LLVM is designed mainly for C/C++ languages targeting a huge number of different architectures, Binaryen seems natively designed for WASM, allowing faster compilation (to be verified but likely), generating more optimized code and it seems it will be natively compatible with upcoming WebAssembly GC (this info is from Luke Wagner , WASM lead at Mozilla). Sounds like a good basis for Kotlin/WebAssembly 😉 https://github.com/WebAssembly/binaryen/blob/master/README.md
    👍 2
    n
    • 2
    • 2
  • s

    sdeleuze

    11/10/2018, 8:38 AM
    And I personnaly think that when it will have GC and concurency, it would be the perfect target plateform for Intellij IDEA. Desktop Java is clearly not something very well suppported by Oracle, and for long term I don't see a bright future for this plateform. WebAssembly has only 20% performance penalty compared to native, and could allow to run something as complex as IDEA in the browser in a secured way. The competition will be hard with VSCode + GitHub on long term. So while this would be a huge work to move from the JVM, at some point I think this will be needed, and I think WebAsssmbly would be a great target plateform that could allow to provide both web and standalone versions.
    👆 1
    n
    s
    • 3
    • 8
  • o

    orangy

    11/11/2018, 2:26 PM
    Thread https://twitter.com/seldo/status/1061461318765555713
    👍 3
    e
    s
    • 3
    • 3
  • p

    pabl0rg

    11/13/2018, 7:12 PM
    Java catching up is definitely a risk, if they maintain compilation speed.
    r
    k
    • 3
    • 3
  • s

    sdeleuze

    11/14/2018, 10:40 PM
    @pabl0rg Indeed, catching up with Flutter is another reason for Kotlin to work seriously on WebAssembly. And I do think that only a Binaryen based toolchain will allow fast dev cycle able to compete with Flutter.
    g
    n
    +5
    • 8
    • 35
  • n

    napperley

    11/25/2018, 2:46 AM
    Google Chrome developers video on WASM and threads (Kotlin logo is shown in the video):

    https://youtu.be/zgOGZgAPUjQ▾

    👍 3
    j
    • 2
    • 1
  • f

    fitzoh

    11/29/2018, 4:10 PM
    https://twitter.com/mkheck/status/1068150103905615872 -> https://twitter.com/mirkosertic/status/1068146124979167232
    👍 3
    p
    • 2
    • 2
  • h

    hallvard

    12/08/2018, 11:05 PM
    ... and what is it?
    n
    p
    • 3
    • 2
  • c

    Carl Hickman

    12/13/2018, 6:26 PM
    I’m having a hard time gauging where Kotlin support is at with wasm. I’m running formal tests for Kotlin Native at my job (aiming at multi-plat) support for iOS/Android. I am wondering if it is worth the effort to see if my cross-plat components should include WebAssembly targets as well.
    n
    s
    • 3
    • 5
  • p

    pabl0rg

    01/04/2019, 11:47 AM
    How does this relate to Kotlin + WASM? A good Kotlin/WASM solution may be the only way to create a competitive developer experience
    b
    t
    • 3
    • 4
  • j

    jw

    01/04/2019, 3:09 PM
    unless you're talking about how they ignore the native UI toolkit and render everything themselves which i'm sure everyone will be happy to abandon standards-controlled specs for the language, layout, and styling that's used for putting faith in a single company now dictating all three
    👍 4
    n
    • 2
    • 1
  • u

    4ntoine

    01/24/2019, 4:28 AM
    Hey, guys. Thank you for all your hard work for Kotlin! I have a question. We're choosing technical solution to migrate from JS to "something that generates WebAssembly" and we're measuring dis-/advantages between Rust and Kotlin in terms of WebAssembly. Could you please answer why you haven't reused LLVM-backend (codegen) written for Rust to generate WebAssembly? Is it correct that you haven't reused it? What's your feelings (or measurements) of generated WebAssembly "quality" by Kotlin compared to Rust one? (I know it's uncertain criterions for "quality" term but i think you know what i mean).
    b
    • 2
    • 3
  • p

    pabl0rg

    01/26/2019, 7:12 AM
    @sdeleuze have you seen Yew? Kotlin has much nicer syntax but yew seems awesome b/c there’s no gradle and no webpack https://github.com/DenisKolodin/yew
    s
    s
    • 3
    • 4
  • s

    sdeleuze

    02/03/2019, 6:12 PM

    https://www.youtube.com/watch?v=VsYL4Z9sRec▾

    👍 2
    • 1
    • 5
  • s

    SOFe

    02/13/2019, 2:04 PM
    for example, what is Pointer? what is Arena?
    n
    • 2
    • 6
  • f

    fitzoh

    02/15/2019, 8:46 PM
    I know @sdeleuze is doing a great job of selling it, but is it officially on the radar/roadmap for Jetbrains?
    ➕ 1
    n
    g
    s
    • 4
    • 5
  • s

    Svyatoslav Kuzmich [JB]

    02/17/2019, 6:09 AM
    @sdeleuze, interesting perspective. Why do you think LLVM is not a good fit for Wasm? And what makes Wasm a significantly faster target to compile to compared to native binary?
    s
    • 2
    • 1
  • s

    sdeleuze

    02/22/2019, 9:55 AM
    2 questions I have regarding to an hypothetic Kotlin -> Kotlin IR -> Binaryen IR -> WebAssembly toolchain: - How much Kotlin/Native is tide to LLVM? Could we imagine some kind of Kotlin/Native IR not tide to LLVM that could be used to generate Binaryen IR when targeting WASM? - I heard that Kotlin/JS team is working on an IR, is there some kind of generic Kotlin IR effort or is it specific to Kotlin/JS?
    s
    • 2
    • 7
  • s

    SOFe

    02/23/2019, 10:06 AM
    Is it possible to export a Kotlin function in the
    exports
    of
    WebAssembly.Instance
    ? I have tried using
    @SymbolName
    on the functions I want to export, but it's not showing up in the exports object
    s
    • 2
    • 7
  • d

    darkmoon_uk

    02/27/2019, 3:07 AM
    Is it simply that non of the IDE's yet support klib format to the extent that they can extract auto-completion data from them?
    s
    • 2
    • 1
  • g

    gbaldeck

    03/05/2019, 5:40 PM
    So above I noticed a thread where they were talking about Kotlin IR... what does IR stand for? Instruction Register? And what is it's purpose?
    s
    s
    f
    • 4
    • 9
  • s

    sdeleuze

    03/27/2019, 3:54 PM
    Standardizing WASI: A system interface to run WebAssembly outside the web https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/
    👍 1
    f
    • 2
    • 3
  • s

    sdeleuze

    03/28/2019, 4:15 PM
    https://twitter.com/solomonstre/status/1111131559761833984
    r
    • 2
    • 9
Powered by Linen
Title
s

sdeleuze

03/28/2019, 4:15 PM
https://twitter.com/solomonstre/status/1111131559761833984
r

Ruckus

03/28/2019, 5:37 PM
So... Graal?
s

sdeleuze

03/28/2019, 5:46 PM
Graal is interesting, but if the ultimate goal is to escape from the JVM for production to be more efficient, maybe that means we can keep JVM style language like Kotlin and just go Native directly (Kotlin/Native) or using an ubiquitous bytecode designed for efficiency hence Kotlin/WebAssembly for mobile/iot/cloud.
Also Graal or Kotlin/Native provide no universal deployment format, only WebAssembly can solve that.
r

Ruckus

03/28/2019, 5:59 PM
... if the ultimate goal is to escape from the JVM ...
I was specifically commenting on the "ubiquitous runtime..." part. Don't get me wrong, WASM is amazing, but it's basically just another byte code.
only WebAssembly can solve that
No, it can't. It's just an IR. But "VM"s like WASI can.
Basically, my point is that comparing WASM to the JVM doesn't make sense. WASI to the JVM would make more sense. There's nothing stopping anyone from using JVM Byte Code exactly the same way WASM is used. You shouldn't conflate the language with the platform in these kinds of discussions (where the difference is significant)
s

sdeleuze

03/28/2019, 6:13 PM
I see your point. My intent when I say WebAssembly is more to refer to WebAssembly ecosystem that includes runtime, WASM bytecode, WASI, etc.
r

Ruckus

03/28/2019, 6:19 PM
Indeed, and that's usually just fine, but in this case I felt the distinction was important. Ultimately, if the WebAssembly ecosystem can reach its stated goals while becoming as rich as the JVM and its associated ecosystem, it will be a force to be reckoned with. I'm quite excited to see how it turns out.
s

sdeleuze

03/29/2019, 7:46 AM
Yeah + it would be a good fit with "the device where you run your application should be just configuration" principle that will gain traction is upcoming years IMO
View count: 6