Implementing cat with Kotlin Native
Introduction Hello! 👋 In this article we’ll implement the cat command utility which is used in many Unix like systems like Linux and macOS. To implement it, we’ll use kotlin and to drop the Java Virtual Machine (JVM). We’ll build a binary directly with Kotlin Native. In the end, we’ll get an executable that we can simply run on our Linux or macOS box. What is cat? The catutility which has purpose of concatenating files. You can use it by typing cat file.txt and it will output the contents of the file into the terminal. It also has more options like: usage: cat [-belnstuv] [file ...] which are documented in the manual pages. ...