This truly means we still lack a programming language with: 1. reasonable support of object oriented programming. 2. reasonable support of functional programming. 3. solid concurrency features. 4. runs comparable to native code. 5. simple to learn. Even though it is not difficult to create such a language but we see a new language poping out every now and then and none of them try to solve these issues.
Reasonable Scala Compiler
41–50 of 161 posts
Re: Reasonable Scala Compiler
#42Re: Reasonable Scala Compiler
#43This truly means we still lack a programming language with: 1. reasonable support of object oriented programming. 2. reasonable support of functional programming. 3. solid concurrency features. 4. runs comparable to native code. 5. simple to learn. Even though it is not difficult to create such a language but we see a new language poping out every now and then and none of them try to solve these issues.
Kotlin? 1. OOP: https://www.packtpub.com/mapt/book/application_development/9... 2. FP: https://blog.plan99.net/kotlin-fp-3bf63a17d64a 3. Concurrency: https://kotlinlang.org/docs/reference/coroutines.html 4. Native: https://github.com/JetBrains/kotlin-native 5. Simple: https://try.kotlinlang.org/
I think it really depends on your use case too. Kotlin is great for mobile apps and games, where coroutines are fantastic (see also C#/Unity there). For writing scalable web services, you need more control and resilience. There Elixir and Scala are the heavyweights.
Re: Reasonable Scala Compiler
#44Earlier quoted context omitted.
You're playing with words. They are creating their own language which is a subset of Scala, and they decide which features to keep based on whether they are fast enough to compile. The point is: developing your own language to ship your apps is crazy.
Not to mention they can also decide laters to add new features to this new language, further diverging from Scala.
> We are planning to start small with a trivial subset of Scala and then gradually add features, carefully measuring their impact on compilation performance
It will be a while before they reach parity with Scala, and I'll bet the project will be canceled before they even come close.
Re: Reasonable Scala Compiler
#45Doesn't Scala run on the JVM ? Are they talking about JIT times or are there other Scala 'environment' that are not semi-interpreted ?
The JIT works on Java bytecode. Java also has a similar compiler (javac) from Java -> bytecode.
Re: Reasonable Scala Compiler
#46This truly means we still lack a programming language with: 1. reasonable support of object oriented programming. 2. reasonable support of functional programming. 3. solid concurrency features. 4. runs comparable to native code. 5. simple to learn. Even though it is not difficult to create such a language but we see a new language poping out every now and then and none of them try to solve these issues.
Rust, swift and kotlin once they have the llvm backend will fit the bill.
https://github.com/apple/swift/blob/master/docs/proposals/Co...
Re: Reasonable Scala Compiler
#47This truly means we still lack a programming language with: 1. reasonable support of object oriented programming. 2. reasonable support of functional programming. 3. solid concurrency features. 4. runs comparable to native code. 5. simple to learn. Even though it is not difficult to create such a language but we see a new language poping out every now and then and none of them try to solve these issues.
Rust, swift and kotlin once they have the llvm backend will fit the bill.
In my limited experience Rust and Swift both suffer from boilerplate/ceremony you have in many other OOP languages (C# too). Static languages for you I guess - there are benefits too...
Re: Reasonable Scala Compiler
#48Earlier quoted context omitted.
> Funny you should mention Kotlin, as it's the result of JetBrains doing just that: developing their own language to write their apps. JetBrains is in the business of IDEs and similar programmer tools. Kotlin fits right in with the rest of their business. Imagine if JetBrains produced a chatting program, because their engineers were not satisfied with the existing options.
You mean something like this: https://plugins.jetbrains.com/plugin/233-idetalk :)
Re: Reasonable Scala Compiler
#49I'm a bit confused. I have been told multiple times by Scala users that Scala compile times are a non-issue.
Which feels to me like you will miss one of the advantages of having a compiler in the first place - that it helps you write correct code.
To be fair, in an IDE you do get some of the compiler feedback in real time. But not for the whole code base, if you're working on things that have high coupling with other modules then it can be really painful. (I'm looking at you, Spray serialization!! Ugh)
Re: Reasonable Scala Compiler
#50Sounds like they are intending it as a research effort and hope to make progress with the entire Scala community, not fork it.