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
.NETの上でお手製の言語を動かす技術
Search
taiseiue
April 06, 2025
Technology
0
93
.NETの上でお手製の言語を動かす技術
Kyoto.cs#1で発表した資料です。
https://kyotocs.connpass.com/event/348616/
taiseiue
April 06, 2025
Tweet
Share
More Decks by taiseiue
See All by taiseiue
“⾞が通れるほど⼤きな”セキュリティーホールを抑えながらログインしたい
taiseiue
0
300
Kotlinのデフォルト引数の話
taiseiue
0
73
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
380
振り向き美人
taiseiue
0
24
Tadpole operators
taiseiue
0
65
(自作の)プログラミング言語ができるまで
taiseiue
1
540
Other Decks in Technology
See All in Technology
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.9k
AWSと生成AIで学ぶ!実行計画の読み解き方とSQLチューニングの実践
yakumo
2
320
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
860
AIと融ける人間の冒険
pujisi
0
110
Claude Codeを使った情報整理術
knishioka
20
12k
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
140
AWS re:Inventre:cap ~AmazonNova 2 Omniのワークショップを体験してきた~
nrinetcom
PRO
0
130
kintone開発のプラットフォームエンジニアの紹介
cybozuinsideout
PRO
0
470
Everything As Code
yosuke_ai
0
500
国井さんにPurview の話を聞く会
sophiakunii
1
350
ECS_EKS以外の選択肢_ROSA入門_.pdf
masakiokuda
1
120
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
340
Featured
See All Featured
Believing is Seeing
oripsolob
0
20
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
76
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
120
GraphQLとの向き合い方2022年版
quramy
50
14k
Code Review Best Practice
trishagee
74
19k
Test your architecture with Archunit
thirion
1
2.1k
Un-Boring Meetings
codingconduct
0
170
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
720
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
Transcript
.NETの上で お手製の言語を動かす技術 Kyoto.cs#1 2025/4/6 京都産業大学 上村太成
自己紹介 •taiseiue • X @taiseiue • id:taiseiue • taiseiue.jp •
C#/TypeScript/Perl •
None
None
None
C#の話をします
None
None
None
AliceScriptの実装: Losetta
None
None
じゃあ AliceScriptの外の関数は?
None
None
None
こういう関数を考える
None
しんどい
None
こういうのにしたい
None
いるもの •Variable型から指定した型への変換 •.NETのメソッドをFunctionBaseにする
Variableか.NETの型への変換
None
いるもの • Variable型から指定した型への変換 •.NETのメソッドをFunctionBaseにする
None
BindFunctionには対応する .NET のメソッドの MethodInfoを持たせておく
BindFunctionには対応する .NET のメソッドの MethodInfoを持たせておく
遅い!
MethodInfo.Invokeの欠点 •遅い • リフレクション • 呼び出し毎に遅延バインディングが起きる
リフレクション
動的コード生成
None
None
None
None
Native C Functionは?
None
まとめ • リフレクションでメソッドを呼ぶときには • デリゲートにキャッシュしよう
None
乞う! コントリビューター!
完