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
Farid Zakaria
@fzakaria
Do we have an open source INtelliJ license for concurrent-ruby ?
Farid Zakaria
@fzakaria
@Confusion you can also use a plain simple Monitor in Ruby
it is a re-entrant mutex essentially
Charles Oliver Nutter
@headius
@fzakaria Not that I know of re IntelliJ
no reason we couldn't though
Farid Zakaria
@fzakaria
I saw there's an application -- if one of the maintainers would file for a license please include me!

@pitr-ch the state of affairs for Future, Promises::Future & Promise is so confusing in the codebase.
I can't imagine anyone making sense of it unless they take the time to thoroughly read the docs.

I saw some issues tackling a "2.0" release -- I would definitely recommend deleting the outdated Future & Promise classes.
If major upgrade I would remove the Promises:: module scoping as well.

I see that it's striken out in the README but landing on the docs https://ruby-concurrency.github.io page makes it less clear.
Is there a way to include a strike out for the side bar & maybe a banner for both Future & Promise pointing to Promises::Future ?
Charles Oliver Nutter
@headius
@pitr-ch I don't know who should request such a license, you or me :-)
@fzakaria PR and discuss there?
Farid Zakaria
@fzakaria
I have an open task to kind of peek at how the documentation is generated to maybe take a stab at a PR for it.
My YARDOC knowledge is meh
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