Small project
Posted: Sun Oct 17, 2010 1:43 pm
Recently I 'didn't have much time to work on TA3D because I've been busy, then sick and I spent the little spare time I had on another project. I've always been dreaming of creating my own programming language so this is what I've been doing. It's written using bisonc++, it's compiler to byte code which is then interpreted by a virtual machine like Lua does except it's a C++-like language. Polymorphism and templates are still missing but I plan to add them. It doesn't use a Garbage Collector so you need to manage memory yourself. Even though it's interpreted it's quite fast (faster than official Lua VM and faster than LuaJIT 2 interpreter which is written in assembler but of course it's slower than LuaJIT's JIT and slower than native machine code in general by a factor 4-10 on what I've tested so far) and very modular: it builds modules which can share symbols (functions only, you don't access external variables). You can also use native modules (plugins built as shared objects, .so on Linux, .dll on windows) whose symbols are resolved dynamically like with byte code modules (and have priority over byte code for performance reasons). The VM works on 32 and 64bits Linux PC platforms and should be portable to other little-endian platforms too but I haven't tested on any big endian system and since the VM does very low level things I am not sure it works without any modification on big endian systems.
Ho and you probably want to know the name of this language : ZZF , Z was already used according to Wikipedia so I took 2 U from my nick but it may change later.
Of course it's free software and you'll find the sources here:
svn://www.zuzuf.net/zzf
Ho and you probably want to know the name of this language : ZZF , Z was already used according to Wikipedia so I took 2 U from my nick but it may change later.
Of course it's free software and you'll find the sources here:
svn://www.zuzuf.net/zzf