Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nazgu1
4 months ago
|
parent
|
context
|
favorite
| on:
Embedded Swift [video]
I wonder if or how easy will be to use existing embedded c/c++ libraries e.g arduino libs.
tomovo
4 months ago
|
next
[–]
I just tried it recently, worked well enough, including support for std vector, string etc. You can loop over std vector items using a standard Swift loop, for example. It´s clear Apple needs and uses this internally too.
dejv
4 months ago
|
prev
|
next
[–]
Not sure about Arduino specific code, but including C/C++ is fairly easy. See Swift Embedded Examples [1] (check Sources/Support)
[1]:
https://github.com/apple/swift-embedded-examples/tree/main/p...
de_aztec
4 months ago
|
prev
[–]
they even show this in the video, apparently it’s supposed to be straightforward
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: