News for hackers. Stuff that matters.
Re:100x better approach to software? by tgflynn on Monday April 23, 2012 @11:41AM (#3879317)
But how many lines of code does it take to implement the language that allows them to implement TCP in 160 LOC ?
Re:100x better approach to software? by mbrubeck on Monday April 23, 2012 @12:06PM (#3879466)
That language is OMeta. There are several implementations; the latest JavaScript compiler is just a few hundred lines. http://www.tinlizzie.org/ometa/

The compiler is self-hosting; much of that JS code is actually compiled from OMeta source. For another example, the Common Lisp version includes fewer than 200 lines of OMeta source and fewer than 300 lines of Lisp source.

OMeta was a very eye-opening language for me because of the great expressiveness it gets from its simple but novel approach. (I've written code in Haskell, Prolog, Scheme, OCaml, and plenty of other languages, but OMeta is not like any of them.) If you are interesting in programming languages and/or parsing, Warth's thesis is a great read.

Re:100x better approach to software? by CodeMage on Monday April 23, 2012 @03:10PM (#3880440)
Thanks for this! I'm still reading the dissertation and haven't gotten to the end yet, but so far it seems to me like what it would be like to "program in ANTLR", so to speak; except that OMeta looks easier to understand and use.
Re:100x better approach to software? by corysama on Monday April 23, 2012 @12:16PM (#3879527)
The compilers, down to machine code, are included in the 20K budget. The special language -> intermediate form tool is only a few hundred lines. There are a couple of intermediate -> machine code tools, also a few hundred lines. And of course, together they are self-hosting.

Check out the top paper in that list http://www.vpri.org/pdf/tr2011004_steps11.pdf The pdf was produced in their publishing software, running on their OS, compiled with their compilers. And, they are still under budget.

Re:100x better approach to software? by jules on Monday April 23, 2012 @12:13PM (#3879507)
100 lines:

"Ometa can be made in itself and optimized in about 100 lines of code" -- http://www.vpri.org/pdf/tr2010004_steps10.pdf

And then about 100-200 lines to compile the intermediate language to machine code according to this paper: http://www.vpri.org/pdf/tr2010003_PEG.pdf

Re:100x better approach to software? by wmf on Monday April 23, 2012 @12:14PM (#3879518)
They tend to use layers of DSLs (sometimes four or five deep), but even when you add up the code for all the layers it's smaller than C.
Re:100x better approach to software? by loup-vaillant on Monday April 23, 2012 @03:02PM (#3880394)
Much smaller (at most 2000 lines of compiling tools). And of course, we don't count the number of lines in GCC for the C program.