Posted on

Gson

vi k.kts
@file:CompilerOpts("-jvm-target 1.8")
@file:DependsOn("com.google.code.gson:gson:2.8.5")
@file:KotlinOpts("-J-Xmx1024M")

val gson = com.google.gson.Gson()
println(gson.toJson(listOf(1, 2, 3)))
class JO() {
    val a = 1
    val b = 2
    val c = 3
    val d = "d"
    val choices = listOf(1, 2, 3, "d")
}
val jo = JO()
val jo_string = gson.toJson(jo)
println(jo_string)
ks k.kts

uses kotlinc and kscript

Posted on

lest not forget hint

vs for mac behaves like old mono dev, i will remember what this means when i see this next time

best stable approach is to use xcode and konan framework, also i will remember what this means when i see this next time. :0

Posted on

blazor on linux is in reality

mono seems to have a new life with blazor asp.net core on linux. jvm and .net run side by side on linux with apache. interesting development directions. the blazor client-side runtime uses javascript interop to handle document object model (dom) manipulation and browser api calls.