[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Python is overrated

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 37
Thread images: 5

File: odqxm2nkmjd.jpg (57KB, 1600x900px) Image search: [Google]
odqxm2nkmjd.jpg
57KB, 1600x900px
C gets a lot of things wrong, but braces are better than indentation for blocks.

Javascript gets a lot of things wrong, but prototypes are better than classes.

Python is slow. It became popular for data processing because it was a meme language at the right time and then NumPy was written. However, NumPy could have been written for many other languages.

Python isn't a bad language, but it is more popular than it deserves to be.
>>
>python is not good!
t.mathlet
>>
>>61297300
Nice blog, faggot. (^:
>>
>>61297562
>python
>for math
>not matlab or haskell
retard
>>
>>61298791
>matlab
Absolutely disgusting
>>
>>61297300
>However, NumPy could have been written for many other languages.
You can say this about most programs/libraries.
>>
I'm enjoying Python so far. But I'm a filthy casual and don't really know much about programming.
>>
>>61298885
it's actually an argument in favor of python, since you're going to be calling the same c and fortran code no matter the language
>>
>>61297300
I still think R is better for data.
Statisticians mostly prototype in Python/R, anything serious is optimized in C/C++ anyway.
>>
>>61297300
>Python is slow

Then use C for the shit you need done fast. That being said, nothing most of write needs to be that fast, unless you're working on massive datasets
>>
>>61297300
>Python isn't a bad language

Agreed. Python has a lot of abstractions that are workarounds for Guido's poor language design. 90% of the features Python has added in the last decade can be written as simple libraries in better designed languages (Smalltalk, Scala, even Ruby etc.). Even Javascript with a decent linter is better.
>>
>>61297300
Fuck Python and fuck its numale cuck SJW maintainer Guido van Rossum. Might as well be using Rust.
>>
File: girlslaughing.jpg (43KB, 600x363px) Image search: [Google]
girlslaughing.jpg
43KB, 600x363px
>>61298791
>matlab
>>
>>61299017
>90% of the features Python has added in the last decade can be written as simple libraries in better designed languages (Smalltalk, Scala, even Ruby etc.)
Examples?
>>
>>61297300
Literally every single major deep learning libraries has a Python interface. Python is a good prototyping language for research.
>>
>>61297300
>Python isn't a bad language, but it is more popular than it deserves to be
true, and even MIT professors teaching for 30+ years would agree for many reasons
one of those reasons is that python is too weakly typed. Meaning, you can write a string, hand it over to an operator that you told it was an integer, and it handles the string as if it were an integer (because it converts both integers and strings into ASCII and ASCII into hex), which can actually fuck your entire script up way down the road and make it a pain in the ass to account for where the fault was.
Ruby programmers for example have to deal with this same issue, but it's even worse with Ruby obviously, since it abstracts everything away and is even more weakly typed than Python.
Strongly typed languages with strict syntax are more work to learn and implement, but also a lot easier to debug and optimize.
>>
>>61297300
>braces are better than indentation for blocks
The only way this could be true is if you don't indent your code properly or enforce a consistent indentation style for your project. In other words, only if you are a piece of shit.

>prototypes are better than classes

Haha no. Among other things, you lose types and more complex delegation methods like multiple inheritance.

>Python is slow.
So what? You're either blocked on IO or in compiled C modules. Complaining about Python's speed is like wasting time trying to optimize something that will save 0.01% of runtime.

>However, NumPy could have been written for many other languages.
Except it wasn't because Python was less frustrating to use than those other languages.
>>
Is there a good general purpose scripting language with a c-like syntax.

I know of javascript but that's more browser oriented and php being more web oriented.
>>
>>61300106
>Is there a good general purpose scripting language with a c-like syntax.
python is like C in many ways
>>
>>61300106
python...
>>
>>61300106
python is literally that
>>
>>61297300
>easy to write
>community does 99% of the work through libraries
Meme or not, Python has tons of community development behind its libraries have created a very user friendly language. I like being able to shit out a Python script that does what I need it to do using somebody else's work.
C looks better (I think) and it is faster/lighter.
>>
C is worth learning academically in order to demonstrate proficiency in the fundamentals of all programming languages, but at this point in history we have better tools to do the same job no matter what that job is.
>>
>>61297300
>Python is slow
Amdahl's Law, faggot.
It's fast for getting your work done. Where's pip for C?

>>61300093
>lose types
C++ was once a preprocessor. I don't see where the problem with TypeScript is.

>>61300106
>hasn't heard of Node.js
You so basic.
>>
File: 1496867588458.gif (2MB, 460x259px) Image search: [Google]
1496867588458.gif
2MB, 460x259px
>>61298791

Why not both
>>
>>61297300
>not using pypy
>think that python is just useful for data science while there are penetration hacking and web development
Alright faggot.
>>
>>61300142
I don't think so. For low level things like programming System Calls, Operating Systems or Embedded Platforms, C is and will the best option.
>>
>61297562
>python is good!
t.mathlete
>>
>>61300093
>Python is slow.
>So what? You're either blocked on IO
Not everything is webdev
>>
>>61301767
you don't have to copypaste the post number you know, you can just click it
>>
>>61300114
>>61300122
python syntactically is nothing like c and you deserve to be flamed for implying it

python's syntax is lazy and ugly.

Scala does the same job as Python a lot better and a lot more elegantly, way less prone to errors or type fuckery. I honestly hope that someone re-writes Tensorflow's API in Scala or R so Python fades away into obscurity because it's honestly a piece of shit.

>>61300172
Scala has it in SBT(or Maven), and you don't have to fuck around with virtualenvs to get sandboxed dependencies/requirements. :^)
>>
File: 3.jpg (47KB, 579x553px) Image search: [Google]
3.jpg
47KB, 579x553px
python is good enough for most things single person team would need

what is bad is fact that it is not compiled and discovering dumb errors during runtime is nightmare
>>
>>61302643
But if you ever scale past the point of a single person team you'll realise python was a horrible, horrible mistake and then spend two months refactoring in a good langauage
>>
File: WRONG.gif (2MB, 466x480px) Image search: [Google]
WRONG.gif
2MB, 466x480px
>>61298856
>>
>>61297300
>using prototypes or classes
>using any OO concepts
plz kill yourself
>>
>>61297300

 
10.times { puts 'Ruby has braces!' }

###

a = Object.new
Prototype_of_a = a.class

class Prototype_of_a
def message
'Ruby classes are objects, like Prototypes'
end
end

puts a.message
puts Prototype_of_a.message

###

require 'inline'

class InlineTest
inline do |builder|
builder.include '<math.h>'
builder.c '
double inline_pow(int a, int n) {
puts("The raw power of C unleashed:");
return pow(a, n);
}'
end
end

puts InlineTest.new.inline_pow(132, 53)



Ruby is a great language, but it is less popular than it deserves to be.
>>
>>61297300
is virtualenv must have in python job today?
Thread posts: 37
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.