Skip to content

Commit f3a13de

Browse files
committed
links to example projects
1 parent c107545 commit f3a13de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

proposals/0461-replaceable-library-plugins.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ SwiftPM currently has no support for non-system binary library dependencies on L
1313
Swift-evolution thread: [Discussion thread topic for that
1414
proposal](https://forums.swift.org/)
1515

16+
Example Producer: [swift-rlp-example](https://github.com/tayloraswift/swift-rlp-example)
17+
18+
Example Consumer: [swift-rlp-example-client](https://github.com/tayloraswift/swift-rlp-example-client)
1619

1720
## Motivation
1821

1922
Many of us in the Server World have a Big App with a small component that changes very rapidly, much more rapidly than the rest of the App. This component might be something like a filter, or an algorithm, or a plugin that is being constantly tuned.
2023

21-
We could, for argument’s sake, try and turn this component into data that can be consumed by the Big App, which would probably involve designing a bytecode and an interpreter, and maybe even a whole interpreted domain-specific programming language. But that is Really Hard and we would rather just write this thing In Swift, and let Swift code call Swift code.
24+
We could, for argument’s sake, try and turn this component into data that can be consumed by the Big App, which would probably involve designing a bytecode and an interpreter, and maybe even a whole interpreted domain-specific programming language. But that is very hard and we would rather just write this thing in Swift, and let Swift code call Swift code.
2225

2326
While macOS has Dynamic Library support through XCFrameworks, on Linux we currently have to recompile the Big App from source and redeploy the Big App every time the filter changes, and we don’t want to do that. What we really want instead is to have the Big App link the filter as a Dynamic Library, and redeploy the Dynamic Library as needed.
2427

@@ -38,7 +41,7 @@ The organization that distributes an RLP is responsible for defining what exactl
3841
1. Ubuntu 24.04 with the Swift 6.0.3 runtime installed at `/home/ubuntu/swift`
3942
2. Ubuntu 24.04 with the Swift 6.0.3 runtime installed at `/home/ubuntu/swift-runtime`
4043

41-
Concepts like Platform Triples are not sufficient to describe an ODP. Even though both ODPs above would probably share the Triple `aarch64-unknown-linux-gnu`, code compiled for one would never be able to run on the other.
44+
Concepts like Platform Triples are not sufficient to describe an ODP. Even though both ODPs above would probably share the Triple `aarch64-unknown-linux-gnu`, Swift code compiled (without `--static-swift-stdlib`) for one would never be able to run on the other.
4245

4346
Organizations add and remove ODPs as needed, and trying to define a global registry of all possible ODPs is a non-goal.
4447

0 commit comments

Comments
 (0)