For now, the project is pretty much on hold.
I thought there would be interest from the Kotlin team for what I consider an “easy target” or “low hanging fruit” but for now without this change to the compiler (which would probably makes it also easier to integrate Kotlin/JS in other toolchains) I have to resort to some hacks that I am reluctant to apply. Sadly, without a clear will from Kotlin team, I will not go forward with this.
There is also the question of bad symbols handling that I needed to test e.g. this line in the following code
$: clicks = proofCount + replayCount,
feedback = clicks > 20 && clicks < 50? 'that\'s a lot of damage' : clicks >= 50? 'your dedication is impressive' : '';
Taken from:
import { fly } from 'svelte/transition';
import { onMount } from 'svelte';
import { backOut, elasticOut } from 'svelte/easing';
import { data } from './paths.js';
let loaded, skew, color, proof, replayCount = 0, proofCount = 0, clicks, feedback;
onMount(() => {
loaded = true;
setTimeout(()=> skew = true, 1075);
setTimeout(()=> color = true, 1100);
});
$: clicks = proofCount + replayCount,
feedback = clicks > 20 && clicks < 50? 'that\'s a lot of damage' : clicks >= 50? 'your dedication is impressive' : '';
function prove() {
proofCount += 1;
proof = !proof
}
function replay() {
replayCount += 1;
if (color) {
loaded = false;
skew = false;
color = false;
setTimeout(()=> loaded = true, 25);
setTimeout(()=> skew = true, 1100);
setTimeout(()=> color = true, 1125);
return;
}
return;
}
The compiler needs to leave them as is for svelte to work properly, I have no idea at this point how Kotlin/JS compiler is handling this.
The other question would be: does dukat
could convert these libraries:
import { fly } from 'svelte/transition';
import { onMount } from 'svelte';
import { backOut, elasticOut } from 'svelte/easing';
import { data } from './paths.js';
So, there is some work to do even if it is mostly validating things here and there, but the core, is the compiler. One, could fork it, but then have to maintain a separate branch which in itself might be a lot of work.
This is pretty much where things stands at this moment.
Anyway, thanks for the interest I also thought it was a good idea!