A
A
Andrew2015-03-07 13:55:22
Programming languages
Andrew, 2015-03-07 13:55:22

The smallest subset of a high-level programming language?

By analogy with the minimum subset of operations sufficient for Turing completeness:
Is there a minimum set of built-in facilities for a high-level language with which to implement any other features that currently exist in any high-level language?
For example, C# has keywords asyncand yield return. What must exist in the language so that such functionality can be added as part of the standard library, and not built into the compiler?
My version - we need macros, anonymous functions with closures, pattern matching, generic types...

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sergey, 2015-03-07
@begemot_sun

LISP

A
Armenian Radio, 2015-03-07
@gbg

C++ without STL, iostreams and cstdlib is exactly what you are looking for.

V
Vapaamies, 2015-03-07
@vapaamies

Over time, I will learn this in practice. :-)

M
mamkaololosha, 2015-03-07
@mamkaololosha

> Minimum subset
> With ++ it, to put it mildly, not the minimum subset. And before version '11, it didn't even have lambda expressions.
Weird logic. You ask about the minimum , but say that according to your C ++ this is not even the minimum . This is the same as saying that a Zhiguli is not a minimal subset, because it doesn’t even have the latest lighting system for hundreds of oil.
See asm. It's definitely minimal. Or prolog. This is the same as when you come to the Ministry of Finance and prove to them that the cost of living is 100k a day. What a minimalist you are . Hipster maybe?
Bottom line: minimalistic and applied is C and other haskel-lisps.

A
Anatoly Scherbakov, 2015-03-07
@Altaisoft

It's strange that no one has mentioned Rust yet . Its developers set themselves the task of making the language as simple as possible with a minimum number of entities. The language is actively developing; closures, pattern matching and template types already exist in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question