DWIM

From Esolang
Jump to navigation Jump to search

DWIM (Do-What-I-Mean) is a joke esolang invented by User:Ttulka. It features only a single instruction dwim that executes whatever the programmer has in mind.

DWIM is inspired by the hacker jargon expression of the same name, which implies correcting any mistakes the programmer has made and ensuring the code does the right thing.

Computational class

DWIM can theoretically perform all computational tasks, making it Turing-complete. However, an interpreter for DWIM would need to read the programmer's mind, which is currently an uncomputable challenge.

With the development of artificial superintelligence and nanotechnology, this issue might eventually be solved, potentially demonstrating that DWIM is indeed computable and highly useful.

Examples

Solving any popular problem in DWIM is very easy:

Hello, world!

dwim

99 bottles of beer

dwim

Quine

dwim

Fibonacci sequence

dwim

Factorial

dwim

Cat program

dwim

Mandelbrot set

dwim

Bootstrap

dwim

Truth-machine

dwim

Infinite loop

dwim

Palindrome

dwim

Software development

It is also possible and fairly easy to build more complex software in DWIM:

Brainfuck compiler

dwim

Perl interpreter

dwim

Java virtual machine

dwim

Linux kernel

dwim

Windows 95

dwim

Castle Wolfenstein

dwim

AlphaGo

dwim

Google search engine

dwim

Bitcoin

dwim

Internet

dwim

External resources