hczhcz / zin

A programming language (for fun) (discontinued)
MIT License
0 stars 1 forks source link

Hi, what is this project? #1

Closed h8liu closed 10 years ago

h8liu commented 10 years ago

Just curious, what is zin? What do you have in your mind?

hczhcz commented 10 years ago

Zin is a programming language. I design it to try some interesting ideas.

It is yet under designing (not runable now).

Maybe...

// Sorry for my bad English :)

h8liu commented 10 years ago

Thanks for your quick response. Please tolerate my curiosity; I have more questions:

btw, I also speak Mandarin, if you prefer.

hczhcz commented 10 years ago

Is it going to be interpreted or compiled? Sounds more like a interpreted language.

Yes, it is interpreted. Partly JIT compiled is possible, but it takes a lot of work, you know. :)

Also, it sounds like Scheme, so far. So what will be the difference?

Most of the language (intepreter) is in the standard library. For example, True and False are defined atom.zc, and it is possible to redefine them (a := definition(true); definition(true) := '(print "ahaha", a)).

Another difference is that both variables and (some of) functions has "(on)write" operation. Function can run back. sin(x) := 1 will be an arcsine.

Besides, it will not be so "pure" but looks like a procedural programming language.

Sorry for my ignorance, what does "nyfix syntax" mean?

"中缀表达式" maybe :)

h8liu commented 10 years ago

Thanks! :)