PostgreSQL em … 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?

This entry was posted in Bancos de Dados, Lisp, PostgreSQL and tagged , , . Bookmark the permalink.

4 Responses to PostgreSQL em … Lisp?

  1. ed motta [Visitante] says:

    “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!

  2. Leonardo Varuzza [Visitante] says:

    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″

  3. 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

  4. 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

Deixe um Comentário

O seu endereço de email não será publicado Campos obrigatórios são marcados *

*

Você pode usar estas tags e atributos de HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>