Go Back   Science Forums
View Single Post
Old 04-24-2009   #21 (permalink)
alexander's Avatar
alexander
Dedicated Smart-ass




Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: Self-Referential Language?

you dont need to know assembly or c to write your language, you can write it in any language you want, generally if it's a compiled language then the compiler is written to smartly translate the language into assembly, and then it is assembled and compiled again into a binary for a particular operating system...

Also most interpreters, for the sheer need of speed of execution, are written in C (more oftenly C++), but as Buffy could tell you, you can write a C compiler in Lisp, nothing's stopping you. Mind you most C compilers are written in C ( yes, go figure that one ) also most (well i only know of one, and a shell) C interpreters are written in C.

Point being, no, you dont need to know a low level language to make your own programming language. Infact a well-defined language would tend to attract programmers that will code it in a low-level language for you. There are a few books available on language design

David A. Watt - "Programming Language Design Concepts"
Raphael Finkel - "Advanced Programming Language Design"
Terrence W. Pratt and Marvin V. Zelkowitz - "Programming Languages: Design and Implementation"
Bruce J. MacLennan - "Principles of Programming Languages"

At least a couple of those above should be augmented with "Programming Language Pragmatics Second Edition" by Michael L. Scott

Also these three books in succession (they get progressively more hardcore, and they all talk about modern compiler techniques, loop optimization, SSA, all kinds of good stuff):
Kenneth C. Louden - "Compiler Construction: Principles and Practice" - (this is more of a course book for students)
Andrew W. Appel - "Modern Compiler Implementation in C" - (this is a book that those students read to ace the course and familiarize themselves with up-to-date practices)
Steven Muchnick - "Advanced Compiler Design and Implementation" - (this is the book for the students that can teach the course and have the professor learn things he's probably never heard before)

But also remember, if you go with my advise and get 5 books (one out of the first set, the pragmatics book and the last 3 on compiler design) its nearly a 500 dollar bill, books on advanced topics are not cheap... But my point is, programming language design is above the range of a tutorial, a good programming language takes knowledge and practice, psychology and imagination, a good knowledge of current languages, but not a drive to compete with any of them. Only then can you desing a language that stands out on its own...


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.


Last edited by alexander; 04-24-2009 at 06:13 AM..
Reply With Quote
 
» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 06:45 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network