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

>Need to write a scraper >Thousands of lines of code in

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

File: absolutely disgusting.jpg (74KB, 720x540px) Image search: [Google]
absolutely disgusting.jpg
74KB, 720x540px
>Need to write a scraper
>Thousands of lines of code in C, plus compile time
>a hundred in python

Why are compiled languages allowed for day-to-day use again?
>>
>>57973531
Is there a compiled programming language that have "batteries included" just like Python?

C# and Java is kinda like that but some of their own libraries sucks and I have to rely on third party libs.
>>
Because the big boys have work to do.
>>
>>57973531
>>57973591
Golang was pretty much built for this sort of thing, so the standard library has everything you need to write a scrapper in a handful of lines.

And it's compiled, too.
>>
>>57973531
>Why are compiled languages allowed for day-to-day use again?- 3 posts shown.
Bare metal performance for tasks that are run literally countless times. You probably won't run your program all that much, so I don't think that matters for you.
>>
>>57973531
For some recent college graduates, the only language they know is Java. Writing a scraper in java with html parsing, maybe even json parsing, could take upwards of a few thousand lines. Especially if you consider that this person probably doesn't know how to use the CLI so they write a javaawt gui with a template editor for it
>>
>>57973531
why did you write a scraper in c?
the performance of c is basically negated by all the networking calls
>>
snobol4 is the best for things like that.

C code is basically the fastest you can go, except assembly and GPU.
>>
>>57973531
>what is golang
it's like you're not even trying
>>
>>57974690
java is slow.
>>
>>57973591
see >>57973806 & >>57974789
>>
>>57973531
that's a bad use case for C. but yeah it would be dumb to restrict yourself to low level languages if it would be easier to use a scripting language.
>>
File: laughharder.jpg (121KB, 528x805px)
laughharder.jpg
121KB, 528x805px
>>57973531
>Hey /g/ why are low level languages so shit for high level tasks
>writes a scraper in python
>not in javscript or php
Thread posts: 13
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.