The differences between Kotlin and Java are very clear, such as:
More concise (up to 40% code reduction)
Null Safety
Type Inference
Data class
Interoperable with Java
However, all these features already exist in Scala, a languag...
Well, I asked a question recently and it was suspended because it is a matter of opinion of each person, so here I redo my question to be clearer what I want:
Someone could please pass me sites or indicate books for learning the following lan...
I have a reasonably complex system in Scala, with multiple threads and concurrent system calls. This system has a problem, because busy memory grows over time.
From the image below, you can see the memory occupation of the machine over the co...
In Scala we have case classes , for example:
case class Pessoa(nome: String, sobrenome: String)
and in Kotlin we have data classes :
data class Pessoa( val nome: String, val sobrenome: String )
What's the difference between...
I have Ator that would be Root and this actor Root has a router with 5 instances, and that same router also has a router with 5 instances. How can I stop ArquivoParaProcessar and tell Root that all instances of...
I want to iterate over a lot of records in a table with sorm, but I want to do it in an efficient way in terms of memory.
Today I use this code:
Db.query[Items].whereEqual("title", someTitle).fetch.foreach { webCount =>
//do so...
I'm trying to use the .format method of a String. But if I put% 1,% 2, etc. in the string, the java.util.UnknownFormatConversionException exception is thrown by pointing to confusing Java code:
private void checkText(String s) {
in...
I'm using Scala and I have an http response like this:
_SS_MainSolrCallbackH(
{
response: {
numFound: 1,
start: 0,
maxScore: 4.9338827,
docs: [
{
tipo: "M",
id: "mus1933196",a
s: 4....
I'm doing a test with consuming sparkstreaming of a kafka topic. When you start the job it displays the following message:
18/06/06 20:39:25 ERROR ReceiverTracker: Deregistered receiver for stream 0: Restarting receiver with delay 2000ms: Erro...