by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 15:33
    ko1 commented #887
  • Sep 21 15:10
    ko1 commented #887
  • Sep 21 15:09
    ko1 commented #887
  • Sep 21 14:55
    ko1 commented #887
  • Sep 21 11:55
    pitr-ch commented #887
  • Sep 21 11:36
    chrisseaton commented #887
  • Sep 21 11:36
    pitr-ch commented #887
  • Sep 21 11:36
    pitr-ch commented #887
  • Sep 21 10:27
    chrisseaton commented #887
  • Sep 21 10:05
    pitr-ch commented #887
  • Sep 21 09:53
    pitr-ch assigned #887
  • Sep 21 09:53
    pitr-ch labeled #887
  • Sep 21 09:53
    pitr-ch opened #887
  • Sep 21 08:18
    pitr-ch commented #880
  • Sep 21 07:57
    pitr-ch commented #880
  • Sep 21 07:57
    pitr-ch commented #880
  • Sep 21 07:42
    pitr-ch assigned #885
  • Sep 21 07:42
    pitr-ch unassigned #885
  • Sep 21 07:42
    pitr-ch assigned #885
  • Sep 21 07:42
    pitr-ch labeled #885
You should have one for IntelliJ Charles :O
I mean JRuby --
Charles Oliver Nutter
@headius
I do!
we have been an oss intellij user for a long time
Farid Zakaria
@fzakaria
Basically Executor with helpful start/stop semantics
Farid Zakaria
@fzakaria
I'm curious why the new Future in Promises module has so many less states than it's predecessor like processing
Farid Zakaria
@fzakaria
Farid Zakaria
@fzakaria

Does someone have a good recommendation for how to accomplish this:
I'd like a ThreadPoolExecutor with a queue length of 0 which does not mean unbound.
Looks like it should be able to swap the queue for SynchronousQueue according to:

https://stackoverflow.com/a/10186825/143733

(wondering if there's a simpler hack rather than a larger upstream PR)
Farid Zakaria
@fzakaria
I'll send something upstrem
Farid Zakaria
@fzakaria
Okay it wasn't too bad: ruby-concurrency/concurrent-ruby#853
Charles Oliver Nutter
@headius
cool
ndjhartman
@ndjhartman
Hey, I'm trying to build concurrent-ruby but it immediately warns that YARD is not installed
However after running 'sudo gem install yard', it's definitely installed... I'm probably missing something obvious
ndjhartman
@ndjhartman
In retrospect I think that's mostly irrelevant
More importantly, running 'bundle exec rake repackage' leads to a warning about cross compiling and the rake aborts
Charles Oliver Nutter
@headius
@ndjhartman Hey I'm here now
the yard warning is irrelevant
ndjhartman
@ndjhartman
Oh hey, thanks
Yeah I figured that much
Charles Oliver Nutter
@headius
so to recap what we discussed on JRuby's chat...
building the gem even for just CRuby requires JRuby right now because it's trying to find the JRuby jar
ndjhartman
@ndjhartman
Yes
Charles Oliver Nutter
@headius
I know how to fix that so JRuby isn't required, but you'll still need a java compiler
ndjhartman
@ndjhartman
While in theory I believe there is a meta-java for a JDK I'm not sure it's well supported
But Bitbake does support patches in the build process, so as a stop gap I just removed the line that requires the jar from the gemspec
And it """"works"""" in that it builds and fluentd, which depends on it, seems to run fine
Ideally it would be good to know for sure that not having the jar isn't an issue. Or, as an alternative I can copy over a prebuilt jar as part of the build if it's required but there wouldn't be a JRE for it regardless
Charles Oliver Nutter
@headius
so the way this appears to be set up is that concurrent-ruby gem depends on concurrent-ruby-ext gem
hmm or maybe not
I'm not familiar with how this is put together so bear with me
ndjhartman
@ndjhartman
No problem, I really appreaciate the help
Charles Oliver Nutter
@headius
yeah so the base gem does ship the JRuby extension plus the C files for the CRuby extension
concurrent-ruby-ext appears to be just the extension but I'm not sure how that fits in
It also appears that the tzinfo only needs only a small part of concurrent-ruby
Charles Oliver Nutter
@headius
ok
yah unfortunate this has such a complex build process but I think your best option right now is to just download a JRuby tarball and put it in the env
then things should build ok
the Rakefile for the project explicitly tries to build the jar
it also uses a separate library "ruby-compiler" to do that build, which wants a full JRuby install available
patching those to work will require a cascade of changes
ndjhartman
@ndjhartman
Sorry for the ignorance, but does gem build invoke rake?
Charles Oliver Nutter
@headius
but if you download a JRuby tarball and unpack it and point JRUBY_HOME at it, I think this all will work
ah I see what you're sayting
saying
no it does not...that might be an ok workaround for you if you're ok with the CRuby extension building when you install the gem
I thought you might be wanting to precompile everything