Hacking perl5 core

1,396 views

Published on

A short success story

Published in: Technology, Travel
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,396
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hacking perl5 core

  1. 1. A road to hacking on perl5 Ruslan.Zakirov@gmail.com
  2. 2. From a challenge Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  3. 3. Devel::PPAP Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  4. 4. ●May fail to compile ●5.16.x only ●Incomplete ●Way to start playing Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  5. 5. Since ● shift; # w/o argument ● delete $hash{'const'}; ● $tied{foo} Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  6. 6. Failed optimisation ●10+ commits ●Better code ●Corner case fixes ●Tests ●Bit faster afterall Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  7. 7. my %r = map { $_ => $h{$_} } 'a', 'b', 'c' ; Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  8. 8. my %r = ( a => $h{'a'}, b => $h{'b'}, ... ); Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  9. 9. my %r = %h{'a', 'b', 'c'}; Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  10. 10. OMG! I'm changing Perl syntax... Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  11. 11. ●11 loc in toke.y ●48 loc in pp.c ●proof in 4 hours ●comes in 5.20 Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  12. 12. perl5 core is NOT that complex Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013
  13. 13. Let's make perldelta that MAKES DIFFERENCE Ruslan.Zakirov@gmail.com Kiev, YAPC::EU 2013

×