by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 02 17:56
    kvark pinned #3267
  • Jun 02 17:55
    kvark unpinned #3241
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 02 17:55
    kvark opened #3267
  • Jun 02 17:55
    kvark labeled #3267
  • Jun 01 17:02
    bors[bot] closed #3266
  • Jun 01 17:02
    bors[bot] closed #3241
  • Jun 01 17:02
    bors[bot] closed #3241
  • Jun 01 17:02

    bors[bot] on master

    Move pso::Stage to auxil::Shade… Merge #3266 3266: Move pso::St… (compare)

  • Jun 01 17:02
    bors[bot] commented #3266
  • Jun 01 16:30

    bors[bot] on staging.tmp

    (compare)

  • Jun 01 16:30

    bors[bot] on staging

    Move pso::Stage to auxil::Shade… Merge #3266 3266: Move pso::St… (compare)

  • Jun 01 16:30

    bors[bot] on staging.tmp

    Move pso::Stage to auxil::Shade… [ci skip][skip ci][skip netlify… (compare)

  • Jun 01 16:30

    bors[bot] on staging.tmp

    [ci skip][skip ci][skip netlify] (compare)

  • Jun 01 16:29
    kvark commented #3266
  • Jun 01 16:29
    kvark synchronize #3266
Chip Collier
@photex
:)
Chip Collier
@photex
heheh, now I'm an enso
Coraline Sherratt
@removed~csherratt
@kvark you are not the first one wonder why #rust is so full of cats.
Dzmitry Malyshau
@kvark
@csherratt is there an answer? or it is just an intrinsic property of good communities?... I wonder if I become a cat one day... especially if it's contagious :cat:
brendanzab @bjz 's avatar is his cat
Brendan Zabarauskas
@brendanzab
:) cute little mia
Dzmitry Malyshau
@kvark
@bjz mia? My cat is Misa :)
Coraline Sherratt
@removed~csherratt
It's not only contagious, it's probably fatel.
Chip Collier
@photex
I was told a long time ago that hackers and cats are like beer and pizza
Coraline Sherratt
@removed~csherratt
We are consumed quickly and then left at the party for the host to kickout when we have over stayed our welcome? :P
Chip Collier
@photex
hahaha
Dzmitry Malyshau
@kvark
@bjz congrats with a free ad on the "crates.io" ;)
Brendan Zabarauskas
@brendanzab
:)
Dzmitry Malyshau
@kvark
@bjz @csherratt thanks for having a look at #21
Dzmitry Malyshau
@kvark

Could both of you explain what you mean now? :)

@bjz how does having a channel per return type change the interface with the client?
@csherratt something like that?

let load_handle = client.create_program(...);
...
let prog = client.retrieve_program(load_handle);
Chip Collier
@photex
My suggestion tl;dr: Move the recv into another method that can be called after all the submissions.
Dzmitry Malyshau
@kvark
@photex how do we enforce the queue order of requests vs receives then?
Chip Collier
@photex
why would you?
you can't enforce that in either case
one idea though, is to index the submits
if you really need to
I've had to do that to implement a parmap over a vector for instance
but I didn't think that was the nature of these calls
Brendan Zabarauskas
@brendanzab
@photex no cat! you are boring now :(
Chip Collier
@photex
haha
I'm zen
Dzmitry Malyshau
@kvark
cat-zen
Chip Collier
@photex
I'll draw some ears on it
Brendan Zabarauskas
@brendanzab
@photex I wan splodey cat again :(
Chip Collier
@photex
ok ok
lemme find it
brendanzab @bjz is working on a bad presentation
Dzmitry Malyshau
@kvark
@bjz you've got a rather large scope...
Brendan Zabarauskas
@brendanzab
aye
dunno if I should redefine it :(
Chip Collier
@photex
I like the enso on this page though
wish gitter would let me specify an avatar without github
lol
brendanzab @bjz likes seeing lots of cats
Brendan Zabarauskas
@brendanzab
:cat2: :cat2: :cat2: :cat2: :cat2: :cat2:
sorry for derailing the discussion :smile:
Chip Collier
@photex
ok splodey is back... no idea when gitter updates it
Dzmitry Malyshau
@kvark
@photex Your proposal on #21 makes sense too me, but if we go this route, why do we even need a Client struct? The client would just get the duplex stream end to work with (or something that implements Deref<DuplexStream<..>>). That's not as convenient as it is now,.. but would also solve #9 .
Brendan Zabarauskas
@brendanzab
@photex :heart:
Coraline Sherratt
@removed~csherratt
@kvark If you let the client enumerate the handle you can avoid the round trip. CreateFoo(unique number, args). Then later when you want to use the handle, UseFoo(same unique handle, args). Since it is in a FIFO the server will see the CreateFoo before the UseFoo and it should work.
The creation of the unique number would need to be transparent to the client. It's just a implementation detail.
Coraline Sherratt
@removed~csherratt
If the handle in this case was actually just an pointer, the server would not even need to look up anything.
Dzmitry Malyshau
@kvark
@csherratt What exactly do you mean by "client enumerate the handle"? Overall, I kinda like this solution. There would be no need to wait synchronously for the user. From his perspective, once something is queried for creation, it exists. Our Client would have to make sure everything is loaded by the time it is used. A big question here is whether this checks are going to be any heavy for us to bear (because most of the time Use function is called the resource is already there).
Coraline Sherratt
@removed~csherratt
What is the content of the handle exactly?