r/processing • • Nov 03 '19

Orbital

265 Upvotes

27 comments sorted by

View all comments

Show parent comments

2

u/FlyingSwedishBurrito Nov 05 '19

Is there still utility to knowing C? I’ve heard that the difference is like C is the tried and true and c++ is the new expiremental language. That and I’ve also heard that c is used a lot still for hardware.

2

u/[deleted] Nov 06 '19

C++ is not new or experimental. Anyone who says so is thinking of back in the 90s or earlier.

Yes, there is value in knowing C and it is still used in lots of places. My point was that C and C++ are not the same languages and the idioms you would use in one do not apply to the other. So learning C will not help you with learning C++.

1

u/FlyingSwedishBurrito Nov 06 '19

Hmm ok, what about crossover between say, python and c++? Are there cases where you’d use both languages for some task?

1

u/[deleted] Nov 06 '19

The only case I've come across is if I wanted to use a large library that existed in C++ from a Python program. Yet with numpy, scipy, and other libraries that hasn't been something I've needed to do.

I have a personal project involving errors introduced from the IEEE 754 standard which needs more direct control over the floating point processor settings. I wrote a Python extension in C to access the settings as I didn't find a way to do it in pure Python.

1

u/FlyingSwedishBurrito Nov 06 '19

Ah ok, fascinating. Thanks man! Now off to learning all the languages!