Join us on Monday, May 2nd through Tuesday, May 3rd for flatMap(Oslo) 2016 at Teknologihuset in Oslo, Norway. The 5th annual functional programming event is organized by a group of developers from Arktekk, and focuses on Scala and the Java Virtual Machine.
Noel Markham, a 47 Degrees Senior Software Engineer will be presenting on Tuesday, May 3rd at 4:10 PM:
Being Creative with Genetic Algorithms and Typeclasses
Typeclasses are a hidden gem of the Scala language. They provide an immense power not seen in imperative languages, and so their approach might be unusual or alien to those approaching Scala from an imperative background. I will show how typeclasses allow developers to effectively attach their own interfaces to code written by others. In this talk, I describe what a genetic algorithm is and provide an example implementation in Scala. Using this implementation, I will demonstrate how to define a specific typeclass for our problem. I will then derive several different implementations, showing how to get rock solid confidence in testing our algorithm - with the help of ScalaCheck - and then provide a completely different typeclass to provide a fun, visual and creative solution, illustrating the iterations and improvements as the genetic algorithm’s fitness function runs. The talk will be particularly hands-on, with plenty of examples run directly from the REPL.
Then join us the following day for Typelevel Summit (Oslo) where our very own Alejandro Gómez García will be speaking on Fetch.