<img height="1" width="1" src="https://www.facebook.com/tr?id=&amp;ev=PageView &amp;noscript=1">

Aleksandr Ivanov

Recent Posts

Posted by Aleksandr Ivanov
Mon, Dec 19, 2016

Have you ever found yourself in a situation when you need to curry your type parameters? You can hit this issue when experimenting with various functional patterns, factoring out types or just improving the code’s readability, not to mention helping the compiler to infer types. While there’s no production-ready Dotty compiler for Scala, which should have a syntactic support for this, we need to look for good, old hacks. If you found yourself searching for a solution, in this article i’d like to share some approaches to this issue that i found useful.

Posted by Aleksandr Ivanov
Thu, Dec 15, 2016

Did you know that you can create as many *.sbt configuration files as you need? Or that SBT has multiple configuration levels - global and project-specific? In this article i’d like to share the trick that helps me to improve productivity by using SBT’s multiple configuration files.

Posted by Aleksandr Ivanov
Tue, Dec 13, 2016

In one of my recent posts i’ve talked about basic steps to get JNI working with Scala. Today i’d like to get into details of accessing Scala object definitions from native code. Since i couldn’t find any helpful information on this, i think it would be a helpful note for people working with JNI.

Posted by Aleksandr Ivanov
Fri, Dec 9, 2016

One of my recent projects required me to get an access to the low-level MacOS API, which can be done via Java Native Interface (JNI). In this article i’ll describe steps I had to do to setup the project to make a screenshot of a specific application’s window. The corresponding code can be found in Github repository.

Posted by Aleksandr Ivanov
Fri, Feb 26, 2016

I wrote the initial version of this article about two years ago, back then had not yet been acquired by Typesafe, hence no Akka-Http existed. Nevertheless I decided to repost it, primarily because Spray is still being used by many and the material in this article has some nice examples of how various FP concepts can be used for fun and profit. Gist for the code can be found .

Posted by Aleksandr Ivanov
Thu, Dec 17, 2015

Lambdas are essential for Spark applications. Unfortunately, the problem of closures often goes hand-in-hand with writing Spark applications. In this article i’d like to discuss one case that I find interesting. If you want to try it in the spark-shell yourself, i’ve prepared a gist. Let’s come up with a simple model:

Posted by Aleksandr Ivanov
Wed, Nov 4, 2015

Posted by Aleksandr Ivanov
Tue, Sep 8, 2015

Everyone who has ever seen Akka knows these two basic things:
How to define an Actor 
How to create an Actor

However, there are three ways to do it (at least in Scala’s dsl for Akka):

Posted by Aleksandr Ivanov
Wed, Aug 19, 2015

Surprisingly many questions on the Scala Stack Overflow are related to the issues with ambiguity during implicits resolution. Indeed if one breaks the basic implicit scope management rules, it’s very easy to fall into the ambiguity trap. One source of such issues is the Spray toolkit, which has a routing DSL that heavily depends on Scala’s implicit mechanism. Unfortunately, some of these issues are not very clear, especially when working with its json library and Scala’s compiler doesn’t help us much. In todays post I’d like to take a deeper look at this problem, why it occurs and how we can solve it. 

Posted by Aleksandr Ivanov
Mon, Jul 6, 2015

Posts by Topic

see all

Subscribe to Email Updates