4 ms·
> It does start in the fork, but the ultimate goal is for all changes to be merged upstream. Some aspects, like dynamicLookup[0], which allows dot syntax for me
by saagarjha 8y ago
> It does start in the fork, but the ultimate goal is for all changes to be merged upstream. Some aspects, like dynamicLookup[0], which allows dot syntax for methods resolved at runtime, are already in the language.
Personally, I feel like it would be unwise to merge in all of TensorFlow's requirements into Swift. Many features, such as the ones you mentioned, are actually useful to outside of the context of machine learning, so it does actually make sense to make them generally available. But compiler support for something as specific as @differentiable seems like an anti-goal for Swift.
- bmc7505 8y agoThe idea is that in the not-too-distant-future, differentiable programming will become much more mainstream. c.f. https://medium.com/@karpathy/software-2-0-a64152b37c35 https://medium.com/@karpathy/software-2-0-a64152b37c35
- saagarjha 8y agoOk, but to use terms from that article, Swift is still very much "Software 1.0". It's a general-purpose programming language meant to be written by people. Sure, it's good that people are trying to extend it to fit their specific needs, but I don't think that Swift (or any commonly used language today) is anywhere near being "good" for these types of tasks.
- wool_gather 8y ago> Neural networks [...] represent the beginning of a fundamental shift in how we write software. That's an...interesting statement, considering that neural networks are nearly as old as software itself. The original Pitts-McCulloch paper was published in 1943. Active use of them has certainly been ongoing longer than that blog author has been alive.
- tree_of_item 8y agoAnd yet it's true, since they haven't been used in the way they are now. There was no DeepMind in 1943. Computer science stuff usually takes a few decades to mature.