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
LAMPのP
Search
Livesense Inc.
PRO
May 29, 2014
Programming
0
1.6k
LAMPのP
2014/5/9 Livesense SICP倶楽部LT大会にて
Hackの紹介
Livesense Inc.
PRO
May 29, 2014
Tweet
Share
More Decks by Livesense Inc.
See All by Livesense Inc.
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
2.4k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
51
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
0
1.5k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
440
26新卒_総合職採用_会社説明資料
livesense
PRO
0
11k
株式会社リブセンス会社紹介資料 / Invent the next common.
livesense
PRO
1
37k
26新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
1
13k
中途セールス職_会社説明資料
livesense
PRO
0
260
EM候補者向け転職会議説明資料
livesense
PRO
0
130
Other Decks in Programming
See All in Programming
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
200
rage against annotate_predecessor
junk0612
0
160
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
110
Design Foundational Data Engineering Observability
sucitw
3
190
testingを眺める
matumoto
1
140
Flutter with Dart MCP: All You Need - 박제창 2025 I/O Extended Busan
itsmedreamwalker
0
150
知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't
luccafort
PRO
1
100
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
240
2025 年のコーディングエージェントの現在地とエンジニアの仕事の変化について
azukiazusa1
21
11k
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
2
1.2k
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
230
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
630
Featured
See All Featured
Building Applications with DynamoDB
mza
96
6.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
810
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Transcript
LIVESENSE SICPಡॻձ༻ ࣮༻෦
LAMPͷP MA2SAKA
PHPͱ͔PERLͱ͔ҙݟ͋Γ·͕͢
Pͱ͍͑
PYTHON3
PYTHON2.X૭͔Βࣺͯͯ
PYTHON3ܥҾͬӽ͠͠·͠ΐ͏
ͦ͏͍͑͜Μͳ͋Γ·͕ͨ͠ • http://hg.python.org/peps/rev/76d43e52d978
ؾʹͤͣʹ
PYTHON3ܥҾͬӽ͠͠·͠ΐ͏
None
NEWEST VERSION IS 3.4
؆୯ʹΠϯετʔϧͰ͖ΔΑ
PYTHON32.Xܥͱ͍ͩͿҧ͏ • perl5ͱperl6΄ͲҧΘͳ͍ • python2ܥ͔Βͷ༷มߋ • จࣈྻ͕όΠτྻͰͳ͘Unicodeจࣈྻʹͳͬͨʢେࣄʣ • ͕ int
ܕʹ౷Ұ͞Εͨʢେࣄʣ • ྫ֎ه๏͕ͪΐͬͱมΘͬͨ • print จ͕ࣜʢؔʣʹͳͬͨ • input ͕ raw_input తʹͳͬͨʢpython2ܥͰevalͯͨ͠!ʣ
͕
͜͜·Ͱͯ͠ͳΜͰ͕͢
2.Xܥͱͷҧ͍ͳΜͯॏཁͰͳ͘
खଓ͖ܕݴޠPYTHONʹ͍ͭͯ
CLASSͳΜࣺͯͯͯOK!
Δ͖FORจͱδΣωϨʔλͱσίϨʔ λʢ͋ͱ͍͔ͭ͘ͷίϯςφܕʣͷΈͰ͢
ೖྗ͞Εͨσʔλʹରͯ͠ ॲཧͯ͠ॲཧͯ͠ॲཧͯ݁͠ՌΛฦ͢
UNIXֶʮϑΟϧλͱͯ͠࡞Εʯ
ͦΕͩ
ίϯςφܕ LIST, DICT, SET, TUPLE
FORจͱδΣωϨʔλ • for ʮδΣωϨʔλ͔ΒશͯऔΓग़͢ʯߏจ • ruby ͷ each తͳͷ •
δΣωϨʔλ php5.6ͷδΣωϨʔλͱ͍͍ͩͨҰॹ
δΣωϨʔλͱ FORจ
δΣωϨʔλ • yield ͰΛฦ͢ͱɺͦͷΓδΣωϨʔλܕ ʹͳΔ • ͜Μͳײ͡
δΣωϨʔλͷ݁߹(PYTHON3)
Ϧετแ • ͜͏͍͏ͷ͕ ! ! • ͜͏ॻ͚Δ !
Ε͕ͪ • ීஈʹ͢ΔϦετแදهʮϦετแʯͳͷ Ͱશల։͞ΕΔɻʢԆධՁͰͳ͍ʣ • [x for x in range(10)]
<- Ϧετแࣜ • (x for x in range(10)) <- δΣωϨʔλࣜ
σίϨʔλʔ • ߴ֊ؔͷγϯλοΫεγϡΨʔ
͜Μͳߴ֊͕ؔ͋ͬͨ࣌ ؔͷద༻݁ՌΛ ಉ໊͡લͷؔʹೖ ͱ͔ͬͯͨͷ͕ એݴͬΆ͘ॻ͚Δ
PYTHON3.4Ͱඪ४ϥΠϒϥϦ େ෯૿ڧ • ΦϒδΣΫτࢦతʹύεΛѻ͏pathlibʢ / ͕ԋࢉ ࢠΦʔόʔϩʔυ͞Εͯύε۠Γʹͳ͍ͬͯΔͱ ͍͏!ʣ • ඇಉظIOΛѻ͏
asyncio • ྻڍܕΛѻ͏ enum • ฏۉͱ͔ࢄͱ͔ͷ౷ܭؔϞδϡʔϧ statictics
ฒྻॲཧ͍ • multiprocessing Ϟδϡʔϧʢ2.6- , 3.3- ʣ • εϨουʹࣅͨײ͡ͰϩʔΧϧɺϦϞʔτͷฒߦ࣮ߦΛ αϙʔτ͢ΔϥΠϒϥϦ
• ʢpythonͷεϨουGILͷ͍ͤͰฒྻ࣮ߦ͕Ͱ͖ͳ͍ʣ • asyncio ͱ aiohttp Λͬͯ؆୯ฒྻεΫϨΠύʔ • http://rdepf.hatenablog.jp/entry/2014/03/25/211802
DJANGOJINJA2FLASK • python3ରԠࡁΈͰ͢Α!
͋͞օ͞Μ • python3ΛΠϯετʔϧ͠·͠ΐ͏!
ࢀߟจݙ • DiveIntoPython3 • http://diveintopython3-ja.rdy.jp/index.html • LISPϓϩάϥϚͷͨΊͷ python ೖ •
http://www.unixuser.org/~euske/doc/python/ python-lisp-j.html
มΘΓ·͕͢…
LAMPͷPͱ͍͑PASCALΛ͓Ε Ͱʁ
দࡔ͍ͩͿΕͯͨͷͰGOOGLE
͜ΕͲ͏͍͏͜ͱ͔!?
χʔζ͋Δ!
ͱࠓேࢥͬͨ
None
None
None
• 1passͰϑΝΠϧ୯ҐͷίϯύΠϧ͕Մೳͳ͜ͱʹͩ͜Θͬͨ ߏจ • ڭҭ༻ͱͯ͠࡞ΒΕͨૉੑͷ៉ྷͳઃܭ • ࣮ߦϑΝΠϧͷߴੑ • namespace͕ͳ͍ •
procedureͱ͔typeͱ͔ • Ϋϥεఆ͕ٛObjCʹͪΐͬͱࣅͯΔ
͜ͷ࣮ߦϑΝΠϧͷେ͖͞Α…
দࡔͦͬͱλʔϛφϧΛดͨ͡ ʢো͔͋ͬͨΒ͞ɾɾɾʢ͍͍Θ͚ʣʣ
PYTHONPASCAL1τʔΫϯઌ ಡΈͰύʔα͕ॻ͚ΔͷͰ͓קΊͰ͢ɻ