Páginas

Friday, January 6, 2012

Some Computer Science Terminology

[Este post é em inglês. Se não entender, use um tradutor. Os links para a Wikipedia podem ser consultados em suas versões em português, portanto você ainda pode tirar algo proveito daqui.]

I wrote this as an email to someone special, but then I thought it could be shared here.
It is simply a few links and comments for topics we were talking about one night... you might get interested as well -- and feel free to join the conversation.

--

Hello dear reader!

Words in bold are terms that are interesting to be familiarized with, IMHO.

Context
(Additional term linked above: State http://en.wikipedia.org/wiki/State_(computer_science))


Environment
Note that in Scheme an environment is a first-class object, which means it can be assigned to a variable, it can be passed as argument, it can be used just like a number or string, etc etc.
Note also how Common Lisp and Scheme (and most other programming languages that I am familiar with and that I can think about now) differ in number of environments. CL is said to be a Lisp-2, while Scheme is Lisp-1. It means that Scheme has only one lexical environment containing all functions and variables, while CL has two distinct environments, one only for functions and another, independent one, for variables.
You can also think of the terms scope and namespace, which can appear to play a similar role in several languages.


Turing Machine
Have in mind how little you need to have a computing machine (and think of what does it mean to "compute," by the way). Have in mind that the Turing Machine is not practical as a real computer, but is of fundamental theoretical importance.

(John) von Neumann

Tuesday, December 6, 2011

Como continuar um upload / download usando scp e rsync

Para minha referência futura e talvez ajudar mais alguém...

rsync -P --rsh=ssh nome-arquivo.tar.gz usuario@host:~/caminho/destinho/

Com este comando é possível continuar um upload ou download iniciado por scp, mas que por alguma razão foi interrompido.

O -P é equivalente a --partial (continuar transferências parciais) e --progress (exibe uma barra de progresso) e --rsh=ssh faz com que o rsync use o ssh (assim como o scp) para fazer a transferência de forma segura.

Sunday, November 20, 2011

Eu sou um dos autores do Perl 5

Depois de mais de 1 mês de espera pra ter meu patch no parser do Perl aceito, hoje eu entrei pra lista de autores! Fantástico!


Encontrei um bug com mais de 5 anos, que passou despercebido aos olhos de muitos programadores do core do Perl 5.
Acho que é uma virtude minha detectar erros em texto... eu poderia virar revisor de livro ou equivalente. Leio com atenção, presto atenção nos detalhes, detecto padrões e anomalias.

Quer contribuir você também para o Perl? Comece por aqui.

Friday, November 4, 2011

Perl no Dojo Rio

Wordle usando como base o código-fonte dos nossos dojos em Perl:

Wordle: Perl tests from Dojo Rio

Tuesday, October 25, 2011