Coder Social home page Coder Social logo

dum-cpp's Introduction

DUMB

Dumb, the language with the file extension 'dum', is extremely stupid and a very massive waste of brainpower. It gets its name from the pure insanity programmers feel when trying to use it practically.

If you just want the commands to build and run Dumb, just scroll to the bottom.

Prerequisites

In order to use Dumb, you will need the following:

  • a Linux machine
  • a C++ 20 compiler
  • the Netwide Assembler (NASM)
  • the gnu linker (should be preinstalled on Linux, though)
  • a well-deserved YouTube subscription to Pixeled for making his follow-along series

Building

As with many C++ projects, you need CMake! In order to build for a linux machine, run the following:

$ mkdir ./build
$ cmake -S . -B ./build
$ cmake --build build

Running Dumb Code

The finished executable should be located at './build/dum'. If you would like to evaluate a file, go to the main directory and run

$ ./build/dumb test.dum

Running Dumb generates an out file located at ./out. This file should not need to be chmoded.

Bash lets you view the previously run command's exit code using $?. This is useful, considering at the time of writing this that exit codes are the only form of output in Dumb.

$ ./out
$ echo $?

Recap

All you need to use Dumb is a Linux machine with NASM and CMake installed, as well as some low-level computer knowledge and a Bash terminal that can run these commands:

# Building the source code
$ mkdir ./build
$ cmake -S . -B ./build
$ cmake --build build
# Running actual Dumb
$ ./build/dum test.dum
$ ./out
$ echo $?

dum-cpp's People

Contributors

mrevandg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.