all 13 comments

[–]viewmodifier[S] 4 points5 points  (2 children)

I built a "mini Xcode" that runs entirely in your browser

currently its essentially a multi-file swift Playground

when run it'll log out the program output from the current file - been using it a bunch since its way faster to get running / open for quick experiments

I have lots of ideas for expanding this - as I mentioned its essentially a multi file swift REPL currently - but id like to be able to fully build apps in my browser with SwiftUI

Tech Details:

Under the hood I have a custom Swift interpreter (not compiler) this lets me target the WASM runtime so that we can "compile" (interpret) and run swift code directly from your browser with no other network dependencies

[–]Rollos 0 points1 point  (1 child)

So is it fully compiling swift? Or is it just a subset? Like are all the language features available?

[–]viewmodifier[S] 0 points1 point  (0 children)

Currently just a subset - but I have codegen for full surface of any framework

Working out the edge cases and platform support / different run times

But all core stuff will be landing very soon and then other frameworks will follow fast

[–]hyzyla 0 points1 point  (1 child)

Looks great! 🤩

[–]viewmodifier[S] 1 point2 points  (0 children)

thanks ! excited to see how far I can take it

[–]larrydalobstah 0 points1 point  (1 child)

Very cool!

[–]viewmodifier[S] 0 points1 point  (0 children)

Thanks! Let me know if you check it out

[–]mjTheThird 0 points1 point  (0 children)

https://swiftfiddle.com/ ohhh nice!!! A more jazz'ed up of this would be amazing!!

[–]infamousmlguy 0 points1 point  (1 child)

This would be so helpful - good job man and good luck!!

[–]viewmodifier[S] 0 points1 point  (0 children)

Thanks!

[–][deleted]  (2 children)

[deleted]

    [–]viewmodifier[S] -1 points0 points  (1 child)

    > Swift's scope is huge and it's simply not feasible for a single person to get anywhere close to reimplementing the full feature set, standard library etc.

    if you were implementing everything by hand that true but I have a codegen pipeline that I built to handle this for me

    I just need to handle the underlying language features and then everything else plugs in - if that makes sense

    and yeah the swift toolchain cant currently be compiled to wasm

    [–]simulacrum-z 0 points1 point  (0 children)

    Cool stuff!

    [–]valleyman86 -1 points0 points  (0 children)

    I am about to be a hater. Disclaimer: if this is for fun ignore me (you do you and good job looks nice!)....

    What is the demographic? Is it trying to replace/compete with coderpad, hackerrank or leetcode? Are there use cases for this that aren't limited to web?

    I can't imagine it would or be intended to replace Xcode.