Zahary Karadjov
fee2a7ecfa
Experimental support for delayed instantiation of generics
...
This postpones the semantic pass over the generic's body until
the generic is instantiated. There are several pros and cons for
this method and the capabilities that it enables may still be possible
in the old framework if we teach it a few new trick. Such an attempt
will follow in the next commits.
pros:
1) It allows macros to be expanded during generic instantiation that
will provide the body of the generic. See ``tmacrogenerics``.
2) The instantiation code is dramatically simplified. Dealing with unknown
types in the generic's body pre-pass requires a lot of hacky code and error
silencing in semTypeNode. See ``tgenericshardcases``.
cons:
1) There is a performance penalty of roughly 5% when bootstrapping.
2) Certain errors that used to be detected in the previous pre-pass won't
be detected with the new scheme until instantiation.
2013-08-23 01:10:20 +03:00
Araq
a8c8a85135
Merge branch 'master' of github.com:Araq/Nimrod
2013-08-22 19:28:58 +02:00
Araq
cf38d635bf
implemented opcTypeTrait
2013-08-22 19:28:34 +02:00
Araq
6f1fc1b5ba
fixed and documented computedGoto pragma
2013-08-22 08:38:47 +02:00
Zahary Karadjov
ca3a4ce672
hacky fix for generic constraints matching
2013-08-19 01:48:25 +03:00
Zahary Karadjov
4980ef85e2
check the owners of generic instantiations properly and fix tinvalidclosure
2013-08-19 01:45:16 +03:00
Zahary Karadjov
b01d9b6181
work-in-progress for compiling generics in their owner module
2013-08-19 01:45:16 +03:00
Zahary Karadjov
3e79e9f981
some steps to improve the type mismatches with the new
...
generic instantiation logic
2013-08-19 01:45:16 +03:00
Zahary Karadjov
8b933e470e
fixes iterating over enums
2013-08-19 01:36:04 +03:00
Zahary Karadjov
c6d0611112
Revert "Revert "made some tests green""
2013-08-19 01:35:33 +03:00
Zahary Karadjov
a453d8d64d
Revert "Revert "further fixes for void stripping. fixes tvoid.""
...
This reverts commit d11cf5d191 .
2013-08-19 01:30:17 +03:00
Zahary Karadjov
cefa16ae77
Revert "Revert "fix threading tests""
...
This reverts commit 9c45e33d8c .
2013-08-19 01:29:58 +03:00
Zahary Karadjov
fc858927f0
Revert "Revert "fix tforwardgeneric""
...
This reverts commit e3f93241c3 .
2013-08-19 01:29:47 +03:00
Zahary Karadjov
f760bc243b
Revert "Revert "static and default params for generics""
...
This reverts commit 0662ec4a43 .
2013-08-19 01:29:37 +03:00
Zahary Karadjov
ea54aa386c
Revert "Revert "allow keyword params for the [] and {} operators""
...
This reverts commit b7ea4a7e65 .
2013-08-19 01:29:22 +03:00
Zahary Karadjov
19eeb3556e
remerge "allow void as field type"
2013-08-19 01:29:01 +03:00
Zahary Karadjov
6ddd4e6a3f
Revert "Revert "bugfix: emulated thread vars used in combination with the mark & sweep GC""
...
This reverts commit 75c586bbe1 .
2013-08-19 01:27:05 +03:00
Zahary Karadjov
dfb5cb3c5d
remerge "Fixes #267 "
2013-08-19 01:26:37 +03:00
Zahary Karadjov
f127bc387a
Revert "Revert "test cases for the new features""
...
This reverts commit e1b668c868 .
2013-08-19 01:17:07 +03:00
Araq
d53f313599
implemented computed goto support
2013-08-13 11:21:02 +02:00
Araq
d18c82a9ef
new VM: preparations for evalMacroCall
2013-08-11 18:48:33 +02:00
Araq
a294d45fd6
Merge branch 'master' of github.com:Araq/Nimrod
2013-08-08 21:11:20 +02:00
Araq
288cd05f89
new VM: register allocator bugfix; implemented more magics
2013-08-08 21:10:54 +02:00
Zahary Karadjov
5dfc0d0d19
Take into account dirty buffers in suggest output; Fixes zah/nimrod.vim#14
2013-08-07 18:58:46 +03:00
Araq
06b3852143
Merge branch 'master' of github.com:Araq/Nimrod
2013-08-07 01:40:37 +02:00
Araq
aefa0da8a6
new VM: implemented constructors and jump optimizer
2013-08-07 01:40:08 +02:00
Zahary Karadjov
5c32156a71
fixes #534
2013-08-07 00:01:58 +03:00
Araq
30bb68d48a
new VM: next steps
2013-08-03 21:14:57 +02:00
Araq
9589acd00e
fixes #532
2013-08-01 00:16:29 +02:00
Araq
731c6f9083
'nimrod pretty' usable
2013-07-31 20:35:04 +02:00
Araq
805959378d
'nirmod pretty': almost working
2013-07-31 02:50:17 +02:00
Araq
e5be2e9f97
'nimrod pretty': next steps
2013-07-30 21:10:45 +02:00
Araq
d640121ce6
lfFullExternalName for 'nimrod pretty'
2013-07-30 17:15:58 +02:00
Araq
fd2a808266
fixes token's column information
2013-07-30 08:45:00 +02:00
Araq
28ad262a46
'nimrod pretty': next steps, doesn't work yet
2013-07-29 23:52:08 +02:00
Araq
6810a0e3e3
'nimrod pretty' command: next steps
2013-07-29 22:56:32 +02:00
Araq
ef975d277a
new vm: further progress
2013-07-29 01:21:32 +02:00
Araq
27b7ecbbff
new vm: lots of fixes
2013-07-27 01:28:31 +02:00
Araq
698eac2a94
new vm: can execute simple programs
2013-07-26 12:17:36 +02:00
Araq
f3a2eec13b
attempt to make C codegen aware of 'gensym'
2013-07-25 23:40:15 +02:00
Araq
a59874e312
Merge branch 'master' of github.com:Araq/Nimrod
2013-07-25 22:40:47 +02:00
Araq
02c86567ee
new vm: next steps
2013-07-25 22:40:25 +02:00
Araq
2c3d1fa954
bugfix: gensym
2013-07-25 21:25:40 +02:00
Araq
3e0899359b
new evaluation engine: next steps
2013-07-25 08:37:37 +02:00
Araq
9acdf94cc0
fixes #531
2013-07-24 23:07:28 +02:00
Araq
b1d4dfa6b1
fixes #544
2013-07-24 22:32:09 +02:00
Araq
f9426bfcd5
added macros.genSym
2013-07-24 21:58:17 +02:00
Araq
b30e237a37
first steps to a new evaluation engine
2013-07-24 21:39:39 +02:00
Araq
84534ce4b8
Merge branch 'master' of github.com:Araq/Nimrod
2013-07-20 20:18:21 +02:00
Araq
aa88e150da
'modules' module from 'main'; minor bugfixes
2013-07-20 20:17:23 +02:00