Sérgio Carvalho
banner
sergiosgc.com
Sérgio Carvalho
@sergiosgc.com
Geek com opiniões. Refugiado do Twitter. @sergio@sergiosgc.com
It's not quite there yet. I tried logging in with my handle, and got this.
October 16, 2025 at 7:56 PM
Evoluída. A minha chamava para eu lhe abrir a porta que já estava entreaberta. No sentido fácil 🤦

No sentido difícil ainda foi preciso tempo a mostrar como fazer. Tudo ainda mais estranho porque no geral é uma cadelita bastante esperta.

Se calhar é só respeitadora da privacidade...
October 11, 2025 at 10:01 AM
No cheating. Post the last picture of your pet.
July 20, 2025 at 9:56 PM
Ainda bem que temos vários canais de informação
May 18, 2025 at 6:24 PM
Cubro a aposta e subo com a primeira tentativa de fazer pãozinhos de queijo. Bem bons.
May 16, 2025 at 9:22 PM
Cubro a aposta e subo com uma meia geek
March 26, 2025 at 5:15 PM
#AdventOfCode 2024

Day 6: Guard Gallivant

Actually, opted for Zig, not Nix for the next language. Nice language ecosystem. Good compiler errors, good docs, decent forum coverage. Allocators merit some opinion; later.

The problem is just a walking simulator. Brute-forced part two, shamelessly.
December 6, 2024 at 7:44 PM
#AdventOfCode 2024

Day 5: Print Queue

Ok, I'm through with Nim. Usually, I'd take the whole month to get an opinion over the language, but I already have. Nim is not for me. I'll explain better below.

Today's problem is simple, if you implement a custom comparator. Smooth sailing.
December 5, 2024 at 4:29 PM
December 4, 2024 at 5:51 PM
#AdventOfCode 2024

Day 4: Ceres Search

Took the time to write types for coord2d, vec2d and rectangle2d. For part 2, used that to match bounding boxes, a nice save.

Writing modules in Nim is poorly documented, and what forum responses I found were arrogant orders to read the poor docs 🤦‍♂️
December 4, 2024 at 5:50 PM
#AdventOfCode 2024

Day 3: Mull It Over

Regex day. Nim has decent support. No named groups, though. Unexpected, in such a recent language.

Did a nice approach to folding with state in part 2.
December 3, 2024 at 11:32 AM
#AdventOfCode 2024

Day 2: Red-Nosed Reports

Not much to report. Brute-forced part 2, the input was small enough and brute forcing would be trivial to write. Nim compiler errors continue to be entirely useless. I correct my mistakes by fumbling around.
December 2, 2024 at 1:02 PM
#AdventOfCode 2024

Day 1: Historian Hysteria

This year I'm trying my hand at Nim (nim-lang.org)

So far, I realized I'm spoiled by how good rustc error reporting is. Nim is like a C++ compiler on drugs. Thoroughly opaque for the uninitiated.

But hey, got it done...

github.com/sergiosgc/Ad...
December 1, 2024 at 3:28 PM
Não é identificação que se quer. É associação. Mostras este a 100 pessoas, mais de 90 dizem Canadá como primeira palavra que lhes vem à cabeça.

Honestamente, alguma vez um círculo amarelo pode sequer sonhar chegar a esta posição top-of-mind? Faltam tantas características para estar sequer perto...
April 7, 2024 at 2:04 PM
Outra análise comparativa que demonstra facilmente que a aproximação foi má é face aos nossos congéneres:
April 7, 2024 at 12:10 PM
March 14, 2024 at 4:47 PM
Entretanto, na realidade
March 1, 2024 at 3:18 PM
Estranho assumirem assim que têm falhas de segurança no isolamento de aplicações ao nível do sistema operativo...
February 16, 2024 at 10:45 AM
8601 was worth it just for the xkcd.
February 6, 2024 at 1:05 AM
Esta proposta é a que Berlim usou, e funciona. No caso deles, foram aos 30% de oferta pública.

Atenção que não é subsidiar a oferta. É participar directamente no mercado.
February 4, 2024 at 12:47 PM
February 1, 2024 at 12:08 AM
If you see this, post your favourite fictional vehicle.
January 31, 2024 at 8:27 AM
Dito na Assembleia da República:
January 27, 2024 at 1:56 AM
January 1, 2024 at 1:48 PM
Day 13: Point of Incidence

Some days I shouldn't touch code. Stepped into the mud with a wrong data structure for the problem, waded through mud onto the solution. Awful code, though it works. Part 2 is O(n^2), I know. I just don't care.

github.com/sergiosgc/Ad...
December 13, 2023 at 5:51 PM