News for hackers. Stuff that matters.
Re:Atomo, the programmer's programmable programming language by sliverstorm on Saturday November 13, 2010 @04:46PM (#1901799)
Are there any languages out there that are, or virtually are, written entirely in themselves?
Re:Atomo, the programmer's programmable programming language by gjm11 on Saturday November 13, 2010 @05:26PM (#1901871)
The examples I'm surprised no one has mentioned so far: C and C++. (gcc is written in C. clang is written in C++. Just about every C or C++ compiler is written in C or C++ or both, though there are exceptions like the C compiler on the Symbolics Lisp machines.)
Re:Atomo, the programmer's programmable programming language by elviejo on Sunday November 14, 2010 @12:47AM (#1902639)
There is even a conference for languages like this:

Workshop on Self-sustaining Systems (S3)

http://www.hpi.uni-potsdam.de/swa/s3/

The Workshop on Self-sustaining Systems (S3) is a forum for discussion of topics relating to computer systems and languages that are able to bootstrap, implement, modify, and maintain themselves. One property of these systems is that their implementation is based on small but powerful abstractions; examples include (amongst others) Squeak/Smalltalk, COLA, Klein/Self, PyPy/Python, Rubinius/Ruby, and Lisp. Such systems are the engines of their own replacement, giving researchers and developers great power to experiment with, and explore future directions from within, their own small language kernels.

Re:Atomo, the programmer's programmable programming language by jashkenas on Saturday November 13, 2010 @04:56PM (#1901820)
I was interested in Atomo-in-Atomo, because I'm working on CoffeeScript, a language that is written in itself:

http://jashkenas.github.com/coffee-script/documentation/docs...

Re:Atomo, the programmer's programmable programming language by jhrobert on Sunday November 14, 2010 @03:46PM (#1904093)
Come on! by now everybody knows what you're working on! ;-)
Re:Atomo, the programmer's programmable programming language by DavidSJ on Saturday November 13, 2010 @04:55PM (#1901819)
Squeak, for example, has its VM quite literally written in a subset of itself called Slang, which translates to C: http://ftp.squeak.org/docs/OOPSLA.Squeak.html

Also, most Lisps (especially Scheme) have a relatively small core written in C for bootstrapping, and the rest of the language is written in itself.

Re:Atomo, the programmer's programmable programming language by scott_s on Saturday November 13, 2010 @05:36PM (#1901885)
The Jikes RVM (Research Virtual Machine) uses a similar approach: http://jikesrvm.org/ Most of the implementation is written in Java, but there's a small core written in C that bootstraps the VM.
Re:Atomo, the programmer's programmable programming language by omaranto on Saturday November 13, 2010 @08:42PM (#1902243)
GHC is written in Haskell (and is the premier Haskell compiler).
Re:Atomo, the programmer's programmable programming language by steveklabnik on Saturday November 13, 2010 @04:50PM (#1901804)
Both Ruby and Python have interpreters implemented in themselves.

http://rubini.us/

http://codespeak.net/pypy/dist/pypy/doc/

Re:Atomo, the programmer's programmable programming language by jckarter on Saturday November 13, 2010 @11:41PM (#1902548)
Aside from a tiny VM written in C++, nearly all of Factor (http://factorcode.org/), including its parser, optimizing compiler, and code generator, is written in itself. The author of Clay (http://tachyon.in/clay/) is working on a new version of its compiler written in itself too.
Re:Atomo, the programmer's programmable programming language by cubicle67 on Sunday November 14, 2010 @12:28AM (#1902605)
Delphi was, pre .net days.

It had a handful of assembler code to bootstrap it, and from there it built upon itself

Re:Atomo, the programmer's programmable programming language by omaranto on Saturday November 13, 2010 @08:44PM (#1902246)
I think I read the very first implementation of Pascal was in Pascal. Which of course meant it couldn't run at all! So it ran on the second Pascal implementation: a hand translation of the first to assembler.
Re:Atomo, the programmer's programmable programming language by micrypt on Wednesday November 17, 2010 @10:45AM (#1914555)
The Scala compiler's written in Scala.