Journal of Open Source Developments
Scientific Computing with the KotlinSci Open-source Framework
Abstract
KotlinSci is a framework for scientific computing for the Java Virtual Machine (JVM). The paper illustrates that KotlinSci can significantly facilitate and simplify the development of complex computational demanded scientific software at the JVM. The work compares Java based approaches with Kotlin ones, and illustrates the significant advantages of the enhanced flexibility of the Kotlin language. We illustrate that one of the more significant drawbacks of Java is its lack of operator overloading. Also, the nominal approach to functional programming of Java is not as flexible and convenient as the structural approach of Kotlin is. Kotlin also offers superb support for concurrency with its coroutines framework. Coroutines are exploited in KotlinSci to provide effective task oriented parallelism. The paper demonstrates that KotlinSci builds an effective and easy to use scientific programming environment by exploring the syntactic fluency and the strong object-functional features of Kotlin. JVM is a superb development framework that is based on advanced technology and algorithms. The advent of improved JVMs supporting more efficiently scientific computation tasks will enrich further the potential of KotlinSci for high-performance computing. Kotlin builds upon the JVM’s framework a modern language capable of confronting effectively a wide set of applications. In turn the presented KotlinSci open-source framework exploits the former ones and implements an easy to use scientific programming environment for the JVM.References (28)
- Stephen Samuel , Stefan Bocutiu . Learn Kotlin Programming : A comprehensive guide to OOP, functions, concurrency, and coroutines in Kotlin 1.3. UK: Packt Publications; 2019.
- Dmitry Jemerov, Svetlana Isakova, Kotlin in Action. USA: Manning Publications 2017
- Ken Kouse. Kotlin Cookbook: A Problem-Focused Approach. India: O’Reily; 2018.
- Pierre-Yves Saumont. The Joy of Kotlin. USA: Manning Publications; 2019.
- Marcin Moskala. Effective Kotlin: Best Practices. Leanpub; 2020.
- Stergios Papadimitriou, Konstantinos Terzidis, Seferina Mavroudi, Spiridon Likothanasis . ScalaLab: an effective scientific programming environment for the Java Platform based on the Scala object-functional language. IEEE Comput Sci Eng (CISE). 2011; 13(5): 43–55.
- Papadimitriou S , Mavroudi S , Theofilatos K , Likothanasis S. The software architecture for performing scientific computation with the JLAPACK libraries in ScalaLab . Sci Program. 2012; 20(4): 379–391.
- Stergios Papadimitriou, Lefteris Moussiades. Combining Scala wi th C++ for efficient scientific computation in the context of ScalaLab. Lecture Notes in Engineering and Computer Science 2223; 409–412.
- Papadimitriou S, Moussiades L. The design of JVM and native libraries in ScalaLab for efficient scientific computation. Int J Model Simul Sci Comput. 2018; 9(5): 1850037.
- Gilles Dubochet . On Embedding domain -specific languages with user -friendly syntax . In Proceedings of the 1st Workshop on Domain Specific Program Development. 2006; 19–22.
- Dubochet G. Embedded domain-specific languages using libraries and dynamic metaprogramming. [ThesIs]. École Polytechnique Fédérale de Lausanne; 2011. doi:10.5075/epfl-thesis-5007.
- Lau Hang T. A Numerical Library in Java for Scientists and Engineers . Chapman & Hall/CRC ; 2003.
- Anderson E, Bai Z, Birschof C, Blackford S, Demmel J, Dongarra J, Du Croz J, Greenbaum A, Hammarling S, Mckenney A, Sorensen D. LAPACK Users' Guide. 3rd Edn. USA: SIAM; 1999.
- Davis Timothy A. Direct Methods for Sparse Linear Systems. USA: SIAM publishing; 2006.
- Kazushige Goto, Van De Geijn Robert A. Anatomy of High -Performance Matrix Multiplication . ACM Trans Math Softw. 2008 May; 34(3): Article 12.
- Van Zee Field G, Smith Tyler M, Bryan Marker, Tze Meng Low, Van de Geijn Robert A, Igual Francisco D, Michail Smelyankiy, Xianyi Zhang, Michael Kistler, Vernon Austel, Gunnels John A, Lee Killough. The BLIS framework: Experiments in portability . ACM Trans Math Softw. 2016; 42(2): Article no. 12.
- Venkat Subramaniam. Programming Kotlin: Create Elegant, Expressive, and Performant JVM and Android Applications. The Pragmatic Programmers; 2019.
- Marcin Moskala. Kotlin Coroutines: Deep Dive. USA: Kt. Academy; 2022.
- Aleksei Sedunov. Kotlin In-Depth: A Guide to a Multipurpose Programming Language for Server- Side, Front-End, Android, and Multiplatform Mobile. 2nd Edn. India: BPB Publications; 2022.
- Richard Warburton. Java 8 Lambdas : Functional Programming for the Masses . India: O’Reilly; 2014.
- Cay Horstmann, Gary Cornell . Core Java 2 . 11th Edn. V ol. I: Fundamentals; V ol. II: Advanced Techniques. USA: Sun Microsystems Press; 2019.
- Dierk Konig, Andrew Glover, Paul King, Guillaume Laforge, Jon Skeet. Groovy in Action. India: Manning Publications; 2007.
- Filip Babic, Luka Kordic . Kotlin Coroutines by Tutorials : Best Practices to Create Safe & Performant Asynchronous Code with Coroutines. 3rd Edn. USA: Razeware LLC; 2022.
- Xiao-Feng Li. Advanced Design and Implementation of Virtual Machines. CRC Press; 2017.
- Mala Gupta. Java 11 and 12 - New Features: Learn about Project Amber and the latest developments in the Java language and platform. UK: Packt Publishing; 2019.
- Edward Laviei. Mastering Java 12 Programming. UK: Packt Publishing; 2019.
- Kishori Sharan. Java 9 Revealed: For Early Adoption and Migration. USA: Apress; 2017.
- Nick Samoylov. Learn Java 12 Programming: A step-by-step guide to learning essential concepts in Java SE 10, 11, and 12. UK: Packt Publishing; 2019.