Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
swift-syntax
A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
And here is the "C++ Interopability Manifesto", the massive outline they have for the feature in the language:
https://github.com/apple/swift/blob/main/docs/CppInteroperabilityManifesto.md
Exciting stuff.
With async/await landing last week and the leaps and bounds of the package manager over the last couple years, the ergonomics of using Swift for non-iOS work has gotten significantly better. Coupled with the built in safety and elegance of the language I think that, especially for server work, Swift is a very attractive option.
Shameless plug; for these reasons I built a [Swift web framework for fullstack iOS development](https://github.com/alchemy-swift/alchemy) that we've been using it at my company while going through YC this summer. It's been very powerful to have mobile and server in the same language and codebase and has helped us (native iOS backgrounds), move quickly.
For a real-world example of using this, here's a test repo from the core developers:
https://github.com/plotfi/cxx-interop-test
The whole compiler and the vast majority of the runtime are in C++. This module is intended to integrate with the compiler, and uses the compiler's own parsing code. That said, there are Swift bindings available as a separate library: https://github.com/apple/swift-syntax
There's already an LSP server for Swift (also made for Apple): https://github.com/apple/sourcekit-lsp
This library is intended for syntactic tools: formatters, highlighters, that kind of thing.
Related posts
- Alchemy - Elegant, batteries included web framework for Swift?
- Alchemy - A web framework for fullstack swift
- Alchemy - Elegant, batteries included web framework for Swift
- Alchemy - Elegant, batteries included web framework for Swift
- Show HN: Alchemy – Elegant, batteries included web framework for Swift