Ilya Gorbunov
b35b727d73
KT-53778 Remove experimental annotations from open ranges
2023-04-28 17:12:15 +00:00
Ilya Gorbunov
448e9fc5e7
Drop functions hidden since 1.4 (inline-only or experimental in JVM)
...
Since it's no longer possible to use API version less than 1.4,
these functions can be no longer called at all.
2023-04-26 10:31:03 +00:00
Abduqodiri Qurbonzoda
b25f3be81b
[K/N] Experimental Char code point constants and functions
...
Internalize WASM Char code point functions.
As a part of efforts to stabilize Native stdlib.
2023-04-19 20:33:33 +00:00
Filipp Zhinkin
368f21461c
KT-55091 Optimize Sequence::toSet/toList implementation
...
Sequence::toSet and Sequence::toList both create a
collection, fill it with elements, and then try to optimize a result
by returning empty, singleton, or the allocated collection depending on
the elements count.
Instead of allocating the collection and then trying to return
an optimized instance it is worth checking the sequence's size
beforehand and return empty/singleton collection when possible.
Proposed change optimize performance of aforementioned functions and
also reduce allocation rate when a sequence consists of 0 or 1 elements.
^KT-55091 fixed
2023-04-17 08:58:20 +00:00
Takumi Maeomote
c4f83adc2a
Add sample for Map.asSequence ( #5055 )
2022-12-15 19:58:38 +03:00
Ilya Gorbunov
0d0cc9250b
Note about all() result on empty collections KT-54835
2022-11-25 14:09:09 +00:00
Abduqodiri Qurbonzoda
7060811c8b
Remove the brittle contains optimization code #KT-47707
2022-09-11 10:54:37 +00:00
Ilya Gorbunov
38099e11c3
Remove rangeUntil extensions that are now shadowed by members #KT-52933
2022-08-25 19:24:11 +00:00
Ilya Gorbunov
64a11c555f
Suppress extension shadowing member for rangeUntil extensions #KT-52933
...
Until the next bootstrap where they can be removed entirely
2022-08-24 22:22:53 +00:00
Igor Yakovlev
a0a66ffb96
[WASM] Refactoring wasm array copy functions
2022-07-08 16:29:45 +00:00
Igor Yakovlev
0ea7e8b70a
[WASM] Add array copy intrinsic
2022-07-06 19:07:56 +00:00
Ilya Gorbunov
8584fe2725
Add contains extension for mixed types for open ranges and open-closed range specializations
...
#KT-52932
2022-06-28 00:08:05 +00:00
Ilya Gorbunov
9574040f85
Add rangeUntil for primitives as an extension
...
#KT-52932
2022-06-28 00:08:05 +00:00
Ilya Gorbunov
71336df50a
Support open ranges in stdlib-gen
...
#KT-52932
2022-06-28 00:08:04 +00:00
Jerome Prinet
6aec88446a
Fix JavaExec.main deprecation
2022-04-14 14:21:31 +03:00
Ilya Gorbunov
1845e326d1
Hide deprecated Double/FloatArray.contains/indexOf/lastIndexOf
2022-04-12 15:03:40 +00:00
Ilya Gorbunov
4c461d7864
Add min/max test generator and generated tests
...
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Ilya Gorbunov
60fbb0d171
Reintroduce min/max operations for non-empty collections KT-50146
2022-04-04 22:33:24 +00:00
Ilya Gorbunov
4709e2c274
stdlib-gen: simpify copyright notice reading
2022-04-04 22:33:23 +00:00
Abduqodiri Qurbonzoda
42c9a27b8a
Specialize Progression first/last/OrNull functions #KT-42178
2022-04-04 22:27:49 +00:00
Artem Kobzar
804eb61bf0
feat: add polyfills insertion for ES Next used features
2022-02-16 10:49:11 +00:00
Abduqodiri Qurbonzoda
0d46d0d69b
[WASM] Sync stdlib-gen template with actual source code
2022-02-10 10:23:22 +00:00
Igor Yakovlev
e58d4163ad
[WASM] Add std methods for collections
2022-01-05 13:12:32 +01:00
Igor Yakovlev
c9a92d71ae
[WASM] Add kotlin.math tests
2022-01-05 13:12:32 +01:00
Igor Yakovlev
9408499da9
[WASM] Add std text implementations
2021-12-07 21:32:59 +03:00
Igor Laevsky
7943298240
[Wasm] Add sorting function to the stdlib
2021-10-14 17:24:04 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Abduqodiri Qurbonzoda
bde055fe5c
Advance deprecation level of Float/DoubleArray contains, indexOf, lastIndexOf to ERROR #KT-28753
2021-09-16 19:38:40 +03:00
Abduqodiri Qurbonzoda
7e1cd757fb
Advance max/min(By/With) deprecation level to HIDDEN #KT-38854
2021-09-16 19:38:35 +03:00
Abduqodiri Qurbonzoda
f1befc0108
Format Other_Uppercase/Other_Lowercase property as an identifier in docs
2021-09-15 17:31:52 +03:00
Ilya Gorbunov
11314a5c4e
Rename enabling old behavior property and make it cached in a field
...
Mention the property name in the note about conversion to set.
#KT-45438
2021-09-02 06:06:39 +03:00
Abduqodiri Qurbonzoda
94b371af5b
Remove brittle ‘contains’ optimization in minus/removeAll/retainAll #KT-45438
2021-09-02 05:58:19 +03:00
Abduqodiri Qurbonzoda
0faa83bacb
Deprecate JS Array/PrimitiveArray.sort(comparison) functions
2021-09-02 01:38:03 +00:00
Alexander Udalov
0d1380c232
Fix warnings in generator modules
2021-08-10 17:57:50 +02:00
Igor Laevsky
74a87e2b79
WASM: Add few helper array library functions from Slava's changes
2021-07-02 15:39:26 +03:00
Abduqodiri Qurbonzoda
d934c97bf5
Equivalize isLowerCase and isUpperCase behavior in all platforms #KT-46184
2021-05-31 13:42:46 +03:00
Abduqodiri Qurbonzoda
54994a289f
Support all digit chars on JS and Native #KT-46002
2021-05-27 06:56:52 +03:00
Abduqodiri Qurbonzoda
39731fd493
Merge Stdlib generators
2021-04-12 16:51:24 +03:00
Abduqodiri Qurbonzoda
33b44585c4
Deprecate sumBy and sumByDouble with WARNING
2021-04-08 03:48:01 +03:00
Abduqodiri Qurbonzoda
f99c72cc98
Remove redundant @OptIn targeting new case conversion api
2021-04-08 03:21:59 +03:00
Ilya Gorbunov
b64b96eee6
Deprecate Char-to-Number conversions in stdlib (JVM and JS)
...
- Int.toChar was left non-deprecated because the replacement is not intrinsic yet.
- Number.toChar was left non-deprecated because otherwise the deprecation propagates to the override, Int.toChar.
KT-23451
2021-04-07 18:30:20 +03:00
Abduqodiri Qurbonzoda
b0f1ddc91e
Advance max/min(By/With) deprecation level to ERROR
2021-04-07 07:49:23 +03:00
Ilya Gorbunov
d70edeb38b
Hide deprecated JS Math object from public API and rename to JsMath
...
KT-41318
- Rename Math to JsMath and remove unused functions
- Fix return types, remove duplicating JsMath from longjs.kt
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2021-04-07 00:39:47 +03:00
Abduqodiri Qurbonzoda
d9ab96126d
Advance deprecation level of mixed Int/FP overloads of ClosedRange.contains to HIDDEN KT-22423
2021-04-07 00:23:34 +03:00
Abduqodiri Qurbonzoda
abcc572b97
Remove deprecated scanReduce and scanReduceIndexed
2021-04-07 00:23:26 +03:00
Ilya Gorbunov
94240f7b21
Stabilize unsigned types KT-45653
...
Deprecate specialized unsigned iterators for removal.
Fix compiler tests:
- drop unsignedLiteralsOn1_2 because apiVersion 1.2 is no longer supported
- drop experimental unsigned literals diagnostic test
2021-03-31 19:05:04 +03:00
Abduqodiri Qurbonzoda
ff5b2404af
Introduce firstNotNullOf and firstNotNullOfOrNull #KT-12109
2021-03-12 09:27:14 +03:00
Abduqodiri Qurbonzoda
2266cd4631
Commonize Char.titlecaseChar() and Char.titlecase() #KT-44369
2021-03-02 01:11:45 +03:00
Abduqodiri Qurbonzoda
fc5e4c20c1
Implement String case conversion generators #KT-45213
2021-03-02 01:11:38 +03:00
Abduqodiri Qurbonzoda
1066de1be6
Implement Char one-to-one and one-to-many case conversion generators #KT-45213
2021-03-02 01:11:36 +03:00