[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What are the most elegant languages from a compilers standpoint?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 1

File: Child-questions-1440x810.jpg (31KB, 1440x810px) Image search: [Google]
Child-questions-1440x810.jpg
31KB, 1440x810px
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
Thread posts: 21
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.