Terra and Lua

Posted on Thu 27 March 2025 in programming • Tagged with lua, terra, c, lowlevel, uefi • 3 min read

Picture from Pixabay : https://www.pexels.com/photo/blue-and-white-planet-display-87009/

Famous Apollo 8 image titled Earthrise

Let's write some code that uses the services provided by the (U)EFI (modern BIOS) environment and we gonna use Terra, as is says in their website, a counterpart to Lua. I'll assume that you know some C for Part 1.

"Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language". This means you can write some typed code that looks like Lua, embed some Lua code, and compile the whole thing to machine code.

To install Terra you should have a …


Continue reading

More things in March

Posted on Sun 23 March 2025 in studying • Tagged with pelican, markdown, golang, verilog • 2 min read

Australian Pelican in flight. Image by Penny from Pixabay

Australian Pelican in flight. Image by Penny from Pixabay

I've been busy looking for a new job and all the pain that comes with that, and in the meanwhile trying to make this blog nicer. One of this days I'll make a similar post to the one I made in 2013 on how to make a your own static site like this one using Pelican and Github pages but I'll just share some stuff for now.

So I found out you can customize the Markdown Pelican understands by configuring Python Markdown, you can enable and configure …


Continue reading

Things CAN be Better

Posted on Fri 21 March 2025 in opinion • Tagged with hope, geopolitics, politics • 4 min read

It's 2025, and I like to remember that things can always get better. Of course they can get worse, and they are, but it's almost impossible that even a small group of people, even one person can't make the things around them a little better. That's part of what makes a civilization.

Humans, and lot's of other animals, even single cell organisms and plants, can change their environment and make it better. This word has been ruined by the european empires but, a single cell, a group of cells, plants and animals do colonize their environment …


Continue reading

Some things I've been studying and doing this year so far

Posted on Tue 11 March 2025 in studying • Tagged with studying, reactjs, python, microservices, cedar, parc, xerox • 2 min read

Maybe I should keep a record of things I have been looking as I try to not go insane looking for a new job, so, here we go:

Can say I did edited the Portuguese Wikipedia article and added another paragraph. I also create a new Github repo to follow two tutorials I want to go through before I sit down to read a whole book or something.

Bonus: Some more practice with Flak and SqlAlchemy.

https://github.com/xspager/LearningMicroservicesWithFlask


Continue reading

Realismo sobre as mudanças climáticas

Posted on Tue 11 March 2025 in opinião • Tagged with mudanças climáticas • 2 min read

O buraco na Camada de Ozônio da atmosfera terrestre levou décadas para reduzir e teve seu mínimo em 20191 (ver na imagem abaixo). Isso só aconteceu porque houve um esforço global e rápido para que não se fizesse mais o uso de CFCs. Apesar do buraco ter voltado a crescer novamente.

Imagem mostrando uma série de extensão máxima da Camada de Ozônio de 1979 até 2024

O Milagre Verde (o uso das tecnologias criadas no início do século 20 para aumentar a produtividade da agricultura) só aconteceu porque a temperatura da atmosfera ainda permitia a fotossíntese e ainda chovia de forma moderada em alguns lugar do planeta, permitindo grandes safras …


Continue reading