What are the most elegant languages from a compilers standpoint?
Assembly.
>>60118921
>What are the most elegant languages from a compilers standpoint?
wtf does that even mean?
the best language to build a compiler or the best language to compile?
machine
>>60118921
binary
>>60118948
Lol clearly you don't even know the first thing.
>>60118921
I think lisp/scherm for its syntactical simplicity. You'll need like 5 lines to parse the whole thing.
Then C because of its tight relation with the ASM equivalent of C code
Then probably fortran or something I don't know that much about the older languages
>>60118935
for which architecture
LISP
FORTH
R
O
T
H
Maybe Oberon, a member of the Pascal family. The spec for the language is seventeen pages long: http://people.inf.ethz.ch/wirth/Oberon/Oberon07.Report.pdf
Wirth and his people were able to get an entire OS (Project Oberon) to run on an FPGA-based computer with one megabyte of RAM. Good luck finding a way to run a recent version on either a PC or in a VM, as the people at ETH Zuerich are shit about keeping their websites in order.
>>60122331
>Good luck finding a way to run a recent version on either a PC or in a VM, as the people at ETH Zuerich are shit about keeping their websites in order.
Isn't it commercially anyway?
most likely lisp
>>60118921
lisp or scheme
>>60118921
Most likely a language the compiler can derive the most specific semantics from.
So not assembly/lisp/forth/[your_macro_garbage_here].
>>60119178
For any.
It has 1:1 representation in machine code.
>>60119092
what
Lisp or Forth, because the core language is tiny and most of the language proper is just libraries.
scheme in both ease of parsing and implementation
go in ease of parsing
>>60122331
that's a good one too
>>60118921
Forth.
You parse whitespace delimited words, look them up in the dictionary (i.e symbol table) and either execute them immediately (if interpreting, or the word should be executed at compile time), or compile a call to the word.
If word not found in dict, try and parse as number and interpret/compile that.
You can bootstrap and implement this in a few hundred asm lines or less.
>>60118921
Literally brainfuck
>>60118935
Doesn't need a compiler