Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swift #60

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Add swift #60

wants to merge 6 commits into from

Conversation

acxz
Copy link
Contributor

@acxz acxz commented Mar 20, 2022

This PR adds the popular Swift language created by Apple.

Swift was written by Chris Lattner who wrote LLVM and many LLVM constructs can be thought of easily in Swift (Chris has described it as "syntax sugar for LLVM"). Swift however has not seen a huge population in scientific computation. There have been some projects like tensorflow/swift where Google tried to rewrite Tensorflow into Swift to incorporate machine learning constructs and differentiation directly into the Swift language. This plan was eventually scrapped, but Swift definitely has the pieces for some good scientific computing, with easier syntax and fast speed. Here is some more motivation for Swift as a numerics language: Article by Jeremy Howard

Anyway all that is to motivate a benchmark comparison with Swift. I'm not the best Swift programmer by any means, but thought I'd give a go at implementing the benchmarks.

This PR is a draft for now as I still can't get the matrix tests to work and mandel is giving me the incorrect solution. But I thought opening this up and having it run through the CI pipeline might interest others to provide feedback on this PR and finish it off.

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.

1 participant