derek (@D0Wind) profile picture
杭州,中国
Joined July 2007
Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)Photo by derek (@D0Wind)
The use of class will be almost disappear and object will become a namespace of function which has context。
Context Receivers in #Kotlin will allow to compose types in top-level functions without requiring service layers, orchestration layers or DI frameworks. While still being able to easily swap out implementations for testing, or otherwise. Context Receivers 2024 ✌️
1
147
The long awaited 1.2.0 release is finally here 🥳 Thank you everyone involved, providing feedback contributing and supporting @arrow_kt. Check out the changelog, and blogpost for more details
The Arrow 1.2.0 release is here, featuring: - New APIs for Typed Errors - Improvements to Raise - New NonEmptyCollection interface - Arrow KotlinX Serialization module Read about the changes & plans for 2.0 here: xebia.com/blog/a-new-module-… by @vergauwen_simon and @xebiafunctional
9
1
31
2,934
Taichi v1.5.0 Released! See what's new📷: - Taichi Runtime (TiRT) now supports Metal API and OpenGL ES - Taichi AOT fully supports float16 data type - Out of bound check is now supported on ndarrays Upgrade now to experience the latest features!  pip install -U taichi==1.5.0
1
1
8
1,521
mutable inner immutable outer, it's a best Kotlin idiom.
“No more boilerplate” — Explicit fields makes proper work with mutable structures and exposing read-only views a breeze. Loving this already — Hot Flows will be much smoother with this.
73
we'll see top functions everywhere.
Context receivers are a huge game changer in Kotlin — some final polishing, but they’re coming in 2.x. It’s a super powerful language feature, and it’ll make Kotlin code super clean! #kotlinconf
50
Event Sourcing ,写起来对建模能力要求很高
如果有机制能保证重启后恢复的内存状态是完整的,例如 snapshot+log+原子操作,或者总有办法从初始状态恢复工作,这个其实也不失为 Erlang "let it crash" 哲学的体现。不过看云风的态度,估计是没有这方面的考量😂
64
We uploaded some slides about our PL course in @rescriptlang on the website bobzhang.github.io/rescript-… , #Rescript is a very elegant language to teach compiler theory and put it into practice!
2
10
37
It reminds me of the time when I was writing JavaScript.
context(A) fun B.f(block: C.()->Unit): C = C(this@f).apply { [email protected] { this.block() } } Going overboard with Kotlin contexts with 3 "this" pointers in scope. ;-) An extension function with an extension function as a parameter and for good taste a context parameter as well.
1. The best practice coroutine scope combined with singleton service. 2. How to customize the dispatchers with Thread Pool for resource limit. (the executor service's default injection behavior will remove the coroutine task, fixing it costs lost time)
This quoted post is unavailable.
1
An Akka/zio-like framework is urgently needed for distributing low-latency streaming computing systems.
derek retweeted
Replying to @waylybaye
然后逐渐的,会倾向于用immutable的数据结构。状态会在函数调用栈间传递。无状态的函数越来越多。会把代码块作为一段逻辑来描述,然后把他们组合成一个 workflow,在需要的时候 run。
1
3
How about Cluster manager, distribute compute?
The ZIO ecosystem is and has always been the Only holistic and realistic alternative to the Akka ecosystem in the Scala (and even JVM) world if you are a normal OOP developer. I realized this years ago when I WAS an OOP developer. Every other claim is a partial solution at best.
1
I do think so too, but its terrible syntax is hard to swallow.
Replying to @jdegoes
Go is a contender for Java I’d say, they have separate jobs.
Explicit Task type is better than implicit coroutines
Replying to @GavinRayDev
2) Using extension functions and a type alias so it's not so ugly. This way lets you define your concurrent tasks as isolated units of work like the above example, with an alternate syntax.
SharedFlow inherits Flow that is not a good idea @kotlin
Are you working with @kotlin on the server, or the CLI and require graceful shutdowns? Checkout this cool new library in the @arrow_kt organisation! Feedback very welcome as always on here, GitHub or Slack 🙏
Introducing SuspendApp - an application builder that gives strong guarantees in terms of app. termination. - Only base dependency is KotlinX Coroutines - Reason about resource safety in terms of Structured Concurrency - Leverages @kotlin MPP 47deg.com/blog/release-post-…
6
17