Can jruby support libui? #8578
rubyFeedback
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I am working mostly with MRI. I do have some jruby experience at this point in time, including jruby-SWING.
I prototype GUIs often in libui these days, simply because it is super-fast. Then I go into other toolkits,
including the web, and add more stuff to make things work on several toolkits.
jruby on windows works, GraalVM also kind of works. jruby-swing on windows works too; I tested this
via a calculator, and the calculator works. \o/
Right now I am rewriting one of my biggest projects - the one where I compile stuff from source. I
use this on linux to compile everything from source. I tested it on windows too, and it somewhat works
there as well; windows has some oddities, though, including the compiler. Since recently I am actually
testing cygwin; while MSYS2 may be better, I like that I have to learn step-by-step things from cygwin.
Helps me more in the long run.
Yesterday I compiled a hello world example and the .exe was built too. I understand that cygwin is a
bit limited in regards to requiring a .dll, but my main point for compiling things is to actually test my
own build scripts. If I can then use them to compile stuff on windows (such as qpdf, which reportedly
CAN be compiled on windows), then I can eventually improve TONS of things, by having
one unified code base at hand - including batch-compiling all software that I have registered so far
(almost 4000 programs are registered therein)..
Anyway, this brings me now to the question ... in a moment.
Right now I have those two choices:
I already know that both approaches work, but for various reasons, I prefer jruby on windows,
oddly enough (and MRI on linux). So, it would help me a LOT if I could prototype via libui, on
linux, and then have that work on WINDOWS; via jruby. (I could use swing, which is plan b,
but prototyping in libui is so incredibly fast, my thoughts almost become 1:1 the code for it,
even though naturally libui is very limited compared to swing and most other GUIs.)
Can I use jruby with libui on windows? I have not tried that yet. Does anyone else give it a
go and have it work? I think it may work, but I don't know right now - have not tried it.
kojix2 libui bindings are here:
https://github.com/kojix2/LibUI
I could try:
or rather
I suppose.
I can't yet test this right now (at work, or rather, not at home); will give it a go later this
evening or tomorrow. In the event I run into problems, any pointers to overcome? Or
anyone knows whether this can work? I suppose it also depends on jruby's FFI support
or rather fiddle support. Right now I don't know any of that really.
Beta Was this translation helpful? Give feedback.
All reactions