Page 7 of 14

Re: Python tricks

Posted: July 10th, 2019, 7:27 am
by katastrofa
I learned from the best!
It's not about the quality of the master, it's about the strength of electric shocks.

Let's return to our pythons, as they say, before Cuchulainn gets upset and takes it out on me as usual.

Re: Python tricks

Posted: July 10th, 2019, 8:13 am
by Cuchulainn
If you expect every language to work like C#, why not stick to C#?

Python is different from C# which is different from JavaScript which is different from C which is different from VBA which is...

Let 1,000 languages bloom!
Oh dear boy! 
You missed the point.
What is your point? (intercultural differences?)
No two languages are ever sufficiently similar to be considered as representing the same social reality. The worlds in which different societies live are distinct worlds, not merely the same world with different labels attached
Edward Sapir
  • The strong version says that language determines thought and that linguistic categories limit and determine cognitive categories.
  • The weak version says that linguistic categories and usage only influence thought and decisions.

Re: Python tricks

Posted: July 10th, 2019, 8:46 am
by Cuchulainn
I learned from the best!
It's not about the quality of the master, it's about the strength of electric shocks.

Let's return to our pythons, as they say, before Cuchulainn gets upset and takes it out on me as usual.
Image

Re: Python tricks

Posted: July 10th, 2019, 8:47 am
by katastrofa
World is big - what different persons see may not even overlap. "What appears to us, what we experience and what we are aware of is a function of language we use."

Re: Python tricks

Posted: July 10th, 2019, 12:33 pm
by Cuchulainn
A nice project it to rewrite the 50-year old Fortran libraries LAPACK, QUADPACK etc. in native Python.

Re: Python tricks

Posted: July 10th, 2019, 12:44 pm
by ISayMoo
That's not what Python was meant for. You're far better off calling those libraries from Python, passing them Numpy arrays as argument to chew over.

Re: Python tricks

Posted: July 10th, 2019, 12:44 pm
by ISayMoo
World is big - what different persons see may not even overlap. "What appears to us, what we experience and what we are aware of is a function of language we use."
What if one does not use any language?

Re: Python tricks

Posted: July 10th, 2019, 1:00 pm
by Cuchulainn
I think that it is good that tuples in Python (and C#) are immutable. Not so in C++ .. try (un)packing a tuple 500 X 1000'000 times.

Re: Python tricks

Posted: July 10th, 2019, 1:02 pm
by Cuchulainn
That's not what Python was meant for. You're far better off calling those libraries from Python, passing them Numpy arrays as argument to chew over.
OK, so why is is bad to call Boost rb trees from Python? An extra layer of indirection?

Re: Python tricks

Posted: July 10th, 2019, 1:09 pm
by tagoma
[...]
Note to the experts here dissing Python: unlike some of you, I actually make a living coding in Python ;-) and not because I don't know C++ either. I can use both (and more), depending on what needs to be done.
Python hacking, C++ hacking, ... p-hacking? ;-)
I'm using Python too (for initial data analysis). It's just as buggy as Matlab.
Can you please be more specific about the Python language defects you face?

Re: Python tricks

Posted: July 10th, 2019, 1:42 pm
by katastrofa
World is big - what different persons see may not even overlap. "What appears to us, what we experience and what we are aware of is a function of language we use."
What if one does not use any language?
Nothing, I guess. One has some subjective experience of the (realistic or not) world. Maybe similar minds experience it similarly?

"Can you please be more specific about the Python language defects you face?"
Panda licks.

Re: Python tricks

Posted: July 10th, 2019, 2:17 pm
by FaridMoussaoui
Python itself is written in C. The compilation on Linux is seamless (e.g clone the repo, ./configure ; make ; make install).

On the other side, Cshit is not a universal language (only available for windowsers).

Re: Python tricks

Posted: July 10th, 2019, 4:33 pm
by ISayMoo
That's not what Python was meant for. You're far better off calling those libraries from Python, passing them Numpy arrays as argument to chew over.
OK, so why is is bad to call Boost rb trees from Python? An extra layer of indirection?
Who said it's bad?

Re: Python tricks

Posted: July 10th, 2019, 4:44 pm
by ISayMoo
World is big - what different persons see may not even overlap. "What appears to us, what we experience and what we are aware of is a function of language we use."
What if one does not use any language?
Nothing, I guess. One has some subjective experience of the (realistic or not) world. Maybe similar minds experience it similarly?
"Of course, what I felt then as an ape I can represent now only in human terms, and therefore I misrepresent it."

Re: Python tricks

Posted: July 11th, 2019, 4:49 am
by katastrofa
I'm reading that Kafka and Spiro were peers.