Carsten Haitzler
0ecea4b609
0.9.1 version up
...
SVN revision: 11882
2004-10-14 06:09:59 +00:00
Carsten Haitzler
9a09666229
embryo speedups...
...
this makes embryo just about the fastest "scripting vm" around - unless you
tie yourself to a particular cpu and add a jit for that cpu (which embryo
doesnt have).
bash: 4681.700 (estimate - ran only 1/100th of loop)
python: 38.193
ruby: 21.015
perl: 18.925
java (gij-3.4) (no jit): 2.484
embryo: 1.041
java (kaffe) (jit): 0.176
c: 0.157
notice emrbyo is more than double the speed of the java vm. this is all
portable code - no jit tied to 1 cpu. we can add that later per cpu - but for
a vm/scripting solution thats cross-platform and runs anwyeher on 32, 64bit
cpus, ppc, x86, x86-64, alpha, arm, sparc, mips etc. it's pretty damn good.
yes this test is VERY naieve and simple and only tests a subset - but it
tests the general execution and interpreting engine, being able to make
logical decisions, interpret code and do math operations. we should do a more
comprehensive test, but this is pretty good for a simple one.
here's the source used:
bash:
#!/bin/bash
I=1
while [ $I -lt 1000000 ]; do
let I++
done
python:
i = 1
while i < 100000000:
i = i + 1
ruby:
1.upto(100000000) { }
perl:
#!/usr/bin/perl
for ($i = 1; $i < 100000000; $i++) {
}
java:
public class loop {
public static void main(String[] args) {
int i;
for (i = 1; i < 100000000; i++) { }
}
}
embryo:
main() {
new i;
for (i = 1; i < 100000000; i++) { }
}
c:
main() {
int i;
for (i = 1; i < 100000000; i++);
}
SVN revision: 11880
2004-10-14 04:17:20 +00:00
tsauerbeck
0fdc3f087a
a sane version of the EmbryoCell to float (and vice versa) macros
...
SVN revision: 11870
2004-10-13 19:49:03 +00:00
tsauerbeck
bc7980f17b
bah, i suck
...
SVN revision: 11868
2004-10-13 19:34:04 +00:00
tsauerbeck
159b8d0412
cast correctly between Embryo_Cell and float
...
SVN revision: 11867
2004-10-13 19:19:13 +00:00
tsauerbeck
2a15427bf5
command line arguments are now handled in a sane way: '-i blah' instead of '-iblah' etc. removed error filename crap, we prefer to redirect stderr.
...
SVN revision: 11844
2004-10-12 16:57:38 +00:00
tsauerbeck
64b608f7e7
works on mingw now
...
SVN revision: 11842
2004-10-12 16:15:54 +00:00
tsauerbeck
c52cd76b91
oops, accessing random memory is bad
...
SVN revision: 11834
2004-10-11 19:26:08 +00:00
tsauerbeck
d833f56657
Implemented string concatenation.
...
For example, "pants""off" becomes "pantsoff".
SVN revision: 11831
2004-10-11 17:49:59 +00:00
Carsten Haitzler
0d4c9b87ff
ignore loose indentation :)
...
SVN revision: 11735
2004-09-28 03:06:21 +00:00
ncn
bfb1076a77
Embryo documentation. About 90% done. Still some extra explanatory stuff to do, and some bugs to iron out, but all the functions in the API now at least have something written about them.
...
SVN revision: 11722
2004-09-25 14:37:39 +00:00
Carsten Haitzler
7e672d79f8
ok that's it. fuck stdtypes.
...
SVN revision: 11588
2004-09-09 00:48:12 +00:00
technikolor
5f9604253c
Typo fix.
...
SVN revision: 11378
2004-08-25 18:51:42 +00:00
tsauerbeck
f87a1c7395
another warning fix
...
SVN revision: 11338
2004-08-24 09:51:37 +00:00
tsauerbeck
bb78f4bf38
warning fix
...
SVN revision: 11337
2004-08-24 09:47:06 +00:00
Carsten Haitzler
b25fae82f4
wow. now THAT was interesting. multiple native call entries in the native
...
symbol table... so returning once the first was set was not a good idea.
SVN revision: 11336
2004-08-24 06:37:26 +00:00
vacuum
58dda3b0ad
Better fix.
...
SVN revision: 11233
2004-08-15 21:29:35 +00:00
tsauerbeck
af9fa5f640
increase max line length some more
...
SVN revision: 11184
2004-08-08 16:18:18 +00:00
tsauerbeck
812d070717
increased max line length. this helps with edje scripts.
...
SVN revision: 11182
2004-08-08 11:52:31 +00:00
tsauerbeck
de8445363d
typo
...
SVN revision: 11180
2004-08-08 09:53:54 +00:00
vacuum
1093d85d74
FreeBSD fix, seems trivial enough, hopefully won't break Linux.
...
SVN revision: 11128
2004-08-02 15:13:26 +00:00
Carsten Haitzler
dcac490cff
back to previous. no snprintf's. one of these broke embryo_cc.
...
SVN revision: 11037
2004-07-27 00:58:25 +00:00
vacuum
422dc28718
Fix my previous snprintf commit.
...
SVN revision: 11015
2004-07-25 14:52:24 +00:00
vacuum
5345cd6a90
sprintf -> snprintf
...
SVN revision: 11008
2004-07-25 04:40:16 +00:00
Carsten Haitzler
92488d7644
0.9.0
...
SVN revision: 10974
2004-07-23 04:38:27 +00:00
Carsten Haitzler
0d6ca125b5
norty norty! put that code back! it IS used!
...
SVN revision: 10858
2004-07-16 03:20:18 +00:00
tsauerbeck
44a33d1f1d
fixed some warnings
...
SVN revision: 10778
2004-07-11 09:50:42 +00:00
Carsten Haitzler
41b8b1cf4d
embryo support for varargs... i was just missing native funcs to export
...
enough info
SVN revision: 10656
2004-07-01 06:08:06 +00:00
Carsten Haitzler
b841fafc7f
missed a *!
...
SVN revision: 10489
2004-06-10 08:52:35 +00:00
digitalfallout
0af884c6ec
sec fix
...
SVN revision: 10450
2004-06-06 15:43:05 +00:00
Carsten Haitzler
9f634895bf
stafford patch
...
SVN revision: 10442
2004-06-06 04:41:56 +00:00
Carsten Haitzler
e7b077d975
warning instead of abort
...
SVN revision: 10413
2004-06-02 02:29:44 +00:00
Carsten Haitzler
74c61becdf
should have fixed big endian issues with embryo now. it works on sparc,
...
shoudl work on ppc and works on alpha and x86. i shoudl test opteron i guess...
SVN revision: 10248
2004-05-15 17:24:56 +00:00
Carsten Haitzler
6567775653
notes...
...
SVN revision: 10240
2004-05-15 05:39:44 +00:00
Carsten Haitzler
d27f9301a0
1. test.sma will become a comprehensive test now... starting anyway
...
2. fixed OP_SWITCH handling - man it was so broken!
SVN revision: 10239
2004-05-15 05:04:07 +00:00
Carsten Haitzler
ae778d5ef9
dont use t! its not standard!
...
SVN revision: 9920
2004-04-27 08:05:12 +00:00
Carsten Haitzler
0d755cb255
formatting and all sorts of cleanup stuff... not anywhere near done or
...
perfect... :(
SVN revision: 9805
2004-04-20 03:50:11 +00:00
Carsten Haitzler
74881aa1da
selly's no more warnings...
...
SVN revision: 9672
2004-04-10 05:55:23 +00:00
rbdpngn
2938b2f219
alloca is in stdlib.h on some platforms.
...
SVN revision: 9556
2004-04-01 17:32:30 +00:00
Carsten Haitzler
14ab26edd4
fix str... snprintf... oops
...
SVN revision: 9525
2004-03-30 09:35:50 +00:00
Carsten Haitzler
f7b3fcbf3a
alloca.h
...
SVN revision: 9524
2004-03-30 03:55:56 +00:00
Carsten Haitzler
811cd94fba
more meaty api...
...
SVN revision: 9518
2004-03-29 11:58:57 +00:00
Carsten Haitzler
4059260663
shhh!
...
SVN revision: 9513
2004-03-28 05:14:58 +00:00
Carsten Haitzler
aa5c25341f
damn! dont screw with the filenames so much!
...
SVN revision: 9511
2004-03-28 04:53:35 +00:00
Carsten Haitzler
76b6621bba
data set/get
...
SVN revision: 9486
2004-03-26 08:07:47 +00:00
Carsten Haitzler
8e4af28c5b
1 more call
...
SVN revision: 9485
2004-03-26 06:23:13 +00:00
Carsten Haitzler
9c7d952185
oops. accidentally removed that... fix!
...
SVN revision: 9484
2004-03-26 04:25:33 +00:00
Carsten Haitzler
a6ea2124d2
woop! it works... 64bit cleanliness left.
...
SVN revision: 9483
2004-03-26 04:12:36 +00:00
Carsten Haitzler
ec5ae240d0
actually memory will be aligned anyway... :)
...
SVN revision: 9482
2004-03-26 03:26:09 +00:00
Carsten Haitzler
41162f95e6
fix some code up.. clean.. a FIXME i noticed...
...
SVN revision: 9481
2004-03-26 03:24:33 +00:00
Carsten Haitzler
12841180fd
move to default.inc - now u dont need to #include <float> anymore
...
compiler deletes .asm's again...
SVN revision: 9473
2004-03-25 09:44:55 +00:00
Carsten Haitzler
552e101418
and fix this to work on PPC (big endian)
...
still have to check for 64bit... that is borken, i think...
SVN revision: 9472
2004-03-25 09:29:16 +00:00
Carsten Haitzler
25af2e595c
compiler SHHHHHHHHHHHH
...
SVN revision: 9471
2004-03-25 07:03:00 +00:00
rbdpngn
c1b170777d
Use stdint.h when available, otherwise define the stuff ourselves.
...
SVN revision: 9466
2004-03-25 06:35:38 +00:00
Carsten Haitzler
5f6c023047
different packing...
...
SVN revision: 9465
2004-03-25 06:21:58 +00:00
Carsten Haitzler
ea5fbe2674
fix endianess...
...
SVN revision: 9464
2004-03-25 05:40:55 +00:00
Carsten Haitzler
c62848b02f
swap all code bytes!
...
SVN revision: 9460
2004-03-25 04:38:07 +00:00
Carsten Haitzler
06369590b3
oosp backwards ifdef
...
SVN revision: 9459
2004-03-25 03:59:18 +00:00
Carsten Haitzler
8c4511cbc2
fix endianess stuff... in amx
...
SVN revision: 9458
2004-03-25 03:50:32 +00:00
Carsten Haitzler
f14640499b
need a swap!
...
SVN revision: 9457
2004-03-25 03:05:27 +00:00
Carsten Haitzler
eefce8aa05
fix
...
SVN revision: 9456
2004-03-25 02:14:56 +00:00
Carsten Haitzler
ff2f327692
dont need these... :)
...
SVN revision: 9455
2004-03-25 02:12:11 +00:00
Carsten Haitzler
6685ca7a70
portable portable damnit! need help cleaning this code! its horrid!
...
SVN revision: 9452
2004-03-25 02:07:28 +00:00
Carsten Haitzler
0e711afd54
cleaning up...
...
SVN revision: 9447
2004-03-24 14:32:04 +00:00
Carsten Haitzler
2766840f17
disable lots of compiler options - embryo handles a subset of small
...
make compiler quieter. change default options for compiler and include
default include for the user as well as current dir.
SVN revision: 9446
2004-03-24 10:25:05 +00:00
Carsten Haitzler
7b4b36e5d2
and E cvs did givbe birth to an Embryo! :)
...
SVN revision: 9445
2004-03-24 09:48:28 +00:00