Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hahainternet
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
61.
▲
by
hahainternet
11y ago
> There is plenty of space for a language that delivers real innovation, or even one that puts real polish on old ideas. But when a language does neither, we absolutely should be asking what it's for Oh please. Perl 6 does both of t
62.
▲
by
hahainternet
11y ago
> And it has to be a language feature in Perl 6 as there you don't have open classes as in Ruby or an equivalent feature for overriding operators or adding functionality to standard lib types. I'm not sure what makes you think
63.
▲
by
hahainternet
11y ago
> What's wrong with using "isinstance(lst, str)" when necessary? In order for it to be like the Perl6 implementation I would have to check against every type of iterable AFAIK. For example, a generator would be perfectly
64.
▲
by
hahainternet
11y ago
I'm not entirely sure you've illustrated that it's a bad idea. I believe that I illustrated that a simple pattern is not easily doable in Python but is in Perl 6. You'll have to show that this is a bad pattern or the imp
65.
▲
by
hahainternet
11y ago
You might be a little confused, I'm pretty sure that wantarray and the concept of functions caring about context is entirely gone in Perl 6. Now you are expected to return objects which 'do the right thing'. However, if you r
66.
▲
by
hahainternet
11y ago
Could you explain why you think this is awful? Perl 6 has proper sets, bags and the appropriate operators for 'normal' set operations too.
67.
▲
by
hahainternet
11y ago
> I've no idea what all(@ar1) < any(@ar2) would be, I guess it would check that max(ar1) < max(ar2)? It seems that it just expands the lists using the operator. The output from junctions is quite nice: > my @a = <1
68.
▲
by
hahainternet
11y ago
Sorry I should have made things more clear. I am talking about in things like function signatures. Doing something like isinstance(x, str) is discouraged and considered non-pythonic, and recently hasattr() has also been talked about. Howeve
69.
▲
by
hahainternet
11y ago
> Only if your language is really awful. A good language shouldn't even let you run "5 < x" when x is a list, but even a mediocre one would surely at least make that error out at runtime rather than giving a nonsense an
70.
▲
by
hahainternet
11y ago
> actually not quite. given the plethora of libraries/frameworks etc. for perl-5, why would perl-5 programmers move to perl-6 ? I'm a Perl 5 programmer. Perl 6 is a more perly Perl. I can use my Perl 5 modules if I really want,
71.
▲
by
hahainternet
11y ago
It's not so much SIMD. Perl 6 has a number of different constructs in which multiple operations can be carried out like that. However, yes the intention is to enable a large number of these scenarios to be carried out on multiple CPUs.
72.
▲
by
hahainternet
11y ago
Please point out a critique of the language in this thread.
73.
▲
by
hahainternet
11y ago
> Why not "if 5 < x < 100"? Sigils look awful. Because sigils tell you things. What if 'x' in your example is a list? Are you now checking the length of the list rather than the value? Sounds like room for a sec
74.
▲
by
hahainternet
11y ago
It's not standard sets, it's a bit more than that, Perl 6 has sets of course, but Junctions should be able to autothread and express a sort of superposition of values. http://doc.perl6.org/type/Junction I cou
75.
▲
by
hahainternet
11y ago
I too have been admiring Jnthn's latest posts. The reactive programming displayed is really quite lovely. God it actually makes me want to develop an asynchronous client! The only other language that makes me feel that way is Go.
76.
▲
by
hahainternet
11y ago
Perl is pretty concise, but the list of criticisms above are almost meaningless. Who releases the first version of a language with most of the time spent on the optimiser? Perl 6 loses quite a bit of the Write Only type syntax, and should b
77.
▲
by
hahainternet
11y ago
> If I want to transform my 100.000 line program to a smaller one I won't grab Perl 6 to transform it to 50.000 but I will grab Clojure for example to transform it to an 5.000 one. Is that the only argument for using Perl 6? What a
78.
▲
by
hahainternet
11y ago
> but in Ruby this would equally easy been done with "if [2,4,5,"hello",42,3.14].include?(x)". But that isn't the same is it. That's only a related feature because Ruby doesn't have first class Junction
79.
▲
by
hahainternet
11y ago
On a lot of Linuxes you can use alt-gr for third level keys too, which is handy for «» for example (altgr + z, x) or “” (v, b)
80.
▲
by
hahainternet
11y ago
My apologies, I didn't notice that it wasn't explicitly mentioned on the input page.
81.
▲
by
hahainternet
11y ago
I'm sure you're right, the REPL uses Linenoise which is single byte character only for example. The only way to fix these problems though is to increase their use, so ultimately the end goal will be worth it. That seems to have be
82.
▲
by
hahainternet
11y ago
I've seen some complaints about this, but the existence of Texas versions of the operators makes this absolutely fine in my eyes. I don't see why people would begrudge the ability to use the 'proper' mathematical symbols
83.
▲
by
hahainternet
11y ago
Perl6 is actually ROAST, but Rakudo is the first compiler that approaches implementing it. Parrot was unfortunately discontinued but Rakudo will not be the only compiler (hopefully!)
84.
▲
by
hahainternet
11y ago
There are ASCII equivs for most, they're called 'Texas' operators.
85.
▲
by
hahainternet
11y ago
There's no offer there. Please don't dishonestly quote.
86.
▲
by
hahainternet
11y ago
> Please, tell me what you actually think is correct behavior. It is far, far more useful than pointing out that something is "wrong" on purely semantic arguments. You say "wrong" as if that's a quote from me. Bu
87.
▲
by
hahainternet
11y ago
In [1]: len("नि") Out[1]: 2 So close, but it's not really a string or bytes, but a codepoint array. You can even iterate it: In [2]: for c in "नि": ...: print("Character {}"
88.
▲
by
hahainternet
11y ago
If you ever order from HobbyKing (not the store I mentioned previously) do NOT have a plus in your email. It gets converted silently to a space in their internal systems and their customer support has absolutely 0 access or escalation. They
89.
▲
by
hahainternet
11y ago
I know of an online store that if you use a + in your email address, will fail to charge you for any goods you order. I'm assuming because something somewhere on their backend assumes that '+' is an invalid email character an
90.
▲
by
hahainternet
11y ago
> With ad revenues drying up Haven't their revenues been going up despite the CPC going down?
More ›