TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The potential of Kotlin/WASM

60 pointsby sdeleuzeover 2 years ago

7 comments

gavinrayover 2 years ago
Thank you for the work on KoWasm<p>It&#x27;s been exciting to watch the development of the new K2 compiler and Frontend-IR format<p>Kotlin is no longer just a JVM language, but more like a frontend with targets that now span everything from JVM bytecode, JavaScript, native code with Kotlin Native, and WASM<p>I&#x27;m really excited to see what the future holds for Kotlin and WASM in particular
评论 #34780823 未加载
评论 #34786937 未加载
Existenceblinksover 2 years ago
Yes please, backend people (and compiler folks) be united to try to catch up with the latest wasm proposals, we are pretty close now (also waiting for the &#x27;stringref&#x27;). The future is treating DOM stuff as system thingy, so we can stop (except those who want to stay) writing JS&#x2F;TS on the logic part. I&#x27;m optimistic we will have a better mental heath on developing web frontend in near future.
slimover 2 years ago
disappointed that gilles.deleuze.fr does not get you anywhere
评论 #34802114 未加载
评论 #34786836 未加载
sdeleuzeover 2 years ago
This new blog post explores the huge potential of Kotlin&#x2F;Wasm and how WasmGC, WASI, WebAssembly Component Model and warg repositories could change how we develop applications.
singularity2001over 2 years ago
Hello world is 1.5 MB but compiled surprisingly fast: less than a second (with grade running, couldn&#x27;t test konanc -target wasm yet?)<p>That&#x27;s much better compilation time than kotlin&#x2F;native:wasm<p>Wasm types are currently inaccessible in JS and you can&#x27;t feed js objects into wasm, hopefully that will change...
评论 #34802301 未加载
rektideover 2 years ago
&gt; <i>But WebAssembly becomes even more interesting when you take another perspective. What if Compose for Web, the multiplatform incarnation of Jetpack Compose used on Android, would leverage Kotlin&#x2F;Wasm instead of Kotlin&#x2F;JS to perform pixel-perfect Canvas based rendering?</i><p>It would not really be very web like. It&#x27;d be more like Flash or a Java Applet. User extensions would all be broken.<p>This is a new thing coming people. Now that we have wasm, the native-app folks are super jazzed about not only switching programming langauges, but getting rid of HTML and the DOM. The plan goes: we&#x27;re replacing structure markup &amp; hypertext of webapps with just-a-bunch-of-pixels, big canvases, that are purely computational constructs. Declarative information is getting blown up by imperative processes; this is how native apps are having their revenge against webapps. I have yet to see how any of this actually empowers or helps users: it seems like a huge downgrade, done purely to give developers alternative options. Maybe the experiences really are vastly better, maybe what we make is categorically different once we have this tech! But I really have a hard time (given what creativity we&#x27;ve had &amp; seeing how quickly bootcamp folks come in &amp; get hacking on the DOM) believing the DOM is really so horrible that it justified de-internet-izing the web &amp; that turning it into a motion picture machine is warranted (as anything more than early exploration).<p>The web starts with the HTML&#x2F;DOM, and has been our computing world&#x27;s greatest, most universal tower of Babel[1] that has held. I&#x27;m curious (and admittedly pretty terrified) to see who is happier&#x2F;winners when we bring down the higher-level system, &amp; treat it like a low level interface, like a big Canvas, like what was happening with Flash &amp; Applets. Two other recent examples beyond Kotlin&#x2F;Compose: Flutter&#x2F;CanvasKit (which I commented on &amp; got a reply from the lead about on these topics[2]), and Hixie&#x27;s &quot;Towards a Modern Web Stack&quot;[3].<p>[1] <a href="https:&#x2F;&#x2F;unwindprotect.com&#x2F;tower-of-babel" rel="nofollow">https:&#x2F;&#x2F;unwindprotect.com&#x2F;tower-of-babel</a> <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34695638" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34695638</a><p>[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34527980" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34527980</a><p>[3] <a href="https:&#x2F;&#x2F;docs.google.com&#x2F;document&#x2F;d&#x2F;1peUSMsvFGvqD5yKh3GprskLC3KVdAlLGOsK6gFoEOD0&#x2F;preview?pli=1&amp;resourcekey=0-bPajpoo9IBZpG__-uCBE6w" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;document&#x2F;d&#x2F;1peUSMsvFGvqD5yKh3GprskLC...</a> <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34612696" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34612696</a>
评论 #34781727 未加载
评论 #34782159 未加载
评论 #34780876 未加载
评论 #34781965 未加载
评论 #34781604 未加载
评论 #34784934 未加载
评论 #34781223 未加载
评论 #34802380 未加载
评论 #34780968 未加载
评论 #34781702 未加载
dhalucarioover 2 years ago
I don&#x27;t know if anyone else had the idea yet, but I would love to use Kotlin with Svelte on the frontend.
评论 #34802399 未加载
评论 #34787932 未加载