Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
konsoletyper
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
konsoletyper
2y ago
TeaVM supports Kotlin as well. The difference with Kotlin/Wasm is that with Kotlin/Wasm you are limited only to Kotlin and can't use any code written in Java.
2.
▲
by
konsoletyper
2y ago
TeaVM author here. Personally I use it to bring a large (500KLOC) project that's written in Java and Kotlin to the browser (also we are using Graal VM Native Image to compile the same app to iOS, and Android supports). It's virtua
3.
▲
by
konsoletyper
3y ago
Looks like most people have misunderstanding: they think that WebAssembly is the only way to run their favourite language in the browser. However, there's another way that exists for decades: simply use compiler of their favourite la
4.
▲
by
konsoletyper
3y ago
Why you guys keep using this old non-maintained fork of TeaVM, while there's WASI support in main TeaVM ( https://github.com/konsoletyper/teavm )?
5.
▲
by
konsoletyper
3y ago
As an author TeaVM I can tell you about advantages of TeaVM compared to GWT. 1. TeaVM can compile not only Java, but Scala and Kotlin. Actually, any JVM language, which is not using much reflection, invokedynamics and dynamic class loading
6.
▲
by
konsoletyper
4y ago
> You're right, this is shockingly bad by way of a newbie experience. Sorry, but what exactly were you expecting? I would improve documentation, but to me it looks ok. What sort of example you need? What's wrong with the Hello
7.
▲
by
konsoletyper
4y ago
Hello. No, I'm the one behind TeaVM. You can write me on `info at teavm.org` or send me a message via Gitter ( https://app.gitter.im/#/room/#teavm_Lobby:gitter.im ) or post a message to Google Groups or on Gith
8.
▲
by
konsoletyper
6y ago
There are separate compiler backends for Wasm and JS. JS BE does not support WeakReferences (or rather supports them as a class, but does not support weak reference semantics). For Wasm BE I written my own GC, which supports weak references
9.
▲
by
konsoletyper
6y ago
FYI I, an author of TeaVM, used to work in Kotlin/JS team in JetBrains. Later I came to conclusion that Kotlin is still very Java-ish language, which inherits a lot of design of JVM platform and will always be 2nd class citizen in JS w
10.
▲
by
konsoletyper
6y ago
TeaVM Flavour does not compile Jackson. Instead it comes with its own JSON serializer that supports subset of Jackson annotation. As Kotlin serialization, it relies on code generation, no reflection used at all.
11.
▲
by
konsoletyper
7y ago
I'm an author of TeaVM. Currently, I don't do TeaVM as a replacement for React/Angular/Vue. There's a use case which is not covered by React at all: cross-platform CPU-bound applications. Java runs in Androd and Win
12.
▲
by
konsoletyper
7y ago
No, WASM is slow. As a developer of TeaVM I can claim this. First of all, JS engines been developed for many years, while WASM is a new technology and browser engines don't optimize it well. Another reason is WASM was not designed to
13.
▲
by
konsoletyper
9y ago
Why do you think so?
14.
▲
by
konsoletyper
9y ago
GC is only about 300 lines of code. There's no JNI in TeaVM (and never will be), instead of JNI there's JSO to interact with JavaScript, and still no interop layer for WebAssembly (that's why I claim WASM support to be experi
15.
▲
by
konsoletyper
9y ago
Currently, if you run TeaVM with 'debug' (-g) option, and WASM target, you'll get both '.wasm', '.wast' and '.c' files. C file is compilable with GCC and you should write several trivial function
16.
▲
by
konsoletyper
9y ago
Kotlin/JS does not allow to reuse Java code and Java libraries. That's the main difference.
17.
▲
by
konsoletyper
9y ago
One of the most important features in TeaVM is its inteprocedural dead code elimination algorithm, which allows to produce very small code for simple Java programs. For example, Hello World produces about 40 kb JavaScript, TodoMVC ( http:&#
18.
▲
by
konsoletyper
9y ago
As for 0.5.x version, see this: http://teavm.org/jcl-support/0.5.x/jcl.html And even more in 0.6.x (including Stream API)