SERVING THE QUANTITATIVE FINANCE COMMUNITY

  • 1
  • 4
  • 5
  • 6
  • 7
  • 8
  • 16
 
User avatar
ISayMoo
Posts: 2143
Joined: September 30th, 2015, 8:30 pm

Re: Python tricks

July 9th, 2019, 4:38 pm

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!
 
User avatar
katastrofa
Posts: 8382
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Python tricks

July 9th, 2019, 4:53 pm

Python is a scripting language and C# is a programming language, ISayMao :-P
 
User avatar
Cuchulainn
Posts: 60256
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Python tricks

July 9th, 2019, 5:03 pm

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.
 
User avatar
Cuchulainn
Posts: 60256
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Python tricks

July 9th, 2019, 5:45 pm


Let 1,000 languages bloom!
Dominic Connor calls them 'quiche languages'.
Any language is OK when mucking around with throwaway software prototypes.
Research and production have little in common. Compare 60 m sprinters and marathon runners.
 
User avatar
Cuchulainn
Posts: 60256
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Python tricks

July 9th, 2019, 8:35 pm

Image
 
User avatar
katastrofa
Posts: 8382
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Python tricks

July 9th, 2019, 8:40 pm

Image
 
User avatar
Cuchulainn
Posts: 60256
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Python tricks

July 9th, 2019, 8:47 pm

Our cats hunt at night and bring dead, headless field mice to our bedroom. But they have scraps with foxes here in Cooley.
 
User avatar
ISayMoo
Posts: 2143
Joined: September 30th, 2015, 8:30 pm

Re: Python tricks

July 9th, 2019, 9:13 pm


Let 1,000 languages bloom!
Dominic Connor calls them 'quiche languages'.
We haven't seen him around for a while, have we?
Any language is OK when mucking around with throwaway software prototypes.
Research and production have little in common. Compare 60 m sprinters and marathon runners.
Right. So because you had problems with writing a red-black tree in Python, it's clearly useless as a programming language...

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.

Image
Last edited by ISayMoo on July 9th, 2019, 9:23 pm, edited 1 time in total.
 
User avatar
ISayMoo
Posts: 2143
Joined: September 30th, 2015, 8:30 pm

Re: Python tricks

July 9th, 2019, 9:14 pm

Image
Fully agree. That's why your attempt to copy & paste Boost template code into Python interpreter didn't work.
 
User avatar
tagoma
Topic Author
Posts: 18265
Joined: February 21st, 2010, 12:58 pm

Re: Python tricks

July 9th, 2019, 9:21 pm

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?)
 
User avatar
Cuchulainn
Posts: 60256
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Python tricks

July 9th, 2019, 9:25 pm

So because you had problems with writing a red-black tree in Python, 

I wouldn't dream of it; a round of croquet is better. 
rb trees is for CS trained folk.
 
User avatar
katastrofa
Posts: 8382
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Python tricks

July 9th, 2019, 9:45 pm

[...]
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.
 
User avatar
ISayMoo
Posts: 2143
Joined: September 30th, 2015, 8:30 pm

Re: Python tricks

July 9th, 2019, 10:10 pm

I'm part of the "Hackers against p-hacking" collective.
 
User avatar
katastrofa
Posts: 8382
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Python tricks

July 9th, 2019, 10:27 pm

You've been trained by statistics ninja
Image

One thing that annoys me: afaik, it's C♯ (sharp) not C# (hash).

Cuchulainn:

Let 1,000 languages bloom!
Dominic Connor calls them 'quiche languages'.
My excellent healthy vegan fennel and broccoli quiche with cashew béchamel makes you LISP like a child.
 
User avatar
ISayMoo
Posts: 2143
Joined: September 30th, 2015, 8:30 pm

Re: Python tricks

July 10th, 2019, 6:25 am

I learned from the best!
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On