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
久しぶりにJSを触ってみた
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
mackee
October 31, 2015
Programming
0
68
久しぶりにJSを触ってみた
mackee
October 31, 2015
Tweet
Share
More Decks by mackee
See All by mackee
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
620
Agentに至る道 〜なぜLLMは自動でコードを書けるようになったのか〜
mackee
6
5.1k
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
14
6.6k
ワンバイナリWebサービスのススメ
mackee
10
8.5k
tanukistack ライブコーディング / tanukistack live-coding
mackee
0
450
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
1.1k
perl for shell, awk and sed programmers
mackee
3
2.7k
今更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
960
Other Decks in Programming
See All in Programming
AI活用のコスパを最大化する方法
ochtum
0
260
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.3k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
880
[SF Ruby Feb'26] The Silicon Heel
palkan
0
120
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
630
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.6k
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
280
How to stabilize UI tests using XCTest
akkeylab
0
140
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.1k
『Kubernetes ☸️ で実践する Platform Engineering 』を最高速度で読み抜いたる!!👊🏻
hiroki_hasegawa
0
100
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
190
Windows on Ryzen and I
seosoft
0
340
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1k
Why Our Code Smells
bkeepers
PRO
340
58k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
640
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
770
The Cult of Friendly URLs
andyhume
79
6.8k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
490
Documentation Writing (for coders)
carmenintech
77
5.3k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
150
Transcript
ٱ͠ͿΓʹJSΛ৮ͬͯ Έͨ
͍ • @mackee a.k.a Ϛίϐʔ • υϩʔϯܳਓ • Work: Perl
& Go
࠷ۙ࡞ͬͨͷ • github.com/mackee/go-sqlla • ΫΤϦϏϧμʔ • github.com/mackee/kuiperbelt v1 • http
1.1ҎલͷϦΫΤετΛwebsocketʹม ͯ͘͠ΕΔ܅
͍
kuiperbeltΛॻ͍ͨͷͰ ;ͱJavaScriptΛॻ͖ͨ͘ͳͬͯ͠·ͬͨͷͰ͠ ͨ • ΫϥΠΞϯτͰಈ͘ݴޠ͍ͬͯ͠Δͷ JavaScript͔͠ͳ͍ • ͱ͍͑ॻ͚ΔΘ͚Ͱͳ͍
ͦ͏͍͑
None
None
΄͏
ͱΓ͋͑ͣॻ͍ͯΈΔ
HTML͕͜͏Ͱ
JS͕͜͏Ͱ͢
ͪΐͬͱಛघͳJSͳͷͰ • $ gopherjs build main.goͬͯͬͯ͝ʹΐ͝ ʹΐͱͨ͜͠ͱΛΒͳ͍ͱ͍͚·ͤΜ • ͱʹ͔͘Ͳ͔͜Ͱॻ͍ͨ͜ͱ͕͋Δγϯλο Ϋε͕͑ͯΜΓ
࣮ࡍಈ͘(σϞΛࡽ͢ͷ͕ΊΜ Ͳ͍͘͞ͷͰͷखݩͰ)
ͰɺgopherjsͷͳΜͰ͚͢ ΕͲ
gopherjs • go get github.com/gopherjs/gopherjs • gopherjs build main.goͬͯΔͱmain.js͕ ੜ·ΕΔ
• github.com/gopherjs/gopherjs/js͍ͬͯ͏ͷ Λimport͢ΔͱͳΜ͔͍Ζ͍Ζ͑Δ
ղઆ
͔Μͦ͏ • ͝ʔͰ͔͚͓ͯͯ͘͢͢͝͠Ζ͔ͬͨͰ͢ • ͔͠͠JSͱͷΠϯλʔϑΣΠεܕͳ͠ͳͷ ͰɺGoϊϦͰॻ͘ͱิͱ͔ฉ͔ͳͯ͘ʮΦ ΦοʯͱͳΔ • ֎෦ϥΠϒϥϦΛΘͣʹpure goͰॻ͚ͩ
͍Ϳָ͕ग़དྷΔؾ͕͢Δ