Felipe O. Carvalho @felipe.rs · 18/02/2026In Arrow C++, we have “length” of arrays for the “count” and buffers have “size” in bytes. But things get confusing when STL code is mixed because vector::size() is the length/count and not the “size” in bytes. t.co/ZGkA8xvy8R 010
Felipe O. Carvalho @felipe.rs · 13/02/2026Good time to be CLI maxxing: - @neovim.io - tmux - smug (to start tmux sessions from YAML files) - git worktrees (multiple repo checkouts for parallel agents) - dotfiles in a git repo synced across macOS and Linux machines 040
Felipe O. Carvalho @felipe.rs · 05/01/2026Wrote a small bitset class for it. No allocation before more than 64 booleans (i.e. struct fields). 000
Felipe O. Carvalho @felipe.rs · 05/01/2026Serialization of @CapnProto messages to JSON using runtime reflection [1], serde_json [2], and base64 [3]. gist.github.com/felipecrv/16... 150
Felipe O. Carvalho @felipe.rs · 13/11/2025You can post about semaphores, atomics, and syscalls on LinkedIn if you want. 030
Felipe O. Carvalho @felipe.rs · 08/11/2025If we forbid the inlining, the caller is forced to put i on the stack str r0, [sp, #4] to pass the ptr to add10 add r0, sp, #4 // put the ptr relative to the stack ptr on r0 before call then the value is loaded from the stack into r1 before the printf call ldr r1, [sp, #4] 030
Felipe O. Carvalho @felipe.rs · 08/11/2025add10(int *) versus add10 inlined. When you take a "pointer" from a local variable and "pass" it to a function, but the compiler knows the pointer is not a pointer but the register that contains the local variable. 240
Felipe O. Carvalho @felipe.rs · 08/11/2025It’s only a 20-ish% increase from June in Brazil, so I’m securing mine before they have to renew their inventory and increase it even more. 010
Felipe O. Carvalho @felipe.rs · 26/10/2025“wE lAunChed our SaaS a mONth ago and alReady mADE it to 1M ARR” 120
Felipe O. Carvalho @felipe.rs · 16/09/2025I installed Termios on my iPhone and I can SSH to my MacBook (Tailscale FTW), run tmux, Neovim and Amp (AI coding agent CLI) from anywhere. 😌 010
Felipe O. Carvalho @felipe.rs · 08/09/2025Very observant of Sam to notice the consequences of AI on the internet. 140
Felipe O. Carvalho @felipe.rs · 27/01/2025They removed optionals when transitioning to proto2 to proto3 and then people demanded their optionals back. Optionals came back, but implement in a much worse manner. Putting it under an experimental flag didn't deter people from using it elsewhere though. 120
Felipe O. Carvalho @felipe.rs · 23/12/2024I think I’ve achieved the right level of @fly.io networking understanding. 130
Felipe O. Carvalho @felipe.rs · 23/12/2024I remember when it was nVIDIA and not Nvidia or NVIDIA. 2172
Felipe O. Carvalho @felipe.rs · 18/12/2024I'm parsing JSON that contains numbers with two decimal places and I want to store them as Decimals on the database. Python offers a way to avoid the limitations of the floating point representation of the number strings that appear in the JSON text! This will work even when numbers are not in "". 050
Felipe O. Carvalho @felipe.rs · 09/12/2024I guess that kinda makes protobuf unsuitable for the representation of ASTs. 050
Felipe O. Carvalho @felipe.rs · 06/12/2024Yet another case of “hardware companies should be creating compilers and new programming models instead of just hardware.” NVIDIA is a hardware and compiler company. 082
Felipe O. Carvalho @felipe.rs · 03/12/2024Just implemented this function. A nightmare of off-by-one errors. Do you have a more elegant way of implementing it? 120
Felipe O. Carvalho @felipe.rs · 22/11/2024“creators” losing engagement after the changes made to Threads’ algorithm 000
Felipe O. Carvalho @felipe.rs · 22/11/2024Arrow 18 (released by the end of October) is the last release to have so many commits (1 commit = 1 PR) from me. arrow.apache.org/blog/2024/10... 030
Felipe O. Carvalho @felipe.rs · 18/11/2024Thinking in terms of array operations which means memory access operations are sequential/predictable. The jax.numpy API is inspired by numpy, but some things are very different. 010
Felipe O. Carvalho @felipe.rs · 17/11/2024Just watched “Ainda Estou Aqui” (#iamstillhere) ⭐️⭐️⭐️⭐️⭐️ A movie hits you like a rock. #aindaestouaqui 130
Felipe O. Carvalho @felipe.rs · 16/11/2024CQRS não é uma "boa prática". É um tipo de otimização em sistemas distribuídos que é muito pouco resistente a bugs em máquinas de estado se comunicando via passagem de mensagens incrementais. A primeira resposta para alguém pensando em implementar CQRS é "NÃO". 121
Felipe O. Carvalho @felipe.rs · 16/11/2024A cada 6 horas eu ganho 30 seguidores nos últimos dias. Sim, o Bluesky está ganhando tração fora do Brasil. No horário mais calmo, os servidores estão recebendo a mesma carga que recebiam no pico da invasão brasileira. 110
Felipe O. Carvalho @felipe.rs · 16/11/2024Leia código de verdade em vez de código de vendedor de livro/curso que diz que funções tem que ter apenas 5 linhas e que você não deve usar else. cpython/Lib/threading.py tem 1599 linhas, 11 classes, várias funções. Leia a implementação das funções que você usa. 2130
Felipe O. Carvalho @felipe.rs · 16/11/2024Quer parar de codar fofo? Esqueça o Clean Code e comece a se sentir confortável em escrever mais de 1000 linhas de código em um único arquivo e modularizar DEPOIS. Escrever funções longas (100+ linhas) e extrair funções DEPOIS se elas forem chamadas mais de uma vez ou forem funções puras. #bolhadev 4338
Felipe O. Carvalho @felipe.rs · 11/11/2024Here is a taste of what it looks like. This is the configuration for a script I'm writing for managing a small data ingestion pipeline. 010
Felipe O. Carvalho @felipe.rs · 11/11/2024Tem gente reclamando dessa questão do ENEM. Questão bem elaborada. Cenário plausível. Dá pra resolver por tentativa e erro. Aí vem o candidato e chuta 21. 040
Felipe O. Carvalho @felipe.rs · 08/11/2024Programming in JAX feels like doing C++ template meta-programming without all the verbosity and hacks based on template specialization quirks. 020
Felipe O. Carvalho @felipe.rs · 07/11/2024Like... I still haven't found a way to elegantly ensure my code runs with these parameter pre-conditions being checked. At least in unit tests. During development, I comment out the jax.jit transformation to catch errors, but a jax.jit() somewhere might "remove it". 000
Felipe O. Carvalho @felipe.rs · 01/11/2024Studying time series analysis and using JAX to implement the algorithms. #jax #machinelearning #optimization #statistics 170
Felipe O. Carvalho @felipe.rs · 31/10/2024This is over 127.0.0.1 so it's measuring the CPU overhead and not benefiting from transferring less data due to good compression ratios. [zstd] is HTTP compression. [identity+<CODEC>] is IPC compression. 110
Felipe O. Carvalho @felipe.rs · 27/10/2024Caetano Veloso and Maria Bethânia in concert. Recife, PE, Brazil. 020
Felipe O. Carvalho @felipe.rs · 24/10/2024I had to tweak the size of the butterfly to make it look good as an icon. 010