Re:Deep learning may need a new programming language
by skocznymroczny on Tuesday February 19, 2019 @04:25AM
(#19197717)
You could use D for all three - https://github.com/Netflix/vectorflow
[ Parent
| on HN ]
Re:Deep learning may need a new programming language
by semi-extrinsic on Tuesday February 19, 2019 @04:33AM
(#19197761)
From the examples there, we find e.g. this nugget:
return bigEndianToNative!T((cast(ubyte*)&b)[0..b.sizeof]);
Do you really feel this is a language that scores high on usability? Because it doesn't look like it.
Re:Deep learning may need a new programming language
by skocznymroczny on Tuesday February 19, 2019 @05:56AM
(#19198077)
It's basically a reinterpret_cast, it's dirty and should look dirty, even if it's necessary in this case.
Re:Deep learning may need a new programming language
by semi-extrinsic on Wednesday February 20, 2019 @03:09AM
(#19206420)
Why is it necessary to do something that looks dirty? To me, "usability" means I shouldn't have to care about endianness, pointers, all the superfluous mental overhead of C et al. If you program in Python, at best you need to care about whether something is a float or int (or string if read from file). In recent Python versions we no longer have to care if a string is unicode or not (they're all unicode now); that is precisely progress in usability.