|
|
|
|
|
by platform
2338 days ago
|
|
> One can create new languages fit for the purpose of a given class of problems and thus reducing size of codebase 10 to 100 fold interesting, thank you for sharing. Could I transpose your thought into: -- Solutions (or large scale programs), should not be written
in a general purpose language. Instead, there should be core domain language (solution DSL) developed (using a general purpose language)
and then the solution should be developed using the solution DSL. ? |
|
That is, I'm trying to write a program to do X. In, say, C++, I create data structures and functions as building blocks to write the higher-level functionality of the program. That's my "DSL" - just classes (structures and functions).
In Lisp, I can go further. In creating a DSL, I can not only create function (and, through functions, data structures), but I can also create syntax. This may let me write less code, and may make the code I write clearer.
My assertion is that, while that's nice, most of the DSL is actually the functions and data structures. The syntax is sugar - say, maybe 10% of the benefit, but not more.