Dinfio Programming Language

A simple, fun, and powerful programming language.
Dinfio 3.1.03 is released. Download now!

Download Now  Try Online


What is Dinfio?

Dinfio is a high-level, general-purpose, interpreted, minimalist, and simple programming language. Dinfio's design philosophy is "code simple!". Here is an example of "Hello world" program in Dinfio:

start
    writeln("Hello world!")
stop

Or just:

writeln("Hello world!")

Dinfio supports multiple paradigms, including imperative, procedural, object-oriented, and event-driven programming. Dinfio comes with great built-in modules, like Standard I/O, String manipulation functions, Mathematical functions, Regular expression, File I/O, Graphical User Interface (GUI), HTTP requests, and JSON functions.

So, let's get started!

  1. Download and install the Dinfio Programming Language
  2. Launch your favourite text editor and code this:
    ' My first program
     
    start
        for i, 1, 5
            writeln("Hello, I'm Dinfio")
        endfor
    stop

  3. Save your code with .fio extension, for example save it as greeting.fio on your home directory
  4. Launch Terminal/Command Prompt and type dinfio greeting.fio. You'll see the greeting:
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio
    Hello, I'm Dinfio

  5. Viola! You have created your first program using Dinfio.

Download and Install

Let's go download and install Dinfio! Select your operating system below and follow the instructions to download and install Dinfio

Download Dinfio 3.1.03 for Linux

  1. Extract the package file you have downloaded (dinfio-3.1.03-linux-gtk3.tar.gz):
    $ tar -xzf dinfio-3.1.03-linux-gtk3.tar.gz

    Or if you are using older Linux with GTK 2 installed, download package file dinfio-3.1.03-linux-gtk2.tar.gz instead. And extract it:
    $ tar -xzf dinfio-3.1.03-linux-gtk2.tar.gz

  2. Install Dinfio:
    $ cd dinfio-3.1.03/
    $ ./install.sh

  3. Verify that Dinfio is installed:
    $ dinfio -v

  4. If the command prints the Dinfio version, then Dinfio is successfully installed.
* System requirement: Linux x86-64 with GTK installed.
You can also find the older versions here.

Download Dinfio 3.1.03 for macOS

  1. Open the package file you have downloaded (dinfio-3.1.03-macos.pkg) and follow the wizard to install Dinfio
  2. Launch Terminal and type the following command to verify that Dinfio is installed:
    $ dinfio -v

  3. If the command prints the Dinfio version, then Dinfio is successfully installed.
* System requirement: macOS 10.12 Sierra or later.
You can also find the older versions here.

Download Dinfio 3.1.03 for Windows

  1. Open the installer file you have downloaded (dinfio-3.1.03-windows.exe) and follow the wizard to install Dinfio
  2. Launch Command Prompt and type the following command to verify that Dinfio is installed:
    dinfio -v

  3. If the command prints the Dinfio version, then Dinfio is successfully installed.
* System requirement: Windows 7 or later.
You can also find the older versions here.

Examples

Here is an example of beautiful GUI programming in Dinfio with very simple code lines:

' GUI Programming
 
import gui
 
start
    window = gui_window("Hello!", 260, 130)
 
    label = gui_label("Your name: ", window, 20, 20)
    textbox = gui_textbox("", window, 100, 17)
    button = gui_button("OK", window, 100, 56)
 
    button.addevent(event.click, button_click())
    window.show()
stop
 
function button_click()
    messagebox(textbox.gettext())
stop

Output:

It's very simple, isn't it? You can even find more great and fun Dinfio program examples on the Dinfio Playground.

The IDE

Dinfio IDE is the default Integrated Development Environment (IDE) for creating your Dinfio programs. You can directly run your programs from the IDE. Dinfio IDE comes with so many features, including Syntax highlighting, Auto completion, Code hint, Editor theming, and many more.

Here are some of Dinfio IDE screenshots:

The overview





 

Run program





 

Auto completion





 

Dark theme





 

Editor style customisation





 



You can download the latest version of Dinfio IDE here:

Download Dinfio IDE

Current Dinfio IDE version: 3.0.22.
For this time, Dinfio IDE only supports Dinfio 3.0.12 and earlier versions.