pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
Lan5432 has joined #jruby
Lan5432 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
Lan5432 has joined #jruby
ITXpander has joined #jruby
nicoulaj has joined #jruby
yfeldblum has joined #jruby
yfeldblum has quit [Ping timeout: 250 seconds]
sathish has joined #jruby
<sathish>
Hi i am new to jruby can u please point me to some samples of jruby...cant find any proper documentation
<sathish>
and how to integrate jruby and java
<Lan5432>
What is your operating system?
<Lan5432>
@sathish
<sathish>
mac
<sathish>
@Lan5432
<Lan5432>
Did you check the official page?
<sathish>
yeah need some samples
<sathish>
missing those in documentation
<sathish>
i am basically from ruby background
<Lan5432>
Of code? On how to use JRuby with Java classes? I'm going to work in some, but probably not today. I can tell you when it's ready. If there's already something done, I don't know where it is
<sathish>
yes @Lan5432
<sathish>
need some code sample on using JRuby with Java classes
<Lan5432>
Well, for starters, the instruction "require 'java'" will give you access to any Java class in your Java library
<sathish>
sure let me know when you have done with some codings on jruby
Prasun has joined #jruby
user123 has joined #jruby
Lan5432 has quit [Ping timeout: 252 seconds]
Lan5432 has joined #jruby
Prasun has quit [Read error: Connection reset by peer]
Lan5432 has quit [Client Quit]
Lan5432 has joined #jruby
<GitHub82>
[jruby] chrisseaton deleted truffle-new-instrumentation at 28ac89d: https://git.io/vVUEd
Balzrael has joined #jruby
bbrowning_away is now known as bbrowning
<Balzrael>
hey there
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
<Lan5432>
headius: are you around?
pawnbox has quit [Remote host closed the connection]
<Balzrael>
what do you use to build the war file out of a JRuby on Rails app?
tcrawley-away is now known as tcrawley
<GitHub18>
[jruby] chrisseaton pushed 2 new commits to truffle-head: https://git.io/vVU2K
<GitHub18>
jruby/truffle-head 2867b1a Chris Seaton: Merge branch 'master' into truffle-head...
<GitHub18>
jruby/truffle-head 01d20db Chris Seaton: [Truffle] Update Truffle API.
pawnbox has joined #jruby
Papierkorb has joined #jruby
<Papierkorb>
Hi. Does anyone have a rough estimation when Ruby2.3 support can be expected in JRuby? A month, 3 months, ..?
bjfish2 has quit [Ping timeout: 248 seconds]
<Balzrael>
what do you use to build the war file out of a JRuby on Rails app?
<headius>
lan5432: seems to be related to constructing instances of Ruby objects from Java, like for JavaFX (which uses reflection)
camlow325 has quit [Read error: Connection reset by peer]
camlow325 has joined #jruby
<Lan5432>
So importing a ruby class and using newinstance with a parameter will throw an exception?
<Lan5432>
Do you have any lead I can work on for that?
<Lan5432>
Or would you prefer that I center in other issues?
pietr0 has quit [Quit: pietr0]
<headius>
this one is a bit involved...I think that bug needs more clarification
<headius>
I'm not entirely sure what's needed here... RubyClass.newInstance does take arguments (ruby arguments)
<headius>
lan5432: at this point I'd ask for clarification and see if we can get more details
<headius>
I don't remember what I expected from the referenced conversation
<Lan5432>
Yeah, I'm still kinda on the point "well, where in this whole thing could it be"
<headius>
We do have some ways to give Java a normal-looking class to instantiate, and that mechanism may not have constructor args...could be that
<headius>
he's talking about JAvaFX too
pietr0 has joined #jruby
pietr0 has quit [Client Quit]
<headius>
in JavaFX you have to extend a given class, and then I believe you configure the app to instantiate and call your class
<headius>
enebo might remember better
pietr0 has joined #jruby
<headius>
our class-extension logic might not support constructors with args
<headius>
in this scenario
<headius>
but yeah, involved :-)
<enebo>
yeah I am trying to remember this one
<enebo>
byteit101: could possibly help :)
<enebo>
byteit101: Also I have not figured out why we do not resolve constants the same on windows yet
donV has quit [Quit: donV]
<enebo>
(unrelated but I remember I need to try and figure it out)
pietr0 has quit [Client Quit]
pawnbox has joined #jruby
<Lan5432>
So we can create a ruby class made with Java and invoke newinstance. But it crashes with a parameter (maybe because it doesn't receive any??)
<headius>
lan5432: my guess would be it tries to invoke a no-arg constructor for the generated class and we don't provide one
<headius>
I mean non-no-arg
<headius>
like, it wants to pass in JavaFX context or something, and we only generate a no-arg constructor
<Lan5432>
So it doesn't find any rather than, it defaults to a non parameter one?
<headius>
I would guess it just doesn't find one
<enebo>
headius: FXML is XML defining a series of classes as strings so I think you are probably right
pawnbox has quit [Ping timeout: 240 seconds]
<enebo>
headius: but I think it may be just a series of parameters to a control
<enebo>
headius: I guess this is where a code snippet would have been really helpful but I will check the library quick to see if there is a reference to this issue in it
<Lan5432>
I was smiling at the name of the TODO tag haha
<Lan5432>
So our issue works on this JRuby FX?
<enebo>
FXMLLoader is a companion project to jrubyfx
<enebo>
byteit101: has a couple RFE’s open on interacting with Java related to both projects
<Lan5432>
So we can study how he fixed it on his project and study where and what we should change
<GitHub138>
[jruby] headius pushed 2 new commits to master: https://git.io/vVkRT
<GitHub138>
jruby/master b73e950 Charles Oliver Nutter: Set universal newlines earlier to match O_TEXT behavior....
<GitHub138>
jruby/master 27e80e3 Charles Oliver Nutter: Untag spec fixed by fix for #3762.
<GitHub149>
[jruby] headius closed issue #3762: File.open ignores :universal_newline options on Windows https://git.io/vVUxS
daicoden has quit [Remote host closed the connection]
<enebo>
Lan5432: well we should talk to him…I suspect there is still an open issue but I cannot really tell
<Lan5432>
Oh, ok, sorry then, I was trying to understand our course of action with this
nicksieger has quit [Remote host closed the connection]
<enebo>
Lan5432: yeah np. some of these have been open a long time because we never asked the next question to get enough into to figure out the issue fully
<enebo>
or in this case we probably did know it then but never recorded it
pawnbox has joined #jruby
nicksieger has joined #jruby
<Lan5432>
Yeah, I guess there's a lot of stuff to do as well, so forgetting some issues is possible XD
<enebo>
byteit101: if you can document with an example of what you want then I will look at it later and no doubt Lan5432 and possibly headius will too
<Lan5432>
No problems man, I hope I can check this enebo hope you enjoy dinner
enebo has quit [Quit: enebo]
<byteit101>
Ok. I am digging around in the javafx source tree for the example
<Lan5432>
Thanks
<byteit101>
Lan5432: got it!
<byteit101>
Lan5432: Updating issue
<Lan5432>
Our issue?
<byteit101>
449
<byteit101>
yea, it is passing a new empty object array
<GitHub32>
[jruby] chrisseaton pushed 18 new commits to master: https://git.io/vVk2e
<GitHub32>
jruby/master aba54a9 Chris Seaton: [Truffle] Move LoopRecover up as it's shared.
<GitHub32>
jruby/master b4481f2 Chris Seaton: [Truffle] Share the description truncater code.
<GitHub32>
jruby/master 1a32eae Chris Seaton: [Truffle] Tidy up PrintfCompiler.