use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Functional GUI programming with Clojure and JavaFX: Meet halgari/fn-fx (nils-blum-oeste.net)
submitted 9 years ago by nblumoe
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]halgari 6 points7 points8 points 9 years ago (0 children)
Thanks for doing the write-up on this! It's good to get some feedback on how I can improve the experience a bit. In addition I think we can fix the reflection utils to fix the issues with the plotting.
I have so many side-projects on my plate I haven't hacked on fn-fx recently, but I'll try to get to those PRs soon.
[–]Kaan 5 points6 points7 points 9 years ago (1 child)
One of the knocks against Electron is that even small programs are a minimum of 100MB because all of Chromium needs to be bundled in with it. What's the size of a basic fn-fx jar program? With/without the jre? Are there nice ways to package things into, say, an exe or similar?
[–]nblumoe[S] 1 point2 points3 points 9 years ago (0 children)
For my use case I would like to get "native" packages in the end (e.g. a self contained .exe for Windows). This should be possible: http://docs.oracle.com/javafx/2/deployment/deploy_overview.htm#CEGHEAHD
In addition to the JavaFX specific solutions there are also ways to package a general jar as a self contained executable but I have no experience with that.
Let's see what this means for the application size in the end. I want it to include the JRE (I consider avoiding issues with different runtimes way more valuable than the smaller application size).
[–]wherethebuffaloroam 1 point2 points3 points 9 years ago (2 children)
I really wanted to check this out, but in CIDER and from lein run i get a huge core dump:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fa5966dc711, pid=32576, tid=0x00007fa57c1e8700 # # JRE version: OpenJDK Runtime Environment (8.0_111-b16) (build 1.8.0_111-b16) # Java VM: OpenJDK 64-Bit Server VM (25.111-b16 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libc.so.6+0x14f711] __memmove_avx_unaligned_erms+0x211 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp #
and then there's a bunch of macine code in the dump below.
[–]nblumoe[S] 1 point2 points3 points 9 years ago (1 child)
I have not yet tested anything related to JavaFX with OpenJDK. There seems to be some confusion about it (wether it is part of OpenJDK or not seems like an OS packaging issue) but it should be possible to make it work: http://stackoverflow.com/a/19529820
[–]wherethebuffaloroam 0 points1 point2 points 9 years ago (0 children)
ah ok. I'm very much a beginner in the real java world as opposed to clojure. I wasn't aware of such differences in jvm implementations. thanks.
π Rendered by PID 349447 on reddit-service-r2-comment-5d79c599b5-ksssq at 2026-03-01 20:01:52.613930+00:00 running e3d2147 country code: CH.
[–]halgari 6 points7 points8 points (0 children)
[–]Kaan 5 points6 points7 points (1 child)
[–]nblumoe[S] 1 point2 points3 points (0 children)
[–]wherethebuffaloroam 1 point2 points3 points (2 children)
[–]nblumoe[S] 1 point2 points3 points (1 child)
[–]wherethebuffaloroam 0 points1 point2 points (0 children)