Better HN
topnewbestaskshowjobs
Log inSign up

VladD2

5 karma · joined May 14, 2011 (15y ago) · 3 submissions

Submissions

comment 15y ago · link · parent

For example, see implementation of "lock" macro: http://code.google.com/p/nemerle/source/browse/nemerle/trunk...

comment 15y ago · link · parent

Macros are expending in the typing process. In macro you can use compiler API to type some untyped AST (for example, argument of macro).

For example, "foreach" macro use compiler API to infer type of collection. This macro generate specialized code for different collection kind (array/list/IEnumerable).

comment 15y ago · link · parent

Compiled in native? CLR compile IL before execution.

In the next version of Nemerle we plan to create Interchangeable back-ends: http://code.google.com/p/nemerle-2/wiki/BackEnds?wl=en-US

As one of the variants we consider to create backend for LLVM. At least we think about it.