TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Implement a programming language from scratch

136 pointsby sea6earabout 10 years ago

5 comments

bishcabout 10 years ago
In my experience, many people will miss the significance of this, or will simply fail to grasp how this is implementing a programming language at all. After all, you&#x27;re taking advantage of the host language for every single aspect of the new language, even tokenizing&#x2F;parsing.<p>More interesting for beginners (in my opinion) are examples implementing a simple tokenizer, parser, and compiler to another source language. This seems to be what closes the gap between programming languages as mystical constructs and programming languages as programs themselves.<p>This point of view does tend to displease the traditional SICP crowd though :-).
评论 #9299630 未加载
评论 #9299091 未加载
评论 #9300131 未加载
评论 #9300440 未加载
评论 #9300124 未加载
评论 #9299111 未加载
samatmanabout 10 years ago
C&#x27;mon, why stop there? Implement Scheme in your toy lambda. Then implement another toy lambda in your Scheme, and a Scheme in that. Continue until it takes several minutes to do (fib 5). Then, write JIT compiler for that Scheme. See what it takes to get down to pre-Inception levels of performance.<p>Now, you&#x27;ve actually learned something: Abstractions are costly.
评论 #9298710 未加载
评论 #9298482 未加载
评论 #9300539 未加载
amaticabout 10 years ago
Here is something from my todo list, build lisp in C: <a href="http:&#x2F;&#x2F;www.buildyourownlisp.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.buildyourownlisp.com&#x2F;</a>
wesleyyabout 10 years ago
Scared me for a second, thought he as going to make a programming language in the MIT gui language &quot;Scratch&quot;
bltabout 10 years ago
Just add garbage collection!