What is the most concise programming language?

What is the most concise programming language? if for brevity criteria are required: the balance requires the least number of characters to create any given program.

+10
language-agnostic programming-languages
source share
6 answers

Apl, hands down.

One line game of life:

alt text
(source: catpad.net )

+25
source share

J , a descendant of APL.

Example J implementation of quicksort (spaces for clarity):

quicksort =: (($:@(<#[) , (=#[) , $:@(>#[)) ({~ ?@#)) ^: (1<#) 
+9
source share

The Whitespace programming language allows you to use only three characters (space, tab and new line).

+8
source share

I think this is APL (or one of its dialects). For example, to find all primes between 1 and R, this code works:

  (~ R∊R∘. Γ— R) / R ← 1 ↓ ⍳R 

However, for daily use, I think that any functional language (like F #) is very concise, as you only express what you want, not how.

+8
source share

Binary

Then zeros and ones are interpreted as x86 code.

There really is no good answer.

+3
source share

As Yasin noted, functional programming languages ​​offer more brevity for everyday use. A good example is Haskell: the xmonad window manager was written in less than 1000 lines of code!

Although this is not directly related to the issue, it is also interesting to know that xmonad does not crash, because a theorem checking tool was launched in the code to prove that it will not crash! one

0
source share

All Articles