Migueldeicaza,
@Migueldeicaza@mastodon.social avatar

I love that WebAssembly is becoming a bytecode for Swift tooling.

Pure, unadulterated, high-octane fuel for a he swift ecosystem:

https://github.com/apple/swift/pull/73031

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

deleted_by_author

  • Loading...
  • Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar

    @krzyzanowskim well that’s one option, being discussed on that thread. But on MacOS that patch is using JSC

    heckj,
    @heckj@mastodon.social avatar

    @krzyzanowskim @Migueldeicaza I updated my local copy of the swift project and noticed the addition of wasmkit as well. The JSC numbers were quite compelling with the ongoing JIT, but very excited to see the wasmkit hosting option come to Swift in a nice cross-platform way.

    kabiroberai,
    @kabiroberai@mastodon.social avatar

    @heckj @krzyzanowskim @Migueldeicaza right — apple/swift already depends on wasmkit, though afaict it’s currently only used for testing the wasi target. This undertaking will quite possibly require bringing it into the toolchain though, at least on Windows/Linux where we can’t use JSC. I do hope the swift team agrees with this approach because it’ll be an amazing way to dogfood WasmKit (and Swift Wasm).

    krzyzanowskim,
    @krzyzanowskim@mastodon.social avatar

    deleted_by_author

  • Loading...
  • kabiroberai,
    @kabiroberai@mastodon.social avatar

    @krzyzanowskim ngl I considered that option; I also have a prototype that works with Node.js and Bun! https://github.com/kabiroberai/Wacro/blob/main/wswiftc.mjs

    NeoNacho,

    @Migueldeicaza is that good

    Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar

    @NeoNacho I have no words to contain my excitement

    Elucidating,
    @Elucidating@mastodon.social avatar

    @Migueldeicaza You love to see most of it, but I don't see why an ad hoc ABI is a future proof choice...

    Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar

    @Elucidating the reality of any large moving system

    Elucidating,
    @Elucidating@mastodon.social avatar

    @Migueldeicaza I understand and agree with the dependency concerns, but I think it's just making a lot more work to make an ad hoc abi. That's 100% throwaway work for everyone.

    Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar
    Elucidating,
    @Elucidating@mastodon.social avatar

    @Migueldeicaza I'm curious to see how the Swift community overcomes the situation then. You say it's possible, but I sure don't know how they will.

    Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar

    @Elucidating you have to realize that this is not a finished change. There are many other caveats on, none too surprising or insurmountable.

    dimsumthinking,
    @dimsumthinking@mastodon.social avatar

    @Migueldeicaza I haven’t gotten my head around what it does for swift and why I care (I don’t mean that in a troll way - I mean that in an “I don’t get it yet” way)

    Migueldeicaza,
    @Migueldeicaza@mastodon.social avatar

    @dimsumthinking swift build system can use plugins, some plugins are too large and slow down every build because you first have to build those plugins

    Now you can use pre compiled binaries that work everywhere

    That said, the even better part is that swift on wasm is solid enough for this and creates a reason to make it even better, not just a “cute thing it can do”.

    dimsumthinking,
    @dimsumthinking@mastodon.social avatar

    @Migueldeicaza thank you

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines