marciol has quit [Ping timeout: 272 seconds]
alex0ptr_ has quit [Remote host closed the connection]
<cremes> chrisseaton: good video. thanks for suggestionm.
codetodya has joined #jruby
codetodya has quit [Client Quit]
Puffball has quit [Remote host closed the connection]
Puffball has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 245 seconds]
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
<GitHub143> [jruby] chrisseaton pushed 2 new commits to truffle-head: https://git.io/vMsUX
<GitHub143> jruby/truffle-head 538df4d Chris Seaton: [Truffle] Restore a very minimal Ruby-level debugger.
<GitHub143> jruby/truffle-head 4975495 Chris Seaton: [Truffle] The digest specs have the wrong file name.
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
<travis-ci> jruby/jruby (truffle-head:538df4d by Chris Seaton): The build was broken. (https://travis-ci.org/jruby/jruby/builds/189043500)
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
camlow325 has quit [Quit: WeeChat 1.5]
<GitHub96> [jruby] enebo closed pull request #4420: [#4414] Fixes #4414. getVpValueWithPrec19 should raise FloatDomainErr… (master...fix-float-NAN-conversion-to-bigdecimal) https://git.io/vM32O
<GitHub82> [jruby] enebo pushed 2 new commits to master: https://github.com/jruby/jruby/compare/f9caf6c2e605...15d48bcbb059
<GitHub82> jruby/master 15d48bc Thomas E Enebo: Merge pull request #4420 from sumitmah/fix-float-NAN-conversion-to-bigdecimal...
<GitHub82> jruby/master 22ef041 Sumit M: [#4414] Fixes #4414. getVpValueWithPrec19 should raise FloatDomainError to be consistent with mri.
<GitHub117> [jruby] enebo closed issue #4414: NumberFormatException when divide BigDecimal by Float::NAN https://github.com/jruby/jruby/issues/4414
rsim1 has joined #jruby
rsim has quit [Read error: Connection reset by peer]
alex0ptr has joined #jruby
rsim1 has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
codetodya has joined #jruby
enebo has quit [Quit: enebo]
alex0ptr has quit [Ping timeout: 256 seconds]
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
kith has quit [*.net *.split]
quadz has quit [*.net *.split]
abstractj has quit [*.net *.split]
abstractj has joined #jruby
quadz has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 258 seconds]
kith has joined #jruby
codetodya has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
codetodya has joined #jruby
marciol has joined #jruby
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
marciol has quit [Ping timeout: 248 seconds]
codetodya has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
pilne has quit [Quit: Quitting!]
rsim has quit [Ping timeout: 260 seconds]
rsim has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 246 seconds]
codetodya has joined #jruby
codetodya has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<GitHub180> [jruby] bjfish force-pushed truffle-string-scrub from 3e0d917 to 9803c8d: https://git.io/vMJ6n
<GitHub180> jruby/truffle-string-scrub 9803c8d Brandon Fish: [Truffle] Implementing String#scrub
<travis-ci> jruby/jruby (truffle-string-scrub:9803c8d by Brandon Fish): The build was broken. (https://travis-ci.org/jruby/jruby/builds/189077884)
pawnbox has joined #jruby
<GitHub79> [jruby] kares closed issue #4404: Decreased coverage with 9.1.7.0 snapshot https://git.io/vMscS
pawnbox has quit [Read error: No route to host]
pawnbox has joined #jruby
pawnbox_ has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has quit [Read error: Connection reset by peer]
<travis-ci> jruby/jruby (master:757c889 by kares): The build passed. (https://travis-ci.org/jruby/jruby/builds/188876274)
pawnbox has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Read error: No route to host]
pawnbox has joined #jruby
pawnbox_ has joined #jruby
pawnbox has quit [Ping timeout: 272 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
swills_ has joined #jruby
pawnbox has joined #jruby
swills has quit [Ping timeout: 248 seconds]
thedarkone2 has quit [Quit: thedarkone2]
alex0ptr has joined #jruby
marciol has joined #jruby
alex0ptr has quit [Ping timeout: 245 seconds]
marciol has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 258 seconds]
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox_ has joined #jruby
pawnbox has quit [Ping timeout: 255 seconds]
kares has quit [Remote host closed the connection]
kares has joined #jruby
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #jruby
vtunka has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
mpapis has joined #jruby
shellac has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
drbobbeaty has joined #jruby
vtunka has quit [Quit: Leaving]
<travis-ci> jruby/jruby (master:15d48bc by Thomas E Enebo): The build passed. (https://travis-ci.org/jruby/jruby/builds/189051911)
alex0ptr has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
<asdf123> Does anybody know how to sign emails (with s/mime) with jruby 1.7.26? It doesn't work for me with the openssl library.
pawnbox has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marciol has joined #jruby
marciol has quit [Ping timeout: 248 seconds]
<travis-ci> kares/jruby (test-flatten-no-alloc:a40a711 by kares): The build was fixed. (https://travis-ci.org/kares/jruby/builds/189133346)
marciol has joined #jruby
pawnbox has quit [Read error: No route to host]
pawnbox has joined #jruby
Talltree has quit [*.net *.split]
kwando_ has quit [*.net *.split]
esmiurium has quit [*.net *.split]
brixen has quit [*.net *.split]
duper has quit [*.net *.split]
justinmcp has quit [*.net *.split]
vifino has quit [*.net *.split]
havenwood has quit [*.net *.split]
kwando has joined #jruby
duper has joined #jruby
esmiurium has joined #jruby
justinmcp has joined #jruby
havenwood has joined #jruby
havenwood has joined #jruby
havenwood has quit [Changing host]
Talltree has joined #jruby
vifino has joined #jruby
brixen has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 248 seconds]
drbobbeaty has joined #jruby
alex0ptr_ has joined #jruby
alex0ptr has quit [Ping timeout: 245 seconds]
alex0ptr_ has quit [Remote host closed the connection]
alex0ptr has joined #jruby
alex0ptr_ has joined #jruby
alex0ptr has quit [Ping timeout: 248 seconds]
alex0ptr_ has quit [Remote host closed the connection]
alex0ptr has joined #jruby
<GitHub94> [jruby] chrisseaton pushed 3 new commits to truffle-head: https://git.io/vMsFv
<GitHub94> jruby/truffle-head 379e8ea Chris Seaton: [Truffle] Make FormatNode a RubyBaseNode and don't maintain the context manually.
<GitHub94> jruby/truffle-head cbda6b0 Chris Seaton: [Truffle] Remove unused context constructor parameter.
<GitHub94> jruby/truffle-head 8460eab Chris Seaton: [Truffle] ArrayBuilderNodes need a context, so make them a RubyBaseNode.
alex0ptr_ has joined #jruby
alex0ptr_ has quit [Remote host closed the connection]
alex0ptr_ has joined #jruby
alex0ptr has quit [Ping timeout: 245 seconds]
bbrowning has joined #jruby
<travis-ci> jruby/jruby (truffle-head:379e8ea by Chris Seaton): The build is still failing. (https://travis-ci.org/jruby/jruby/builds/189166388)
M87 has joined #jruby
<M87> Hello world !
M87 has quit [Client Quit]
<GitHub35> [jruby] kares pushed 3 new commits to master: https://git.io/vMsAo
<GitHub35> jruby/master 76cb38a kares: delay memo allocation until needed (less alloc for flat Array#flatten)
<GitHub35> jruby/master ceb1595 kares: refactor (use plain ArrayList) and avoid stack local alloc until necessary
<GitHub35> jruby/master 7347ee0 kares: flatten does not need modified local + move another declaration in scope
hays has joined #jruby
hays has quit [Changing host]
hays has joined #jruby
vtunka has joined #jruby
<travis-ci> jruby/jruby (master:76cb38a by kares): The build passed. (https://travis-ci.org/jruby/jruby/builds/189175062)
pawnbox has joined #jruby
TheWhip has joined #jruby
<chrisseaton> Are either headius or enebo around?
<chrisseaton> Looks like enebo isn't even connected!
tcrawley-away is now known as tcrawley
rsim has joined #jruby
rsim has quit [Read error: Connection reset by peer]
<nirvdrum> They're 7 hours behind you. They usually start popping online around now.
<chrisseaton> I wonder why enebo's bouncer isn't connected though. Maybe he doesn't realise.
enebo has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 246 seconds]
pawnbox has joined #jruby
<nirvdrum> chrisseaton: He's here now.
<chrisseaton> enebo: hello!
prasun has joined #jruby
<enebo> chrisseaton: howdy
byteit101 has joined #jruby
<chrisseaton> enebo: I think you said a while ago that you were now optimising set_trace_func, using SwitchPoint, but that doesn't seem to be the case. Did you turn it off again?
<enebo> chrisseaton: oh did I say that? Maybe I was saying it could be implemented that way
<enebo> Let me look at what the JIT does
<chrisseaton> I looked - the JIT doesn't handle the instruction.
<chrisseaton> And the instructions aren't there unless you have --debug, which disables the JIT, so it all looks correct if that's what you want.
<enebo> chrisseaton: ah yeah so the reason we did not implement it was we just haven’t added it to the JIT yet. We never supported events in 1.7 in the JIT at all either so it is not a regression just not implemented yet
<enebo> chrisseaton: so we need to do it but we have not yet…for lack of more detailed explanation :)
<enebo> chrisseaton: but the actual implementation can end up as a switchpoint which is a reasonable way to go I think
<enebo> chrisseaton: sorry if I ended up implying we have implemented it in the JIT
<enebo> had
<chrisseaton> enebo: the other question I've got is I think you said a while ago that Matz had explicitly said he was fine with JRuby using the word 'Ruby'? Is that the case?
<enebo> chrisseaton: hmm I believe that is true but I do not explicitly remember saying that. We have said JRuby is just Ruby implemented on the JVM in front of him many times and we have had no trademark issues or complaints
<byteit101> Was upgrading a 1.7 app to 9k and noticed that MyJavaClass.java_class.annotation(Java::com.pkg.MyAnnotation.java_class) now doesn't work as annotation only takes 0 and not 1 argument. What is the new way to do this? (finding only the single MyAnnotation Annotations on a java class)
<enebo> kares: do you have any insight to byteit101 question? I think you are most likely to have changed that code
<enebo> chrisseaton: from a trademark perspective I doubt Ruby has any real footing anymore if it was ever trade marked but he has never said anything negative about our project using the term Ruby
<chrisseaton> I remember some issues about that.
<chrisseaton> enebo: it was 'Rails' that was being enforced wasn't it?
<enebo> chrisseaton: although we always have said MRI is the standard of what defined Ruby
<enebo> chrisseaton: yeah DHH (BaseCamp inc) holds trademark to Rails and went after grails when they called themselves ‘Groovy on Rails’
<enebo> chrisseaton: after that they changed to Grails
<enebo> chrisseaton: so I think the trademark is ‘Ruby on Rails’ and maybe not Rails since you could argue Grails could still be confusing
<enebo> and both are dictionary words
<enebo> OTOH Microsoft got US to approve Windows
<chrisseaton> The dictionary word thing doesn't matter
<chrisseaton> You can't trademark 'apple' if you sell apples, but you can if you sell computers
rsim1 has joined #jruby
rsim has quit [Read error: Connection reset by peer]
cremes has quit [Quit: cremes]
prasun has quit [Ping timeout: 255 seconds]
prasun has joined #jruby
cremes has joined #jruby
rsim has joined #jruby
kares has quit [Remote host closed the connection]
vtunka has quit [Quit: Leaving]
rsim1 has quit [Ping timeout: 260 seconds]
alex0ptr_ has quit [Read error: Connection reset by peer]
alex0ptr has joined #jruby
pawnbox has quit [Ping timeout: 248 seconds]
pawnbox has joined #jruby
<GitHub44> [jruby] enebo closed issue #3888: rake fails to activate properly under bundle exec https://git.io/vrmpY
<enebo> chrisseaton: ah yeah I think I always had this wrong in my mind. I did not connect the second half that you cannot trademark bread for the bread you sell but bread in bread treadmills could be since a treadmill is not bread
prasun has quit [Ping timeout: 255 seconds]
kares has joined #jruby
ruurd has quit [Remote host closed the connection]
alex0ptr has quit [Remote host closed the connection]
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 248 seconds]
TheWhip has quit [Remote host closed the connection]
ruurd has joined #jruby
ruurd is now known as Guest88653
kith has quit [Quit: kith]
rsim1 has joined #jruby
shellac has quit [Quit: Leaving]
rsim has quit [Ping timeout: 260 seconds]
swills_ has quit [Read error: Connection reset by peer]
swills has joined #jruby
thedarkone2 has joined #jruby
mpapis has quit [Quit: Connection closed for inactivity]
marciol has quit [Remote host closed the connection]
pilne has joined #jruby
bbrowning is now known as bbrowning_away
marciol has joined #jruby
alex0ptr has joined #jruby
marciol has quit [Ping timeout: 246 seconds]
alex0ptr has quit [Ping timeout: 248 seconds]
bbrowning_away is now known as bbrowning
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 255 seconds]
TheWhip has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
subbu is now known as subbu|lunch
pawnbox has quit [Ping timeout: 245 seconds]
marciol has joined #jruby
subbu|lunch is now known as subbu
alex0ptr has joined #jruby
TheWhip has quit []
alex0ptr_ has joined #jruby
alex0pt__ has joined #jruby
alex0ptr_ has quit [Read error: Connection reset by peer]
alex0ptr has quit [Ping timeout: 240 seconds]
subbu is now known as subbu|away
<alex0pt__> Is there someone around that could explain the concept of the NodeChildren/NodeChild annotations in RubyTruffle? I'm not sure what they are supposed to do.
marciol has quit [Remote host closed the connection]
alex0pt__ is now known as alex0ptr
marciol has joined #jruby
<nirvdrum> alex0ptr: They're used by a code generator to construct the AST.
<nirvdrum> alex0ptr: Is there something in particular that you're looking at?
<alex0ptr> Yes
<alex0ptr> One second...
marciol has quit [Ping timeout: 245 seconds]
<alex0ptr> Ok BooleanCastNode.java
<alex0ptr> What is the point of @NodeChild(value = "value", type = RubyNode.class) the annotation there?
<alex0ptr> I assume it will have a child node of any type. And the Specialized methods receive this child?
headius2 has joined #jruby
bbrowning has quit [Quit: Leaving]
<nirvdrum> Sorry, was AFK.
<nirvdrum> Looking at it now.
subbu|away is now known as subbu
<nirvdrum> alex0ptr: Yes, that's essentially correct. The node child type will be a RubyNode (as noted in the annotation) and that node will be evaluated and its return value supplied as an argument to one of the specialized methods.
<alex0ptr> nirvdrum: Ok
<alex0ptr> nirvdrum: So I have a piece of code here: https://gist.github.com/alex0ptr/40f47646253a2df8062ed35887724b76
<alex0ptr> nirvdrum: I wanted to get started by writing something simple. Just a Hello World.. However the build fails with the error message stated in the description.
<nirvdrum> So CoreMethodArrayArgumentsNode has some special handling that hides the @NodeChildren setup from you.
<alex0ptr> nirvdrum: OH!
<alex0ptr> nirvdrum: I see
<nirvdrum> But the core issue here is you have required set to 1, but don't have optional=1.
<nirvdrum> So, there's an argument count mismatch.
<nirvdrum> Note that you shouldn't need to pass the context as an argument at all. CoreMethodArrayArgumentsNode extends from RubyBaseNode at some level and you can just call getContext().
<alex0ptr> Good to know.
<alex0ptr> So why optional=1?
<nirvdrum> Well, if you remove the RubyContext parameter, you won't need optional=1.
<alex0ptr> Ok but what does it mean? There is no Javadoc for optional.
<nirvdrum> Yeah, we should fill that in.
<nirvdrum> But basically it's for Ruby methods that allow for optional arguments.
<alex0ptr> And the value is the index or count?
<nirvdrum> Count.
<alex0ptr> Ok
<alex0ptr> I removed RubyContext but it still fails with the same error...
<nirvdrum> Basically, you have a specialization with two arguments, but via the @CoreMethod annotation you've only said there's 1 argument and it's a required one.
<alex0ptr> Yeah makes sense.
<nirvdrum> The other reason your count is often is the receiver is the first argument and doesn't count towards the parameter count.
<nirvdrum> If you want it to be a class method, you need to set needsSelf=false in @CoreMethod.
<nirvdrum> Oh, nevermind. constructor=true should take care of that.
<alex0ptr> aaaah okay. Are Initializers class methos in ruby? (New to Ruby too)
<alex0ptr> Ok then it should work but doesn't?
<nirvdrum> Allocation is done on the class, initialization is done on the instance.
<nirvdrum> Take a look at ExceptionNodes. That should be a simple example.
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nirvdrum> And it shows what an optional argument would look like.
<alex0ptr> Ok I'll try to mimic that.
<nirvdrum> And apologies for not really looking at the message. You're seeing that because CoreMethodNode requires you to specify that @NodeChildren.
<nirvdrum> If you just make GreetNode extend CoreMethodArrayArgumentsNode instead, you should be okay.
<alex0ptr> Uhm... But I don't need any arguments here except the receiver?
<nirvdrum> We might have gotten a bit too clever for our own good. But at the core of it, you're building an AST.
<nirvdrum> So, the receiver still needs to be a child node.
<nirvdrum> CoreMethodArrayArgumentsNode just hides that for you.
<nirvdrum> If you look at CoreMethodArrayArgumentsNode, it just extends CoreMethodNode with a single child that happens to be an array of RubyNode. And the first argument of that array will be the receiver (if needed).
<nirvdrum> The various options for @CoreMethod basically dictate how that RubyNode[] is treated.
<alex0ptr> Okay.
<nirvdrum> So, CoreMethodNode gives you more control over the AST structure while still giving you the helper methods from being a RubyBaseNode or RubyNode.
<nirvdrum> Normally, you don't use CoreMethodNode unless you want to explicitly wrap one of the children.
<nirvdrum> We do this to coerce arguments, for instance. So then the specialization gets the results of the coercion.
<alex0ptr> Ok I think I understand. Thank you so far. I will be back with a lot more questions soon.
<nirvdrum> No problem.
<nirvdrum> If you look at StringNodes$AddNode, you can see an example of that wrapping.
<nirvdrum> We always want the argument being added to be coerced to a string.
<alex0ptr> I'll have a look at it
<nirvdrum> Rather than handle the coercion in each specialization, we wrap the child with a new node to be evaluated.
<nirvdrum> What's the interest in Ruby + Truffle, if you don't mind my asking?
<alex0ptr> Hopefully a successful Master's Thesis...
<nirvdrum> Ahh.
<nirvdrum> If you haven't yet, you should talk to chrisseaton.
<alex0ptr> I'm nagging him a lot already about basic stuff..
<nirvdrum> Ahh. I'm sure he doesn't mind.
<alex0ptr> nirvdrum: ;)
tcrawley is now known as tcrawley-away
yfeldblum has joined #jruby
yfeldblum has quit [Ping timeout: 272 seconds]
lanceball is now known as lance|afk
yfeldblum has joined #jruby
enebo has quit [Ping timeout: 248 seconds]
yfeldblu_ has joined #jruby
enebo has joined #jruby
yfeldblum has quit [Ping timeout: 255 seconds]
headius2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
headius2 has joined #jruby
kares has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<alex0ptr> nirvdrum: You still around?
<eregon> alex0ptr: What's your question?
<alex0ptr> I'm still trying to get a basic example to work. Something like a hello world: https://gist.github.com/alex0ptr/40f47646253a2df8062ed35887724b76
<alex0ptr> However I'm not sure how a StringExpression would be represented in Ruby Truffle
<alex0ptr> And how to feed it to a PutsNode..
<eregon> The easiest would be to write that in Ruby actually
<alex0ptr> Might be, but that is not my goal.
<eregon> class Frrb::Greeter; def greet; puts "Hello #{@name} end"; end; end
<eregon> + defining initialize
<eregon> I see
<eregon> the GREETER layout just has getName() ?
<alex0ptr> Yeah
<alex0ptr> Which is currently a RubyString. Propably wrong?
<eregon> yes