Hacker GitHub

← All repos

tensorflow/swift

View on GitHub ↗ ★ 6,114 Jupyter Notebook archived

Swift for TensorFlow

59 mentions on Hacker News by 52 people: 9 stories, 50 comments · first 2018-04-26 · latest 2026-03-26

Mentions per year 59 mentions · busiest year 2019 (28)
20082026
  1. True. Google was even thinking of switching TensorFlow from Python to Swift. https://github.com/tensorflow/swift
    comment by vmsp · 2026-03-26 · in Swift 6.3
  2. Even funnier: https://github.com/tensorflow/swift/blob/main/docs/WhySwiftF... > Julia: Julia is another great language with an open and active community. They are currently investing in machine learning techniques, and even have good…
    comment by amval · 2025-06-23 · in Python can run Mojo now
  3. …its overhead) to solve these problems. The tooling nerd in me thinks this stuff is fascinating. https://github.com/tensorflow/swift
  4. …S4TF [3] [1] https://www.fast.ai/2019/03/06/fastai-swift/ [2] https://github.com/fastai/swiftai [3] https://github.com/tensorflow/swift
    comment by cbkeller · 2021-07-27 · in FastAI.jl: FastAI for Julia
  5. to be fair, Swift for Tensorflow was dropped (Feb 21) way after this article was written (Aug 20) https://github.com/tensorflow/swift
    comment by elpakal · 2021-04-25 · in Swift on the Server (2020)
  6. btw, swift for tensorflow have been discontinued https://github.com/tensorflow/swift
  7. …well be right that Scala would be a good / the best choice if they started the project today. [0]: https://github.com/tensorflow/swift/blob/main/docs/WhySwiftF...
    comment by sanderjd · 2021-02-13 · in Swift for TensorFlow Shuts Down
  8. …TensorFlow C++ code equivalents of their Python API. From the "WhySwiftForTensorFlow.md" document ( https://github.com/tensorflow/swift/blob/main/docs/WhySwiftF... ): .. static types: * can catch bugs at compile time instead of runtime.…
    comment by swagonomixxx · 2021-02-12 · in Swift for TensorFlow Shuts Down
  9. Here you are: https://github.com/tensorflow/swift/blob/main/docs/WhySwiftF...
    comment by _Wintermute · 2021-02-12 · in Swift for TensorFlow Shuts Down
  10. …on what happened? [1] - https://docs.google.com/document/d/1Fm56p5rV1t2Euh6WLtBFKGqI... [2] - https://github.com/tensorflow/swift/commit/1b1381ccb89a342ba...
    comment by joeblau · 2021-02-12 · in Swift for TensorFlow Shuts Down
  11. …will find Julia to be a welcome improvement on Python's pain points without Swift's baggage. [0] https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  12. Related: Why Swift for TensorFlow: https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  13. …is not. [to downvoters: if I wrote inaccuracies, please correct me.] [1] https://github.com/tensorflow/swift/blob/master/docs/WhySwif... [2] https://en.wikipedia.org/wiki/Tensor_Processing_Unit [3] https://docs.swift.org/swift-book
  14. …Swift for TensorFlow, would be nice if you could handle your code locally on a Windows machine: https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  15. …objects and functions as if they were native Swift objects (minus strong typing, of course). See https://github.com/tensorflow/swift/blob/master/docs/PythonI...
    comment by NobodyNada · 2020-04-18 · in Writing Python inside Rust
  16. Sounds great! I just looked at https://github.com/tensorflow/swift - where can I find a convolution operation written in Swift?
  17. …TensorFlow." [1] (I can't comment on that because I don't know Rust nor am I a data scientist!) [1] https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  18. …rely on heuristic-based static analysis techniques that work in some cases but not others." [1] https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  19. …Python along with good readability and already trying to provide interface for Tensorflow [1]. [1] https://github.com/tensorflow/swift
  20. Nitpick: Swift for TensorFlow currently is a fork of Swift, not a library implemented in Swift. https://github.com/tensorflow/swift : ”Compiler and standard library development happens on the tensorflow branch of the apple/swift…
    comment by Someone · 2020-01-21 · in Seq – A Language for Bioinformatics
  21. …both Julia and Rust, among others, before deciding to move forward with Swift for Tensorflow. https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  22. not true https://github.com/tensorflow/swift/blob/master/Installation...
    comment by throwlaplace · 2019-12-02 · in Taking ML to production with Rust
  23. You can read why Tensorflow team chose Swift here[1]. [1] https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by Abishek_Muthian · 2019-12-02 · in Taking ML to production with Rust
  24. …& Kotlin...). One of them is Julia! - https://github.com/JuliaPy/PyCall.jl . The other is Swift - https://github.com/tensorflow/swift/blob/master/docs/PythonI... .
    comment by nnq · 2019-11-26 · in Julia v1.3
  25. https://github.com/tensorflow/swift/blob/master/docs/WhySwif... . Maybe this one
    comment by tonynguyen1 · 2019-11-13 · in Differentiable Programming Manifesto
  26. …they chose Swift vs. Go or another similar language[2]. [1] https://www.tensorflow.org/swift [2] https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by alexhutcheson · 2019-11-08 · in Go Turns 10
  27. …For example, the Tensorflow project is working on building a next generation library with Swift - https://github.com/tensorflow/swift You can read why here - https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  28. Relatedly, check out https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  29. Is this somehow similar to the new Swift Automatic Differentiation feature? https://github.com/tensorflow/swift/blob/master/docs/Automat...
  30. As written above, the cut is this evaluation -- https://github.com/tensorflow/swift/commit/028f245ef3ca735b1... ... written by Chris Lattner when he joined Google Brain and found Python lacking as a language for doing ML work. He evaluated…
  31. Yes, that evaluation was committed by Chris Lattner -- see https://github.com/tensorflow/swift/commit/028f245ef3ca735b1... Don't mistake the evaluation of an entire company with one person's opinion. In general, large companies and…
  32. Alan’s words, not mine. Here’s the evaluation we are discussing: https://github.com/tensorflow/swift/blob/master/docs/WhySwif... HN comments: https://news.ycombinator.com/item?id=19129641
  33. …Julia makes the cut, we could just as easily make the argument that Rust and C++ made the cut. [0] https://github.com/tensorflow/swift/blob/master/docs/WhySwif... w
  34. …Python ecosystem (including np and pd) by using the Python interop: let np = Python.import(“numpy”) https://github.com/tensorflow/swift/blob/master/docs/PythonI...
    comment by yeldarb · 2019-05-11 · in Swift for Tensorflow 0.3.1
  35. They explain what other languages they looked at: https://github.com/tensorflow/swift/blob/master/docs/WhySwif... Presumably Kotlin wouldn't work for the same reasons they excluded Scala and Java and C#. (I think that either of C++ or…
    comment by cwyers · 2019-05-11 · in Swift for Tensorflow 0.3.1
  36. …and infrastructure to host the Graph Program Extraction techniques `they` rely on"[1]. [1]: https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by Abishek_Muthian · 2019-04-22 · in Embracing Swift for Deep Learning
  37. There is a proper explanation of why Swift makes sense for TensorFlow at https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by amimetic · 2019-04-21 · in Embracing Swift for Deep Learning
  38. Jeremy Howard and Chris Lattner are starting to push Swift for Tensorflow: - https://www.github.com/tensorflow/swift - https://www.fast.ai/2019/03/06/fastai-swift/
    comment by sooheon · 2019-03-22 · in Swift UTF-8 String
  39. Julia is probably the next best bet, according to the Swift for Tensorflow team - https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
  40. This is the reason why swift for tensorflow initiative was started by Google - https://github.com/tensorflow/swift/blob/master/README.md Facebook will obviously go its our own way. Given their investments in the JS ecosystem, im hoping…
  41. …overview of the decision making process (including pros and cons compared to other options) here: https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by favorited · 2019-02-19 · in Chris Lattner on the Origins of Swift
  42. …(or any other python libraries installed on your system), using the python interop feature ( https://github.com/tensorflow/swift/blob/master/docs/PythonI... )! https://github.com/google/swift-jupyter#rich-output has an example with…
    comment by marcrasi · 2019-02-10 · in Why Swift for TensorFlow?
  43. …everything . It would be nice if Julia offered an alternative backend for rapid development. [1]: https://github.com/tensorflow/swift/issues/3#issuecomment-38... [2]: https://github.com/tensorflow/swift/issues/3#issuecomment-38... [3]:…
    comment by coder543 · 2019-02-10 · in Why Swift for TensorFlow?
  44. …Swift project is doing graph program extraction from LLVM for the same purpose. Super neat stuff. https://github.com/tensorflow/swift/blob/master/docs/GraphPr...
  45. …e.g., to automatically rewrite it for a hardware accelerator with guaranteed correct semantics: https://github.com/tensorflow/swift/blob/master/docs/DesignO... This is obviously possible in Python as well (e.g., see Numba) but is clearly…
    comment by shoyer · 2018-09-21 · in Deep learning experiments in OCaml
  46. isn't work in progress ? https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by SalimoS · 2018-06-28 · in Keras vs PyTorch
  47. …you 95% of the way, but that the final 5% of performance and portability simply will not be there. https://github.com/tensorflow/swift/blob/master/docs/DesignO...
  48. …Python interoperability is incredible. You can use numpy from swift..As well as load pickle files ! https://github.com/tensorflow/swift/blob/master/docs/DesignO...
    comment by sandGorgon · 2018-04-27 · in Swift for TensorFlow Design Overview
  49. Here's some context: https://github.com/tensorflow/swift/blob/master/docs/WhySwif... Some benefits vs Python are static types (catching more errors at compile-time vs hours into a training run), no GIL, don't have to drop to C++ for higher…
    comment by favorited · 2018-04-27 · in Swift for TensorFlow Design Overview
  50. Interesting background here: https://github.com/tensorflow/swift/blob/master/docs/WhySwif...
    comment by simonbyrne · 2018-04-26 · in Introducing Swift for TensorFlow