Live data from Hacker News

Swift is coming to PaintCode

paintcodeapp.com

11–17 of 17 posts

Re: Swift is coming to PaintCode

#11
post #7

Is there any info on whether Swift can be used on Linux / be embedded?

At present the only known implementation is paired with Xcode 6 and runs on OS X only. We'll have to see if Apple open sources their front end implementation (that runs atop LLVM). If they do then it'd probably be reasonably straightforward to retarget it for other operating systems where LLVM is supported, if there's a run time to pair it with (like GnuStep).

Re: Swift is coming to PaintCode

#12
Considering that Apple basically requires an xcode/objc project to deploy iOS apps, I believe Swift will become a popular cross-compiler target especially for GC'd languages. I wouldn't be surprised to hear similar news from RoboVM, MonoTouch, RubyMotion, etc in the coming months.

Re: Swift is coming to PaintCode

#13
post #2

Hm, PaintCode is nice, but I think I'd prefer a library that would let me import SVG files.

Furthermore, Apple did bring up a slide during the Platform State of the Uniform (slide 56 in the PDF) saying source compatibility wouldn't be guaranteed (but that converters would be provided) because the language will evolve. I can't imagine that they'll introduce dramatic changes that will break code generated by PaintCode, but it would be a pain if you have to completely regenerate your all rendering code with ea…

I haven't listened to that presentation or read the PDF, but from what I read about it I would bet that 'evolve' refers more to the time until the official release than to the time after that. Of course the language will evolve, but it will be slower and shouldn't do so in incompatible ways.

Until official release, though, Apple may make huge breaking changes (change keywords, tweak the grammar, maybe drop a feature or two. For example, do we really need trap on overflow for integers in what, in the end, is a compiled language?)

Re: Swift is coming to PaintCode

#15

So, how on earth did they get this out that quickly?

The code generator for PaintCode is probably fairly small -- all the complexity of the app is in the beautiful UI.

The graphics code they generate is mostly just using these CGContext APIs: https://developer.apple.com/library/ios/documentation/Graphi...

Mapping to the Swift counterparts should be straightforward.

Re: Swift is coming to PaintCode

#16

Considering that Apple basically requires an xcode/objc project to deploy iOS apps, I believe Swift will become a popular cross-compiler target especially for GC'd languages. I wouldn't be surprised to hear similar news from RoboVM, MonoTouch, RubyMotion, etc in the coming months.

Why bother? They already produce machine code.

Re: Swift is coming to PaintCode

#17
post #7

Is there any info on whether Swift can be used on Linux / be embedded?

Looks like Swift will be open source from a few tweets. I imagined as much with Apple's work on LLVM. Though the big issue is like Objective-C, it's near worthless without Cocoa and all the stuff Apple keeps closed.

https://twitter.com/mxweas/status/474581160454942721

Post reply on HN