[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I'm thinking about learning swift on linux. However only

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 29
Thread images: 4

File: swift.png (4KB, 205x86px) Image search: [Google]
swift.png
4KB, 205x86px
I'm thinking about learning swift on linux. However only if it can be compiled and installed on x86. If this works out, I'll go straight to GUI programming. Since Apple didn't include their GUI shit, I'll probably try to somehow get it to work with GTK, EFL or FTLK.

If you wonder why, I learned BASIC in school and the Syntax of Swift is kind of similar for what I have seen. Because BASIC was so simple, I could never get motivated for C or C++.

Well,.... that's how it is.
>>
>>61027303
Swift is pretty much a vendor lock in dev environment. Swift does not work with anything but Cocoa

May I ask what kind of application do you want to build?
>>
>>61027324
>only cocoa
Found this: https://github.com/PureSwift/Cacao No Idea how useable this is as I didn't even get started yet.

>what application
I roughly want to get some kind of window or DialogBox somehow on screen. Modifing shape and size if possible. If this works, I go to some kind of Button that do something, anything. After that I want to load pictures and text and try to layer them somehow. If I passed all that I good to go for a little RPG in classic Dungeon Crawler style and learn the language for real by implementing game mechanics.
>>
>>61027303
It is shit. Honestly, learn LUA or something instead.
>>
>>61027303
>I'm thinking about learning swift on linux. However only if it can be compiled and installed on x86. If this works out, I'll go straight to GUI programming. Since Apple didn't include their GUI shit, I'll probably try to somehow get it to work with GTK, EFL or FTLK.
I'm using it with SwftGTK but there's other GUI libs as well for Linux.

I got into Swift simply because the many was too good to pass up. I was talking to a recruiter and he suggested Swift to me about a year ago because he was constantly being asked for people with Swift and salaries were $110k plus to start. I basically jumped on it.

I took the Stanford Swift course (free btw) and I read the Swift book. IBM has tons of Swift resources too for Linux etc.

ANyway, just fucking learn it... language is probably the best language ATM and job prospects couldn't be any better for the future.
>>
File: muhGame.jpg (1MB, 2880x1567px) Image search: [Google]
muhGame.jpg
1MB, 2880x1567px
>>61027303
Swift programmer here, I'm making a simple space shooter game and I can tell you that Swift is awesome. Very clean, but I don't think I would go through all the trouble of setting it up on Linux, since all the magic comes from Xcode + Cocoa + Swift.

I would just make a hackintosh or buy a Mac, it's perfected for MacOS.

Good luck anon!
>>
>>61027630
Not OP. What's the de-facto book for a linuxfag looking to learn swift4?
>>
>>61027663
OP here, for unreleased version 4 it's probably in source Documentation.
>>
>>61027663
Apple has a new amazing (and free) Swift 4 book that starts from fucking nothing and teaches you Swift to intermediate/master level. You can master it in a week or two if you work on it. For Linux, you can read various IBM blog posts or just use the examples from SwiftGTK or PureSwift. It's not hard. Creating a window, reusing GTK UI libs etc... it's fairly straight forward.
>>
>>61027663
I don't think there is even one. *That's* how popular Swift is on Linux.

It's also almost generally how popular Swift is outside of Apple's ecosystem.
>>
>>61027303
Dunno why you would want to learn swift unless you were making apps for the Apple Ecosystem.
>>
File: 1486511093856.jpg (88KB, 1024x1152px) Image search: [Google]
1486511093856.jpg
88KB, 1024x1152px
>>61027813
nigga pls. github is full of server-side swift projects.

anyway, some resources:

IBM's Swift course for Linux:
http://blog.udacity.com/2017/06/server-side-swift-with-ibm.html

IBM's Swift page
https://developer.ibm.com/swift/

Free book from O'Reilly and IBM
https://www-01.ibm.com/marketing/iwm/dre/signup?source=mrs-form-10468&S_PKG=ov55459

IBM explains why Swift
http://www.computerworld.com/article/3122994/apple-mac/ibm-says-swift-is-now-ready-for-the-enterprise.html

Video on Swift for servers
https://news.realm.io/news/tryswift-chris-robert-end-to-end-application-development-swift-backend/
slides
https://www.slideshare.net/cnbailey/tryswift-nyc-end-to-end-application-development-in-swift
>>
>>61027969
Swift is slower than Java my dude
https://benchmarksgame.alioth.debian.org/u64q/which-programs-are-fastest.html
>>
>>61028085
>Swift is slower than Java my dude
You're retarded. You can't even read graphs. Also, show me the memory usage and optimization options.
You'll never get Java to run faster than Swift.
>>
>>61027969
> github is full of server-side swift projects
I just checked.

There is realm, vapor, fluent ... and you're already basically done with the frameworks that seem to have an user base worth mentioning.

This is a fourth rate language for server-side programming.
>>
>>61028085
> vm code is faster than machine code
> IBM is lying!
the state of /g/
>>
>>61028138
You're the one who didn't read the guild top kek
>You can see that the order would be different if it was based on the median scores instead of the [pdf] geometric mean scores.
Further left = faster speeds. Swift has a faster median speed score yes, but its mean score is slower
>>
>>61028174
guide*
>>
>>61028153
>This is a fourth rate language for server-side programming.
yet it's one of the fastest rising and offers end-to-end development for the dominant enterprise mobile platform.
>>
>>61028138
> You'll never get Java to run faster than Swift.
https://spark.apache.org/ <- most popular big processing framework

Show me how your "faster" Swift thing.
>>
>>61028174
>left
What left, when chart is a vertical graph type? Fucking leftists everywhere spreading their shit! Just Gulag yourselves already!
>>
>>61028287
The guide literally implies "order matters"
i.e., from left to right, fastest to slowest.
Fucking inbred racist cuck, no wonder you can't read graphs. You're a low IQ rural retard
>>
>>61028218
> fastest rising
According to a micro-sample in some kind of random market? Or some ridiculous mixed rating thing like TIOBE?

I'm sure in a bunch of these that's possible, but it's well below the "worth caring about" threshold outside the Apple ecosystem.

> the dominant enterprise mobile platform
Eh? It's not even popular at all on Android.
>>
File: broken-computer.jpg (39KB, 500x390px) Image search: [Google]
broken-computer.jpg
39KB, 500x390px
>>61028326
you seem "triggered"
>>
>>61028333
>Android
>enterprise
kek'd hard
>>
>>61028385
Absolutely.
>>
>>61028412
BWAHAHAHAHAHAHA
>>
>>61028404
Yep. You can re-label all you want. Companies and government entities generally issue Android phones.

The US president (voted into office partly for being a businessman) did also have an Android, right?
>>
>>61028592
>Companies and government entities generally issue Android phones.
LMAO... your pajeetness shows through. What 3rd world shit hole are you from? Niger? Somalia?
Thread posts: 29
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.