Ilya Gorbunov
7c543b6b28
Rewrite array and specialized operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
c4ac2548d9
Rewrite Mapping.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
efefa64ac5
Rewrite snapshot and set operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
3b6c5880e2
Rewrite range operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
c3b894f041
Rewrite Guards, Numeric, SequenceOps, StringJoinOps in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
d2e1baa9d4
Rewrite Ordering.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
ff336cdf84
Rewrite Generators.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
eb2db85c46
Rewrite Filtering.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
d8455ba765
Rewrite Elements.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
012d3804f0
Rewrite Aggregates.kt to the new template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dd0e04edd5
Switch production generated stdlib sources to the new DSL and remove old DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
db049c0ab6
Introduce deprecated helpers to ease migration
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9f57a2c0d5
Make generated code ordered same as before
...
Allow to fix signature for sorting when overriding it
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
31e00efa8f
Legacy mode for non-multiplatform stdlib sources
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
4404257329
Improve new stdlib generator DSL
...
- Add Kotlin/Native platform.
- Rename classes.
- Introduce TemplateGroup and TemplateGroupBase to group template values.
- MemberBuilder: add support for more properties.
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
e68a6651d2
Prototype new version of stdlib generator template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9e34e20338
Refactor stdlib generator: extract common types to be reused in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dcd0a94d76
Minor: fix extra space in return type of chunked and windowed
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9305903e6c
Remove deprecated pairwise function
...
It was replaced with zipWithNext.
2017-11-07 18:59:33 +03:00
Dmitry Petrov
75ad20f823
Build compiler, plugin & stdlib with constructor call normalization
...
Required as a workaround for Proguard bug
https://sourceforge.net/p/proguard/bugs/664/
When processing bytecode generated by Kotlin compiler for constructor
call with stack spilling during arguments evaluation, ProGuard performs
an equivalent transformation for the bytecode, but emits invalid stack
frame information.
In JVM 1.6, such invalid stack frames are ignored and re-evaluated by
JVM during bytecode verification.
In JVM 1.8, such invalid stack frames cause VerifyError.
2017-10-12 10:59:57 +03:00
Ilya Gorbunov
559255f38e
windowed function: add default parameters, drop or keep partial windows, KEEP-11
...
Make step default to 1.
Add partialWindows boolean parameter defaulting to false to control
whether to keep partial windows in the end.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
c04b0072af
Rename pairwise to zipWithNext, KEEP-11
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
99bd54116e
Docs and samples for 'windowed' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
b2f2e3537b
Docs and samples for 'chunked' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
e418f61f0c
Docs and samples for 'pairwise' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
3f23742298
Optimize 'windowed' and 'chunked' for char sequences, iterables and sequences
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
18c7a01ab5
Add tests for windowed and chunked, fix precondition checks
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a3a1c391cc
Generate 'chunked' and 'windowed' signatures and delegating implementations
...
Add implementations of windowed.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
c815ccfd6a
Introduce 'pairwise' function, KEEP-11
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
cffab8d3ef
Set 1.2-SNAPSHOT in gradle build
2017-10-11 08:50:30 +03:00
Ilya Gorbunov
678caa5676
Setup project versions
...
Build parameters (with corresponding project properties):
- build.number (buildNumber) - build number from build server, goes into manifest, by default snapshot
- deployVersion (kotlinVersion, project.version) - version of artifacts, by default build.number
- bootstrap.kotlin.version (bootstrapKotlinVersion) - version of bootstrap compiler
2017-09-20 11:52:01 +02:00
Ilya Chernikov
6b22282ad4
Change previous gradle build for compatibility with the centralized build
...
incompatible with the main build yet
2017-09-19 21:37:07 +02:00
Stanislav Erokhin
7cd5eeb24d
Regenerate common stdlib: use 'expect' instead 'header'
2017-09-16 19:47:44 +03:00
Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00
Ilya Gorbunov
d8ea3ddcc8
Cleanup poms of projects migrated to gradle
2017-07-21 20:15:34 +03:00
Ilya Gorbunov
2792dbf988
Import for buildSequence in generated code for sequences
2017-05-05 18:01:02 +03:00
Ilya Gorbunov
ef72371fd7
Add samples for contentToString and contentDeepToString array operations
2017-05-03 17:44:30 +03:00
Marek Langiewicz
934b0b8c38
Fix List.takeLast for lists without RandomAccess
2017-05-03 16:38:15 +02:00
Ilya Gorbunov
a50c2ff0a5
Upgrade kotlin gradle plugin used to build libraries to 1.1.2
2017-04-27 21:59:46 +03:00
Ilya Gorbunov
37c3d8f204
Sort out warnings related to inline and library functions in stdlib-js
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
f22375601b
Remove unneeded suppressions
2017-04-18 12:47:11 +03:00
Ilya Gorbunov
8f452ed046
Cleanup warnings in stdlib and generated code
2017-04-18 12:47:04 +03:00
Ilya Gorbunov
5aabcb6ea3
Update build instructions in ReadMe to include gradle build step.
...
Also update links and overall readme structure.
2017-04-08 08:37:12 +03:00
Ilya Gorbunov
7a6621cc85
Migrate stdlib generator to gradle and include it to the main project
...
Use latest released kotlin compiler and stdlib to build it.
2017-04-06 20:32:37 +03:00
Anton Bannykh
9b34e21619
JS: fixed <Type>Array.iterator methods; added -Xtypedarray compiler key
...
The <Type>Array.iterator used to lack next<Type>() method (KT-16626).
The -Xtypedarray compiler key enables translation of primitive arrays
to TypedArrays, and primitive array`is`-checks (KT-15358, KT-14007,
KT-14614, KT-16056).
2017-03-27 23:09:34 +03:00
Ilya Gorbunov
c98c2d9931
Remove 'nearly_stateless' category, do not mention statefulness for terminal operations.
...
#KT-16994
2017-03-24 19:06:06 +03:00
Ilya Gorbunov
4018db680e
Sequence operation classification regarding their statefulness and laziness.
...
#KT-16994 Fixed
2017-03-24 19:06:06 +03:00
Ilya Gorbunov
61e8848aa2
Add samples for sequence building API.
2017-03-07 13:32:39 +03:00
Ilya Gorbunov
a04e6de047
Add groupingBy and eachCount sample.
2017-03-07 13:31:44 +03:00
Anton Bannykh
4c808e8691
JS: concat vararg arguments using Kotlin.concat and Kotlin.concatPrimitive functions in order to be binary compatible with (Kotlin PrimitiveArray -> JS TypedArrays) mapping.
2017-02-15 18:58:29 +03:00