Kotlin Native for Lisp
CI | status |
---|---|
Travis CI | |
CodeShip |
Run in OS X or Linux.
(Actually Windows can also build and run it. But you can't build by CLion in Windows.Just try Idea or VS Code ~ )
Windows(CLion) has not been supported presently.
(JetBrains: “What?”)
But you can build and run in Intellij idea.
-
make sure you have installed the
kotlin-native compiler
andkonanc
is in your path. If not, please download [kotlin-native/releases] first.(https://github.com/JetBrains/kotlin-native/releases) (current version is0.4
) -
bash :
git clone https://github.com/ktnl-lang/ktnl
cd ktnl-gradle/ktnl
./build.sh
./ktnl.kexe ../kt.ktnl
-
git clone the repositry and open with
Intellij Idea
orVisual Studio Code
at rootktnl
dir.- Idea (building recommand) : run gradle task or run commandLine
./gradlew buildInLinux
- VSCode (coding recommand. For CLion and Idea haven't got source code, even though CLion has
.knm
file in which you can see function declares.Just git clonekotlin-native
and open into a same workspace in latest VS Code) - CLion (EAP 2017.3 or latest. Just open at
ktnl
submodule dir, using CMake to build)
- Idea (building recommand) : run gradle task or run commandLine
konanc
(Of course)kotlin-stdlib
There are so many things to do, while I have just finished these as follows.
(define a 2333)
(define ice-1000 "Zython")
outputs:
{a: Int = 23333, ice1000: String = "Zython"}
- build
jdk_switcher home oraclejdk8
jdk_switcher use oraclejdk8
wget https://github.com/JetBrains/kotlin-native/releases/download/v0.4/kotlin-native-linux-0.4.tar.gz -O /tmp/kotlin-native-linux-0.4.tar.gz
tar -xvf /tmp/kotlin-native-linux-0.4.tar.gz
export PATH=$PATH:$PWD/kotlin-native-linux-0.4/bin/
cd ~/src/github.com/zxj5470/ktnl-gradle
chmod u+x ./gradlew
./gradlew buildInLinux
- test
cd ~/src/github.com/zxj5470/ktnl-gradle/ktnl
./build/bin/ktnl.kexe kt.ktnl