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?

Endereço de trackback para este post

Trackback URL (clique direito e copie atalho/localização do link)

4 comentários


Notice: Undefined index: comment_secret in /home/walter/repositories/whissip-dev/blogs/inc/comments/model/_comment.class.php on line 161
  1. ed motta 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 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

Share Your Thoughts


Seu endereço de e-mail não será revelado nesse site.

Sua URL será exibida.
PobreExcelente
(Quebras de linha se tornam <br />)
(Nome, e-mail & website)
(Permitir que usuários o contatem através de um formulário eletrônico (seu e-mail não será exibido.))
Subscribe to comments by email

You can just use your OpenID to provide your name, e-mail and url.