roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
3.86k stars 284 forks source link

Update Swift example #6821

Open TeamPuzel opened 1 week ago

TeamPuzel commented 1 week ago

Hi! I was browsing the examples and noticed that Swift needed some love. The language improved a lot for low level use cases since this example was written and I thought I'd make it more up to date πŸ™‚

Is there somewhere else I have to modify to build using the new flags?

Where can I find any resources/documentation I'd need if I wanted to implement a library for seamless Swift/Roc integration? I saw that Rust and Zig have some "glue" code but Swift does not appear to, it would be fun to write if that's useful πŸ™‚

lukewilliamboswell commented 1 week ago

Oh cool. I need to check this out.

I started a template repository to help people get started, but my swift knowledge is lacking.

https://github.com/lukewilliamboswell/roc-platform-template-swift

lukewilliamboswell commented 1 week ago

If you're interested in Swift glue, I'd love to help you get started. DM me on zulip maybe would be best.

I started this repository to try and organise glue better.

https://github.com/lukewilliamboswell/roc-glue-code-gen

TeamPuzel commented 1 week ago

If you're interested in Swift glue, I'd love to help you get started. DM me on zulip maybe would be best.

Sure, I'll do that tomorrow πŸ‘πŸ»