Home » Tag Archives: Kotlin

Tag Archives: Kotlin

A New Idea For Functions

Introduction Man, I’ve had this idea in my head for more than a month now (luckily I wrote it down, too), waiting until the day I wrote this post. I didn’t write it because I was busy with the move and new job, but now things are finally settling down! Here’s the thing: When you really dig into it, proper ...

Read More »

Spring Webflux – Kotlin DSL – a walkthrough of the implementation

In a previous blog post I had described how Spring Webflux, the reactive programming support in Spring Web Framework, uses a Kotlin based DSL to enable users to describe routes in a very intuitive way. Here I wanted to explore a little of the underlying implementation. A sample DSL describing a set of endpoints looks like this: package sample.routes import org.springframework.context.annotation.Bean ...

Read More »

Kotlin and Android: JetBrains and Google Behind One Language

Google I/O 2017 had several major announcements, but one of the most interesting to me is “first-class support for Kotlin” on Android. The Kotlin blog post on this announcement discusses the benefits this brings to Kotlin users: In case you are concerned about other platforms that Kotlin supports (Kotlin/JVM for server and desktop, Kotlin/JS and Kotlin/Native), please be sure that ...

Read More »

Improved Pattern Matching in Kotlin

Kotlin doesn’t have true pattern matching, and that’s fine. In order to make matchable classes in Scala, there is an awful lot of overhead required to make it work, and I highly respect Kotlin’s goal of not adding much overhead anywhere. But that doesn’t mean we can’t try to make our own way to get something closer to pattern matching. ...

Read More »

Building and testing a parser with ANTLR and Kotlin

This post is part of a series on how to create a useful language and all the supporting tools. Building a lexer Code Code is available on GitHub. The code described in this post is associated to the tag 02_parser       The parser The parser is simply defined as an ANTLR grammar. We have previously built a separate lexer. ...

Read More »