Sunday, March 26, 2006

Code generator : the languages comparison

I've been hacking a code generator in various languages just to get the fell of each languages, none is the worst, but some are so much cooler. Here's the results of my experimentation.

C#


Goods

  • Fast

  • Should run on any win32 machine with .NET


Bads

  • Too much of LOC

  • Had to use NVelocity has a template engine

  • Code to inject template bindings was ugly



Python


Goods

  • Easy to read class and attributes metadata

  • Scripting language so the developement cycle was faster, no compile step

  • Easely multiplateforme


Bads

  • Had to use Cheetah has the template engine



Boo


Goods

  • Fast

  • Implemented the generator code has a script in Boo


Bads

  • Playing with the compiler pipeline and stuff is complexe

  • lack of docs (but yeah Boo has not hit 1.0 yet)

  • No template engine usable for this with Boo's syntax



Ruby


Goods

  • OMG!

  • Implemented in 2 LOC

    require 'erb'
    print ERB::new('mytemplate').run(binding)



Bads

  • Too easy ;)

9 Comments:

Anonymous Anonymous said...

equity credit line
credit equity home information line
credit equity home line loan low mortgage rate
credit equity home home line loan low mortgage rate
credit does equity home line work
credit equity home illinois line
credit equity florida home line
100 credit equity home line
bad credit equity home line loan low mortgage rate
bank credit equity home line ohio savings
credit equity home line michigan
credit equity home line tax
125 credit equity home line
credit equity home interest line rate
credit equity home line refinance
citibank credit equity home line
bad credit equity line
credit equity home line question
credit equity line loan
credit equity fargo home line well
best credit equity home line
credit equity home line texas
california credit equity home line
bankruptcy credit equity home line
credit equity home line virginia
credit equity equity home home line loan vs
credit equity home line mutual washington
bad credit credit equity home line
conventional credit equity home line loan other vs
calculator credit equity line
credit equity fixed home line rate
credit equity home line loan versus
best credit equity home line rate
credit equity home line mobile
credit equity home line loan vs
calculator credit equity home line
credit equity line rate
credit equity home line loan
credit equity home line rate
credit equity line
credit equity home line
equity credit lines
Equity Line of Credit

1:47 p.m.  
Anonymous Anonymous said...

MESSAGE

10:41 a.m.  
Anonymous Anonymous said...

Hello
cialis vs viagra
cialis levitra viagra vs vs
cialis drug viagra vs
cialis levitra viagra vs
cialis strong viagra vs
cialis levitra search viagra vs
cialis search viagra vs
cialis effects side viagra vs
cialis levitra search viagra vs vs
viagra vs cialis
Bye

10:41 a.m.  
Anonymous Anonymous said...

Latest news. Viagra, cialis

viagra
cialis
tramadol

5:20 p.m.  
Anonymous Anonymous said...

Hey,

What is it with girls fighting?

BigMike


gross-videos.com

7:16 a.m.  
Anonymous Anonymous said...

MESSAGE

5:56 a.m.  
Anonymous Anonymous said...

http://invest-options-online.usabestlink.info - invest options online

http://option-investing.usabestlink.info - option investing

[URL=http://invest-options-online.usabestlink.info/index.html]invest options online[/URL]
[URL=http://option-investing.usabestlink.info/index.html]option investing[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-future-and-option-market.html]investing in future and option market[/URL]
[URL=http://option-investing.usabestlink.info/lease-option-investing.html]lease option investing[/URL]
[URL=http://option-investing.usabestlink.info/fear-investing-option-without.html]fear investing option without[/URL]
[URL=http://option-investing.usabestlink.info/investing-lease-option-turnkey.html]investing lease option turnkey[/URL]
[URL=http://option-investing.usabestlink.info/lease-option-real-estate-investing.html]lease option real estate investing[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-option.html]investing in option[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-stock-option.html]investing in stock option[/URL]
[URL=http://option-investing.usabestlink.info/stock-option-investing.html]stock option investing[/URL]
[URL=http://option-investing.usabestlink.info/future-in-investing-market-option.html]future in investing market option[/URL]
[URL=http://option-investing.usabestlink.info/investing-lease-option.html]investing lease option[/URL]
[URL=http://option-investing.usabestlink.info/fear-investing-option-without.html]fear investing option without[/URL]
[URL=http://option-investing.usabestlink.info/investing-lease-option-turnkey.html]investing lease option turnkey[/URL]
[URL=http://option-investing.usabestlink.info/estate-investing-lease-option-real.html]estate investing lease option real[/URL]
[URL=http://option-investing.usabestlink.info/in-investing-option.html]in investing option[/URL]
[URL=http://option-investing.usabestlink.info/investing-option.html]investing option[/URL]
[URL=http://option-investing.usabestlink.info/in-investing-option-stock.html]in investing option stock[/URL]
[URL=http://option-investing.usabestlink.info/investing-option-stock.html]investing option stock[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-future-and-option-market.html]investing in future and option market[/URL]
[URL=http://option-investing.usabestlink.info/lease-option-investing.html]lease option investing[/URL]
[URL=http://option-investing.usabestlink.info/fear-investing-option-without.html]fear investing option without[/URL]
[URL=http://option-investing.usabestlink.info/investing-lease-option-turnkey.html]investing lease option turnkey[/URL]
[URL=http://option-investing.usabestlink.info/lease-option-real-estate-investing.html]lease option real estate investing[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-option.html]investing in option[/URL]
[URL=http://option-investing.usabestlink.info/investing-in-stock-option.html]investing in stock option[/URL]
[URL=http://option-investing.usabestlink.info/stock-option-investing.html]stock option investing[/URL]
[URL=http://option-investing.usabestlink.info/invest-options-online.html]invest options online[/URL]

5:56 a.m.  
Anonymous Anonymous said...

Pneuseattelve xaikalitag astohessynano [url=http://uillumaror.com]iziananatt[/url] ImmalaTiffsof http://gusannghor.com Derbrasse

6:39 a.m.  
Anonymous Anonymous said...

http://www.mfg.com/usa/tramadolonline/#73027 illegal buy tramadol online - tramadol 50mg for pets

5:52 p.m.  

Post a Comment

<< Home