Tuesday, May 12, 2020

Kotlin vs Java continued

Dynamic component system can be specified with the help of OSGI specifications. Components are packaged in bundles which communicate locally or via services across the gateway and hence the acronym for open services gateway interface. Kotlin offers support for this specification with the help of a separate Kotlin-Osgi-bundle library which replaces regular libraries such as Kotlin-runtime, kotlin-stdlib and Kotlin-reflect. The usual gradle tag to specify exclusions Aldo works for these above referenced libraries. The manifest requirement in other languages to specify the Osgi bundle is also possible in Kotlin but it is not sufficient. That option is certainly the most preferred way but it does not solve a well-known package split issue.
The Kotlin standard library includes 
Higher order functions that apply let, apply, synchronized and use
Extension functions that support querying operations 
Utilities to work with String and char sequence
Extensions for jdk classes that help programming with io, threading and files
 Kotlin core functions and types are supported on all platforms and are available via the Kotlin package. 
Kotlin. Annotation package provides annotation facility
Kotlin.Browser provides top level browser properties.
Regular collectiontypes are packaged in kotlin. Collections.
Kotlin. Comparison and Kotlin. Concurrent provide comparator and parallel programming facilities.
Kotlin contracts and coroutines provide DSL and suspend facilities 

No comments:

Post a Comment