 Coroutines in	KotlinCoroutines in Kotlin Andrey.Breslav@JetBrains.com This talk could have been named… • async/await/yield • fibers • [stackless] continuations Suspendable Computations Outline • Motivation/Examples Motivation/Examples • Solutions in other languages • Kotlin’s Solution – Client code – Library code • Compiling Coroutines • Exception Handling • Appendix. Serializable Coroutines? “Legal” • All I’m saying is no more Stackful Language restrictions Use in special contexts L Use anywhere J Implemented in C#, Scala, Kotlin, … Quasar, Javaflow, … Code transformation Local (compiler magic) J All over the place L Runtime0 码力 | 39 页 | 1.01 MB | 1 年前3 Coroutines in	KotlinCoroutines in Kotlin Andrey.Breslav@JetBrains.com This talk could have been named… • async/await/yield • fibers • [stackless] continuations Suspendable Computations Outline • Motivation/Examples Motivation/Examples • Solutions in other languages • Kotlin’s Solution – Client code – Library code • Compiling Coroutines • Exception Handling • Appendix. Serializable Coroutines? “Legal” • All I’m saying is no more Stackful Language restrictions Use in special contexts L Use anywhere J Implemented in C#, Scala, Kotlin, … Quasar, Javaflow, … Code transformation Local (compiler magic) J All over the place L Runtime0 码力 | 39 页 | 1.01 MB | 1 年前3
 The Node.js Handbook1 Table of Contents Preface The Node.js Handbook Conclusion 2 Preface The Node.js Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get get you up to speed quickly with Node.js. This book is written by Flavio. I publish programming tutorials on my blog flaviocopes.com and I organize a yearly bootcamp at bootcamp.dev. You can reach me The Node.js Handbook 1. Introduction to Node.js 1.1. Node.js has a vast number of libraries 1.2. An example Node.js application 1.3. Node.js frameworks and tools 2. A brief history of Node.js 2.0.10 码力 | 161 页 | 1.66 MB | 1 年前3 The Node.js Handbook1 Table of Contents Preface The Node.js Handbook Conclusion 2 Preface The Node.js Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get get you up to speed quickly with Node.js. This book is written by Flavio. I publish programming tutorials on my blog flaviocopes.com and I organize a yearly bootcamp at bootcamp.dev. You can reach me The Node.js Handbook 1. Introduction to Node.js 1.1. Node.js has a vast number of libraries 1.2. An example Node.js application 1.3. Node.js frameworks and tools 2. A brief history of Node.js 2.0.10 码力 | 161 页 | 1.66 MB | 1 年前3
 Node.js - the coreNode.js - the core Mark Volkmann mark@ociweb.com Object Computing, Inc. April 21, 2012 Node.js Overview ... “Node's goal is to provide an easy way to build scalable network programs.” http://nodejs not just for building “servers” “The official name of Node is "Node". The unofficial name is "Node.js" to disambiguate it from other nodes.” https://github.com/joyent/node/wiki/FAQ Runs on top of Chrome Joyent 2 passed control of the project to Isaac Schlueter on 1/30/12 a cartoon from substack Node.js ... Overview Event-based rather than thread-based; can use multiple processes Assumes most time0 码力 | 124 页 | 7.87 MB | 1 年前3 Node.js - the coreNode.js - the core Mark Volkmann mark@ociweb.com Object Computing, Inc. April 21, 2012 Node.js Overview ... “Node's goal is to provide an easy way to build scalable network programs.” http://nodejs not just for building “servers” “The official name of Node is "Node". The unofficial name is "Node.js" to disambiguate it from other nodes.” https://github.com/joyent/node/wiki/FAQ Runs on top of Chrome Joyent 2 passed control of the project to Isaac Schlueter on 1/30/12 a cartoon from substack Node.js ... Overview Event-based rather than thread-based; can use multiple processes Assumes most time0 码力 | 124 页 | 7.87 MB | 1 年前3
 Kotlin Language Documentation 1.9.20Kotlin Language Documentation 1.9.20 Table of Contents Kotlin Docs Get started with Kotlin Install Kotlin Create your powerful application with Kotlin Is anything missing? Welcome to our tour of of Kotlin! Hello world Variables String templates Practice Next step Basic types Practice Next step Collections List Set Map Practice Next step Control flow Conditional expressions Ranges calls Use Elvis operator Practice What's next? Kotlin Multiplatform Kotlin Multiplatform use cases Code sharing between platforms Get started Kotlin for server side 77 78 78 79 79 79 80 830 码力 | 1299 页 | 32.44 MB | 1 年前3 Kotlin Language Documentation 1.9.20Kotlin Language Documentation 1.9.20 Table of Contents Kotlin Docs Get started with Kotlin Install Kotlin Create your powerful application with Kotlin Is anything missing? Welcome to our tour of of Kotlin! Hello world Variables String templates Practice Next step Basic types Practice Next step Collections List Set Map Practice Next step Control flow Conditional expressions Ranges calls Use Elvis operator Practice What's next? Kotlin Multiplatform Kotlin Multiplatform use cases Code sharing between platforms Get started Kotlin for server side 77 78 78 79 79 79 80 830 码力 | 1299 页 | 32.44 MB | 1 年前3
 A Security Guide for Kotlin Developers.........................1 Kotlin’s Security Profile............................................2 Most Common Security Attacks...............................3 Top Kotlin Security Risk.............. ......10 Protect Your Kotlin Programs with Kiuwan.............. 11 1 A pragmatic, modern, and statically typed coding language that’s essentially a Java alternative, Kotlin offers some key benefits Virtual Machine (JVM) and Android app development while also being interoperable alongside Java. Kotlin language is general purpose and open sourced—available on GitHub for anyone to use—combining functional0 码力 | 13 页 | 1.80 MB | 1 年前3 A Security Guide for Kotlin Developers.........................1 Kotlin’s Security Profile............................................2 Most Common Security Attacks...............................3 Top Kotlin Security Risk.............. ......10 Protect Your Kotlin Programs with Kiuwan.............. 11 1 A pragmatic, modern, and statically typed coding language that’s essentially a Java alternative, Kotlin offers some key benefits Virtual Machine (JVM) and Android app development while also being interoperable alongside Java. Kotlin language is general purpose and open sourced—available on GitHub for anyone to use—combining functional0 码力 | 13 页 | 1.80 MB | 1 年前3
 Kotlin Language Documentation 1.3Kotlin Language Documentation Table of Contents Overview Using Kotlin for Server-side Development Using Kotlin for Android Development Kotlin JavaScript Overview Kotlin/Native for Native Kotlin asynchronous programming and more Multiplatform Programming What's New in Kotlin 1.1 What's New in Kotlin 1.2 What's New in Kotlin 1.3 Standard library Tooling Getting Started Basic Syntax Idioms Functions and Lambdas Functions Higher-Order Functions and Lambdas Inline Functions Collections Kotlin Collections Overview Constructing Collections Iterators Ranges and Progressions Sequences Collection0 码力 | 597 页 | 3.61 MB | 1 年前3 Kotlin Language Documentation 1.3Kotlin Language Documentation Table of Contents Overview Using Kotlin for Server-side Development Using Kotlin for Android Development Kotlin JavaScript Overview Kotlin/Native for Native Kotlin asynchronous programming and more Multiplatform Programming What's New in Kotlin 1.1 What's New in Kotlin 1.2 What's New in Kotlin 1.3 Standard library Tooling Getting Started Basic Syntax Idioms Functions and Lambdas Functions Higher-Order Functions and Lambdas Inline Functions Collections Kotlin Collections Overview Constructing Collections Iterators Ranges and Progressions Sequences Collection0 码力 | 597 页 | 3.61 MB | 1 年前3
 Kotlin 1.4 language featuresKotlin 1.4 Online Event October 12, 2020 @sveta_isakova Kotlin 1.4 Language Features Svetlana Isakova Kotlin 1.4 Language Features • SAM conversions for Kotlin classes • Explicit API mode arguments • New type inference • Unified exception type for null checks SAM conversions for Kotlin interfaces SAM = Single abstract method interface Action { fun run() } SAM conversion Ability println("I'm Kotlin 1.3") } SAM conversion for a Java interface public interface Action { void run(); } public static void runAction(Action action) { action.run(); } Java: Kotlin: runAction0 码力 | 69 页 | 3.29 MB | 1 年前3 Kotlin 1.4 language featuresKotlin 1.4 Online Event October 12, 2020 @sveta_isakova Kotlin 1.4 Language Features Svetlana Isakova Kotlin 1.4 Language Features • SAM conversions for Kotlin classes • Explicit API mode arguments • New type inference • Unified exception type for null checks SAM conversions for Kotlin interfaces SAM = Single abstract method interface Action { fun run() } SAM conversion Ability println("I'm Kotlin 1.3") } SAM conversion for a Java interface public interface Action { void run(); } public static void runAction(Action action) { action.run(); } Java: Kotlin: runAction0 码力 | 69 页 | 3.29 MB | 1 年前3
 Kotlin 1.2 Language DocumentationKotlin Language Documentation Table of Contents Overview Using Kotlin for Server-side Development Using Kotlin for Android Development Kotlin JavaScript Overview Kotlin/Native for Native Coroutines asynchronous programming and more Multiplatform Programming What's New in Kotlin 1.1 What's New in Kotlin 1.2 What's Coming in Kotlin 1.3 Standard library Tooling Getting Started Basic Syntax Idioms structure Java Interop Calling Java code from Kotlin Calling Kotlin from Java JavaScript Dynamic Type Calling JavaScript from Kotlin Calling Kotlin from JavaScript JavaScript Modules JavaScript0 码力 | 333 页 | 2.22 MB | 1 年前3 Kotlin 1.2 Language DocumentationKotlin Language Documentation Table of Contents Overview Using Kotlin for Server-side Development Using Kotlin for Android Development Kotlin JavaScript Overview Kotlin/Native for Native Coroutines asynchronous programming and more Multiplatform Programming What's New in Kotlin 1.1 What's New in Kotlin 1.2 What's Coming in Kotlin 1.3 Standard library Tooling Getting Started Basic Syntax Idioms structure Java Interop Calling Java code from Kotlin Calling Kotlin from Java JavaScript Dynamic Type Calling JavaScript from Kotlin Calling Kotlin from JavaScript JavaScript Modules JavaScript0 码力 | 333 页 | 2.22 MB | 1 年前3
 Node.js Manual & DocumentationNode.js Manual & Documentation 项目网址:http://cnodejs.org Pdf 发布:Lenzhang Table Of Contents  Synopsis 概要  Global Objects 全局对象 o global o process o require() o require.resolve() server, put the code into a file called example.js and execute it with the node program 要运行这个服务器程序,只要将上述代码保存为文件 example.js 并用 node 程 序执行此文件: > node example.js Server running at http://127.0.0.1:8124/ 数中传 入的文件名不同。 Example: running node example.js from /Users/mjr 例如:在目录/Users/mjr 下运行 node example.js console.log(__filename); // /Users/mjr/example.js __dirname The dirname of the script being0 码力 | 153 页 | 1.21 MB | 1 年前3 Node.js Manual & DocumentationNode.js Manual & Documentation 项目网址:http://cnodejs.org Pdf 发布:Lenzhang Table Of Contents  Synopsis 概要  Global Objects 全局对象 o global o process o require() o require.resolve() server, put the code into a file called example.js and execute it with the node program 要运行这个服务器程序,只要将上述代码保存为文件 example.js 并用 node 程 序执行此文件: > node example.js Server running at http://127.0.0.1:8124/ 数中传 入的文件名不同。 Example: running node example.js from /Users/mjr 例如:在目录/Users/mjr 下运行 node example.js console.log(__filename); // /Users/mjr/example.js __dirname The dirname of the script being0 码力 | 153 页 | 1.21 MB | 1 年前3
 Hello 算法 1.1.0 Kotlin版Hello 算法 Kotlin 语言版 作者:靳宇栋(@krahets) 代码审阅:陈东辉(@curtishd) Release 1.1.0 2024‑04‑15 序 两年前,我在力扣上分享了“剑指 Offer”系列题解,受到了许多读者的鼓励和支持。在与读者交流期间,我 最常被问的一个问题是“如何入门算法”。逐渐地,我对这个问题产生了浓厚的兴趣。 两眼一抹黑地刷题似乎是最受欢迎的方法 maxHeap.add(_val) // 从底至顶堆化 siftUp(size() - 1) } /* 从节点 i 开始,从底至顶堆化 */ fun siftUp(it: Int) { // Kotlin 的函数参数不可变,因此创建临时变量 var i = it while (true) { // 获取节点 i 的父节点 val p = parent(i) // 当“越过根节点”或“节点无须修复”时,结束堆化 从顶至底堆化 siftDown(0) // 返回堆顶元素 return _val } /* 从节点 i 开始,从顶至底堆化 */ fun siftDown(it: Int) { // Kotlin 的函数参数不可变,因此创建临时变量 var i = it while (true) { // 判断节点 i, l, r 中值最大的节点,记为 ma val l = left(i) val0 码力 | 381 页 | 18.47 MB | 1 年前3 Hello 算法 1.1.0 Kotlin版Hello 算法 Kotlin 语言版 作者:靳宇栋(@krahets) 代码审阅:陈东辉(@curtishd) Release 1.1.0 2024‑04‑15 序 两年前,我在力扣上分享了“剑指 Offer”系列题解,受到了许多读者的鼓励和支持。在与读者交流期间,我 最常被问的一个问题是“如何入门算法”。逐渐地,我对这个问题产生了浓厚的兴趣。 两眼一抹黑地刷题似乎是最受欢迎的方法 maxHeap.add(_val) // 从底至顶堆化 siftUp(size() - 1) } /* 从节点 i 开始,从底至顶堆化 */ fun siftUp(it: Int) { // Kotlin 的函数参数不可变,因此创建临时变量 var i = it while (true) { // 获取节点 i 的父节点 val p = parent(i) // 当“越过根节点”或“节点无须修复”时,结束堆化 从顶至底堆化 siftDown(0) // 返回堆顶元素 return _val } /* 从节点 i 开始,从顶至底堆化 */ fun siftDown(it: Int) { // Kotlin 的函数参数不可变,因此创建临时变量 var i = it while (true) { // 判断节点 i, l, r 中值最大的节点,记为 ma val l = left(i) val0 码力 | 381 页 | 18.47 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100














 
 