3 ms·
> Deep learning may need a new programming language that’s more flexible and easier to work with than Python Whoever has imagination more rich than mine, how c
by qwerty456127 8y ago
> Deep learning may need a new programming language that’s more flexible and easier to work with than Python
Whoever has imagination more rich than mine, how can a programming language can be easier than Python? What's difficult in it?
The only thing I find inconvenient in Python is you can't simply put every function (including every member functions of a class - that's what I would love to do) in a separate file without having to import every one of them manually.
- 4233456 8y agoRead it again. He/She did not imply that Python is hard. I do believe that he/she meant that they need way higher levels of abstraction than Python. Let's say Python is current C, they want something X that's like Ruby in compare to current C.
- qwerty456127 8y agoIt's just hard for me to imagine a higher level of abstraction. That's why I invite whoever has imagination more rich than mine to suggest ideas.
- mehh 8y agoHave a look at Prolog, that might expand your mind a little.
- tjpnz 8y ago>The only thing I find inconvenient in Python is you can't simply put every function (including every member functions of a class - that's what I would love to do) into separate file without having to import every one of them manually. That strikes me as an anti-pattern although you could mimic this behaviour by exposing each one at the package level. Performance is likely to be terrible if you're working on anything sufficiently large.
- klmr 8y agoNot generally easier but easier to express specific, complex concepts. Tensorflow does alright but it’s certainly not beyond improving.
- scriptkiddy 8y ago> The only thing I find inconvenient in Python is you can't simply put every function (including every member functions of a class - that's what I would love to do) in a separate file without having to import every one of them manually. When you create a .py file, the CPython interpreter treats it as a "module". You can basically treat a Python "module" as if it were a class because the global variables are automatically scoped unless you import them explicitly. You could actually write some code that would allow you to instantiate the entire module in the same manner you would instantiate a class. Though, I have no idea where this pattern would be useful.