基于Kotlin协程实现异步编程

所属专题:编程语言

所属领域:

嘉宾 : Roman Elizarov | JetBrains工程师,Kotlin开发团队成员

会议室 : 203CD

讲师介绍

专题演讲嘉宾:Roman Elizarov

JetBrains 工程师,Kotlin开发团队成员

Roman Elizarov有超过16年的职业软件开发经验。曾就职于Devexperts,负责为领先的经纪公司设计和开发高性能交易软件。

他也是Java和JVM专家,擅长并发、实时数据处理、算法和现代架构的性能优化。Roman目前在JetBrains参与Kotlin语言的开发。

Roman于2000年毕业于圣彼得堡信息技术、机械与光学大学(ITMO)。现在也在该校开设了一门并发和分布式系统编程的课程。他在大学期间开始参与ACM国际大学生程序设计竞赛(ICPC)。从1997年到现在,他一直是ICPC欧洲东部和北部地区预赛的主裁判之一。

 

Roman Elizarov is a professional software developer with more than 16 years of experience. He had started his career at Devexperts, where he designed and developed high-performance trading software for leading brokerage firms and market data delivery services that routinely handle millions of events per second. He is an expert in Java and JVM, particularly in concurrency, real-time data processing, algorithms and performance optimizations for modern architectures. Roman currently works on Kotlin language at JetBrains. In 2000 Roman had graduated from St. Petersburg ITMO. He now teaches a course on concurrent and distributed programming in ITMO. During his undergraduate study he participated at ACM International Collegiate Programming Contest (ICPC). Since 1997 and until now Roman serves as a Chief Judge of Northeastern European Regional Programming Contest (NEERC) of ICPC.

议题介绍

地点:203CD
所属专题:编程语言
所属领域:

演讲:基于Kotlin协程实现异步编程

开发者越来越关注异步编程。现代软件系统都互相连接,保持通信。很多编程语言都加入了某种形式的异步支持,如async/await。不过Kotlin用协程(coroutine)新颖地解决了这个问题。

我们一起看看基于futures/promises的传统async/await方式存在的问题,解释Kotlin基于coroutine和continuation概念提供的解决方案,从而了解为什么说Kotlin的编程模型更安全、更容易。

 

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.

交通指南

© 2020 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © 长地万方