This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
syfygirl's profile picture

new programming language

Started by syfygirl, 19 March 2015 - 01:23 AM
syfygirl #1
Posted 19 March 2015 - 02:23 AM
Hey, I write programing language (for real life computers) in c++ Called Havok. Would anyone be interested in trying it out soon (have to build some stuff like an effecient garbage collector, more syntax)

A little bit about Havok.
Havok is like java… and then not like java.

Havok is virtual machine that excepts Havok bytecode. The benefit of this is that you can write/find a compiler that compiles say c, c++, java, c#, python into havok bytecode.


1;A;5
7;A

the previous code does:


1 = number
A = variable name
5 = A's value
7 = print
A = print's value

I also ran some tests on Havok:


Specs:
Amd fx-6100
4 gb of ram

C++ speed = .000618 seconds
Havok speed = .000668 seconds
As you can see havok is almost as fast as c++, i hope to write optimization code for it soon, right now it just runs it.

Havok currently runs on x86_64 and x86 and soon arm, operating systems: linux (tested); windows (not tested but soon); mac (don't own a mac); android (soon); ios (don't own a mac).
Edited on 19 March 2015 - 03:09 PM
AssossaGPB #2
Posted 19 March 2015 - 02:43 AM
Looks nice. Can we have a link to the vm and some documentation on the bytecode please? Other than that it looks great.

Does it have support for guis, opengl, sound, input device, etc?
syfygirl #3
Posted 19 March 2015 - 02:47 AM
Will have FULL cross-platform graphics support and sound, maybe device handling. the vm is not suitable yet, give me 3-4 days then i'll link, hopefully i'll have a garbage collector then. Um… well… in the future i may make a cross-platform opengl wrapper.
Edited on 19 March 2015 - 02:19 AM
CrazedProgrammer #4
Posted 19 March 2015 - 11:34 AM
Very cool bytecode!
I think the name Havok is already copyrighted (Havok's physics engine)
syfygirl #5
Posted 19 March 2015 - 12:46 PM
DAGNABIT!! Ok well time to rename, thank you for telling me.
Lupus590 #6
Posted 19 March 2015 - 02:57 PM
Name suggestion: DAGNABIT!!
p1: Why is it called that?
p2: because the author wanted a different name that was already taken, when he was told it was taken his response was "DAGNABIT!!"

Also (in the UK at least) you are allowed to use a copy-written (spelling?) name if it's being used in a new field (I.E. if Havoc was something to do with tele-coms, you could use it.
syfygirl #7
Posted 19 March 2015 - 03:14 PM
dagnabit hmmm… idk but i am compiling libararies and mingw-gcc to port to windows, sorry mac users i don't own a mac.
AssossaGPB #8
Posted 19 March 2015 - 03:32 PM
Eh, real programmers don't use mac anyway. (Don't start a flame war, I don't care about your opinion on this topic)

You should make the vm and stuff open-source. Then everyone could help with ports and optimization :D/>
syfygirl #9
Posted 19 March 2015 - 03:36 PM
hmm i think i will keep it closed source (because reasons) i'm not sure though.

my goodness the boost library takes forever to compile for mingw on linux

again DAGNABIT!! i was compiling boost libraries on Linux in /tmp and it filled up and canceled gcc
Edited on 20 March 2015 - 01:24 AM
Lupus590 #10
Posted 19 March 2015 - 04:43 PM
pre-compiled here: http://nuwen.net/mingw.html
syfygirl #11
Posted 19 March 2015 - 06:13 PM
good news mingw and gcc is set up on windows, installing boost

FINALLY!!!! it took 2 hours but i almost have a windows port

CURSED WINDOWS, ok scratch that windows is being uncooperitave, i will cross-compile from linux to windows

HA SUCK IT WINDOWS hmmm sorry there…. anyway i compiled a port for windows on linux… android and mac in the future

Hey um… anyone have a mac that would be willing to run tests?