John Sequeira

Amped::Technology
John Sequeira's weblog: enterprise application development, typed weakly.

Monday, June 20, 2005
Perl6->IL

Atrijius dangles the prospect of IronPerl6 (perl6 on the clr) in front of me.

He also mentions that in his prior-art survey he liked the multiparadigm C# superset Nemerle a lot. Nemerle has lisp-like macros, which perhaps I never appreciated until this example:

Our library provides special functions (macros) for executing SQL queries. They have similar functionality to methods of System.Data.SqlClient.SqlCommand class, but all the strings passed to them are verified at compile-time. They are being sent to database by compiler, so the database provider is used here as a verification program. If it returns an error, the compilation is stopped with a message pointing to an invalid SQL statement.

Compiling inline SQL when you compile your code to verify parameters/syntax/etc, and using macros to do it... I can't get over how cool that is.

They also have a few examples of SQL one-liners that resolve to copious amounts of ADO.NET code.
8:09:23 AM      comment []  trackback []


© Copyright 2005 John Sequeira.
 
June 2005
Sun Mon Tue Wed Thu Fri Sat
      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    
May   Jul

Click to see the XML version of this web page.
Click here to send an email to the editor of this weblog.
Yahoo: johnseq2
MSN: john_seq@hotmail.com
AIM: amped02139
Skype: johnjulian