Live data from Hacker News

Swift is like Kotlin

nilhcem.com

361–364 of 364 posts

Re: Swift is like Kotlin

#361
Kotlin is the same jvm crap like Java. Please do not dare to compare it to Swift with its amazing llvm complier. True programs runs on true machine specific bytecode, not on stupid virtual machines that consumers every available cpu and memory (which leaks like hell). Please new programmers, syntax is BS. Learn to compare by looking at internals and advanced feature set and capabilities. Kotlin is a fad!

Re: Swift is like Kotlin

#362

Earlier quoted context omitted.

It's so pretty but that's really disappointing. That puts a damper on even trying it but to be fair it could be a lot worse.

> That puts a damper on even trying it Hyperbole much?

Yes, that seems like a fair criticism. Just being honest even at the expense of looking ridiculous.

Re: Swift is like Kotlin

#363
post #294

Earlier quoted context omitted.

> Scala needs to add a runtime when compiling to bytecode This is nonsense? It doesn't need any more "runtime" than Kotlin does. > it is not fully compatible with java as kotlin. This is a lie. (I don't say this lightly, but I've seen it too often from too many kotlin advocates for it to be an innocent mistake)

> Scala needs to add a runtime when compiling to bytecode Last time I checked you needed like 500kb of libraries for any scala program compiled to Android. Kotlin is a few kb. Kotlin is a small addition to the java API, Scala needs much more things. > it is not fully compatible with java as kotlin. As far as I know, the way scala treats types and functions make it that sometimes you cannot call scala code from java.…

> Last time I checked you needed like 500kb of libraries for any scala program compiled to Android. Kotlin is a few kb.

30kb for Scala is the figure elsewhere in this thread and that sounds a lot more in line with my experience. Note that you never have to use e.g. Scala collections if you don't want to (and thanks to typeclasses you can write elegant code that works with both Scala collections and Java ones, so you can reuse libraries across both).

> As far as I know, the way scala treats types and functions make it that sometimes you cannot call scala code from java. Well, you can most times but requieres a lot of wrappers. This doesn't happen in kotlin.

Nope. There's no difference, just kotlin propaganda.

Re: Swift is like Kotlin

#364
As an iOS developer who's looking to port to Android, this makes it easier to manually port my Swift code to Kotlin. But I wish there were automated tools. If two languages are this similar conceptually, such a tool should be easy to write, and handle the majority of cases.

I don't mind if this tool prohibits a few features (pattern-matching in Swift, say), even if it's considered idiomatic, because not having to maintain another codebase saves more than enough productivity to make it worth it.

Does such a tool exist?

Post reply on HN