Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raiph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
121 ms
·
421.
▲
by
raiph
12y ago
> the 5 times divorcee insisting that the latest marriage is finally built to last Heh. And here was me thinking Camelia's 20 year old brother was still way too embarrassed to be seen out and about with his 14 year old sister becau
422.
▲
by
raiph
12y ago
>> have you given a recent release (especially the latest Rakudo Star) a serious look? > I have not seen anything that truly made me want to try the language Ah. That might explain what's going on here. Presumably your view of
423.
▲
by
raiph
12y ago
> The problem is that these "early adopter" distributions of Perl 6 have been released regularly since mid-2010. I agree. It's taken 4 years to get to this latest Star, on top of P6 being 10 years old when the first Star c
424.
▲
by
raiph
12y ago
You mentioned the CLR and that Parrot was purpose built. That leads me to write the following: There's only one P6 compiler relevant to most folk: Rakudo.[1] Rakudo doesn't have a CLR backend.[2] Parrot was supposed to be purpose
425.
▲
by
raiph
13y ago
Pops head down in to a rabbit hole ... I find your code reads naturally enough forward. Your abstract brief example makes it no big deal to me which way round it goes. One issue is "end weight". Let me slightly doctor the examples
426.
▲
by
raiph
13y ago
I agree there something to the timtowtdi axis. However: python's "B&D" principle is more accurately stated as TSBOAPOOOTDI" (There Should Be One And Preferably Only One Obvious Way To Do It) and that's not quite
427.
▲
Spinlocks – how should one do on Linux what YieldProcessor is doing on Windows?
1 points
by
raiph
13y ago
|
0 comments
428.
▲
by
raiph
13y ago
Fwiw, as pointed out elsewhere you can simplify the Perl 5 to: while (<>){ print }; Fwiw, in Perl 6, the canonical incantation is: .say for lines where: * thing.method calls method 'method' on thing (where
429.
▲
by
raiph
13y ago
Your statement is pretty clear, which is useful as far as it goes. But it's also wrong, and that's pretty significant too. 1. I like Perl. 2. Imo, if someone doesn't see advantages to TSBOAPOOOWTDI then they don't unders
430.
▲
#Turkey has now #blocked 8.8.8.8
(twitter.com)
2 points
by
raiph
13y ago
|
0 comments
431.
▲
by
raiph
13y ago
> Sure, picking up Perl now... but I wish I'd been learning about advanced parsers instead. Fwiw: Perl 5 is no slouch in the parsing department (via CPAN modules, including partial backports of some Perl 6 technologies). Perl 6 dire
432.
▲
by
raiph
13y ago
> I'm planning to move Perl to the same model. What Perl tools will you use to do that? If you would be willing to chat about such issues on the IRC channel #perl6 on freenode[1] (usually busiest from around 8am to 8pm EST), especia
433.
▲
by
raiph
13y ago
One thing that's interesting in this context is the Firefox phone and its 100% FOSS web tech stack. I've seen projections of an additional 400 million smart phone users this year and maybe another 600 million in 2015. It seems pla
434.
▲
by
raiph
13y ago
> Perl is all but dead because Larry Wall, Perl's developer, thought it'd be a good idea to let someone else implement his spec for Perl 6. I don't agree that Perl is all but dead, but I agree that one of the bigger contri
435.
▲
by
raiph
13y ago
Thanks ufmace; raiph.mellor at gmail.com
436.
▲
by
raiph
13y ago
Hi Matt, I've been exploring your blog. Great stuff! I was particularly appreciative of the parsing articles. Larry Wall (the Perl designer) has been designing and helping develop a new language for years. (He claims he began thinking
437.
▲
by
raiph
13y ago
CONTROL { print 1; $_.resume }; print 2; warn; print 3 # 213 That's obviously a contrived example but I think it shows the basics. Some related excerpts from spec doc S04 (blocks and statements): Warnings are produced in Perl
438.
▲
by
raiph
13y ago
> In both instances a[2] is a reference to a position in an array. Sure, but the reference invokes function calls (semantically; the compiler usually optimizes them away) that depend on context: when 'a[2]' is on the left of an
439.
▲
by
raiph
13y ago
Perl 6 has baked in some stuff @Larry may have stolen from CL that is intended to enable unified succinct expression of desired sync or async handling in response to errors and callstack events (including exceptions).
440.
▲
by
raiph
13y ago
> built-in functions that change behaviour depending on whether or not you're assigning them to something. Are you suggesting that's a bad thing? If so, consider this code: a[2] = a[2] (where a is an "array",
441.
▲
by
raiph
13y ago
Hi virtualwhys > I am curious about leaving Scala for something better -- please name this better alternative that is presumably not Haskell. With apologies if you think this is too OT and/or if you are uninterested in immature lang
442.
▲
by
raiph
13y ago
> Perl lacks a type system because that was what made the most sense for perl. Perl 5 that is. Perl 6 has a (gradual) type system.
443.
▲
by
raiph
13y ago
In summary I would recommend you don't worry about being right from the start. Spend a little time (like you are with this HN post) to find out enough to pick at least two very different quick routes for developing at least two very di
444.
▲
by
raiph
13y ago
Hi memracom, Where will Perl 6 sit when/if it becomes something you could realistically use? Would you classify it as one of the bad tools or a newer, better one?
445.
▲
by
raiph
13y ago
After years of the spec being nice but the implementations being very basic, the module versioning and installation implementation in Rakudo is finally shaping up. I anticipate it getting pretty robust over the next 6 months. Imo FROGGS
446.
▲
by
raiph
13y ago
That's my understanding too. Lisp had a nice idiom that Randal Schwartz translated in to Perl 5 in 1994 which became known as the Schwartzian Transform: http://en.wikipedia.org/wiki/Schwartzian_Transform It seems
447.
▲
by
raiph
13y ago
I realize this is drifting off topic, and I could well believe the current Rakudo implementation doesn't actually save the memory (I could believe it does, I just don't know) but P6, for any method, including sort: my $a = [
448.
▲
by
raiph
13y ago
colomon is right. Thanks for pointing this out colomon. Sorry HNers and P6ers. I feel so embarrassed. I'm usually almost pathologically careful. I have an explanation if anyone wants it but I suspect an excuse is uninteresting so will
449.
▲
by
raiph
13y ago
The unary sort is useful for two reasons. It simplifies the code AND it does key caching. But sometimes you need BOTH a key extraction closure (to get key caching for performance) AND a comparison closure (to specify a custom sort). In P6 y
450.
▲
by
raiph
13y ago
A one arg closure to the P6 sort builtin (eg { .lc }) is a key function, not a comparison function. Imo the P6 sort builtin is an elegant rethink of P5's Schwartzian Transform, which was invented in 1994 to address precisely the poin
More ›