Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 11 14:26

    Neverlord on master

    Compress empty JSON arrays and … Merge branch 'topic/neverlord/j… (compare)

  • Aug 11 13:27

    Neverlord on neverlord

    Compress empty JSON arrays and … (compare)

  • Aug 11 13:04

    Neverlord on neverlord

    Compress empty JSON arrays and … (compare)

  • Aug 11 05:49
  • Aug 11 03:50
    ChenKang256 commented #1350
  • Aug 11 03:41
    ChenKang256 reopened #1350
  • Aug 11 03:41
    ChenKang256 commented #1350
  • Aug 11 03:41
    ChenKang256 closed #1350
  • Aug 11 03:41
    ChenKang256 commented #1350
  • Aug 09 16:01
    Neverlord commented #1350
  • Aug 09 08:28
    ChenKang256 opened #1350
  • Aug 07 15:23
  • Aug 06 07:07
    Neverlord closed #1304
  • Aug 06 07:07
    Neverlord unlabeled #1304
  • Aug 06 07:07
    Neverlord labeled #1304
  • Aug 06 06:21

    Neverlord on neverlord

    (compare)

  • Aug 06 06:21

    Neverlord on neverlord

    (compare)

  • Aug 06 06:21

    Neverlord on neverlord

    (compare)

  • Aug 05 11:41

    Neverlord on master

    Allow WebSocket clients to conn… Merge branch 'topic/neverlord/w… (compare)

  • Aug 05 11:22

    Neverlord on neverlord

    Allow WebSocket clients to conn… (compare)

JoaoMarinho
@JoaoAMarinho
how can i achieve such behaviour
Dominik Charousset
@Neverlord
If you trigger the shutdown from external you could just send exit_reason::user_shutdown.
JoaoMarinho
@JoaoAMarinho
What if i don't have the pointer to the receiving actor saved.
Ok It's working, than you.
Dominik Charousset
@Neverlord
👍
Matt Youill
@matt.youill_gitlab
thanks @Neverlord
chq
@hanakeichen
Hi, I'm trying to write testing code with the broker based on https://github.com/actor-framework/actor-framework/blob/52914200de6f13c7efa3e38c8904064b3b916670/libcaf_io/test/io/http_broker.cpp, then call broker->send(buddy) to another actor in line 141. But the test failed when asserting the output buffer's size in line 200 because the buffer is empty
8 replies
I already tried to call test_coordinatorfixture::run after mpx->virtual_send , but nothing changed
yosefabedelfattah
@yosefabedelfattah
Hi , I have acode the is running in seperate thread and need to call Request from that thread to pass amessage of data to specific actor that was already spawned and i have refrence to it , is that possible ? what is happenning if i move the call of request to main thread it works fine however if it is called from the seperated thread as described above i get error sigmentation fault .
1 reply
JoaoMarinho
@JoaoAMarinho
What is the best example to start understanding the middleman component of caf?
Dominik Charousset
@Neverlord
JoaoMarinho
@JoaoAMarinho
No, I'll give it a look
JoaoMarinho
@JoaoAMarinho
Can a function-based actor, not the behavior type one, receive messages from other actors, or set an handler for these messages? So that if he receives a msg executes the handler and continues is work.
Dominik Charousset
@Neverlord
Maybe I don't get the question, but yeah, that's pretty much the point of actors.
JoaoMarinho
@JoaoAMarinho
Ok i have an actor that is receiving user input, and i tell him to parse a file so i create another ator to read the file
and i want the parser to send to the first actor the file strings
without the inputting actor stopping its process
i tried to use a set default handler but not successfully
is there any examples on this function?
Dominik Charousset
@Neverlord
Not for this particular setup, but one the examples under message_passing should help you getting started: https://github.com/actor-framework/actor-framework/tree/master/examples/message_passing
JoaoMarinho
@JoaoAMarinho
I have already looked at the examples and could not find a way to solve this
Just want to know if an actor of this kind ""void parse_input(event_based_actor* self)"" can receive messages from other actors and how?
Dominik Charousset
@Neverlord
Well, you're not returning a behavior. Hence, this actor quits immediately after running the function body. You'd need to return a behavior instead of just returning void.
JoaoMarinho
@JoaoAMarinho
Ok thanks. But a behavior returning actor needs to return immediatly right? so i can´t be receiving user input before returning the handlers
Dominik Charousset
@Neverlord
How is this actor "receiving" user input anyway? If you call some blocking function, make sure to detach the actor. :)
JoaoMarinho
@JoaoAMarinho
From the terminal. What does detaching an actor do precisely?
Dominik Charousset
@Neverlord
Please look it up in the manual.
JoaoMarinho
@JoaoAMarinho
Ok thank you.
mustafma
@mustafma
Hi, can I define enum class as a result of the custom atom definition? Trying to use that in typed_actor class ? Doing this fails in build. Do I need to define an inspector for such cases ?
Dominik Charousset
@Neverlord
The atom macros define empty structs. If you wish to use an enum, than it's just a custom type to CAF that need an inspect.
mustafma
@mustafma
image.png
Thanks. I have tried this with no success:
Dominik Charousset
@Neverlord
Can you define "no success"? What's the actual issue? Aside from the code running into UB since it's not returning a value.
Cem Degirmenci
@sputnikcem_twitter
Hello everyone
Dominik Charousset
@Neverlord
Hi! 👋
Cem Degirmenci
@sputnikcem_twitter
I was reading the code of the framework, and would like to ask what is upstream and downstream messages?
in the scheduled_actor class one can get 4 types of queues, urgent, normal, upstream and downstream forexample
Dominik Charousset
@Neverlord
This only relates to streaming pipelines. Hopefully this helps to clean up the terminology: https://actor-framework.readthedocs.io/en/stable/Streaming.html.
But be aware that this is an experimental feature and it looks like it's soon replaces with something else.
Cem Degirmenci
@sputnikcem_twitter
thank you!
Dominik Charousset
@Neverlord
Hope it helps. :)
Krzysztof Wrzalik
@kyku
Hi, I'm trying to fix a strange segfault from CAF
It is triggered from message_data::~message_data() after my message handler has returned. The the problem is with meta.destroy(ptr); line, in which detroy() is basically a null function pointer.
Krzysztof Wrzalik
@kyku
ok, my fault
doncoolhoney
@doncoolhoney_twitter
My hello program code doesnt work anyone caould please help??
unction "mirror" returns incomplete type "caf::behavior" and alot of other errors..
can anyone pleaase guide to run hello worlld program steps..... i have compiled camke completely...
Dominik Charousset
@Neverlord
I think that's out of scope for a chat like this. But I'm sure you can find good CMake tutorials online. Incomplete type usually means you didn't include the proper headers or your include paths aren't correct.
Cem Degirmenci
@sputnikcem_twitter
Hi I have created an example to study the difference between request.then and request.await. I have a scoped actor which sends 5 messages to a master actor and this master actor in its behavior sends a message to a slave actor which returns the sum of 2 integer and sleeps for 1 seconds.
It is as expected i.e. if I use then I see that masters behaviors are activated without waiting for slave answers