Remove kotlin-context-receivers
article thumbnail

Kotlin Context Receivers: A Comprehensive Guide

Rock the JVM

By Riccardo Cardin This article will explore a powerful feature of the Kotlin programming language called context receivers. If you’re a Kotlin developer looking to write cleaner and more expressive code, context receivers are a tool you’ll want in your toolbox. Make sure you have Kotlin version 1.8.22

Scala 52
article thumbnail

Measuring Energy use of Android Devices by Scott Woods

Scott Logic

This allows us to query the device itself for battery information, with control over the sample rate and what data we receive. To enable this we created an app using Kotlin which would run the CPU intensive workloads mentioned above. apply {addAction(Intent.ACTION_BATTERY_CHANGED)} receiver: Intent?

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Why Picnic picked Java

Picnic Engineering

NodeJS was on the rise, and Kotlin was just a pre-release blip on the radar. Sadly there’s very little evidence supporting productivity differences between programming languages, especially in bigger real-world contexts. Currently a similar surge of alternative JVM language adoption is underway, this time with Kotlin leading the pack.

Java 59
article thumbnail

Bringing Feature Stores and MLOps to the Enterprise at Tecton

Data Engineering Podcast

The first 25 will receive a free, limited edition Monte Carlo hat! How do you define drift in the context of a feature? The first 25 will receive a free, limited edition Monte Carlo hat! How do you define drift in the context of a feature? What aspects of a feature do you monitor to determine whether it has drifted?

Python 100
article thumbnail

Functional Error Handling in Kotlin, Part 3: The Raise DSL

Rock the JVM

By Riccardo Cardin It’s time to end our journey on functional error handling in Kotlin with the new features introduced by the Arrow library in version 1.2.0, We’ll mainly focus on the Raise DSL, a new way to handle typed errors using Kotlin contexts. of Kotlin and version 1.2.0 This article is part of a series.

article thumbnail

Kotlin Flows - The Ultimate Guide

Rock the JVM

By Riccardo Cardin Video version: In the article Kotlin Coroutines—A Comprehensive Introduction , we saw how to use Kotlin Coroutines to write asynchronous code in a more natural and readable way. This article will focus on another crucial concept in Kotlin Coroutines: Kotlin flows. Flows Basics What is a flow in Kotlin?

article thumbnail

Functional Error Handling in Kotlin, Part 1: Absent values, Nullables, Options

Rock the JVM

Riccardo is a proud alumnus of Rock the JVM, now a senior engineer working on critical systems written in Scala and Kotlin. If you’d like to watch the video form of this article, please enjoy: The Kotlin language is a multi-paradigm, general-purpose programming language. Kotlin offers a lot of different methods to handle errors.