Earlier quoted context omitted.
I recently found and fixed a 5 1/2 year old bug that was caused by a caller assuming that an integer parameter is an absolute quantity, but the function treated it as a delta. (The really funny thing is that the commit which introduced this bug introduced both that function and the incorrect call to it; and then, for the next 5 1/2 years after that, subsequent new uses of the function elsewhere in the code all correc…
This is why we should really push for automatic logic checkers and proper support of programming by contract.
Yes, Python is Slow, and I Don’t Care
181–190 of 206 posts
Re: Yes, Python is Slow, and I Don’t Care
#182Yes, time to market is important. However, you don't need to compromise convenience of development for the sake of performance. If you twist your Python code to get performance it takes time. If you need performance, and like the syntax of Python then you should take a look at Nim [1]. With Nim I develop as quickly as in Python while I get the performance of C. [1] https://nim-lang.org I believe application performan…
Nim seems really good, but does it have a decent REPL these days? I'm not sure if it would be as convenient with a statically typed language, but I like the incremental development approach so much that I only use C if I absolutely have to.
Re: Yes, Python is Slow, and I Don’t Care
#183Earlier quoted context omitted.
"the idea that dynamic languages are more productive than static languages are laughable." -- being statically typed or dynamically typed comes with its own set of tradeoffs and what a person is more productive in is a highly subjective matter. Lispers are more productive in Lisp than Haskell and vice versa. "Statically type languages prevent a lot of bugs and allow for a lot of automated provably correct refactoring…
Clojure is trying to do that with Clojure.spec and specifications being checked at runtime can get you closer to things you could have automatically proved correct only with languages with dependent types, nothing against statically typed languages but I feel that your sweeping generalizations hurt the point you are trying to make. "Checking at runtime* is exactly the problem. Why would checking at runtime be more re…
Re: Yes, Python is Slow, and I Don’t Care
#184Earlier quoted context omitted.
It's still expensive on client machines because most of the persons in the world are NOT software engineers with 6-digit salaries. They run cheap computers with HDDs and Windows polluted by a ton of 3rd party crap. They don't know how to fix it and silently suffer. I was cleaning a local vet clinic's devices recently – they were literally switching between two computers to not wait 5 minutes of non-responsiveness bec…
A lot of businesses these days prefer web apps. It's not hard to understand why - all the hassle of system maintenance falls to the people who host the app and can afford to know their stuff. If your Windows PC is suffering from rot just replace it with a Chromebook.
Sorry, but that's how being in a bubble looks like.
Re: Yes, Python is Slow, and I Don’t Care
#185Earlier quoted context omitted.
> Yes, it can! Ok, how? Other than an Ada example, or dependently-typed languages that aren't use in production, can you offer an example?
Perl 6, for instance, supports subset types such as: subset Positive of Int where * > -1 OTOH, while some Perl 6 supports some static type checking, subsets of this kind seem to support only dynamic, not static, enforcement.
Re: Yes, Python is Slow, and I Don’t Care
#186Earlier quoted context omitted.
A static type system doesn't protect you from choosing the wrong abstraction, and all the bugs that result from it. But if used properly I think it does help.
How? I don't think I've ever gotten a type I wasn't expecting in any of my python code. It's just not a problem for me. That is, past the first time I run it. I've been known to pass something an x when it wanted a y, but that's a "fail early, fail loud" bug and not an actual problem.
Re: Yes, Python is Slow, and I Don’t Care
#187Earlier quoted context omitted.
> "Python is inherently harder to optimize than JS since it has " Python is not a very dynamic language in the sense that you actually can't change a lot of stuff (and a number of the things you can change just segfault CPython). I think JS is more dynamic, for example. Or Ruby.
These are not my arguments, mind you; I don't know enough to make them. You've piqued my interest, though: can you give me an example of those things that you can't change or that break CPython?
>>> import gc
>>> 'foo'.lower()
>>> gc.get_referents(str.__dict__)[0]['lower'] = str.upper
>>> 'foo'.lower()
segmentation fault (core dumped) python
(That's the method lookup cache)A talk in this direction is https://www.youtube.com/watch?v=qCGofLIzX6g
Re: Yes, Python is Slow, and I Don’t Care
#188Earlier quoted context omitted.
A lot of businesses these days prefer web apps. It's not hard to understand why - all the hassle of system maintenance falls to the people who host the app and can afford to know their stuff. If your Windows PC is suffering from rot just replace it with a Chromebook.
"Just get money for a new device out of thin air and just replace all your paid or even cracked Windows software with subscription-based alternatives that will not work without Internet. Ah, also just relearn all your workflows." Sorry, but that's how being in a bubble looks like.
Devices are often replaced on a schedule anyway, especially if they're leased.
Re: Yes, Python is Slow, and I Don’t Care
#189Earlier quoted context omitted.
I recently found and fixed a 5 1/2 year old bug that was caused by a caller assuming that an integer parameter is an absolute quantity, but the function treated it as a delta. (The really funny thing is that the commit which introduced this bug introduced both that function and the incorrect call to it; and then, for the next 5 1/2 years after that, subsequent new uses of the function elsewhere in the code all correc…
This is why we should really push for automatic logic checkers and proper support of programming by contract.
Re: Yes, Python is Slow, and I Don’t Care
#190Earlier quoted context omitted.
"Just get money for a new device out of thin air and just replace all your paid or even cracked Windows software with subscription-based alternatives that will not work without Internet. Ah, also just relearn all your workflows." Sorry, but that's how being in a bubble looks like.
I wasn't suggesting that businesses were anxious to replace things that already work, I'm suggesting that as they acquire new software it's more likely to be web-based. Devices are often replaced on a schedule anyway, especially if they're leased.
You are speaking as a citizen of a rich country where devices are relatively cheap and stable Internet is available everywhere.