You are not logged in.

#1 2015-03-20 05:06:18

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Havok code -- a new language

Hey there, my name is syfyguy. I have been writing a language in c++ and have been an arch linux user for about 9 months (using linux for 2 1/2 years). Anyway Havok is an incredibly fast custom bytecode virtual machine.

I have run some tests... not THE best tests by any means, (cough*) create two numbers add and print to screen (cough*), but i will test with ackermann's function against c++

Anyway Havok is about 20-40 microseconds slower than c++ compiled with the same arguments. Another benefit of Havok is I will be writing a few 'compilers' for it, what i mean is you could take say python running at (.012 seconds) or java, c#, c, c++ whatever you want (as long as theres a compiler) and compile it to havok code running at (.000660 seconds).

Current status:
windows port: yes (compiled from linux)
Linux port: yes (actually Havok is coded on linux)
Mac port: maybe (don't own a mac)
IOS port: maybe (don't own a iphone)
Android port: working on it, i have an arm cross-compiler installed just need to compile boost.

General question would you try Havok out?

Stuff left to do on Havok:
Build a garbage collector (NOT LIKE JAVA's)
a preprocessor
a pre-scan efficiency checker.
Maybe opengl wrapper?
Full cross-platform gui, sound, and events

Example of a Havok program:

1;A;5
7;A

Breakdown:
1 = create number
A = variable name
5 = A's value
7 = print to screen
A = 7's value to print

Last edited by syfyguy13 (2015-03-20 05:09:15)

Offline

#2 2015-03-20 05:15:06

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Re: Havok code -- a new language

Whoops wrong area sorry newb to these forums, could someone move me to offtopic?

Last edited by syfyguy13 (2015-03-20 05:15:40)

Offline

#3 2015-03-20 05:18:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Havok code -- a new language

This is probably the right board, but there is no link in your post: where is the code?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-03-20 05:20:26

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Re: Havok code -- a new language

Oh whoops right i will have a link in like 3 days, just wanted to ask if anyone would be interested in trying it when i'm finished with a stable version.

Last edited by syfyguy13 (2015-03-20 05:21:17)

Offline

#5 2015-03-20 05:23:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Havok code -- a new language

Oh, so it is vapourware? wink


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-03-20 05:28:09

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Re: Havok code -- a new language

well no i activly develop it and i will release a binary very soon like 3 days i just need to build stuff like for loops, functions and make sure it's stable enough.

Offline

#7 2015-03-20 05:32:24

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Re: Havok code -- a new language

Unfortanetly i wasted an entire day trying to compile it on windows (not a fun experiance).

Offline

#8 2015-03-20 15:08:16

hipersayan_x
Member
Registered: 2014-12-09
Posts: 36
Website

Re: Havok code -- a new language

syfyguy13 wrote:

Example of a Havok program:

1;A;5
7;A

Breakdown:
1 = create number
A = variable name
5 = A's value
7 = print to screen
A = 7's value to print

How is that? Its an esoteric PL?

Offline

#9 2015-03-20 15:21:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Havok code -- a new language

syfyguy13
    Member
    From: Somewhere in my mind.

:-)

Offline

#10 2015-03-20 15:34:55

syfyguy13
Member
From: Somewhere in my mind.
Registered: 2014-05-09
Posts: 9

Re: Havok code -- a new language

hipersayan_x wrote:
syfyguy13 wrote:

Example of a Havok program:

1;A;5
7;A

Breakdown:
1 = create number
A = variable name
5 = A's value
7 = print to screen
A = 7's value to print

How is that? Its an esoteric PL?

Havok is like assembly (*not easy to be written in) or java's bytecode, not meant to be written in, but meant to be compiled to.
oh i'm sorry i haven't given any documentation here i will be building a wiki soon:

1 = create number;
2 = create string;
3 = add operator example 3 (the operator);INPUT;INPUT;OUPUT
4 = subtract operator example 4;INPUT;INPUT;OUPUT
5 = multiply operator example 5;INPUT;INPUT;OUTPUT
6 = divide operator example 6;INPUT;INPUT;OUTPUT
7 = print operator example 7;"Hello, World"
8 = import another file example 8;"mymathlibrary.hav" or 8;"math"
9 = function example 9;RETURN TYPE;NAME;(ARGS)
10 = class 10;CLASS NAME

Last edited by syfyguy13 (2015-03-20 15:35:43)

Offline

Board footer

Powered by FluxBB