C++ Templates used like Dylan Macros 
Author Message
 C++ Templates used like Dylan Macros

I found the following article in C++ Report (March 2000, Vol 12/No 3)
rather interesting -- dunno if anyone else will but what the hell :-).
It's the first part of a look at a way of using C++ templates like Dylan
macros, i.e., leaning towards exploiting them for code generation, rather
than just type specialisation.

  http://www.*-*-*.com/

(probably eventually to be archived at
  http://www.*-*-*.com/
or
  http://www.*-*-*.com/
guessing from their other archive pages).

It's interesting that some of the problems are similar -- unenlightening
error messages and "it takes getting used to" in particular!

C++ folks who get their heads around this will get an idea of what macros
are good for in Dylan -- they're nothing like C preprocessor macros, being
"grammar-aware".  Dylaners might get some macro design ideas and/or good
ideas for macros.

-- Hugh



Sat, 14 Sep 2002 03:00:00 GMT  
 C++ Templates used like Dylan Macros
See

http://extreme.indiana.edu/~tveldhui/papers/Template-Metaprograms/met...
http://extreme.indiana.edu/~tveldhui/papers/pepm99.ps

and several other papers referenced at
http://www.oonumerics.org/blitz/papers/

http://www.oonumerics.org/blitz/ has a high performance math library for
C++ which uses these techniques for specialization matches fortran
performance with clean, object-oriented interfaces.



Mon, 16 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. C++ Templates used like Dylan Macros

2. Metaprogramming: C++ templates vs Scheme macros?

3. Comparing C macros with C++ templates

4. Metaprogramming: C++ templates vs Scheme macros?

5. Using old C++ libraries with Dylan

6. Intro CS book using Dylan?

7. using swig and c++ template library

8. Problem using standard template library in C++ extensions

9. are dylan macros Turing-complete?

10. Simple Reader Macros for Dylan

11. Simple Reader Macros for Dylan

12. dylan parser: Macros

 

 
Powered by phpBB® Forum Software