Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
draegtun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
84 ms
·
721.
▲
by
draegtun
15y ago
Have amended.
722.
▲
by
draegtun
15y ago
A few months ago there was this discussion on HN - Why is Funding Perl Core Development So Difficult? ( http://news.ycombinator.com/item?id=3247925 ). Unfortunately Perl doesn't have a Sugar Daddy :( However it does have a few benevol
723.
▲
by
draegtun
15y ago
re: Dave Mitchel / core development - Yes it was 2010 on the back of a $50K grant from Booking.com in Dec 2008: http://news.perlfoundation.org/2011/12/grant-from-bookingcom...
724.
▲
Parrot 4.0.0 "Hyperstasis" Released
(parrot.org)
3 points
by
draegtun
15y ago
|
0 comments
725.
▲
by
draegtun
15y ago
For those interested in how Perl does dynamic scoping here is dynamic2.clj in perl5: use 5.014; use warnings; our ($x, $y) = (2, 2); sub sum_of_squares { my ($a, $b) = @_; ($a * $a) + ($b * $b); }
726.
▲
by
draegtun
15y ago
re: non-local control transfer / return-from And not surprisingly some mad nutter has already implemented it in Perl - https://metacpan.org/module/Scope::Escape::Sugar
727.
▲
by
draegtun
15y ago
This is an idiom I use regularly (in Perl, Ruby, Io & Javascript) and come across it often in the Perl world where Moose roles are used. The only downside of this idiom is the extra runtime cost which maybe an issue for Rails?
728.
▲
by
draegtun
15y ago
Some languages make monkeypatching a lot less dangerous. For eg. in Perl you can use dynamic scoping to localise its effect: { no warnings 'redefine'; local *SomeModule::some_func = sub { say "MONKEYPATCHED!" }; # now e
729.
▲
The 10 rules of the pragmatic programmer
(sukria.net)
2 points
by
draegtun
15y ago
|
0 comments
730.
▲
η-reduction in Haskell and English
(blog.plover.com)
4 points
by
draegtun
15y ago
|
1 comments
731.
▲
by
draegtun
15y ago
> Similar in the Common Lisp object system we use :before, :after and :around methods Ditto for Moose (in Perl)... before draw => sub { shift->move( 50, 50 )}; sub draw { shift->draw_something } after draw =>
732.
▲
Microsoft celebrates IE6 death as Google downranks Chrome
(bbc.co.uk)
10 points
by
draegtun
15y ago
|
3 comments
733.
▲
by
draegtun
15y ago
And I better update mine soon because all my Changes files fail :( ref: http://changes.cpanhq.org/author/DRAEGTUN
734.
▲
CPAN::Changes Kwalitee Service
(changes.cpanhq.org)
1 points
by
draegtun
15y ago
|
1 comments
735.
▲
by
draegtun
15y ago
Correct. To mimic it exactly is straightforward though: sub with_open_file { my ($filename, $code) = @_; open my $fh, '<', $filename or die $!; $code->($_) for <$fh>; close $fh; } with_open_
736.
▲
by
draegtun
15y ago
In Perl you can just use scope: { open my $fh, '<', "text.txt"; print scalar <$fh>; } # $fh goes out of scope so file handle is closed
737.
▲
Flame Graphs
(dtrace.org)
3 points
by
draegtun
15y ago
|
0 comments
738.
▲
by
draegtun
15y ago
Also see Google Safe Browsing v2 Lookup libraries for Perl, Python and Ruby - http://research.zscaler.com/2011/12/google-safe-browsing-v2-...
739.
▲
Switch to Google Safe Browsing v2 (API)
(research.zscaler.com)
1 points
by
draegtun
15y ago
|
1 comments
740.
▲
The Perls of 2011
(onionstand.blogspot.com)
4 points
by
draegtun
15y ago
|
0 comments
741.
▲
by
draegtun
15y ago
re: sample - Looking at CyberCoders job postings for New York right now it only shows 252 job posts in total so the sample is very small. And you can slice and dice this kind of data in so many ways you can end of with many different type
742.
▲
by
draegtun
15y ago
Related to this earlier HN post: http://news.ycombinator.com/item?id=3401254
743.
▲
by
draegtun
15y ago
> which implies this has been known since 2003 in Perl Known and also fixed because since then Perl has been using a random hash function. ref: http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-... ( http://news.ycombin
744.
▲
Traits - Composable Units of Behavior (Software Composition Group)
(scg.unibe.ch)
1 points
by
draegtun
15y ago
|
0 comments
745.
▲
by
draegtun
15y ago
Having something more like CPAN would be preferable because its mirrored on over 400 sites across the world ( http://mirrors.cpan.org/ ) and should any CPAN author decide to delete any of their modules/distros then it is still accessible vi
746.
▲
by
draegtun
15y ago
You're very welcome. I'm also a Perl5 developer and love playing with Perl6 (Rakudo) in my spare time.
747.
▲
by
draegtun
15y ago
Generically these are called twigils, ie. it has a second sigil. This second sigil describes what it does differently to single sigil variable. For eg. an asterisk denotes a contextual twigil variable... $*IN # equiv to STDIN in
748.
▲
by
draegtun
15y ago
Perl6 pointy block is just a synonym for a function. So below is exactly same as my pointy block example... my $x = sub ($a, $b) { $a + $b }; And typically with Perl TIMTOWTDI :) my $x = -> { $^a + $^b }; Personally I
749.
▲
by
draegtun
15y ago
There has been lots of cross pollination between Ruby and Perl (both 5 & 6) over the years so I'm not surprised! And its not just an historical thing, for eg. the stabby lambda added to Ruby 1.9 has been part of the Perl6 specs for year
750.
▲
Idiomatic Perl 6
(perl6advent.wordpress.com)
35 points
by
draegtun
15y ago
|
11 comments
More ›