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...
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...
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'm currently evaluating to port a large Java/Swing application to Kotlin. The domain of the application is 2D graphics, graphs, graphical editing and simulation/animation. I want to rewrite the entire application core in Kotlin and to transpile...
I am working with a third party library from Kotlin and one of the things I must do is call delete thing[key] in order to remove an item from thing.  I am unable to figure out how to do this from Kotlin code.  I did try js("delete thing[key]"...
One of the major “selling” points of Kotlin appears to be its ability to compile both to JVM or Android and to JavaScript for the web. To make use of this, it should be possible to have a code base where some files are shared between an Android A...
I’ve got an HTML fragment like <p>Hello, World!</p> and want to attach it to the container HTML page that includes   <script src="lib/kotlin.js"></script> <script src="my-app.js"></script>   There...
Kotlin versions 1.0.x-1.1.0 support out of the box unit testing with QUnit but when I load tests it throws this exception:  ReferenceError: ok is not defined     at QUnitAsserter.assertTrue_4mavae$ (file:///D:/neoranga/Mis%20documentos/GitHub/Fibonac...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.