Re:A lot of complex “scalable” systems can be done with a si...
by kitsuac on Sunday December 29, 2019 @02:00PM
(#21907700)
I've been programming C++ and assembly for 23 years. Few years ago I became a huge fan of Python. In my opinion Python is amazingly well suited for rapid first revision and can then be swapped out for C++ / asm.
[ Parent
| on HN ]
Re:A lot of complex “scalable” systems can be done with a si...
by davidcbc on Sunday December 29, 2019 @08:30PM
(#21910011)
This is fine as long as you can convince management to spend the money to rewrite your software. That's usually a hard sell though. In my experience this plan usually ends up with a python monstrosity that everyone hates but is forced to deal with forever.
Re:A lot of complex “scalable” systems can be done with a si...
by kitsuac on Monday December 30, 2019 @12:03AM
(#21910934)
I'm speaking in terms of the reality of what is effective in development. Not in terms of what management at particular companies will approve.
Re:A lot of complex “scalable” systems can be done with a si...
by j88439h84 on Sunday December 29, 2019 @11:34PM
(#21910838)
Type hints and dataclasses are a game-changer for Python. Much easier to reason about programs that use them.
Re:A lot of complex “scalable” systems can be done with a si...
by adev_ on Monday December 30, 2019 @03:35AM
(#21911747)
> Type hints and dataclasses are a game-changer for Python. Much easier to reason about programs that use them.
Type hints made large python codebase switch from "Any change will blow up to my face" to "I can touch it carefully with protection gloves".
Through, it is still pretty easy to fool mypy and very far of the compile time guarantees that provide most static typed AOT compiled language.
And unfortunately, it also does not bring any advantage in term of performance.
Re:A lot of complex “scalable” systems can be done with a si...
by insulanian on Monday December 30, 2019 @03:48AM
(#21911816)
> Type hints...
At that point it makes more sense to use a statically typed language.
Re:A lot of complex “scalable” systems can be done with a si...
by Fazel94 on Wednesday January 01, 2020 @02:36AM
(#21927105)
You just have to write a tiny part that uses a lot of CPU in C++/asm or anything else.
Much of code's performance isn't really reflected on to the scalability since mostly a tiny part of code is really ran a lot of time, and the other parts are just glues or management stuff or rarely used(not used in scale) features.
Re:A lot of complex “scalable” systems can be done with a si...
by kitsuac on Saturday January 04, 2020 @01:40AM
(#21953309)
It depends. You aren't going to make a very fast modern codec encoder or decoder using Python. The hotspot ends up being the vast majority of the process. That management/glue layer becomes very thin, amounting only to feeding in the bitstream and reading back the raw video frames.