3 ms·
Speaking of LMS, the Tensorflow for Swift project is doing graph program extraction from LLVM for the same purpose. Super neat stuff. https://github.com/tensor
by akhilcacharya 8y ago
Speaking of LMS, the Tensorflow for Swift project is doing graph program extraction from LLVM for the same purpose. Super neat stuff.
https://github.com/tensorflow/swift/blob/master/docs/GraphProgramExtraction.md https://github.com/tensorflow/swift/blob/master/docs/GraphPr...
- chubot 8y agoYes I think it's interesting, here's me trying to understand it better: https://www.reddit.com/r/ProgrammingLanguages/comments/9y4ehk/2018_llvm_dev_meeting_hong_lattner_graph_program/ https://www.reddit.com/r/ProgrammingLanguages/comments/9y4eh... At first I was a little critical but I get it a little more now. Of course the real test is trying it, but I'm not working in that area at the moment, though I've used TF before. What I find interesting is the recurring theme of two languages -- in Swift's case they say you can use a "static subset". I think that means all the imperative control flow, and then static dispatch (as in templates), but NOT dynamic dispatch (as in OOP). So in this example you have Python/LLVM, then there's Lua/Terra, Python/RPython, Python/TensorFlow, or Swift/static Swift, etc. Except in the latter case I guess it's all mixed together and you don't explicitly have a graph building stage.