PostgreSQL em ... Lisp?
por Walter Cruz on 20/10/2008
in Bancos de Dados, PostgreSQL, Lisp
Não se assuste! Ninguém está pensando em fazer uma versão do PostgreSQL em Lisp!
Numa discussão recente na pg-hackers, alguém sugeriu que o PostgreSQL fosse re-implementado em C++ (atualmente o código está em C). Entre umas e outras (ironias) e mensagens de primeiro de abril, Tom Lane apontou que o código original do Postgres tinha sido portado de outra linguagem, ainda em Berkeley:
I'm surprised no one pointed out that Postgres has *already* been ported to a new language once. It was originally written in Lisp, and was rewritten in C sometime in the Berkeley years. (Anyone know exactly when or by whom? I don't.) You can still see the effects of that origin in the system's liking for list-based data structures.
But the code base was an order of magnitude smaller and simpler back then, meaning that a fresh port would be at least an order of magnitude harder. Like other respondents, I'm not seeing where we'd get benefits commensurate with the cost.
Interessante não?
Subscribe: 



"But the code base was an order of magnitude smaller and simpler back then, meaning that a fresh port would be at least an order of magnitude harder. Like other respondents, I'm not seeing where we'd get benefits commensurate with the cost."
Heresia! Não consegue? Pede pra sair!
Exgtraido do README da versão 1.0.9 do Postgres95:
"HISTORICAL NOTE
Prior to the current simple C structure definitions, the Node structures
uses a pseudo-inheritance system which automatically generates creator and
accessor functions. Since every node inherits from LispValue, the whole thing
is a mess. Here's a little anecdote:
LispValue definition -- class used to support lisp structures
in C. This is here because we did not want to totally rewrite
planner and executor code which depended on lisp structures when
we ported postgres V1 from lisp to C. -cim 4/23/90"
Olá Boa tarde.
Muito obrigado, O post foi corrigido no ZOom DIgital e queria lhen parabenizar pelo blog realmente está otimo parabens e conte conosco para qualquer coisa.
Att
Muito bom!
Não acho importante ficar reescrevendo as ferramentas usando essa ou aquela linguagem.
Acho importante que haja binds pra essa ou aquela linguagem. ;)
[]'s
Cacilhas, La Batalema