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.

Bootstrapping a prototype-based object-oriented language in 44 lines of code.

14 pointsby aarongoughalmost 15 years ago

3 comments

petercooperalmost 15 years ago
Seeing OOP implemented in "raw" C is similarly eye opening. As with this example, you have to do a bit of caretaking, but even the most complex structures are built from simple ones that nearly all languages support.<p>Added: This isn't a particularly simple example, but I just found a good looking PDF on OOP in C that seems worth sharing: <a href="http://www.planetpdf.com/codecuts/pdfs/ooc.pdf" rel="nofollow">http://www.planetpdf.com/codecuts/pdfs/ooc.pdf</a>
评论 #1509483 未加载
aarongoughalmost 15 years ago
Feedback is warmly welcomed as always. If any of the HN crowd sees issues with this approach I would love to hear about them before I commit to building this into my final language...
eterpsalmost 15 years ago
I'd love to see an example of such a protoype based object oriented language in x86 Assembly language.
评论 #1509307 未加载