Thanks everyone for coming to the event today, I really enjoyed it myself and I think we had some really great and useful discussion ![]()
Here's just a couple raw notes I wrote down. We talked about:
- LSP, troubleshooting LSP and the one particular bug that affects CMake builds -- LSP stops working in editors (VSCode, Sublime Text, Zed) with swiftly toolchains, logs say "No language service for ..." 路 Issue #2128 路 swiftlang/sourcekit-lsp 路 GitHub
- Demo of a LED Matrix project over Pico 2 W (RP2350), PIO
- Using manual add_custom_command() in CMake makes LSP not work, we need the native Swift CMake support instead (see e.g. swift-embedded-examples/rpi-pico-blink-sdk at main 路 apple/swift-embedded-examples 路 GitHub)
- It would be great to have some basic HAL libraries, to e.g. abstract away Pico and Pico W having different LED control
- Libraries for Embedded Swift will need dead-strippability of unused code; other systems solve this by allowing link-time switching of libraries
- No "any" in Embedded Swift sometimes gets in the way
- Demo of LVGL on STM32, see Add a demo for using LVGL, DRAM, LLVM Toolchain, ELF on an STM32F746G discovery board by kubamracek 路 Pull Request #104 路 apple/swift-embedded-examples 路 GitHub
- Using LVGL overlays/wrappers
- SDKs as SwiftPM packages
- Most samples in
swift-embedded-exampleswill start using toolsets and leverage SwiftPM to link, this is the easiest way to get "everything" to work inluding LSP - Documentation: Moved to
swift-embedded-examples, and we are looking for community help fleshing out articles and guides -- Evolving Embedded Swift Documentation
We had 18 people in the discussion. Looking forward to the next time ![]()