[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]

how did python get so big?

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: 79
Thread images: 13

File: SNEK BTFO.png (7KB, 658x182px) Image search: [Google]
SNEK BTFO.png
7KB, 658x182px
>read in numbers from a file
>print 0 for odd and 1 for even numbers
>results
Literally any scripting language is better than python so how did it get so accepted?
Is it because it's dumbed down so retards and women flocked to it?
>>
Come on, explain this shit python fags
>>
Pypy is way faster than perl
>>
It's because indentation is superior to braces.
>>
File: BIBLE.jpg (40KB, 384x500px) Image search: [Google]
BIBLE.jpg
40KB, 384x500px
>>60449559
yeah but so is Cython but you're cheating there.

Perl is the Master Race for scripting languages. Python is for idiots.

Why is it that every Python programmer I meet doesn't know Perl and says
>hiss boo Perl is SATAN!!!!

But every Perl programmer I met knows Python and has something like this going on
>I do agree Python has advantages over Perl and Perl is not for everyone. But Perl has a place as a fast scripting language that many academics still use.
>>
>>60448992
Why does it take like 6mb of memory just to do that.
>>
>>60449649
I know perl and am currently learning python because my uni uses mostly java/c/c++/python/common lisp

it's pretty neat and i don't have a clear favorite between the two
>>
>>60449649
Agreed. Python programmer are the most pretentious sort I've met too. They always like to shit on Perl.

