Skip to content
0:00 / 0:00

#implicits#prolog#compile-time

Daniel Beskin at #ScalaUA - Compile Time Logic Programming in Scala

ScalaUA Conference

1.2K subscribers • 26 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Daniel Beskin
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Advanced. Deep dive for people who know the field.

459 views7 years ago1 recommendation

Programming languagesComputer scienceScalaCompilers and interpretersFunctional programming

Daniel Beskin demonstrates how to use Scala's implicits to write Prolog-like programs that run at compile time to solve complex domain constraints.

Daniel Beskin at #ScalaUA - Compile Time Logic Programming in Scala It has been known that Scala's implicits allow one to write Prolog-like programs that run at compile time. Although letting the compiler solve your daily Sudoku puzzle for you is fun, how could that possibly be useful in an actual program? Taking a step back, as vigilant observers of type safety, we try to leverage the type system to ensure the correctness of our code; but when the domain constraints become too involved, constructing the appropriate types might become cumbersome. In this talk, after introducing some basic Prolog phrased in the language of implicits, we see how this newfound power can free us from the burden of type construction by letting the compiler do most of the grunt work for us. Follow ScalaUA Conference on Twitter: twitter.com/@ScalaUA_Conf

Why it's here

1 person recommends this

What people say. Recommended as part of a curated list of high-quality ScalaUA conference talks.

u/know_not_muchin r/scala • Recommends

All Videos of ScalaUA conference are now available! All the videos of ScalaUA conference can be seen at link to this video and https://old.reddit.com/r/ScalaConferenceVideos/ Since this conference has exceptionally good topic selection, I am listing down the urls to all the talks below Thinking Functionally - John A. De Goes Big Step to Functional Programming - Alex Zvolinskiy Scheduling and retrying effects with cats - Miklós Martin Conquering Concurrency with Functional Programming - Jakub Kozłowski Scala Schemas with Shapeless - Kévin Rauscher Backpressure over the wire - when things go wrong - Zahari Dichev Things I wish I knew when I started with Akka - Markus Jura [Tou…