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
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
430
Agentに至る道 〜なぜLLMは自動でコードを書けるようになったのか〜
mackee
5
4.7k
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
14
6.3k
ワンバイナリWebサービスのススメ
mackee
10
8.4k
tanukistack ライブコーディング / tanukistack live-coding
mackee
0
330
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
1k
database/sqlでNullを扱う歴史とsql.Null[T]の登場 / sql.Null[T] history
mackee
0
940
Other Decks in Programming
See All in Programming
CSC307 Lecture 07
javiergs
PRO
1
560
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
今から始めるClaude Code超入門
448jp
8
9.1k
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
生成AIを活用したソフトウェア開発ライフサイクル変革の現在値
hiroyukimori
PRO
0
100
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
CSC307 Lecture 04
javiergs
PRO
0
660
高速開発のためのコード整理術
sutetotanuki
1
410
Oxlintはいいぞ
yug1224
5
1.4k
CSC307 Lecture 10
javiergs
PRO
1
660
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
300
CSC307 Lecture 06
javiergs
PRO
0
690
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
A Tale of Four Properties
chriscoyier
162
24k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Google's AI Overviews - The New Search
badams
0
910
A better future with KSS
kneath
240
18k
Building an army of robots
kneath
306
46k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Automating Front-end Workflow
addyosmani
1371
200k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
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Ͱॻ͚ͩ
͍Ϳָ͕ग़དྷΔؾ͕͢Δ