DEV Community

Discussion on: I need your feedback about a new programming language idea to improve its design.

Collapse
 
theduck profile image
Mark Spurgeon

It seems that a language like that could be a nice use for statistics (remembering horrible courses on that...), but there should be a way to import algorithms of some sort, I suppose.

How is the language interpreted ? Is it interpreted by another language (c or python) or transformed into another language ? I'm asking this because ES6 javascript can transpile into ES5 with babel, JS gets updated a lot, and for the better. I think that python could have something like this as well, and in fact, your code looks a lot like python without the hassle (in my mind, at least, I'm not a professional:) )

Collapse
 
mak12776 profile image
Mohammad Amin Khakzadan

there is a way to import algorithms: we have jumping branches.
let's explain by example:

// check whether a number is even or not

print = [# io].print

(int % 2 == 0): 
(
    print "even"
    -> end
)
print "old"
end:

the interpreter can be written in python or C, but the virtual machine that wants execute byte code must be written in c for speed efficiency.
and yes, this a scripting programming language like python, javascript, TypeScript, ruby.