4 ms·
* Python requires less code * Does speed and safety matter in every application (probably not) * Developer efficiency matters ———- Why can’t have everything
by melling 2y ago
* Python requires less code
* Does speed and safety matter in every application (probably not)
* Developer efficiency matters
———-
Why can’t have everything in a safe and fast language?
- greener_grass 2y agoI think we can have everything, up to the limit of garbage collection. Rust and C++ are tricky (in very different ways) due to the lack of GC. However, there are many languages that are as productive as Python (maybe more so, if you factor in types and functional programming) yet execute 10x faster.
- whytevuhuni 2y agoAs productive, yes. I would say Perl is a very productive language. Would they be just as readable, though? Especially for newcomers that are not yet that familiar with programming?
- qsort 2y agoBecause those are conflicting requirements. Let's make an example, you want to multiply two n-by-n matrices, A and B. Easy enough. Wait, is either A or B Hermitian? If so we can do better. Is either of them symmetric? Is either of them triangular? Where do you want to allocate them? Do you want to overwrite either of them or you want a new matrix? If so, how are you going to allocate that memory? Would you like to fuse-multiply-add with your order? Python's answer is "shut up nerd, just A@B". Necessarily you are going to lose some control over the execution. Different languages take different tradeoffs on the "simple specification vs. detailed control over execution" scale.