Live data from Hacker News

Perl 6 Optimism

p6weekly.wordpress.com

71–80 of 243 posts

Re: Perl 6 Optimism

#71
post #61
post #51

Earlier quoted context omitted.

If you would have actually read the blog post, you would have seen a "Rakudo Perl 6 in production" section in it.

The section in which obscure companies are using it for trivial tasks? Sorry if that sounds harsh but in Python, Ruby, even Perl 5 large companies that bet the farm on the language are ten a penny

Yes, old established language are in heavier use at large, established organizations.

By that metric, COBOL is awesome.

Re: Perl 6 Optimism

#72
post #20
post #18

Earlier quoted context omitted.

The failure to admit it was going slowly was another killer. It will be released at Christmas, we just aren't telling you which one. After a few years of hoping, I gave up and am in the world of Python and Django. Its a shame as Perl feels like a more powerful / expressive language than Python.

This. Being "forced to use Python" sucks as a Perl developer.

The worst parts are the conversations of the form: Would you use something like perl for this? Why not? Python has 100% of the “write only” problems you mention, except that there are less syntactic clues to help the reader.

sigh

(And for the record, I’ve dealt with 100K+ sloc perl and python projects, and the perl one was more maintainable than the python projects, even after multiple python rewrites. It doesn’t have to go that way, but it certainly can!)

Re: Perl 6 Optimism

#73
post #2

I don’t understand why Perl 5 and 6 are still tied together as if they are the same language. There’s no compatibility between the two. You can’t write a library that works in both versions, so you lose CPAN and the thousands of packages that make Perl so powerful. I don’t think there’s even any reliable way to translate Perl 5 source code. This is a vastly larger change than python 2->3, and people are still using p…

It's the spiritual successor

Re: Perl 6 Optimism

#74
post #57
post #44

Earlier quoted context omitted.

Special characters, clear visual markers of scope etc. that Python lacks is part of the appeal of Perl to me. I feel like a dyslectic when I read Python (projects of significant size) due to it being much less visually helpful and that the idea of simplicity falls apart when the problems are not trivial and when multiple devs have touched the code over multiple years. YMMV of course but that is why your POV is not ob…

The visual marker of scope is there and it's massive: indentation. You can write bad code in every syntax, but when a language carries jokes about being "write-only" and the other has a reputation for being anal about indentation (the single most helpful scope-marker in any syntax), I don't think you can argue about objectivity when discussing readability. This said, I'd like to see scientific comparisons, which are…

Bro, literally every language does indentation. Python just does indentation badly by making it syntactically significant.

Also. If you're going to come back to me with the argument that it forces people to use indentation, I've got some news for you. Literally everyone uses indentation. And if you somehow come across code written by the rare soul that doesn't use indentation, all I've to do is select the entire code and click "re-indent". Which, btw, in python is a chore to fix badly indented code with tabs and spaces mixed in together. And it's even more work to properly copy-paste python code, even in good editors.

Re: Perl 6 Optimism

#75
post #57
post #44

Earlier quoted context omitted.

Special characters, clear visual markers of scope etc. that Python lacks is part of the appeal of Perl to me. I feel like a dyslectic when I read Python (projects of significant size) due to it being much less visually helpful and that the idea of simplicity falls apart when the problems are not trivial and when multiple devs have touched the code over multiple years. YMMV of course but that is why your POV is not ob…

The visual marker of scope is there and it's massive: indentation. You can write bad code in every syntax, but when a language carries jokes about being "write-only" and the other has a reputation for being anal about indentation (the single most helpful scope-marker in any syntax), I don't think you can argue about objectivity when discussing readability. This said, I'd like to see scientific comparisons, which are…

Python was designed for doing quick throw away prototypes. Perl 5 was designed to support devops before that was a word. If you are writing a large code base in either, there is a good chance you are doing something horribly wrong. (I still prefer perl though)

Re: Perl 6 Optimism

#76
post #50

Earlier quoted context omitted.

There are gotchas and unsupported functionality (e.g. 'since Perl 6 does not have the same concept of "context", Perl 5 methods are always called in list context.') which effectively mean that you've got no idea if library 'foo' will work or not without a thorough review of the code. At best, it's a hack. Impressive, sure, but not something that you could rely upon. There's still no sane upgrade path here.

> At best, it's a hack. Impressive, sure, but not something that you could rely upon. The same could be said for XS. And I do think that all of Perl 5 is relying upon that. > There's still no sane upgrade path here. FWIW, my blog post https://www.perl.com/article/an-open-letter-to-the-perl-comm... touches on that subject.

XS is the "same" hack all the time, though. A Perl library that can only be called in list context in Perl 6 is a substantial change from Perl 5. I've seen much smaller changes trash code bases before. I've got real code that would be affected by that. (I also think the context idea was a misfire in Perl That said, why is it impossible to call a Perl 5 function in scalar context? Shouldn't the equivalent of Perl 5's "scalar" be fairly easy to implement? It may stink to have to manually use it, but it wouldn't be very often, and it's easy enough to use any of half-a-dozen Perl 6 features to minimize the syntactic hit.

Re: Perl 6 Optimism

#77
post #57
post #44

Earlier quoted context omitted.

Special characters, clear visual markers of scope etc. that Python lacks is part of the appeal of Perl to me. I feel like a dyslectic when I read Python (projects of significant size) due to it being much less visually helpful and that the idea of simplicity falls apart when the problems are not trivial and when multiple devs have touched the code over multiple years. YMMV of course but that is why your POV is not ob…

The visual marker of scope is there and it's massive: indentation. You can write bad code in every syntax, but when a language carries jokes about being "write-only" and the other has a reputation for being anal about indentation (the single most helpful scope-marker in any syntax), I don't think you can argue about objectivity when discussing readability. This said, I'd like to see scientific comparisons, which are…

Indentation + characters for scope is a lot more visual IMO than just using indentation with no clear end marker.

Re: Perl 6 Optimism

#78
post #58

how would one describe Perl 6 type system? Is it dynamically typed, optionally typed, statically typed?

The Perl 6 answer to almost all such questions is simply "Yes". It is an incredible mess. Whether it is a glorious mess is something that we are finally coming up on the ability to determine.

Re: Perl 6 Optimism

#80
post #61

Earlier quoted context omitted.

The section in which obscure companies are using it for trivial tasks? Sorry if that sounds harsh but in Python, Ruby, even Perl 5 large companies that bet the farm on the language are ten a penny

Yes, old established language are in heavier use at large, established organizations. By that metric, COBOL is awesome.

There are real companies doing real work in newer languages like Swift and Go too. Perl 6 is a toy in comparison.

Zoffix Znet I use it at $work for throw-away one-liners

Awesome

Post reply on HN