Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ぼくとclassの7日間戦争
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
henohenon
July 05, 2025
Programming
13
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ぼくとclassの7日間戦争
Iwaken Lab.プログラミング言語入門
henohenon
July 05, 2025
More Decks by henohenon
See All by henohenon
unity初心者講習会
henohenon
0
300
ゆる設計論会 with Sketch Knights
henohenon
0
28
初めてのXR開発
henohenon
0
11
夏の収穫祭2025
henohenon
0
20
第四回九州学生ゲームジャム発表
henohenon
0
44
自作言語を作ろう
henohenon
0
45
Other Decks in Programming
See All in Programming
Jetpack Compose Mechanisms
skydoves
3
820
Performance Optimization With LLMs
xleitix
0
130
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
ActionController meets Protocol Buffers
sorah
0
550
sbt 2.0: takeoff
eed3si9n
0
160
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
golang-bob.pdf
iwatsukayura
0
130
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
700
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Into the Great Unknown - MozCon
thekraken
41
2.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.3k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Documentation Writing (for coders)
carmenintech
77
5.6k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Transcript
~構造化戦記~ 僕とclassの7日間戦争
へのへのん ゲーム中⼼にいろいろ作ってる⼈ 福岡住みのフリーランスエンジニア 技術スタックは主にunity/webのクライアントエンジニア 志「僕が考える最強の⾔語、レンダラー、ゲ ームエンジンを作りつつ、ゲームMV制作から アニメ・ボカロ⽂化にムーブメントを起こす」 ⾃⼰紹介
Q.何故⾃作⾔語?
A.単に好奇⼼
tsベース c#ライクなclass 式指向, Result型... ⾔語紹介 ギークかつ直感的に触れるWebゲーム⽤⾔語 Glimmer
ts(js)のclassはあくまでclass”ライク“
とは?
まずは記法から
c#のclass (例は優しい⽬で⾒てください)
tsのclass (例は優しい⽬で⾒てください)
jsのclass ES2022以降
ES5-js 古いjs、流⽯にclass感ない
こっちが本質 classは糖衣構文 https://typescriptbook.jp/reference/values-types- variables/object/prototype-based-programming
関数にプロパティ+prototype
prototypeとは オブジェクト同⼠の参照関係
prototypeとは a<b<c
prototypeとは a.Func()===b.Func()===c.Func()
jsのオブジェクトは動的 classの変更ができてしまったり、型定義が曖昧だったり
jsのオブジェクトは動的 classの変更ができてしまったり、型定義が曖昧だったり どちらかというとjsが悪い
最新+tsなら結構よさそう 癖はあるし別概念ではあるの で、プロジェクトは選びそう 思ってたよりやれる 書きやすさ・読みやすさ 型付けと安全性、実⾏速度 c#のclassすごい (誤解を恐れずに⾔うと) prototype=原始的class構造 ts側が寄せてるから当然カモ
考え方は一緒っぽい ts-jsのクラスについて
ここからもうちょっと思想の話
classの構造的な負債 継承は⼈類には早すぎたとのこと
移譲 MobileSuitは継承でもいいカモ?
関数型プログラミング
Goの例 (これはprintがあるので正確な関数型ではない)
コンピューター的に直感的で シャレオツ 思想も魅⼒的 関数型ってすげー ⽐較するとすごい⾒やすい “個体としての振る舞い“ を直感的に表している classってすげー classも⾔語も隠蔽 ⼈間には早すぎる
結局⼈の筋⾁と経験 副作用と隠蔽 思ったこと
Glimmerではどうするか
c#生まれだからかもだけど 好きなのは事実 やっぱ見やすい プログラム的に直観的でない 隠ぺいの危険性 書き方は工夫するかも 解像度が上がり 作りたくなってきた 思想でうだうだしてても ワクワクしない・させれない
(楽しいケド) そろそろ実装します classは採用します 🎉