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

awk master race

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: 21
Thread images: 2

Tell me anything that Perl can do that awk can't.

Pro-tip: you can't.
>>
At least you learned how to spell Perl this time.
>>
>>58558963
>Alfred V. Aho

Quick! name another book by this author without using a search engine.
>>
>>58558963
Adding unicode operators like ÷. Unless you mean perl5.

>>58559546
Too many Parsers (without MARPA edition), too little Else, aka the Faggon Book
>>
>>58558963
Manipulate images, sounds, machine learning, etc.
>>
File: B0Fj-hZIMAAdCkt.png:large.png (232KB, 506x662px) Image search: [Google]
B0Fj-hZIMAAdCkt.png:large.png
232KB, 506x662px
>>58559668
From the writers of "Web Development with Assembly", presenting "Machine learning with Perl".

>>58559084
It's called a typo.
>>
>>58558963
... Nothing they're both Turing complete.
>>
>>58559857
That doesn't mean shit. Magic the Gathering is turing complete as well.

In real life, mathematical implications don't matter.
>>
>>58559875
>That doesn't mean shit.
Yes it does
>Magic the Gathering is turing complete as well.
No it isn't
>In real life, mathematical implications don't matter.
Yes they do
0/3 see me after class.
>>
>>58558963
write a fizzbuzz, it ain't /g/ if there's no fizzbuzz
>>
>>58559935
not nice being a lyin faggot on the internet anon.
http://www.toothycat.net/~hologram/Turing/HowItWorks.html
>>
>>58560128

awk:
#!/usr/bin/awk -f
{
for (i = 1; i <= 100; i++) {
if (i % 15 == 0)
print "FizzBuzz";
else if (i % 3 == 0)
print "Fizz";
else if (i % 5 == 0)
print "Buzz";
else
print i;
}
}


Perl:
#!/usr/bin/env perl

use strict;
use warnings;

for (1..100) {
if ($_ % 15 == 0) {
print "FizzBuzz\n";
} elsif ($_ % 3 == 0) {
print "Fizz\n";
} elsif ($_ % 5 == 0) {
print "Buzz\n";
} else {
print "$_\n";
}
}



I write Perl for a living - I don't think you can do that with awk.
>>
>>58560695
How to learn regexp magic?
>>
>>58560695
>I write Perl for a living - I don't think you can do that with awk.
/thread
>>
>>58560695
>I don't think you can do that
What is "that"?
>>
>>58559765
>From the writers of "Web Development with Assembly", presenting "Machine learning with Perl".
well it does work for their python brethren
>>
>>58559857
I hate this argument.
1. Literally everyone knows about Turing completeness and knows that virtually all languages are Turing complete.
2. It doesn't contribute anything to the discussion, even for someone who wouldn't know about it.
3. It's not even factually correct. It doesn't mean the languages are equivalent or that they can be exchanged with each other. That's as dumb as saying that you don't need a new computer because your old one is Turing complete.
4. If we're going to apply the level of hair-splitting that is required for this argument to bear any relevance, it's not even factually correct given that no machine running either language has an infinite amount of memory.
>>
>>58563218
One might be faster than the other at some task but them both being turing complete means they are generally interchangeable.

For instance, you could generate html with either of them.
>>
>>58562536
write awk for a living, obviously
>>
>>58560965
Practice makes perfect. You should find a project which requires lots of text parsing and have someone who already knows regex review it.

>>58562536
>>58563337
Yep
>>
>>58563337
>write awk for a living, obviously
When the only tool you have is a hammer...
Thread posts: 21
Thread images: 2


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