Adam Fowler

@opticalaberration
4 Followers
150 Following
200 Posts
@mattiem hummingbird-lambda should do that for you. It will link in the http server from hummingbird-core but that shouldn’t take up too much memory.
@mattiem I was comparing to the Vapor lambda runtime which generates much bigger lambdas.
@mattiem no hummingbird-lambda is required. It is the interface between the swift lambda runtime and the hummingbird router.
@mattiem ah shit that’s the lambda library. Even better reason to use hummingbird as it generates much smaller lambdas.
@mattiem cheers. Vapor is great but it is quite heavy weight. Having something a little more slimline available seemed sensible.
Ancient oaks, Dalkeith #photography
in america, we no longer say “the french”, but “people with mental illnesses”, and i think that’s beautiful

There are lots of great reasons to use Swift on server. I prefer Server on swift for its fast, deterministic performance, type safety, and amazing community.

Take three minutes and learn about Swift on server here:

https://www.areweserveryet.org/

Are we server yet? | AreWeServerYet

Are We Server Yet - or AWSY for short - tries to answer the question: Can I use Swift on the server (yet)?

AreWeServerYet

I've been exclusively using VS Code for Swift development this weekend and I am thoroughly impressed. Huge props to @opticalaberration @0xTim and others for all the hard work.

https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang

Swift - Visual Studio Marketplace

Extension for Visual Studio Code - Swift Language Support for Visual Studio Code.

The Swift code to do the formatting is really clean, see https://github.com/apple/swift-syntax/blob/main/Sources/SwiftDiagnostics/DiagnosticsFormatter.swift . I’d love for an option to colorize the output, if anyone’s looking for a quick little Swift task that’ll make its way into the compiler.

Edit: no C++ required for this task! Everything in swift-syntax, where this code lives, is Swift in an easy-to-build-and-test package. The swift-parser-cli executable uses it to show parser diagnostics. The compiler is downstream of it, and will pick up changes automatically.

swift-syntax/DiagnosticsFormatter.swift at main · apple/swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. - swift-syntax/DiagnosticsFormatter.swift at main · apple/swift-syntax

GitHub