Live data from Hacker News

Why I’m Learning Perl 6

evanmiller.org

51–60 of 380 posts

Re: Why I’m Learning Perl 6

#51

Earlier quoted context omitted.

I'd like to know why people are downvoting this.

For Python there is no native support for threads because of GIL. You can get around this through multiprocessing etc but these are hacks

Only relevant on CPython, other implementations don't have a GIL.

Re: Why I’m Learning Perl 6

#53
post #15

why is everybody saying they are put off by Go? Did we pass the "trend" phase and now it's cool to say go sucks?

For me Go is only relevant to the extent I might have to deal with Docker and K8s related infrastructure code.

Re: Why I’m Learning Perl 6

#54

Thing that really gets me about perl is the syntax, it's horrendous. No other reason, that's all. Just the syntax.

It's _different_. But working for a few years with Perl 5, it really grew on me. It could use a good "Perl: The Good Parts" book, I guess.

I haven't looked at Perl 6 yet, don't know if that's better or worse. Too many other things to do, and I don't think I'll ever work with Perl professionally again, that ship has probably sailed.

Re: Why I’m Learning Perl 6

#55

Earlier quoted context omitted.

I'd like to know why people are downvoting this.

For Python there is no native support for threads because of GIL. You can get around this through multiprocessing etc but these are hacks

There is native support for threads, it's just that they don't run concurrently.

Re: Why I’m Learning Perl 6

#56
post #51

Earlier quoted context omitted.

For Python there is no native support for threads because of GIL. You can get around this through multiprocessing etc but these are hacks

Only relevant on CPython, other implementations don't have a GIL.

PyPy has a GIL : http://doc.pypy.org/en/latest/faq.html#does-pypy-have-a-gil-...

Re: Why I’m Learning Perl 6

#58
post #9

> Why is this important? Concurrency is hard and if you want M:N thread multiplexing (i.e. WEB SCALE CODE, where application threads aren’t pinned to pthreads) your options today are precisely Erlang, Go, .NET, and Perl 6. I guess the author doesn't know about Haskell? The concurrency story for Haskell is great, and using the right library, you can literally just define types for the routes for your backend and then…

By "right library" do you mean Servant? (I'm interested.)

Re: Why I’m Learning Perl 6

#59
post #10

Earlier quoted context omitted.

Indeed, a GILless bytecode VM is worth a look.

GIL less yes, but not lockless. The previous perl6 VM, parrot, had lockless threads, scaling linearly per native core. MoarVM even needs to lock on hash or array accesses, which is certainly not state of the art.

How did parrot write arrays from multiple threads without a lock somewhere in there?

Re: Why I’m Learning Perl 6

#60

> Concurrency is hard and if you want M:N thread multiplexing (i.e. WEB SCALE CODE, where application threads aren’t pinned to pthreads) your options today are precisely Erlang, Go, .NET, and Perl 6. Putting aside the "web scale" jokes ( http://www.mongodb-is-web-scale.com/ ), this statement is still absurd. Every major language, or at least the ones that matter for backend development, has support for thread multipl…

I'd like to know why people are downvoting this.

Ehh... I don't really understand the impulse to "call out" downvotes, or ask people to explain why they're downvoting something that you wrote or agree with.

It's probably just my age, as I started out online when most discussion forums lacked explicit voting mechanisms. Before social media came along, and "gamified" human conversation. Maybe it helps police trolls, but at the cost of encouraging group-think and excessive meme-referencing, and just making a lot of people more neurotic and insecure in general. Overall, I think that online discussion is worse than it was 15 years ago, due to the psychological effects of all the imaginary Internet points.

But anyhoo, at the time I saw this (45 minutes after my original comment), my comment had 25 votes and was the top-most thing on this page. More often than not, if you wait an hour, the crowd straightens out the impact of any early outliers.

Post reply on HN