Conference: Nov 5-7, 2018
Workshops: Nov 8–9, 2018
Presentation: Fresh Async With Kotlin
Share this on:
What You’ll Learn
- Hear how asynchronous programming is done in various languages.
- Find out how Kotlin does asynchronous based on code samples that vary from simple to complex.
Abstract
Asynchronous programming is on the rise. Modern software systems are connected and constantly communicating. Programming languages are adding some form of asynchronous programming like async/await. However, Kotlin had taken a fresh approach to this problem with Kotlin Coroutines.
In this talk, we’ll study various approaches to asynchronous programming, their evolution, differences and similarities. We’ll see the problem with the traditional async/await approach that is based on futures/promises and how the Kotlin’s solution that is based on concepts of coroutines and continuations is giving us safer and easier programming model.
Interview
I'm currently leading the team of Kotlin libraries. We are working in close cooperation with Kotlin language team, the design, etc..
Part of the reason is the way we designed asynchronicity Kotlin, it is novel. There are things you can't find in other languages. It's less familiar to people, so we need to spend some time explaining it to people, what is different, how it works, and why would we chose to do async in this wait instead of how other languages are doing it.
Yes. I want to start with callbacks, which is a classic approach, very popular in JavaScript/Node.js world. Then we'll see Futures and Promises. That's how modern languages approach async. Then we'll jump to Kotlin, how async is different, cleaner, easier. In a way it's very similar, but it removes a layer of complexity from the language
I would show both how you use it and a little bit how it's implemented by the compiler. How it translates into Java bytecode if you were doing it manually to dispel the magic. Then I'll show a couple of practical scenarios, how to use it. Here is the task you have in hand, then you write the async call. How you start from taking your async I/O library that most people use and adapt it to work with coroutines. I will take a simple example and show how to build a more complex one.
The main persona I envision is a developer. It's more about concepts, but I show the actual code. It should be easily to understand for JVM developers, but it is not problem to grasp it even if you come from another world, JS or Swift. It should be pretty self-explaining because the code we will be showing you'll be able to read even if you don't know the language.
Similar Talks
.
Tracks
-
Architectures You've Always Wondered About
Architectural practices from the world's most well-known properties, featuring startups, massive scale, evolving architectures, and software tools used by nearly all of us.
-
Going Serverless
Learn about the state of Serverless & how to successfully leverage it! Lessons learned in the track hit on security, scalability, IoT, and offer warnings to watch out for.
-
Microservices: Patterns and Practices
Stories of success and failure building modern Microservices, including event sourcing, reactive, decomposition, & more.
-
DevOps: You Build It, You Run It
Pushing DevOps beyond adoption into cultural change. Hear about designing resilience, managing alerting, CI/CD lessons, & security. Features lessons from open source, Linkedin, Netflix, Financial Times, & more.
-
The Art of Chaos Engineering
Failure is going to happen - Are you ready? Chaos engineering is an emerging discipline - What is the state of the art?
-
The Whole Engineer
Success as an engineer is more than writing code. Hear inward looking thoughts on inclusion, attitude, leadership, remote working, and not becoming the brilliant jerk.
-
Evolving Java
Java continues to evolve & change. Track covers Spring 5, async, Kotlin, serverless, the 6-month cadence plans, & AI/ML use cases.
-
Security: Attacking and Defending
Offense and defensive security evolution that application developers should know about including SGX Enclaves, effects of AI, software exploitation techniques, & crowd defense
-
The Practice & Frontiers of AI
Learn about machine learning in practice and on the horizon. Learn about ML at Quora, Uber's Michelangelo, ML workflow with Netflix Meson and topics on Bots, Conversational interfaces, automation, and deployment practices in the space.
-
21st Century Languages
Compile to Native, Microservices, Machine learning... tailor-made languages solving modern challenges, featuring use cases around Go, Rust, C#, and Elm.
-
Modern CS in the Real World
Applied trends in Computer Science that are likely to affect Software Engineers today. Topics include category theory, crypto, CRDT's, logic-based automated reasoning, and more.
-
Stream Processing In The Modern Age
Compelling applications of stream processing using Flink, Beam, Spark, Strymon & recent advances in the field, including Custom Windowing, Stateful Streaming, SQL over Streams.
-
Performance Mythbusting
Real world, applied performance proofs across stacks. Hear performance consideratiosn for .NET, Python, & Java. Learn performance use cases with OpenJ9, Instagram, and Netflix.
-
Tools and Culture: What's Beyond a Stack of Containers?
Containers are not just a techology. It's a platform. Push your knowledge.
-
Web as Platform
All things Browser, from JavaScript Frameworks for animation and AR / VR to Web Assembly and from protocol work to open standards evolution.
-
Beyond Being an Individual Contributor
Beyond being an individual contributor. Building and Evolving managers and tech leadership.
-
Building Great Engineering Cultures
Why engineering culture matters. Track features org scaling, memes as a culture tool, Ally skills, and panels on diversity / inclusion.
-
Hardware Frontiers: Changes Affecting Software Developers Today
Topics around: Quantum computing, NVM, SMR, GPU, custom hardware, self-driving cars, and mobile hardware.