one of the best examples I know about stable vs unstable sorts is a list of cities. You might want to sort by country and have each country sorted by city name. You need a stable sort for that (if you do it in two passes, like when sorting columns in Excel by clicking on their header for instance).
@salim4447 ай бұрын
17:46 Have you tried TLA for proving thread safety? or what are you thoughts on mathematical proves if you have tried any
@juvenal12287 ай бұрын
The old intro was well better
@morwar_4 ай бұрын
I wish optimization was seen as a good thing. Going from 1s to 100ms should be encouraged. Going from 100ms to 1ms could be encouraged depending on the kind of software. I don't understand why this topic is seen as a waste of time. Many meetings where nothing was decided could have been an optimization session. In my experience software evolves in "waves" because of the above. You will only notice the improvement when the process is migrated to a new tool, architecture or platform, etc. For example, you mentioned the order of sets or lists. If you require that the collection need to be sorted, in older python versions you would need to implement that. In new python versions that was added to the language. If you update you can get rid of some code and trust the python implementation.