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
7 languages in 30 minutes
Search
Kimmy Leo
November 18, 2015
Programming
32
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
7 languages in 30 minutes
https://zhuanlan.zhihu.com/p/20289355?refer=lessmore
Kimmy Leo
November 18, 2015
Transcript
26 slides
7 languages in 30 minutes RETHINK COMPUTATION AND LANGUAGE
contents 1. a linear memory based language 2. a pattern
matchingbased language 3. a meta language 4. a stack based language 5. a (markup)language 6. a macro language 7. a modelinglanguage
Linear memory Memory cells Addressing Pointer Increment/Decrement Program Counter PC-Stack
Brainfuck MINIMAL MODEL FOR COMPUTATION
Pattern maching a = a; X = a; //=> X
results a a(b, c) = X; //=> X results a(b, c) a(X, c) = a(b, Y); //=> X results b, Y results c [H|T] = [1,2,3,4,5]; //=> H results 1, T results [2,3,4,5]
length of a list len([], 0). len([H|T], X) :- len(T,
Y), X is Y+1.
Prolog PROGRAMMING LOGIC
program as data 1 + 2 − 3 ×4
program as data * + 1 - 2 3 4
program as data (* (+ 1 (- 2 3)) 4)
Scheme LOST IN STUPID PARENS
stack-based operations * + 1 - 2 3 4
postfix expression 1 2 3 - + 4 *
stack-based operations see <04/fix.cpp>
JVM bytecode 0: iconst_2 1: istore_1 2: iload_1 3: sipush
1000 6: if_icmpge 44 9: iconst_2 10: istore_2 11: iload_2 12: iload_1 13: if_icmpge 31 16: iload_1 17: iload_2 18: irem 19: ifne 25 22: goto 38 25: iinc 2, 1 28: goto 11 31: getstatic #84; // Field java/lang/System.out:Ljava/io/PrintStream; 34: iload_1 35: invokevirtual #85; // Method java/io/PrintStream.println:(I)V 38: iinc 1, 1 41: goto 2 44: return
PostScript/Forth PROGRAMMING LANGUAGE FOR PUBLISHING AND PRINTING
represent a math expression × => a x b ?
+ , => a / b ? lim 0→2 sin => lim x -> 0 sin x ? ∑ 7 => SIGMA x 2 ?
represent a math expression × => a \times b +
, => \frac{a}{b} lim 0→2 sin => \lim_{x -> 0}{sin x} ∑ 7 => \sum{x^2}
represent an article \article \section \subsection \paragraph \theorem …
XML <article> <section> <subsection> <p></p> <subsection> </section> </article>
XSLT
LaTeX ALL YOU NEED IS A SUITABLE DISTRIBUTION
magic of string substitution vDefine vQuote vEval vMeta-programming vTokens vRecursion
m4 LAZYMAN’S LAZY TOOL
? WHAT YOU CAN MAKE
None
More Decks by Kimmy Leo
See All by Kimmy Leo
Build Typed Web
kenpusney
0
26
FP Explains
kenpusney
1
60
Other Decks in Programming
See All in Programming
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
120
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
340
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
440
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
810
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
LLM 101
dalinaum
0
540
SODA - FACT BOOK(JP)
sodainc
1
40k
Featured
See All Featured
Everyday Curiosity
cassininazir
0
420
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
GitHub's CSS Performance
jonrohan
1033
470k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1.1k
Making Projects Easy
brettharned
120
6.9k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Six Lessons from altMBA
skipperchong
29
4.6k