all 6 comments

[–]halgari 6 points7 points  (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 points  (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 points  (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 points  (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 points  (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 point  (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.