HNHacker News
TopNewBestAskShowJobs

TeaVMFan

409 karma · joined October 10, 2019

submissionscomments
TeaVMFan··on Ask HN: Does Java need a modern Java UI toolkit for desktop/web?
SnapKit is a huge framework with lots of functionality. One key part for the browser integration module (SnapTea) is TeaVM https://github.com/konsoletyper/teavm

TeaVM converts Java code to run in the browser. It provides the ability to call JS functions to access browser features like canvas and XHR. However, unless you want to be coding like Vanilla JS, you'll want a framework on top. SnapKit provides that.

TeaVMFan··on Ask HN: Does Java need a modern Java UI toolkit for desktop/web?
SnapTea leverages TeaVM https://github.com/konsoletyper/teavm to convert Java to JS. However, SnapKit provides an entire UI framework layer too, enabling app portability to other environments (like the desktop JRE).
TeaVMFan··on Ask HN: Does Java need a modern Java UI toolkit for desktop/web?
SnapKit lets you code in Java but deploy as transpiled JS when using SnapTea. No JRE, just a native browser app. Try the demos, it is quite, well, snappy.
TeaVMFan··on Ask HN: Does Java need a modern Java UI toolkit for desktop/web?
I have been impressed with SnapKit since first learning of it.

The discipline and effort required to build the proper framework-level abstractions to be portable to future UI toolkits is extremely impressive.

And unlike some other projects, most of the demos are non-trivial, substantial apps. Even Swing doesn't have demos like these.

Congrats, Jeff!

TeaVMFan··on The decline and fall of Java on the desktop
Code signing killed Web Start for anything but big $$$ projects. And asking people to download an application and run it with full privileges is a huge barrier to entry.

Contrast with the web deployment model:

* Deploy with a free SSL certificate

* Click Once, Run Anywhere (CORA)

Luckily for Java fans, you can make great Java apps for the modern web. Tools like TeaVM (and its Flavour toolkit for SPAs) make it possible. Code in Java, bind to real HTML templates, compose your app out of reusable HTML components, style with CSS. All the benefits of the modern web, with a single strongly-typed language top-to-bottom.

* TeaVM: https://teavm.org

* Real 5-letter word app made with TeaVM/Flavour: https://frequal.com/wordii/

* Migration Guide from Swing to TeaVM: https://frequal.com/TeaVM/migration/MigratingFromSwingToTeaV...

* Java Magazine article on TeaVM: https://blogs.oracle.com/javamagazine/post/java-in-the-brows...

TeaVMFan··on Wordle is pretty damn smart in many subtle ways
I have removed it, thank you.
TeaVMFan··on Wordle is pretty damn smart in many subtle ways
Oh, I almost forgot, after a Wordii game is over, the word is shown as a hyperlink below the puzzle. The link takes you directly to the definition of the word.
TeaVMFan··on Wordle is pretty damn smart in many subtle ways
That will be a fun addition. Especially since Wordii is designed for longer play, that makes sense. Expect to see it soon. Thanks!
TeaVMFan··on Wordle is pretty damn smart in many subtle ways
Yes, designing a dictionary that is both challenging and reasonable is another challenge for games like this. I made a pass through the dictionary after earlier HN feedback, adding some words for guessing and removing some more obscure words. I'll make another pass.

Thanks for the feedback!

TeaVMFan··on Wordle is pretty damn smart in many subtle ways
Having implemented my own 5-letter word game, I can agree that much finesse lies under the covers. Wordii is for the impatient, letting you play more often if you choose:

https://frequal.com/wordii/

The many subtleties of this genre make it a great programming challenge. I encourage developers to try making their own version. I think you'll come away with a healthy respect for Mr. Wardle.

TeaVMFan··on Show HN: Wordii: Infinite Words; Fast Web SPA; Pure Java: Pick Any Three
I forgot to mention that additional statistics appear as you reach streak milestones:

* 5 solves in a row

* 10 solves in a row

* 20 solves in a row

TeaVMFan··on JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows
This looks very impressive.

"You must have a Mac to make a Mac binary" has always been an annoying shortcoming of jpackage, especially for smaller or independent developers.

Congrats, and thanks. This is going to be very useful for many developers.

TeaVMFan··on Resurrecting the old Wordle for procrastinators
Yes, this is a ground-up implementation using TeaVM and the Flavour toolkit.

TeaVM: https://teavm.org/

Flavour: https://teavm.org/docs/flavour/templates.html

TeaVMFan··on Resurrecting the old Wordle for procrastinators
Easier still, try one of the alternatives like Wordii:

