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
mackee
August 24, 2013
Programming
0
270
コールバックの話とおもいきや同人誌にPerlを使う話
内容うすい
mackee
August 24, 2013
Tweet
Share
More Decks by mackee
See All by mackee
ワンバイナリWebサービスのススメ
mackee
10
8k
tanukistack ライブコーディング / tanukistack live-coding
mackee
0
120
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
840
perl for shell, awk and sed programmers
mackee
2
2.5k
今更GoのWebフレームワークを作ろうとしているワケ / Why am I trying to create a Go web framework now?
mackee
1
810
database/sqlでNullを扱う歴史とsql.Null[T]の登場 / sql.Null[T] history
mackee
0
700
マイクロサービス化を利用した Goへの移行事例
mackee
0
840
PerlでつくるフルスクラッチWebAuthn/パスキー認証 / Demonstration of full-scratch WebAuthn/Passkey Authentication written in Perl
mackee
3
5.1k
SRE定例やその辺の取り組みをアプリケーションエンジニア目線で語る / "Observe" about SRE Meeting by Application Engineer
mackee
0
2k
Other Decks in Programming
See All in Programming
RDoc meets YARD
okuramasafumi
4
160
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
200
go test -json そして testing.T.Attr / Kyoto.go #63
utgwkk
1
180
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
110
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
1
150
AIレビュアーをスケールさせるには / Scaling AI Reviewers
technuma
2
230
Namespace and Its Future
tagomoris
6
660
あのころの iPod を どうにか再生させたい
orumin
2
2.6k
STUNMESH-go: Wireguard NAT穿隧工具的源起與介紹
tjjh89017
0
390
Improving my own Ruby thereafter
sisshiki1969
1
130
A Gopher's Guide to Vibe Coding
danicat
0
190
速いWebフレームワークを作る
yusukebe
3
390
Featured
See All Featured
Docker and Python
trallard
45
3.5k
Why Our Code Smells
bkeepers
PRO
339
57k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Unsuck your backbone
ammeep
671
58k
How to Think Like a Performance Engineer
csswizardry
26
1.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
500
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
51
5.6k
A Modern Web Designer's Workflow
chriscoyier
696
190k
It's Worth the Effort
3n
187
28k
Optimizing for Happiness
mojombo
379
70k
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Ͱͬ ͯΔ͜͠ΕͰԿͰͰ͖ Δ݁ہ͓ۚͷྗҒେͩ ΈΜͳ՝ۚ͠Α͏