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
68
0
Share
久しぶりにJSを触ってみた
mackee
October 31, 2015
More Decks by mackee
See All by mackee
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
860
Agentに至る道 〜なぜLLMは自動でコードを書けるようになったのか〜
mackee
6
5.5k
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
14
6.9k
ワンバイナリWebサービスのススメ
mackee
10
8.7k
tanukistack ライブコーディング / tanukistack live-coding
mackee
0
600
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
1.1k
perl for shell, awk and sed programmers
mackee
3
2.8k
今更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
980
Other Decks in Programming
See All in Programming
GoogleCloudとterraform完全に理解した
terisuke
1
190
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
1
700
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.2k
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
130
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
260
PHPer、Cloudflare に引っ越す
suguruooki
1
150
Agent Skills を社内で育てる仕組み作り
jackchuka
1
1.9k
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
770
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
440
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
380
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Being A Developer After 40
akosma
91
590k
The Pragmatic Product Professional
lauravandoore
37
7.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
740
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
270
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
350
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
690
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
280
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Ͱॻ͚ͩ
͍Ϳָ͕ग़དྷΔؾ͕͢Δ