Kotlin/Native BigDecimal: A drop-in replacement for java.math.BigDecimal | Jan Holesovsky

  Рет қаралды 4,885

Kotlin by JetBrains

Kotlin by JetBrains

Ай бұрын

Recording brought to you by American Express. americanexpress.io/kotlin-jobs
When porting an app to iOS using Kotlin/Native, it turned out that I needed a BigDecimal implementation. But there was no drop-in replacement that I could use, so I decided that I would port java.math.BigDecimal from the Android (AOSP) sources to Kotlin/Native.
In this presentation, you will learn some details about how java.math.BigDecimal is implemented, how I've converted it to Kotlin, and about how I've rewritten the JNI code to cinterop to call a 3rd party library (BoringSSL) that is used for the actual big number computation.
The talk will discuss technical difficulties of converting the Java sources to Kotlin (easy task), building BoringSSL for iOS Simulator and device (advanced task), and creating the glue code to call the 3rd party native library via cinterop (hard task).
Kotlin/Native BigDecimal is available under Apache License v2 and the source code is hosted on GitHub:
github.com/kendy/Kotlin-Nativ...
It is used in production in HiPER Scientific Calculator that has over 40 million downloads on Android, and achieved 500 thousand downloads on iOS in a year.

Пікірлер: 1
@MWGreek
@MWGreek Ай бұрын
Finally
Untangling Coroutine Testing by Márton Braun
42:49
Kotlin by JetBrains
Рет қаралды 8 М.
Exploring Exposed: A Kotlin Solution to Database Access | Chantal Loncle
40:47
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 19 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
这是王子儿子吗
00:27
落魄的王子
Рет қаралды 20 МЛН
Debugging the Future: Exploring Coroutine Debugger Tools | Nikita Nazarov
31:26
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 796 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 530 М.
Torvalds Speaks: Impact of Artificial Intelligence on Programming
5:05
Mastery Learning
Рет қаралды 836 М.
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1,1 МЛН
Factory Design Pattern in Kotlin
25:25
Kotlin by JetBrains
Рет қаралды 26 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 315 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 4,9 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 2,2 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 29 МЛН
Это - iPhone 16!
16:29
Rozetked
Рет қаралды 455 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 14 МЛН