News for hackers. Stuff that matters.
Re:Advanced programming languages (2009) by phamilton on Sunday June 19, 2016 @12:52PM (#11933594)
I've done it naively with a mongo driver. Just wrapping it in a future doesn't cut it, as you said you have to configure a separate execution context and even that context is finite. Or use a blocking future which has other implications.

It's more a point against the "strictly better than Java, use the bits you want as you you go" point in the article. You have to understand Scala's execution model and make sure you are mixing the paradigms properly, because it's fully of leaky abstractions.

Re:Advanced programming languages (2009) by twblalock on Sunday June 19, 2016 @02:46PM (#11934066)
It's also a real pain to call Scala code from Java, which makes blending Java and Scala code in a project, or adding Scala code to an existing Java project, much less attractive.