Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 19 23:39
    valdisz synchronize #3889
  • Oct 19 23:08
    edvinasz commented #2947
  • Oct 19 13:36
    Aaronontheweb commented #3973
  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3995
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump BenchmarkDotNet from 0.10.… (compare)

  • Oct 19 13:34
    dependabot-preview[bot] edited #3995
  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3993
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump Google.Protobuf from 3.9.1… (compare)

  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3991
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump Microsoft.Extensions.Depen… (compare)

  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3989
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump ApiApprover from 3.0.1 to … (compare)

  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3992
  • Oct 19 13:34
    dependabot-preview[bot] edited #3993
  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3985
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump System.Reflection.Emit fro… (compare)

  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3986
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump FsCheck.Xunit from 2.9.0 t… (compare)

  • Oct 19 13:34
    dependabot-preview[bot] synchronize #3983
  • Oct 19 13:34

    dependabot-preview[bot] on nuget

    Bump NUnit from 3.6.1 to 3.12.0… (compare)

nathvi
@nathvi
Manager sounds like something human. Only gods can create people instantly.
Arjen Smits
@Danthar
Naming things is one of the hardest things in our field ;)
and often subjective
nathvi
@nathvi
true
GodOfPlayersActor?
Arjen Smits
@Danthar
I wouldn't name it PlayerGodActor for instance. Because i would think its somekind of special PlayerActor
And it would not instantly convey "im the actor responsible for managing playeractors"
PlayerRegistryActor is also an option
nathvi
@nathvi
That's so boring though
lol
Arjen Smits
@Danthar
hahaha true
nathvi
@nathvi
PlayerMasterActor
LordOfPlayerActors
Arjen Smits
@Danthar
^^
PlayerUniverse
nathvi
@nathvi
I would think the actor system itself would be the player universe
GrandWizardOfPlayerActors
Manager is too weak in my opinion. Managers manage existing people. They don't create them instantly or make them vanish.
Arjen Smits
@Danthar
It can do whatever you want it to do :)
gl though ;) gtg
nathvi
@nathvi
aiight
me-slove
@me-slove
Like PlayerController or PlayerManager
naming over time is a critical aspect as you said @Danthar
Rodger Brennan
@rodgerbrennan
Can actors be reparented?
nathvi
@nathvi
Good question.
nathvi
@nathvi
I think it makes more sense to call the child actors slave actors.
Arjen Smits
@Danthar
@rodgerbrennan no. If you want to change the Parent, as in Context.Parent of an actor. It has to be recreated under that parent. Also. It means that the actorpath will change.
@nathvi we like child actors better ;). Since the Parent actor can decide about its lifecycle. (supervisionstrategy and sofort). And ofcourse also because thats what the JVM Akka calls it. Because its terminology integral to the design of Akka, we follow that same terminology
Sam13
@Sam13
Everybody used FileIO.FromFile for the same file at the same time?
I always get an IOException 'The process cannot access the file xyz because is being used by another process' the second time. I'm using Akka 1.3.7.
Callstack:
mscorlib.dll!System.IO.__Error.WinIOError(int errorCode, string maybeFullPath) Unknown mscorlib.dll!System.IO.FileStream.Init(string path, System.IO.FileMode mode, System.IO.FileAccess access, int rights, bool useRights, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options, Microsoft.Win32.Win32Native.SECURITY_ATTRIBUTES secAttrs, string msgPath, bool bFromProxy, bool useLongPath, bool checkHost) Unknown mscorlib.dll!System.IO.FileStream.FileStream(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) Unknown mscorlib.dll!System.IO.FileInfo.Open(System.IO.FileMode mode, System.IO.FileAccess access) Unknown Akka.Streams.dll!Akka.Streams.Implementation.IO.FilePublisher.PreStart() Unknown Akka.Streams.dll!Akka.Streams.Actors.ActorPublisher<Akka.IO.ByteString>.AroundPreStart() Unknown Akka.dll!Akka.Actor.ActorCell.UseThreadContext(System.Action action) Unknown Akka.dll!Akka.Actor.ActorCell.Create(System.Exception failure) Unknown Akka.dll!Akka.Actor.ActorCell.SysMsgInvokeAll(Akka.Dispatch.SysMsg.EarliestFirstSystemMessageList messages, int currentState) Unknown Akka.dll!Akka.Dispatch.Mailbox.ProcessAllSystemMessages() Unknown Akka.dll!Akka.Dispatch.Mailbox.Run.AnonymousMethod__36_0() Unknown Akka.dll!Akka.Actor.ActorCell.UseThreadContext(System.Action action) Unknown Akka.dll!Akka.Dispatch.Mailbox.Run() Unknown mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() Unknown mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() Unknown
Alex Hofer
@alexhofer
@Sam13 are you wrapping it in a using so the second time its free? Or are you trying to access the file from two actors at the same time?
Arjen Smits
@Danthar
@Sam13 Im not intimately familiar with the FileIO api's. But i wouldn't be suprised if reading and writing from and to the same file is not supported.
Marc Piechura
@marcpiechura
@Sam13 that’s the line for opening the file, don’t know out of my head if you could write it differently to support unlocked reads https://github.com/akkadotnet/akka.net/blob/3f924fda8d6ca55c5af90a710d23be8ce36d5c7a/src/core/Akka.Streams/Implementation/IO/FilePublisher.cs#L110
But if so we would probably accept a PR ;-)
Sam13
@Sam13
@alexhofer @Danthar @marcpiechura I have an actor which distributes files, if two client actors want the same file it's opened twice.
I think it's a bug in Akka since System.IO.FileInfo.Open which is used uses FileShare.None as default argument (FileStream.Openuses FileShare.Read as default).
I'll try to create a PR
Sam13
@Sam13
Done: akkadotnet/akka.net#3531
I really had trouble to get the unit tests running - most of them are failing - any help would be appreciated...
AndreSteenbergen
@AndreSteenbergen
Hey guys, I currently have an Flow wich starts with a Source created by Source.ActorRef<T>. And I have an actor pushing things in there. This publisher is way too fast. This method does not allow for Backpressuring. How would I create a source with Backpressure, is there an example I can follow?
AndreSteenbergen
@AndreSteenbergen
Something like this?
source = Source.ActorPublisher<ProcessPostcode>
source.Buffer(10, OverflowStrategy.Backpressure);
Marc Piechura
@marcpiechura
@AndreSteenbergen you could use Source.Queue and pass the queue to the actor but you need to stash/buffer messages inside the actor if the queue can't handle more messages
so you have to implement backpressure in the actor itself, there is no build in way to automatically backpressure an actor source
AndreSteenbergen
@AndreSteenbergen
I figured that out already, that's why I am trying to implement the ActorPublisher<T>, that would work to right?
Marc Piechura
@marcpiechura
but why ? :) do you really need an IActorRef for whatever pushes messages into the stream?
AndreSteenbergen
@AndreSteenbergen
Good question, no I don't
Marc Piechura
@marcpiechura
Then I would take the queue and use this as your input gateway
Stijn Herreman
@stijnherreman
Is it possible to use async/await in a FSM actor? Like how ReceiveActor has ReceiveAsync.
Stijn Herreman
@stijnherreman
Hmm, I guess I will have to make another attempt at fully grasping PipeTo :smile:
fleed
@fleed
using TestKit, can I synchronously wait the handling of a message (Tell(message))?
Stijn Herreman
@stijnherreman
@fleed There's a third-party library that may help you, see divverence/MarbleTesting#4. I didn't end up using it and went with always sending an ACK message instead to signal completion of a task.
fleed
@fleed
Thank you @stijnherreman
EricFowler
@EricFowler
Super easy n00bie question: Why is 'Sys' undefined in my c# akka.net application?
Alex Hofer
@alexhofer
@EricFowler mind posting the line in question?