Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raiph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
211.
▲
by
raiph
11y ago
> isn't Perl 6 a full superset of Perl 5? That depends on what you mean. Perl 6 is carefully designed to be able to smoothly use other programming languages and their compilers and/or libraries. The most advanced implementation
212.
▲
by
raiph
11y ago
Perl 6 does not require use of Unicode characters in code and does not require a special keyboard. It does require some mechanism to input Unicode if that's what you want to do but that wil be true for any language -- it's nothing
213.
▲
by
raiph
11y ago
Many things are simpler in Perl 6 than in Perl 5. My guess is you are thinking of the original Perl family.
214.
▲
by
raiph
11y ago
Please reread https://perl6advent.wordpress.com/2015/12/25/christmas-is-he... Note especially this passage: ...the primary deliverable ... is the language specification, known as “roast” (Repository Of Al
215.
▲
by
raiph
11y ago
From the article: $ lua Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio > print(0.1 + 0.2) 0.3 (For completely different reasons. I think it's worth being explicit that NQP and Perl 6 get the right result because they are doing
216.
▲
by
raiph
11y ago
cf "It's time to embrace structured approaches to parallel, asynchronous, and concurrent programming." ~~ http://jnthn.net/papers/2015-yapcasia-concurrency.pdf#p=76
217.
▲
by
raiph
11y ago
> past a certain point it seems impossible to change a language in the ways that it needs to be changed to become good I think it'll be a few years before Perl 6 matures enough for most folk to see why it matters, but its design inc
218.
▲
by
raiph
11y ago
The formal definition of a version of Perl 6 corresponds to (a frozen version of) the Perl 6 test suite (currently around 120K unit tests). A compiler declares its claimed compliance by reference to these test suites: > perl6 -v Th
219.
▲
by
raiph
11y ago
> If we process code [in a particular manner] Apologies if I'm harping on about this too much but I would like to object to "If" as being too ambiguous in this context. The most active non-memory/attention brain circu
220.
▲
by
raiph
11y ago
So java is in the negative list. As are 3,4,5,6 and 10. Python 3, Perl 5, Perl 6, Windows 10? What's wrong with 4? :)
221.
▲
by
raiph
11y ago
This list includes ocaml, postgresql and perl but not java, javascript, python, C#, or c++. How sure are you of your data and your results? Because imo those are pretty remarkable results if they're accurate and the lack of discussion
222.
▲
by
raiph
11y ago
>> What is the single "thing" you're referring to and what is "new" relative to? > The type system and perl 5. Gotchya. Perl 6 is not a Perl 5 update. There are reasons it shares the name Perl, which usuall
223.
▲
by
raiph
11y ago
> I think we get away with [distinguishing singular/plural and number/name] in natural languages because we are willing to be fuzzy about that ... Whereas the only distinctions it makes sense to use in programming languages are
224.
▲
by
raiph
11y ago
> Interesting. Is this a new thing? What is the single "thing" you're referring to and what is "new" relative to? I interpret hahainternet's comment to refer to at least three new things in Perl 6 relative t
225.
▲
by
raiph
11y ago
> what "all(@ar1) < any(@ar2)" is supposed to mean. That's not a complicated expression and that's already puzzling to people who know the language? Afaik junctions are simple and have an obvious intuitive read. Bu
226.
▲
by
raiph
11y ago
I don't understand your comment. He did write two different functions.
227.
▲
by
raiph
11y ago
> Strings and integers are data, but containers are "magic". Right. I appreciate your sarcasm. I've heard some folk say they find the distinction between values and variables (containers) to be confusing. Imo this is worth
228.
▲
by
raiph
11y ago
> (overloading functions) ... comes at a high cost in terms of ... runtime reflection in dynamic languages like Perl, Python or JavaScript In Perl 6 function overloading is generally resolved at compile-time. > Explicit is better than
229.
▲
by
raiph
11y ago
> the idea of dividing all possible types There is no such division of types in Perl 6 in the normal CS sense of the word "types". There are several kinds (in the English sense, not CS sense) of data containers . Elements of t
230.
▲
by
raiph
11y ago
a includes b is trivial in any language and is not a justification for Junctions. Please take another open minded look at the examples others have posted here. Post again if you still don't see what they do that's useful and not t
231.
▲
by
raiph
11y ago
I think that means something like all the individual values in the @ar1 list of values are less than at least one of the individual values in @ar2.
232.
▲
by
raiph
11y ago
One that I recall that I'm hoping still applies is having a syntactically and conceptually lightweight way to express semantically parallel computation logic. Given the code: junction1 = val1 | val2 | val3; junction2 = val4 &
233.
▲
by
raiph
11y ago
I'm very much not sure of the following but I'm going to say it anyway and let folk explain how I'm wrong. :) Each operator and its overloads -- certainly built ins, users are recommended to follow suit -- conceptually maint
234.
▲
by
raiph
11y ago
> implicit conversion of numeric strings to numbers in certain contexts. In Perl 6 at least, and to a large degree Perl 5 too, context only "causes" bugs if coders make assumptions that are invalid in Perl. For example: say
235.
▲
by
raiph
11y ago
Your comment actually made me scroll back to the top to double check this thread was actually about Perl 6, not Perl 5! Part of the point of Perl 6 was to address problems in the language and Larry (and/or those who wrote the original
236.
▲
by
raiph
11y ago
> I could never remember how to dereference a value in an array or hash properly. I too struggled with that and came to hate it. Perl 6 directly addressed this and some related problems. First, sigils are now invariant - they're jus
237.
▲
by
raiph
11y ago
Thanks. It's good to hear that you've tried to enjoy it and drawn conclusions from that experience. Imo Perl 6 has some easy on ramps and then a long and winding learning road that can be tiring to navigate due to pot holes, inade
238.
▲
by
raiph
11y ago
I think you've misunderstood the original intent as expressed by Larry Wall in 2000, the current situation, and the future intent and practical realities. For the original intent I'll quote Larry from the day he announced Perl 6 i
239.
▲
by
raiph
11y ago
Did you use more than logic to arrive at your conclusion, e.g. did you spend a while having fun, or at least trying to have fun, coding with Perl 6 before you reluctantly concluded it wasn't going to work out or did it never really app
240.
▲
by
raiph
11y ago
What's "Perl 5 day"?
More ›