-
Notifications
You must be signed in to change notification settings - Fork 4
/
ChangeLog
1659 lines (1624 loc) · 66 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
20140204: Moved to GitHub!
This log will continue in the git log.
Changes for 0.3.7
* Updated chipsound.eel with the latest k2intro.csl.
* OpenGL:
* Added BLEND_EQUATION, MIN, MAX, FUNC_ADD etc
for gl.BlendEquation().
* Correct argument count for gl.BlendEquation()!
* Physics:
* Z-map initialized to a proper flat 0 world by
default.
* Fixed swapped arguments in Force().
* Removed CS_MIDI from the ChipSound wrapper.
* Added ChipSound driver selection API. (Simple driver
name based wrapper.)
* ChipSound module updated to the ChipSound 0.2.0 with
explicit (and potentially multiple) engine contexts.
* EEL style OOP wrapper with user extension table.
* Physics engine got native RNGs of its own; one global,
and one for each physics engine instance.
* Updated the EPM config flags and fixed various warnings
with GCC 4.6.3.
* Fixed a bug in the .ess detokenizer.
* Cleaned up the endian handling in eel_io.c.
* Disabled unfinished generator class in eel_dsp.c.
* eel_v_stringrep() is now properly exported.
* Fixed configure so that it actually pulls in the libPNG
that was detected!
* Added tryindex() builtin that returns 'nil' or an
optionally specified value if the element is not found.
* Added PUSHTUP VM instruction for forwarding all tuple
arguments to a called function.
* Added PHARGS VM instruction to forward all arguments to
a called function.
* Added compiler support for expanding function argument
lists inside expression lists via #arguments and #tuples.
* eel_x_name() now takes a 'vm' argument.
* eel_vmsg_src() no longer prints nonsense start position
if eel_lex_getpos(es, 2) is unavailable.
* ChipSound/Audiality:
* Upgraded from ChipSound to Audiality 2.
* EELBox:
* Now detaches SDL joysticks as needed. (SDL
deletes them behind our back when closing the
joystick subsystem!)
* Audiality 2 state constructor no longer tries to
close the config object if a2_Open() fails. (The
A2_STATECLOSE flag means a2_Open() is supposed to
do that, even if it fails!)
* Removed the A2_WRAP flag. (Removed in A2.)
* eelbox.c now calls close_subsystems() LAST when
cleaning up after a fatal exception, to avoid
destructors calling into unloaded libraries.
EEL 0.3.6
* ChipSound:
* Added cs_SendGroup() call.
* Added TIMESTAMP flag.
* OpenGL:
* gl.ReadPixels:
* Fixed BytesPerPixel check.
* Fixed alignment and row length.
* Added gl.DrawCircle().
* CLAMP for UploadTexture() renamed HVCLAMP to
avoid clash with the OpenGL [GL_]CLAMP constant!
* Fixed stupid texture clamping bug: It's
GL_CLAMP_TO_EDGE, not just GL_CLAMP! (Stupid
devsystem driver faking it...)
* EBGL_*CLAMP attempts to first set GL_CLAMP and
then GL_CLAMP_TO_EDGE, in case we're on a driver
that doesn't support the latter. (Those may still
do the "right" thing as a result of implementing
GL_CLAMP incorrectly.)
* ZeeSpace:
* zstest.eel fixed and working again!
* zstest.eel responds to SDL.QUIT events.
* Physics:
* Added support for vector_d to Distance() and
Direction() calls. (Expects x, y in [0, 1].)
* Added FindAt() call.
* Added ForceAtV() methods.
* Test flags for FindFirst()/FindNext():
* INVIEW
* NOTINVIEW
* FindFirst() == FindNext(); type of first argument
decides.
* apply_z_response() now actually using
impact_return_z!
* apply_response() now uses the smaller mass for
calculating the overlap corrective forces.
* Fixed crash bug if passing a non-object as the
first initializer element when constructing a
body.
* New utilities:
* PointDistance()
* CircleInertia()
* DiskInertia()
* Moved various code into C inlines:
* eph_Force(), eph_ForceV()
* eph_ForceAt(), eph_ForceAtV()
* eph_ForceRel(), eph_ForceAtRel()
* Added constraints subsystem:
* EPH_constraint struct + EEL type.
* EPH_spring
* Clean() now cleans constraints as well.
* Constructor etc for 'constraint'
* ApplyConstraints() also cleans, and tells
Clean() not to bother. (Marking a body
for deletion has Clean() do it anyway.)
* Removed AUTORESETFORCES and IMPULSEFORCES
as they'd interfece with constraints!
* Run-time switchable display output modes:
* LATEST
* Positions from last logic frame
* Latency: 0..1 l. frames, varying
* No overshoot
* Unsmooth animation
* TWEEN
* Interpolation over last 2 frames
* Latency: 1 logic frame, constant
* No overshoot
* EXTRAPOLATE
* Last frame + velocity extrapol.
* Latency: 0, constant
* May overshoot
* SEMIEXTRA
* Average of TWEEN and EXTRAPOLATE
* Latency: .5 l. frames, constant
* Slight latency, slight overshoot
* Added body.killed and dropped the nasty space
NULL pointer hack...
* space_destruct() actually uses space_kill(), so
we get cleanup handlers called and stuff. DOH!
* Fixed a bunch of ISO C90 violations in newly
ported EEL code.
* KillAll() now actually does return the last
exception from any Cleanup method.
* SDL:
* Added DetectJoysticks(), that reinitializes the
joystick subsystem to detect new devices.
EEL 0.3.5
* Added eel_copy() (for values) to the official API.
* EELBox:
* Added rf* response force fields to bodies.
* Switched to velocity based extrapolation.
* Tween() argument changed to a more logical 0..1
corresponding to T..(T + 1 frame).
* Added physics Dot().
* Interface to mass/inertia is now .m/.mi. (Still
stored as inverted X/Y/A internally.)
* HitZ() callback got x and y arguments passing
the point of contact.
* Added physics space .zmapscale field.
* Added EPH_MAX_VELOCITY to prevent math errors
in case of integrator explosion.
* Added RESPONSE and ZRESPONSE physics body flags.
* Body flags now accessible!
* Built collision response into the physics engine.
* Added physics Impact() callback to handle damage
from high velocity collisions and the like.
* Physics body methods moved to native code:
* Force()
* ForceAt()
* ForceRel()
* ForceAtRel()
* Velocity()
* TestLineZ()
EEL 0.3.4
* Fixed getus() post-wrap scaling on Win32.
* '$' is no longer an operator character, but instead a
valid identifier character.
* 'environment' renamed '$'.
* Uppdated the 'platform.eel' test accordingly.
* Added deepclone() and deepcompare() to the built-in lib.
* Added 'cleanup' to '$', with built-in __cleanup().
* Close time module garbage collection now runs until no
more modules can be unloaded.
* eel_o_stringrep() now prints type ID instead of <unknown>
when name strings are not available.
* EELBox:
* Fixed crash bug in SetVideoMode(); it should now
always return a proper EEL value!
* Added optional Velocity Verlet integration to the
physics engine. Not really that critical with
fixed frame rates, but why not do it properly
while at it?
* OpenGL library loading made a bit smarter; now
reloads as needed when restarting the SDL video
subsystem.
* Naming cleanup; eb_gl_* --> ebgl_*.
EEL 0.3.3
* Removed bogus R[0] allocation for the (now eliminated)
argument LIST.
* Fixed off-by-one framesize in ec_coder.c!
* Added 'tree.eel' test/example.
* Added support for .ess stripped source files:
* Tokenized keywords.
* "Automatic" .ess extension. (Tried before .eel!)
* Compressed newlines. (Preserves line numbering.)
* Added convenience API eel_setlindex().
* Nicked from the 0.2.x branch:
* EEL_platform.h.
* 'system' module.
* 'environment' table.
* configure script to for the 'system' module.
* Binary module defines. (Disabled for now.)
* configure report printout.
* When casting to string or dstring, eel_cast() (and thus
CAST instructions) now tries eel_stringrep() on the
value, if all else fails.
* eel_ds_new() and eel_ds_nnew() published in the header.
* 'r' (real) now supported by eel_vargf().
* Fixed debug line number info with peephole optimizer on.
* ILLEGAL/NOP fill now gets proper line number info!
* Removed EEL_coder pos; using f->e.codesize instead.
* Added eel_table_lconstants() for adding multiple integer
constants to tables, using EEL_lconstexp data.
* Table tools moved to the public API.
* eel_v_own() made public. (Only used in one non-critical
place internally - and the new version only calls if
the value is an objref anyway.)
* Added system ShellExecute() on Win32.
* EELBox:
* Bumped version to 0.1.19.
* OpenGL binding no longer segfaults if calls are
made before loading OpenGL.
* Removed eelbox.eel. (version() is now in the
native module, now named "eelbox".)
* Added IIR mouse move filtering to draw.eel.
* SetVideoMode(false) now closes the display. (By
closing and reopening the video subsystem...)
* Failing to set a video mode should now delete
any stray old video surface object.
* DrawRect() now accepts an optional common z
vertex coordinate.
* DrawRect() now handles vertices as real numbers!
* Added ZeeDraw. (Dummy - no code yet.)
* OpenGL Load() now resets the state cache!
* Added HCLAMP, VCLAMP and CLAMP flags for
UploadTexture().
* Improved initialization and error handling in
eelbox.c.
* MIDI ReadMIDI() no longer crashes when called
with MIDI closed or not compiled in!
* Added KOBO2_BOOTSTRAP for building an executive
that runs kobo2.* unless a file is specified.
* Added new ChipSound APIs cs_Now() and cs_Wait().
* Added GetGlobalProp() and SetGlobalProp().
* Added constants APPMOUSEFOCUS, APPACTIVE and
APPINPUTFOCUS for the ACTIVEEVENT.state field.
* Physics:
* Added native Z map with interpolation.
* Native shadow and sprite rendering.
* Added [0, 1] clamping in Tween().
* Added native Rotate(), Cross(),
Distance() and Direction(). (The latter
fall back to EEL indexing for arguments
that are not physics bodies, for which
there is a fast path.)
* Native Render() loop.
* Some collision detection optimizations.
* Removed the 'dead' flag.
* Removed public space.first and body.next
fields; iteration is "internal trickery!"
* Removed force decay.
* Added AUTORESETFORCES and IMPULSEFORCES.
* Using EEL tables for core field lookups.
* body.groups becomes 'group'; a body can
now only belong to one group!
* Native space KillAll() method.
* Added FindFirst() and FindNext().
* Changed vx, vy, vxmin etc to 'double'.
* Added Cleanup() method for bodies, to
allow user code to clean up regardless
of whether bodies are Kill()ed directly
or via space KillAll() or similar.
EEL 0.3.2
* Added internal type EEL_hash.
* Made the hashing tools "public" in e_util.h.
* Weakref tracking in containers removed - checked only
when the containers are actually reallocated!
* Removed the 'runlimit' logic.
* Streamlined the VM exception handling.
* The above results in a 2.9% overall speedup over 0.3.1
in the benchmark!
Benchmark results: 0.3.1 0.1.18
"loops": 628 ms
"divtest": 420 ms 4.8% 18%
"random": 564 ms 3.3% 0.5%
"randomoop": 600 ms 5.2% 26%
"ackermann": 352 ms 8.3% 16%
"tak": 382 ms 3.5% 6.6%
"heapsort": 436 ms 4.2% 3.8%
"wordcount": 634 ms 0.5%
"wordcount2": 585 ms
Total: 4601 ms 2.9% 8.2%
* Table indexing no longer rounds real numbers to integer;
even a real is considered different from an integer even
holding the exact same value. (tables.eel test fixed.)
===> IMPORTANT: This also affects switch() statements!
* Fastpath for string lookups in tables.
* Hash based binary search for tables! This actually
slowed randomoop.eel down by a few percent, so...
* Linear search shortcut for tables with < 10 items.
* Compared to the results above, randomoop (which uses so
small tables that no algorithm can be significantly
faster than a naive linear search) is now slightly
faster, despite the extra check for the fast-path:
"randomoop": 550 ms 8.3%
However, the really great news is that the 20% of the
time spent in t_getindex() in the Kobo II explobench is
now down to 5.5% - almost 4 times faster! The benchmark
now runs at around 92 fps, compared to the ~81 with EEL
0.3.1.
EEL 0.3.1
* Slightly nicer peephole optimizer implementation.
* Peephole optimizer now keeps looping until no further
optimizations can be found.
* Compiler exceptions from within the coder no longer
cause an infinite loop due to re-entering the optimizer.
(Finalization optimization is triggered automatically by
the relevant instructions anyway!)
* Removed bogus jump target in ec_parser.c dostat().
* Added some more DEBUG sanity checks in ec_coder.c.
* ILLEGAL/NOP filling of dead code is now DEBUG-only.
* Fixed slow *CALL*, RETURN* etc! (Scheduler bug...)
* Fixed some remaining function call/return logic bugs.
* Unused 'vm' arguments removed from e_operate.c.
* Operators refactored as inline calls per operation.
* load() and compile() are now native calls - no wrappers.
* Member calls now ask for proper argument lists with
results.
* Legacy resv/argv/argc fields are now restored when
returning from the VM! (Nasty one..)
* Fixed optimizer bug in NOT; JUMP*Z ==> JUMP*Z!
* Test suite wordcount and wordcount2 now verify results.
* Optimized e_table.c find_index(). 4% in randomoop.eel!
* More structured bench.eel, with "singe test" feature.
* New instructions:
* PHBOP, PHBOPI, PHARGI, PHARGI2
* ADD, SUB, MUL, DIV, MOD, POWER
* PHADD, PHSUB, PHMUL, PHDIV, PHMOD, PHPOWER
* PUSHIC, PUSHCI
* INDGETC, INDSETC
* BOPC
* New peephole optimizations:
* PUSH; PUSH ==> PUSH2
* PUSH2; PUSH ==> PUSH3
* PUSH2; PUSH2 ==> PUSH4
* PUSHC; PUSHC ==> PUSHC2
* PUSHI; PUSHC ==> PUSHIC
* PUSHC; PUSHI ==> PUSHCI
* GETARGI; PUSH ==> PHARGI
* BOP; PUSH ==> PHBOP
* BOPI; PUSH ==> PHBOPI
* PHARGI; PHARGI ==> PHARGI2
* BOP ADD/SUB/.../POWER ==> ADD/SUB/.../POWER
* PHBOP ADD/SUB/... ==> PHADD/PHSUB/...
* LDC; INDGET ==> INDGETC
* LDC; INDSET ==> INDSETC
* Results, compared to 0.1.18:
"divtest": 15%
"random": 2.8%
"randomoop": 22%
"ackermann": 7.9%
"tak": 3.2%
Total: 5.5%
* Conclusions:
* Reducing the number of VM instructions executed
pays off big time, as expected.
* Dedicated operator instructions are roughly
TWICE as fast as the generic *BOP* instructions!
* EELBox:
* DrawRect() now uses OpenGL vertex arrays.
EEL 0.3.0
* Removed the VM context stack.
* Removed the LIST type.
* Ignoring the result when calling a C function from EEL
is now safe.
* Removed the call argument limbo list.
* argv/argc is now a part of the EEL callframe, and are
used regardless of caller and callie language.
* Added ABCx instruction operand format.
* New VM instructions:
GETARGI, GETARG, SETARGI, SETARG:
Get/set required or optional argument.
GETTARGI, SETTARGI, GETTARG, SETTARG:
Get/set tuple argument.
GETUVARGI, SETUVARGI:
Get/set required or optional upvalue
argument.
GETUVTARGI, SETUVTARGI:
Get/set upvalue tuple argument.
* Removed VM instructions:
ARGSETI, LIST, SLIST, LRIGHTI
* Bonus side effect: It is now safe to use arguments as
temporary storage for objects, weakrefs included.
* VM asm listing now uses a 12 character wide column for
the instruction names.
* Removed eel_*argf() control characters:
' ' Whitespace
'(' Start argument list
')' End argument list
'&' Address of current argument
'@' Set marker
'H' Heapref.
* eel_*argf() 'R' control character now returns the result
value heap index through an int *.
* Added 'v' control character (EEL value) to eel_*argf().
* Trying to get a result from a procedure (late binding
calls) now throws XNORESULT.
* Added test case/benchmark randomoop.eel.
* The ADDCLEAN() VM macro now actually works with other
operands than A, in case we'd use that. ;-)
* Added EEL_PROFn "fake" opcodes to be used for manual
VM profiling hacks.
* Benchmark timing changed from microseconds to ns.
* Profiler timer overhead calibration now actually works!
* 'in' operator no longer tries to disown a garbage value
if the tested element doesn't exist.
* eel_*argf() now add ownership to the argument stack, and
the argument stack then releases the objects when
cleared.
* Zombified objects are now just objects with zero
refcounts, and consequently:
* eel_o_resurrect() has been removed.
* Resurrection is done with eel_o_own().
* Disowning a zombie object is still an error
(trapped in debug mode), as a zombie should only
ever have weakrefs.
* Detection of "double free" of sbuffers in debug builds.
* DBGK() debug macro now actually leaves objects around,
to avoid segfaults when tracking memory management bugs.
(Actually trying to use the objects may still crasch, as
the destructors are executed; only the headers are left
around.)
* e_vm.c find_function() now also disowns the (non-)
function object if it turns out not to be a function.
* Removed the unused LCLEAN instruction.
* Removed limbo_clean() from CLEAN instruction.
* Unused register usage mode EEL_RUVARREF removed.
* Added opcode specific register usage checks in the
eel_code*() calls.
* Renamed CALL and CCALL as CALLR and CCALLR.
* New CALL and CCALL for when no results are desired.
* Compiler rules that can generate calls now take hints as
to whether or not results are desired.
* Hopefully less confusing error message for multiple
assignments with fewer targets than sources.
* RETURNR and RETXR now discard unwanted results.
* EEL_VM_CHECK now fills callframes with ILLEGAL values
and adds additional checks for them in e_object.h.
* EELBox:
* Fixed some new warnings with GCC 4.5.
* OpenGL loader no longer whines about missing
glGetError() before loading the OpenGL library.
* The good news:
* The PUSH* instructions are virtually as fast as
MOVE, and about 10% faster than ASSIGN.
* GETARGI is around 5% faster than INDGETI!
* RETXR appears to be over 20% faster!
* Problem areas (average execution times in ns)
opcode 0.1.18 0.3.0
-----------------------------------
CALL 27 35
CCALL 39 51
RETURN 14 25
RETURNR 21 32
TRY 22 35
Also, although the LIST instructions are eliminated,
the inability to directly address the argument stack as
registers results in a great deal of "calculate into Rn;
PUSH Rn;".
*** EEL 0.2.x is an abandoned internal branch with dynamic module
loading and other stuff that will be merged in later. Thus,
the 0.2.x version numbers are skipped to avoid confusion.
EEL 0.1.17
* Added 'in' operator that returns 'true' if indexing the
righthand operand with the lefthand one is successful.
NOTE: Also returns 'false' if the righthand operand is
not indexable!
* 'switch' directly inside 'case' now throws a compile
error; not just a warning.
* EELBox:
* Bumped version to 0.1.17.
* Physics body constructor now initializes the
interpolated coordinates as well.
EEL 0.1.16
* Fixed some initialization issues with 'has_weakrefs' in
e_array.c and e_table.c.
* The C/EEL argument handling state is now saved when
pushing the VM context.
* When leaving the VM, the limbo list is now cleaned
BEFORE popping the VM context, to avoid cleaning out
stuff that belongs to a potential VM context up the
stack.
* EELBox:
* Bumped version to 0.1.16.
* Safe Joystick destruction after closing SDL.
* Added GetVideoInfo(). (Except for pixelformat!)
* EELBox OpenGL:
* Added glIsTexture().
EEL 0.1.15 (used only in unofficial Kobo II tech previews)
* Functions defined as methods in a table ctor can no
longer have bogus name conflicts with functions defined
in outer scopes.
* Negative literals now parse as such, rather than into
(unary minus, literal) expressions.
* 'switch' can now declare local variables in it's parent
scope. It also tracks initializations properly.
* Lexer now treats comments *anywhere* as whitespace.
* Added 'default' keyword to eel.xml.
* Added weak references:
* 'weakref' value type; EEL_TWEAKREF.
* eel_weakref_attach() and eel_weakref_detach().
* Weak assignment operator: "(=)".
* VM typecast instruction WEAKREF, which casts an
objref into an "unwired" weakref.
* When an unwired weakref is copied using
eel_v_copy(), the result is a real weakref.
* When a weakref is copied (assignments, grabbing
and receiveng results etc), the result is an
objref (strong reference).
* There are ONLY three ways to actually write a
weakref:
1. Weak assignment to a static variable.
2. Weak assignment via SETINDEX to a
container object.
3. Cloning a container object with
weakrefs in it.
Anything else will generate a (strong) objref!
* When a weakref is disowned, it is detached from
its target.
* When the target dies, a weakref becomes 'nil'.
* It is now always safe to call eel_sfree() on ANY string!
Safety checks are now very fast and always on.
* Removed unused last_unique_token field from EEL_state.
* The shared module table is now using true weakrefs.
* Removed .eec nonsense. (Not implemented...)
* Cleaned up memory management a bit;
* Added eel_v_clone(), eel_v_move() and
eel_v_qcopy().
* The above and eel_v_copy() now handle refcounts
and weakref attach/detach, eliminating most of
the explicit refcounting all over the place.
* Added EEL_DEFENSIVE_REALLOC to make eel_calcresize()
more defensive about shrinking, as realloc() (of glibc
2.11) seems to move blocks pretty much every time...
* Table clones now have their asize matching the actual
table size!
* Table and array *_setsize(..., 0) now work as intended!
* Added some missing #include <stdio.h> that are normally
pulled in by e_object.h "accidentally".
* Removed (mostly broken) EEL_OWNER_TRACE stuff.
* When DBGM is defined, circular references are broken by
DELETEing all containers before the normal VM cleanup.
* Fixed <nil> exception handler bug in TRY dissasembly.
* Fixed nasty cleantab off-by-one allocation bug, that
would strike only with sizes that were multiples of the
size of EEL_value.
* Added warning for putting a switch directly inside a
case statement of another switch.
* 'else' is no longer valid in switches. Use 'default'!
* Removed some nonsensical function inlining.
* Added eel_rawdata().
* Fixed delete() for arrays.
* Fixed imported functions leaking into the exports.
* Fixed crash bug when trying to add (that is, append)
something not a table to a table.
* EEL_XWRONGVALUE renamed as EEL_XBADVALUE.
* Added EEL_XILLEGALOPERATION.
* Added delete(<array>, <object>) to delete the first
reference to <object> in <array>.
* Added <type>2o() cast to EEL_MAKE_CAST() macro.
* Added VM context stack, for transparent recursive VM
invocations.
* Added EEL_INITHEAP.
* eel_call() now cleans the limbo list upon any failure,
to release any objects passed as arguments. (Parse
failures in eel_*argf()/eel_callf() may still leak!)
* Removed limbo nonsense for objects passed via 'o' in
eel_vargf().
* Cleaned up configure.in for clean cross compiles with
current tools.
* Added pkg-config support; eel.pc.
* math module:
* abs() now returns an integer if given one.
* abs() now operate on vectors as well.
* EELBox:
* Removed all FULLSCREEN flags in the tests/demos!
* The Rect constructor now clamps w and h to >= 0.
* Added rudimentary OpenGL binding!
* Added ZeeSpace!
* eelbox executive now closes EEL before SDL and
other subsystems, so wrapped objects hang around
until the wrappers are destroyed.
* Added upside down PNG saving for OpenGL shots.
* Added ChipSound!
* Added joystick support!
* Initializing only audio and video; not CDROM!
* Bumped version to 0.1.15.
* EBGUI:
* Added GetClientRect() method to widgets.
* Theme constructors now take a target rather
than a widget for argument.
* Added message passing API.
* Added drawing styles to Button() and Toggle().
* Added Popup() window and Selector() widget.
* Renamed 'on', 'pressed' and similar as 'state'.
* Toggle:Up() and :Down() replaced by :Set().
* Added SelectorItemStyle to Theme.
* Added 'childsize' feature to "ratio" aligner.
* Realign() now climbs as needed before recursion,
to deal with childsize.
* New, faster dirty/refresh handling for widgets!
* Positional event dispatch now matches root
widget drawing order! (That is, now tested in
reverse order.)
* Dispatch() and widget:Dispatch() now return the
widget that received the event, or nil if the
event was ignored.
* Added widget:BringToFront().
* Added "real" lightweight windows complex region
clipping.
* Some refactoring:
* Added new Open()/Close() calls for the
EBGUI module itself.
* The implicit root widget from the old
Open() is now created using Root().
* Target surface is now a static variable,
and can be accessed using SetTarget()
and GetTarget().
* Font and text handling moved into the
themes.
* Added DefaultTheme() for creating
default theme instances for tweaking by
applications.
* Moved various SDL.Rect manipulation code
into recttools.eel.
* Theme constructors are now called
Create().
* Added weakref based font cache to text.eel.
* Fixed space width determination if/try chain in
text.eel. (Would have failed if the first char
wasn't in the font!)
* ProgressBar() now shows a percentage label.
* Fixed a remaining switch/if/else bug.
* Widget() "base" constructor now exported.
* add_widget() built into Widget().
* Added Control and NumEditor widgets from Delta.
* box(), box3d() and rbox3d() in drawtools.eel.
* Added DragHandle() widget.
* Implemented DragBar OnDrag() callback!
* SetPosition() now actually works for non-roots!
* Added SendToBack() method.
* Added "flat" style to DragBar.
* Added container expanding "stretch" aligner.
* Added SetSize() shorthand for (re)sizing.
* Alignment now driven via the invalidation logic.
* SetPosition() renamed SetRect().
* Added new SetPosition() member.
* SetRect(), SetPosition() and SetSize() are now
functions returning the widget, as usual.
* Added Selector:SelectByValue().
* Selector now renders the panel/outline with the
correct theme.
* Keyboard navigation moved into the dispatcher.
* Added OnFocus() event/method for all widgets.
* Added ListBox().
* Delete() now realigns the parent widget.
* Added DeleteHook().
* Aligner "relative" SetScrollPos() now deals in
actual extents of the children.
* Sliders only call OnChange() if the value has
actually changed.
* Added first-time widget::Init() method that is
called once after any new/dirty widgets have
been (re)aligned. Used by:
* VSlider
* HSlider
* Brought back negative colratio/rowratio values
for the "ratio" aligner, for fixed width/height
columns/rows.
* Added LineEditor:SilentSetText().
* Added NumEditor:SilentSetValue().
* Control now features a numeric text entry field
instead of the value label.
* EELBox OpenGL:
* Added some OpenGL state caching.
* Added DrawRect() tool for simple quads.
* Added OpenGL version detection during init.
* Added support for OpenGL >=3.0 mipmapping via
glGenerateMipmap() where available.
* Mipmapping is disabled on OpenGL <1.4.
* DrawRect() now supports 'false' for disabling
texturing, and 'true' as a synonym for 'nil',
which leaves the texture unit state as is.
* ZeeSpace:
* Implemented ZS_C_ADD, ZS_C_SUBTRACT and
ZS_C_MULTIPLY.
* Implemented clamping in ZS_Z_MULTIPLY and
ZS_IW_MULTIPLY.
* Added paths and regions.
* zs_Block(), zs_Cylinder() etc can now use the I
channel of the 'px' argument!
* ZS_State.scratch now has room for two rows.
* The old zs_Region() renamed as zs_View().
* Added RGBA output support to zs_Blit2SDL().
* zs_3D2SDL() no longer applies I to RGB.
* zs_3D2SDL() uses state scratch instead of the
bottom row of the source surface.
* zs_Blit2SDL() and zs_3D2SDL() now implement
clipping to the target surface clip_rect.
* Added zsregions.eel ZeeSpace + EBGUI demo.
* zs_ShadowCast() replaced by zs_SimpleShadow().
* zs_BumpMap() reworked a little.
* Fixed issue with reallocation of 'pipebuf' after
pipes have been prepared.
* Optimized the Perlin noise terrain generator a
bit; about 45% faster with bicubic interpolation.
* Added EELBox Physics module:
* 'body' base class with the basic fields, advance
and "tween" methods and a table for extension.
* Implemented body/body collissions, calling EEL
collission response methods.
EEL 0.1.14 (20091122)
* Removed stray argument decoding switch in eel.c.
* Updated copyright message printed by eelbox.c.
* Removed the unfinished 'enum' type, like in 0.2.x.
* Added COPYING.KISS_FFT.
* Fixed all old LGPL license headers.
* Added proper detection for variadic macro syntax.
* The threaded dispatcher now builds with EEL_VMCHECK
debug code enabled.
* Changed threaded VM goto label naming to lab_O*, to
avoid conflict with the opcode enum.
* Added EEL_VM_PROFILING.
* Concluded that io.write() with multiple data arguments
is frequently used that way in various applications,
and appears to work just fine. Removed from TODO/BUGS.
* Removed incorrect shortcut "different classes" from
table look-ups.
* Fixed various compiler warnings in EELBox.
* Updated build scripts for the "eeltest" test program.
EEL 0.1.13 (20091116)
* Added PNG saving to EELBox.SDL_image.
* The S key draw.eel now saves the window as a PNG.
* 'switch' no longer supports 'break'! This is not C,
so 'break' is not really needed. The primary reason it
was removed, however, is that it causes confusion when
using switch inside loops.
* Updated ebgui.eel, which (ab)used 'break' in switches.
* The 'else' case in 'switch' statements replaced with
'default', C style. 'else' is still supported, but
will result in a warning.
* Updated the EEL and EELBox examples/tests as needed.
* Added some introspection features to 'function';
results, reqargs, optargs and tupargs.
* VM assembly syntax cleanup; no braces for C, R and SV,
and no stray 'TO' in INDGET, or wherever that was...
* Less stupid error message when trying to put the
'default' anywhere but last in a 'switch'.
* Implemented "threaded dispatcher": VM instruction
dispatch using computed gotos rather than switch().
(Performance gains on my Q6600 development system:
8% on average; up to 20% in some of the tests in the
'bench' suite.)
* Test suite:
* Fixed 'loops' timing calculation overflow.
* Added "best of N runs" logic to 'bench'.
* Added 'wordcount2', without exceptions.
* Rebalanced the loop counts in 'bench'.
* eel.c and eelbox.c now support "compact" switches,
ie '-cla'. (Backport from 0.2.x branch.)
EEL 0.1.12 (20081113)
* GCC 4.2.x fixes. (Compiler bug.)
* Some eliminated compiler warnings.
*** 20070126: Development on the 0.2.x branch started. 0.1.x
will be maintained as needed until obsoleted by 0.2.x.
EEL 0.1.11 (20070105)
* Added scaling by 2 and 0.5 respectively for
fft_real() and ifft_real(), to give all bins
the same (unity) scale.
* SDL.PlayAudio():
* Takes mono or stereo data
* Supports integer samples (assumed to be
32 bit signed values)
* Supports indexable data containers
* Clamps real typed data to avoid wrapping
* eel_vdisown() renamed eel_v_disown(). (The
internal eel_v_disown() is now more appropriately
named eel_v_disown_nz().)
* Implemented slice() for 'vector' and 'array'.
* Moved the EEL compiler into a separate subdir.
* File naming conventions changed:
* API header files:
EEL_*.h
* EEL core (VM, core types...) source files:
e_*.[ch]
* Standard module source files:
e<a>_*.[ch]
where <a> is a reasonably short acronym.
* EEL compiler source files:
ec_*.[ch]
* "Throw in" libs and the like:
No prefix.
* e_file.[ch] renamed io.[ch]
* All standard modules (math, io, dir and dsp so far)
are now in separate subdirectories, in preparation
for some of them becoming dynamically loadable.
* DSP module:
* Added add_polynomial() optimizations for all
vector types.
* Added FFT/complex tools:
* c_abs(), c_arg()
* c_set(), c_add()
* c_set_polar(), c_add_polar()
* c_add_i(), c_add_polar_i()
* polynomial_i(), add_polynomial_i()
* EELBox:
* Added quick hack MIDI module. (ALSA only.)
* Added fftsynth.eel
* Some examples fixed for less CPU hogging
* guiscroll.eel added to the test script
* Minor code cleanup, error message type fixes etc...
* Split the TODO up into a proper TODO (things that
should actually be done), and a BRAINSTORM file,
intended for all sorts of wild ideas that may or
may not make it into the TODO eventually.
* The compiler code_fixup_*() functions now set "break
target" events as needed to ensure that the dead code
elimination doesn't kill their landing spots.
* LIST type 'modulo' field renamed 'stride'.
* Fixed various printouts that ignored LIST stride.
* Major bug fix: The LRIGHTI instruction now considers
the stride of the original LIST.
* Major bug fix: The fake callframe created when
calling a C functions is now removed whether or not
the function returns with an exception.
* slice() and metamethod SLICE renamed copy() and COPY,
to avoid confusion with the upcoming non-copying
slice objects.
* copy() (former slice()) now accepts one (copy all),
two (copy through end) and three (copy range)
arguments.
* Win32: timeEndPeriod() when unloading the built-in
module.
* Added built-in function sleep().
* Include dir "eel" renamed "EEL".
* Library/DLL base name changed from "eel" to "EEL".
EEL 0.1.10 (never officially released)
* Added the DSP module;
* sum(), average()
* polynomial(), add_polynomial()
* fft_real(), ifft_real()
* Fixed various char signedness warnings.
* Implemented #- operator for vectors.
EEL 0.1.9 (never officially released)
* All VM instructions that index constants now use
16 bit fields for this. Four instructions had to
be changed, and three new operand formats were
added;
SWITCH ABsCx ==> ABxsCx (new)
CCALL ABCD ==> ABCDx (new)
TRY ABC ==> ABxCx (new)
UNTRY AB ==> ABx
* The '&' eel_argf() format code now returns an
integer register index, rather than a pointer.
(Pointers break if the heap is reallocated!)
* Caching eel_bio_linecount() - much faster
compiles of large files with debug line number
info enabled.
* Rudimentary VM argument stack added. (Only used
by constructors right now!)
* Object constructor/cloning mess cleaned up;
* Constructors construct, period!
* Cloning is done through casting.
* More efficient buffer scaling for some types.
* for i=N, N-1 ... will no longer iterate once.
* 'for' loops are slightly faster when running.
* Implemented the Type Casting Matrix.
* Various minor optimizations and bug fixes.
* Apparently some minor slowdowns too - but
benchmark results are weird. Some code needs
more "real" time but less user time. Need to
do some serious profiling later.
* 64 bit pointer issue in relocate_limbo() fixed.
* Fixed octal number escape parsing in strings.
* Fixed some missing internal VM initializations.
* Added guiscroll.eel EELBox test.
* EBGUI:
* HScale fully implemented.
* LineEditor:OnChange() implemented.
* Recursive SetCapture().
* SetCapture() implements cursor hiding.
* Widgets no longer try to grab the mouse
multiple times when pressing multiple
buttons.
* Graph curve AutoScale now stores min and
max results for external calculations.
* ApplyTheme() now invalidates widgets.
* Widgets draw their dent outlines using
their parent's theme where applicable.
* Scales scale around the grab center point.
* Slider knob length >= width limit.
* LineEditor:SetText() now calls the
OnChange() callback.
* VScale and HScale got a vector 'ticks'
that stores the coordinates of the
currently visible tick marks.
* Added scrolling support to the
"relative" aligner.
* All widgets clipped automatically by
recursive_redraw().
* Widgets are clipped recursively to
stay inside their parents, even if
their own cliprects are outside.
EEL 0.1.8 (20060116)
* Cleaned up the moduledata handling a little.
* Turned static variables in e_file.c into moduledata.
* Implemented the "dir" module.
* EELBox:
* Added simple soft real time audio support.
* Added some simple audio demos.
EEL 0.1.7 (never officially released)
* 'return' statements in procedures will no longer
allow stray return value expressions.
* EBGUI:
* Added 'childsize' to the "grid" aligner.
* Added functions GetModal(), GetCapture()
and GetFocus().
* Added keyboard control to *Slider.
* Added LED and ProgressBar widgets.
* Added Panel styles through SetStyle().
* Removed FlatPanel. Use Panel(..., "flat").
* Removed Container. Use Panel(..., "none").
* Added Graph widget.
* Added VSlider widget.
* Added VScale and HScale widgets.
* EELBox:
* Added \t (TAB) support to text.eel.
* line.eel now handles non-integer start/end
coordinates.
* Implemented SetClipRect().
* Implemented GrabInput() and WarpMouse().
* Added optional lock-free FIFO buffering
to sockets, for non-blocking TCPSend().
* Fixed misdirected break in handle() in
chat.eel and chat2.eel.
* Fixed memory allocation bug caused by coders having
different ideas about the size of the module static
variable block.
* Added getus(), for sub ms accurate timestamps on
platforms that can provide them.
* Added the 'export import...' construct, to
transparently forward imports as exports.
* Confusing "Missing ')'..." error messages after
explists clarified; they now mention the ','
possibility.
* Character literals can now contain the usual \
escapes used in string literals.
* Trying to create a character literal that doesn't
fit in the integer type generates a compile error.
* The shift operators ('<<', '>>') now accept real
typed operands. These are truncated to integers.
* Added line numbers to the call stack dump.
* Fixed missing eel_cthrow() in expect() when using
a custom message string.
* Implemented vector INSERT.
* Putting a '{' directly after the ';' following a
("forward") declaration now generates a warning, as
this usually indicates an accidental ';' in what is
intended to be a function definition.
* Fixed a bug in apply_op() that generated code for
writing back the result even when doing inplace
operations. (This was *probably* harmless, and just
generated a "no effect" MOVE or similar.)
* Assigning objects to argument registers is now
handled by a special instruction, that should