Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
コールバックの話とおもいきや同人誌にPerlを使う話
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
mackee
August 24, 2013
Programming
290
0
Share
コールバックの話とおもいきや同人誌にPerlを使う話
内容うすい
mackee
August 24, 2013
More Decks by mackee
See All by mackee
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
860
Agentに至る道 〜なぜLLMは自動でコードを書けるようになったのか〜
mackee
6
5.5k
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
14
6.9k
ワンバイナリWebサービスのススメ
mackee
10
8.7k
tanukistack ライブコーディング / tanukistack live-coding
mackee
0
600
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
1.1k
perl for shell, awk and sed programmers
mackee
3
2.8k
今更GoのWebフレームワークを作ろうとしているワケ / Why am I trying to create a Go web framework now?
mackee
1
1.1k
database/sqlでNullを扱う歴史とsql.Null[T]の登場 / sql.Null[T] history
mackee
0
980
Other Decks in Programming
See All in Programming
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.6k
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.7k
Agent Skills を社内で育てる仕組み作り
jackchuka
1
1.9k
AWSはOSSをどのように 考えているのか?
akihisaikeda
0
110
2026年のソフトウェア開発を考える(2026/05版) / Software Engineering Scrum Fest Niigata 2026 Edition
twada
PRO
22
12k
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
170
AI Agent と正しく分析するための環境作り
yoshyum
2
350
Agentic Elixir
whatyouhide
0
450
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.8k
Road to RubyKaigi: Play Hard(ware)
makicamel
1
570
when storing skills in S3 file
watany
3
1.5k
AIと共に生きる技術選定 2026
sgash708
0
140
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
Designing for humans not robots
tammielis
254
26k
Optimizing for Happiness
mojombo
378
71k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Evolving SEO for Evolving Search Engines
ryanjones
0
190
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
550
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
550
Odyssey Design
rkendrick25
PRO
2
610
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Transcript
͜ʔΔͬ͘ @mackee_w Ϛίϐʔ
͜ʔΔͬ͘ @mackee_w Ϛίϐʔ
ਖ਼ʹݴ͏ͱΘ͠ඇಉظͷ ίʔϧόοΫ͕େݏ͍͡Ό
͜ΕΘ͠ͷ͍ͪ͡ΌΜ͕ݴͬͱ͕ͬͨ ίʔϧόοΫ಄ͷ͍͍ਓͷ͏Ͱ ͡Ό͔Β Θ͠ΒϒϩοΫϒϩοΫϒϩοΫ
ϒϩοΫେ͠Ύ͖ʂʂ
࠷ۙͷPerlͰͬͨࣄ
ಉਓࢽ࡞Γʹ Perl͕େ׆༂͢Δ
ʘ໘͚ʗ
໘͚ͱ • ྫ͑ॎॻ͖ͷB6ͷຊ B6 B6
໘͚ͱ • ྫ͑ॎॻ͖ͷB6ͷຊ B5 • B5ͷࢴʹ2໘ͿΜͬͯ͋ͱͰંΔ
໘͚ͱ • ཪʹͬͯ͜Μͳ͔Μ͡ͷ໘͚ 1 4 ද 2 3 ཪ
ͭ·Γҹઃఆͱ͔Ͱ 1,4,2,3Έ͍ͨʹͯ͠2up
͜ͷྻΛ࡞ΔͷΊΜ Ͳ͍ɻPerlͰ࡞Ζ͏
<=>͍ͬͯ͏தஔԋࢉࢠ • sort { $a <=> $b } @array ͷ࣌ͷΞϨ
• UFO operator͍ͬͯ͏Β͍͠Ͱ͢ • 3ͭू·Δͱspace fleet operator • by perlsecret
<=>͍ͬͯ͏தஔԋࢉࢠ • $a <=> $bͷͱ͖ • $a == $b ͳΒ
0 • $b < $a ͳΒ 1 • $a < $b ͳΒ -1
sortͰ໘͚Λ͢Δ
None
None
͓Θ͔Γ͍͚ͨͩͨͰ ͋Ζ͏͔
ಉਓࢽ੍࡞Ͱ Perl͑Δʂʂʂ
ҙ ͳ͓ݱࡏB5Λࡋஅͯ͠B6ʹ͠ ͯҹ͍ͯ͠ΔͨΊ໘͚ඞཁ ͳ͘ɺ͞ΒʹB5Ͱ͍ͬͯͨͱ͖ PythonͷϦετแදهͰܭ ࢉͨ͠ࣄΛ͓Β͍ͤͨ͠·͢
͋ͱࠓInDesignͰͬ ͯΔ͜͠ΕͰԿͰͰ͖ Δ݁ہ͓ۚͷྗҒେͩ ΈΜͳ՝ۚ͠Α͏