# Building swift-sample-distributed-actors-transport

**URL:** <https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781>\
**Category:** Distributed Actors\
**Created:** [November 30, 2021, 1:12pm UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781 "2021-11-30T13:12:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![icanzilb](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/icanzilb/32/20473_2.png) [@icanzilb](https://forums.swift.org/u/icanzilb)\
**Post date:** [November 30, 2021, 1:12pm UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/1 "2021-11-30T13:12:37Z")

</div>

I'd like to play around with the current state of distributed actors so here's what I did so far:

- downloaded the Nov 20th [Swift.org](http://Swift.org) nightly build for Xcode
- downloaded [GitHub - apple/swift-sample-distributed-actors-transport: Distributed actors transport example, for feature review](https://github.com/apple/swift-sample-distributed-actors-transport) [[b18a0b5](https://github.com/apple/swift-sample-distributed-actors-transport/commit/b18a0b520d8a47d6e726a96cf05497f94f77807a)]

I'm running macOS 11.6 but expecting that, given the custom toolchain, I can run the demo app. (I remember that the demo app ran fine some months ago when I tried it out)

However, when I follow the instructions in the README the compiler fails with these two errors which I find somewhat strange - it looks to me that it complains about a missing parameter that is evidently present in the error message itself:

```swift
/swift-sample-distributed-actors-transport-main/SampleApp/Sources/FishyActorsDemo/Actors.swift:33:3: error: designated distributed actor initializer 'init(topic:transport:)' is missing required ActorTransport parameter
  init(topic: String, transport: ActorTransport) {
  ^
/swift-sample-distributed-actors-transport-main/SampleApp/Sources/FishyActorsDemo/Actors.swift:85:3: error: designated distributed actor initializer 'init(transport:)' is missing required ActorTransport parameter
  init(transport: ActorTransport) {
  ^

```

Maybe, there is some other issue that mistakenly triggers this message? I'm kind of stuck at this point, all help is greatly appreciated :)

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [November 30, 2021, 1:43pm UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/2 "2021-11-30T13:43:07Z")

</div>

Hi Marin,  
we're lagging a bit with keeping all the "satellite" repos (samples, the cluster impl) up-to-date with the ongoing changes in the language... sorry for the annoying state of affairs. As we chatted before, things will calm don soon here.

This error specifically diagnoses quite ugly, I'll make sure to do a follow up to make it nicer;

To get that fixed here's a patch: [update to latest toolchains by ktoso · Pull Request #4 · apple/swift-sample-distributed-actors-transport · GitHub](https://github.com/apple/swift-sample-distributed-actors-transport/pull/4)

Though I noticed other issues at runtime, and some missing fixes in the \_Distributed module as well... I'll get to them as soon as I can and report back.

---

<div class="post-metadata">

**Author:** ![icanzilb](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/icanzilb/32/20473_2.png) [@icanzilb](https://forums.swift.org/u/icanzilb)\
**Post date:** [November 30, 2021, 1:49pm UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/3 "2021-11-30T13:49:47Z")

</div>

Thank you! No worries, I know this is still wip. I'll keep an eye for updates

---

<div class="post-metadata">

**Author:** ![icanzilb](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/icanzilb/32/20473_2.png) [@icanzilb](https://forums.swift.org/u/icanzilb)\
**Post date:** [December 27, 2021, 6:33pm UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/4 "2021-12-27T18:33:49Z")

</div>

Just to update the thread, there are still a load of errors while compiling `FishyTransport`.

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [December 28, 2021, 2:16am UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/5 "2021-12-28T02:16:38Z")

</div>

This has not been worked on at all on the main branch there, so don't expect any changes there.

There has not been a new toolchain between 6th and 23rd December making the updating somewhat tricky as we needed the "latest" one, which didn't happen until December 23rd, and then x-mas happened. I'm happy that you're eager to try this out, but as I said -- we're in the middle of rewriting the runtime and it is tough to keep the sample project aligned with the moving toolchain, especially as it is so tricky to get one released for snapshot builds (which is independent of our work).

In any case, this [update to latest toolchains by ktoso · Pull Request #4 · apple/swift-sample-distributed-actors-transport · GitHub](https://github.com/apple/swift-sample-distributed-actors-transport/pull/4) represents an update of the major pieces. Though still some missing things.

As we cannot merge or release toolchains as [all the branches are locked during the x-mas break](https://forums.swift.org/t/holiday-schedule/53507/3) anyway, I would not expect work to happen during the Christmas break here.

* * *

I'm happy that you're eager to explore this, but as I said up-thread, it is too early to expect this to be stable, but we're very close: all things should be in-place in early January.

instead, for now I'd suggest discussing the proposals:

- [SE-0336: Distributed actor isolation](https://forums.swift.org/t/se-0336-distributed-actor-isolation/53939/)
- [[Pitch] Distributed Actor Runtime](https://forums.swift.org/t/pitch-distributed-actor-runtime/54045/)

You'll notice the sample heading towards the new 'runtime', but it is not entirely implemented yet; so I don't want to churn a lot of time updating the sample while we're not done with the runtime (re-)implementation yet.

---

<div class="post-metadata">

**Author:** ![icanzilb](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/icanzilb/32/20473_2.png) [@icanzilb](https://forums.swift.org/u/icanzilb)\
**Post date:** [December 28, 2021, 7:00am UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781/6 "2021-12-28T07:00:56Z")

</div>

Hey Konrad, I didn't expect things will get much progress over the holidays — of course :) I just wanted to update the thread with a current status after a month since creating, in case any other developers land here with a similar problem.