https://frequal.com/wordii

Bonus features: * Streak stats to share * Try new words faster

TeaVMFan··on Blueberry Earth or “what if the entire Earth was replaced with blueberries?“ (2018)
Bonus points for being on top of (topping?) a story about pancakes.
TeaVMFan··on Ask HN: Why are there so few single-letter command line utilities / tools?
Because they're impossible to search for.

Tried researching a tool called 'a' once. Good tool, but hard to find docs.

TeaVMFan··on J2ObjC is a command-line tool that translates Java to Objective-C
TeaVM transpiles Java bytecode to native JS, only keeping the required classes. The output is compact, efficient, and fast to download in a browser. No interpreter or runtime is used, which makes TeaVM apps fast and light.
TeaVMFan··on J2ObjC is a command-line tool that translates Java to Objective-C
TeaVM converts Java to JS, and it has first-class maven support.

https://teavm.org

TeaVMFan··on What Java Modules Are About
Alternatives like TeaVM let you code Java in the browser but it compiles quickly to compact JavaScript. This way you can get the best of both worlds. A typed language, full-stack refactorings, and the security of the browser JS VM.

TeaVM Website: https://teavm.org/

Tutorial in Java Magazine: https://blogs.oracle.com/javamagazine/java-in-the-browser-wi...

TeaVMFan··on Kid Pix as a JavaScript App
Rx
TeaVMFan··on Kid Pix as a JavaScript App
2nd t
TeaVMFan··on An Urgent Notice from AssemblyScript
This seems to also impact Java and TeaVM, see this post:

https://groups.google.com/g/teavm/c/gpy0JoKYqbU

TeaVMFan··on Google’s copying of the Java SE API was fair use [pdf]
I feel conflicted about this decision. I've added some analysis here:

https://frequal.com/java/SupremeCourtOracleVsGoogleRuling202...

focusing on two areas: * Google had the ability to make their own language and APIs for Android * The chilling effect on future language/API innovation

TeaVMFan··on The Modern Java Platform – 2021 Edition
For more info on full-stack Java, including options for Java based single-page apps and Java-based mobile apps, visit https://frequal.com/FullStackJava/
TeaVMFan··on The Modern Java Platform – 2021 Edition
The one thing missing is the innovation happening on the Java front end. Frameworks like TeaVM (https://blogs.oracle.com/javamagazine/java-in-the-browser-wi...) let you extend your Java app all the way to the browser.
TeaVMFan··on Fry's Electronics is closing all stores
I hope this is fake. Few stores remain with a good selection of maker parts. Though the shelves have been pretty bare for a couple years now.

I have tried to support them recently with a few purchases. With limited stock it has been tricky, though, which I'm sure doesn't help when competing with huge online stores.

For anyone who has never been, most (all?) stores are themed, with huge decorations, statues, and props. Somewhere I read they hired a Disney designer to come up with the themes.

TeaVMFan··on Distribution of JVM Desktop Applications
The easiest way to distribute JVM applications on the desktop is the via the browser. TeaVM and Flavour make it easy to build rich browser apps in no time. You won't even miss Swing or JavaFX!

Intro article: https://blogs.oracle.com/javamagazine/java-in-the-browser-wi...

Migrating from Swing to TeaVM: https://frequal.com/TeaVM/migration/MigratingFromSwingToTeaV...

A recent success story migrating from applets to TeaVM: https://news.ycombinator.com/item?id=26135892

TeaVMFan··on Show HN: 19-Year-Old IF Game Restored Using TeaVM
I recently ported a Java game from 2002 to the modern web using TeaVM and Flavour. You can play it now at https://frequal.com/ifml To learn more about the porting effort and how I used TeaVM to bring an old Java app alive again, read the full details here: https://frequal.com/java/RestoringA19YearOldGameWithTeaVm.ht...
TeaVMFan··on TeaVM: Build Fast, Modern Web Apps in Java
31.55KB transferred according to Chrome for the sample app here: http://teavm.org/live-examples/todomvc/#/

Compared to React, GWT, Vaadin, and CheerpJ, TeaVM comes out on top for Lighthouse scores and JavaScript size: https://renato.athaydes.com/posts/comparing-jvm-alternatives...

TeaVMFan··on TeaVM: Build Fast, Modern Web Apps in Java
Throw away your preconceived notions -- TeaVM beat React at its own game.

* Faster startup

* Better Lighthouse score

* Less code

See for yourself: https://renato.athaydes.com/posts/comparing-jvm-alternatives...

← PreviousPage 5 of 6Next →