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
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
Apache Iceberg V3 and migration to V3
tomtanaka
0
170
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
210
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
730
生成AIを活用したソフトウェア開発ライフサイクル変革の現在値
hiroyukimori
PRO
0
100
Fluid Templating in TYPO3 14
s2b
0
130
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
高速開発のためのコード整理術
sutetotanuki
1
410
CSC307 Lecture 02
javiergs
PRO
1
780
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Designing for Performance
lara
610
70k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
170
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
460
Building the Perfect Custom Keyboard
takai
2
690
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Curse of the Amulet
leimatthew05
1
8.7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
67
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
110
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Ͱॻ͚ͩ
͍Ϳָ͕ग़དྷΔؾ͕͢Δ