3 ms·
Swift, especially if you have a Mac. The numeric features are well thought out and generally work the way you'd expect. The same with syntax. Swift Playgrounds
by andrewjl 6y ago
Swift, especially if you have a Mac. The numeric features are well thought out and generally work the way you'd expect. The same with syntax. Swift Playgrounds are a REPL with ability to visualize what your program is doing to build on intuition.
If you're keen on using higher level language features such as generics, you can make use of them easily. Otherwise they'll stay out of your way. In terms of progressive disclosure of complexity, it is the best language I've used. And I've used many.
There are also many[1][2][3][4][5] open source projects to peruse. Even if you're not on Mac, there is Linux and Windows support, though I don't have direct experience with them.
The language itself is now fairly stable with a fixed ABI, relatively fast, and is open source so you can modify it if that's something you're interested in down the road. Despite the commentary, it's not an Apple-only language, though when you're outside the Apple ecosystem things are more bottom-up and hence the experience can be inconsistent at times.
I credit Swift with revitalizing my own interest in mathematics. It made re-learning the stuff I'd forgot from college fun and interactive.
[1] https://github.com/apple/swift-numerics https://github.com/apple/swift-numerics
[2] https://github.com/phlegmaticprogrammer/LANumerics https://github.com/phlegmaticprogrammer/LANumerics
[3] https://github.com/apple/swift-algorithms https://github.com/apple/swift-algorithms
[4] https://github.com/stsievert/swix https://github.com/stsievert/swix
[5] https://github.com/AlexanderTar/LASwift https://github.com/AlexanderTar/LASwift