Skip to content

Conversation

@kassane
Copy link
Contributor

@kassane kassane commented Aug 22, 2024

Summary

Add Swift 6 (embedded module) support

Note: Currently, snapshot version (nightly)

Impact

Another Safe Programming Language alternative with C++ and C FFI support. (like, D and Rust)

Testing

$ qemu-system-riscv32 \
    -semihosting \
    -M virt,aclint=on \
    -cpu rv32 -smp 8 \
    -bios none \
    -kernel nuttx -nographic
NuttShell (NSH) NuttX-12.6.0-RC1
nsh> hello_swift
Hello from Swift embedded!

cc: @lupyuen
@rauhul FYI

References

@rauhul
Copy link

rauhul commented Aug 22, 2024

Very cool! After this PR is accepted, I'd love to include a link to a sample project from swift-embedded-examples!

@xiaoxiang781216 xiaoxiang781216 merged commit 93b520f into apache:master Aug 23, 2024
@kassane kassane deleted the swift-embedded-support branch August 23, 2024 01:03
@xiaoxiang781216
Copy link
Contributor

@kassane could you create a new patch to enable hello_swift ci?

@anchao
Copy link
Contributor

anchao commented Aug 23, 2024

@rauhul @kassane I am surprised that Apple is using NuttX in the embedded devices?

@lupyuen
Copy link
Member

lupyuen commented Aug 23, 2024

@kassane Thank you so much for adding Embedded Swift to NuttX! If you need help enabling hello_swift in NuttX CI: I wrote a guide about modding NuttX CI...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants