[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]

Which is the better designed language, Swift or Kotlin?

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: 15
Thread images: 2

File: kotlin.png (11KB, 700x700px) Image search: [Google]
kotlin.png
11KB, 700x700px
Which is the better designed language, Swift or Kotlin?
>>
>>61112931
They are literally the same language on different platforms.

The biggest difference imho is how they run. Kotlin runs on the JVM and has access to top notch GC technology. Swift runs natively but uses refcounts.
>>
>>61112969
http://nilhcem.com/swift-is-like-kotlin/
>>
Which is more likely to get you a job?
>>
>>61113020
Kotlin, but swift one job better pay
>>
Is it actually viable to start developing for Android using Kotlin now or have libraries yet to catch up?
>>
>>61112969
>GC technology
>"top notch"

Refcounts are the fast/efficient way to do it but we have to save Pajeet from circular references which are beyond his understanding.
>>
>>61114766
Doesn't xcode warn about possible cyclic refs. Should be trivial to solve at compile time with a typed language.
>>
>>61114736
99.9% of the Android libraries you'll use are written in Java but calling Java libraries from Kotlin is pretty seamless. Kotlin can't guarantee Java types are non-nullable though so you'll end up using nullable types more than you'd probably like.
>>
>>61114766
Some algorithms I've used ended out best with circular references and a GC that doesn't give a fuck.

C# is a beautiful language.
>>
File: pic_fuhrer_cute_17.jpg (9KB, 283x200px) Image search: [Google]
pic_fuhrer_cute_17.jpg
9KB, 283x200px
>>61114766
Modern GCs are infarct, ref-counted behind the scenes. Circular dependency solving is a last resort in the garbage collection phase.
If I'm correct, String types are for instance ref-counted.

That being said, ref-counting is still cleaner IMO.
>>
>>61112931
Both are garbage
>>
>>61114984
>C# is a beautiful language.
Hello, vishnu
>>
>needing a garbage collector for anything outside of functional programming
>>
>>61112931
>Try to fix java
>Make it uglier
Thread posts: 15
Thread images: 2


[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.