I am trying to write a library that will let me execute JSON Logic rules via the Nashorn Javascript engine.  My problem right now is specifically around the JSObject wrapper I've created to handle moving data from Java/Kotlin into the scripting e...
TeaVM is an alternate to GWT that compiles Java to byte code allowing for the usage of things like Scala and Kotlin, I am having a difficult time understanding the process of adding and running my libGDX project in TeaVM, I would greatly appreciate a...
I recently started to have a look at Kotlin and managed to create my first JVM applications. It's so cool to have a single language that compiles both to Java and JS. So, now I started playing with Kotlin2js and tried to understand the Javascript...
Currently trying to get a Kotlin "Hello, World" to compile to JS via the command line.  I've followed the tutorial:  https://kotlinlang.org/docs/tutorials/javascript/getting-started-command-line/command-line-library-js.html  I'm seein...
I have just managed to import Kotlin compiled javascript module in an angular 6 typescript file. It was not easy and the result confuses me. I wanna know if more elegant way exists.  Originally I take a Kotlin file:  package com.example.test  data cl...
I use kotlin on javascript platform. This code fails on the sixth line with exception "Uncaught TypeError: a.c.iterator is not a function".  class A(val b: String, val c: List<String>)  fun main(args: Array<String>) {     val a =...
I really like the idea of coding a framework once, and then being able to compile it as jvm byte code as well as to javascript for web use.   Is this currently possible with the kotlin compiler?...
Every function and variable that I create in KotlinJs project gets into a module. But I need to define some functions in global scope.  I use p5js library (pure js). It allows user to define event handling functions in global scope. I'm trying to...
I'm building a project using Kotlin Gradle plugin. In general, I'm targeting JVM but it would be very useful to compile a part of the project to JavaScript.  I know it's possible for a project to target JavaScript while building with Inte...
I followed this tutorial to create a kotlin->js project: https://kotlinlang.org/docs/tutorials/javascript/getting-started-gradle/getting-started-with-gradle.html  Next, I followed these instructions to use coroutines in my code: https://github.com...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.