Python is not a bad lang obvs, but Perl really has a lot going for it too. And I think (to me) Perl is a better lang for Python (if you don't use a specific library for your task)
>>
>>60449559
>python is faster if you don't use the standard implementation
So if you work on a machine that only has the default python available you are SOL hmm?
>>
>>60449649
Thanks admiral anecdote
>>
>>60449740
The list of testcases is pretty exhaustive, how do you not think of that mr. braindead?
>>
>>60449743
Here's my take on it
>Perl
* Quick Scripting (no significant white space, formatting)
* Hash structures (do this is python $hash{$chromosome}{$start}{$end}{$id}=$genotype; and then iterate each genotype while sorting numerically the start and end positions)
* Generally faster than (base) Python
* Great for simple tasks
* Perl -pi -e one-liners
>Python
* Write & Read Lang (opposed to read only perl lang)
* Extensive libraries
* Cython/PyPy/ etc... opportunities to optimize your scripts
* Numpy (That C advantage)
* Pandas/Matplotlib (for data science if you're into that)

Real H@X0R5 should know both.
>>
>>60449760
Here's some evidence
>>60449849
Forgot to add Perl RegEx is dope as shit
>>
>>60449649
Yeah you're right about that. I know both Perl and Python and use both when I need to. However people that know Python only hate on Perl so much.

Those Python users are arseholes.

>>60449760
He's right about that you know.
>>
>>60449649
Fellow Perler... When were you inducted into the Monastery

#!/usr/bin/perl
use strict; use warnings;
my $var = "Oh Perl, Oh Perl\nThou Art the Greatest\n";
print $var,"PERL AKBAR :^)\n";
print "OP is a faggot\n";
>>
>>60448992
Implementation? Source?
>>
>>60449649
Perl isn't satan, it's gross
>>
>>60449649
Perl is bliss this anon gets it.

>>60450015
Another lost soul. Perl 3:16 and you shall find salvation
bless
>>
>>60449649
>Why is it that every Python programmer I meet doesn't know Perl
Probably because you only know webdevs.

Most "real" Python users migrated from Perl.
>>
>>60450047
>Probably because you only know webdevs.
>Most "real" Python users migrated from Perl.
I'm actually in bioinformatics.

The real reason is age/location

The only bioinformaticists I know that use Perl are over 45 years old and/or from Europe.

In the US no one bothers to learn Perl for biology.
>>
>>60449758
If you're working on a machine for which python's addons are a drain on resources then you shouldn't be using scripting languages in the first place.
>>
I use python because I like money, cash, hoes. I am not a virgin geek who spends his days learning and shilling obscure half-dead languages like perl and ruby. I write code, make mony, then i go pound pussy to celebrate another great day in a life of a hustler. i am the boss, this is why i choose python.
>>
ITT premature optimization fags that have never programmed professionally in their lives
>>
>>60448992
efficiency does not make scripting language better. If I wanted efficiency i'd code with C.
>>
>>60449970
perl is love perl is life
my %s;
s,^.+?;,,;
while (m,(\d+),g)
{
if (++$s{$1} > 1)
{
print "$1\n";
last;
}
}
>>
>>60450193
This
>>
How do i write this in python?

s,(\d)(\D+?)(\d),"$3$2$1",g;
>>
>>60450348
you translate hieroglyphics into pseudocode

then your done, because it's probably legit python code
>>
File: 1493376641821.jpg (164KB, 1279x1077px) Image search: [Google]
1493376641821.jpg
164KB, 1279x1077px
>salty perlbois still trying to feel relevant in CURRENT YEAR
It's time to retire gramps and take your archaic languages with you
>>
File: 16370720940.jpg (78KB, 1280x720px) Image search: [Google]
16370720940.jpg
78KB, 1280x720px
>>60450421
perl >>> python
>>
File: 1487031268810.jpg (84KB, 1280x720px) Image search: [Google]
1487031268810.jpg
84KB, 1280x720px
>>60450456
perl is dead. DEAD
>>
Im not in dev so i can afford 30 ms for a script that runs once a day
>>
>>60448992
use some inductive thinking.

python is clearly garbage at this plain performance/memory game, so its strengths are possibly somewhere else

i say it's the large selection of accessible libraries
>>
>>60450481
fuck off satania
>>
File: 1487028669239.jpg (56KB, 455x455px) Image search: [Google]
1487028669239.jpg
56KB, 455x455px
>>60450574
n-no bullying
>>
i fucking hate anime, when will this end
we just had a good thread where we collectively shat on perl in text mode and now this anime shit shows up
>>
>>60450348
import re

def swap(m):
return m.group(3) + m.group(2) + m.group(1)

print re.sub(r"(\d)(\D+?)(\d)", swap, line.rstrip())


Is there a better way to do this?
>>
>>60450703
>we shat on perl
>shat
you wot m8?
>>
>>60450769
>Shat is the past tense of shit, which is a vulgar term used to describe expelling feces from the body. When you pooped, this is an example of a time when you shat.
the more you know
>>
> how did it get so accepted?
Data researchers made libraries for it.
>>
>>60448992
Your experiment is flawed and fallacious because the efficiency of the result depends a lot on the specific application. You will find other stuff where Python is faster, as you can find stuff where any language is faster than any other language.
>>
>python
created for actual human beings
actually readable and easily maintainable code
superior philosophy
>perl
good for writing dirty shitty unreadable one liner scripts
b-but muh one liner is 20ms f-faster
>>
File: language of the ancient gods.png (5KB, 689x129px) Image search: [Google]
language of the ancient gods.png
5KB, 689x129px
>>60450864
>20ms
ehem
>>
>>60448992
Let's drop some knowledge.
Doings things the hard way is for edgelords,
spending less time on development will allow you to focus more on architecture.
Once you have a good, solid and well-thought structure, you can achieve anything.
Python is the logical conclusion of theses statements.

>muh performances
Build a C module for the tiny parts that require performances.
This means better code structure and better performances than any other half assed language.

>muh indentation
End yourself, only children care about such insignificant details.
>>
>>60448992
Nice syntax, an excellent standard library, a lack of bullshit in the early stages of learning it and the fact that there just isn't really anything wrong with it.

I use Python to duct tape stuff together and continue to do so into the foreseeable future because there is simply nothing wrong with it that would encourage me to switch to something else.

Comparing scripting languages on their performance is like comparing systems languages on how nice it is to write websites in them.
>>
>>60450725
re.sub(r'(\d)(\D+?)(\d)', r'\3\2\1', input)
>>
>>60450864
>superior philosophy
Python combines Perl's MTOWTDI philosophy with whitespace syntax. How the fuck is that better?
>>
File: 1491787726377.jpg (39KB, 561x370px) Image search: [Google]
1491787726377.jpg
39KB, 561x370px
>>60450769
shat is past tense of shit
>>
>>60451012
>MTOWTDI
Have you ever imported this ?
>>
>>60451038
>MTOWTDI
Just use fucking google.

More Than One Way To Do It©
>>
>>60451083
You don't understand what i meant

$ python -m this | grep "way to do"
>>
File: 1420761495662.png (1MB, 1200x1800px) Image search: [Google]
1420761495662.png
1MB, 1200x1800px
>>60449649
>python devs are hissing
>surprised that snakes hiss at you
>>
>python is better
>still split between 2 and 3
nice language fags
>>
>>60451083
Meaning that you do it in many inferior ways heh? Looks like a shitty philosophy.
>>
>>60451321
R is the best girl, but not the best language.
Something is not right there.
Also some important languages are missing.
>>
>>60451321
Visual basic looks sad. I want to cheer her up, but her responses make no sense.
>>
>>60448992
Because python has better readability than any other language.
>>
>>60448992
It requires more memory because it is a scripting language whereas Perl is compiled.

It takes longer because it requires more memory and therefore takes literally ms just for the computer to read from the disk.

It is popular because it is a scripting language with a huge computer science development group
>>
>>60451568
>Perl is split between 1, 2, 3, 4, 5, and 6
This is what you sound like
>>
File: 115213519413.jpg (28KB, 550x633px) Image search: [Google]
115213519413.jpg
28KB, 550x633px
>>60451742
>perl is compiled
>>
>>60451321
>c# and vb are autists
>php is a mess
>ruby is for grown-up babies
pretty accurate desu
>>
>>60451742

What perl compiler do you use?
>>
>>60451770
Can you be stupid in another thread please?
>>
>>60451568
it is not split, everyone uses v2
>>
>>60451989
What's the purpose of having 3 then?
>>
>>60451795
he meant that perl is complicated
>>
>>60452452
to fuck up new people trying to learn the language
>>
File: alfUdEP.jpg (1MB, 1782x3223px) Image search: [Google]
alfUdEP.jpg
1MB, 1782x3223px
>>60451989

Nobody sane uses 2 anymore. 3 does everything 2 does, and more, and does it better.

>>60452452

There is no reason to keep using Python 2 now. Everybody with half a brain starts new projects in 3. The language had to be redesigned in some ways that broke compatibility but made it better.
>>
>>60450552
Python is programming for people who need to get things done (e.g., scientists).
Its easy to use and good enough most of the time for taping stuff together.

There is no reason for "programmers" to use it except for odd tasks or whatever, the whole point of it is to avoid hiring/waiting for programmers. Its what polyfilla is to plasterers.
>>
>>60449780
Pls explain.
>>
>>60449970
t. Perl novice
>>
>>60450193
> I use python because I like money, cash, hoes. I am not a virgin geek who spends his days learning and shilling obscure half-dead languages like perl and ruby. I write code, make mony, then i go pound pussy to celebrate another great day in a life of a hustler. i am the boss, this is why i choose python.
If this wasn't pasta, it is now
>>
I wish to learn Perl.
I am using Python for quick scripting and the like, but I dislike OOP and such.
Especially since some decisions make using it efficiently quite retarded.
So should I learn 6 or 5?
Also what is a good resource to learn?
Something brief would be preferable.
>>
>>60449740
KiB*
>>
>>60448992
like the success of ak47, can withstand abuse and any retard peasants could pick it up and use it right away
>>
>>60449649
>> Pypy is way faster than perl
>yeah but so is Cython but you're cheating there.
You fucking moron. Cython is a compiled language, based on but a superset of python. It is not python.

Pypy is an implementation of python itself.
>>
>>60451321
Why is C++ older than C?
>>
>>60451795
 perl -c myScript.pl 

:^)
>>
>>60453104
>Pypy is an implementation of python itself.
Still cheating
Thread posts: 79
Thread images: 13


[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.