As gambiarras mais impiedosas que já fiz: parte 2
Dando continuidade à parte 1.
NULL on error
Dando continuidade à parte 1.
Gambiarra, de modo geral, é conhecida como uma espécie de quebra-galho ou atalho para conseguir algo usando a criatividade, muitas vezes de forma pejorativa. Ressalto que, neste texto, a ideia é justamente enfatizar a criatividade diante de grandes desafios.
“A nostalgia é um sentimento permanente. Em outras palavras, sentimos nostalgia mesmo vivendo em nosso próprio país, ao lado das pessoas que mais amamos. Apesar de um lar feliz e de uma família feliz, um homem pode sofrer de nostalgia simplesmente porque sente que sua alma está sendo limitada, que ela não se desenvolve da maneira como deseja. A nostalgia é o sentimento de impotência diante do…
As a child, there was a game called secret message which consisted of writing something on a sheet of paper with lemon juice and handing it to a friend who knew that by holding a candle underneath, a message would be revealed — without any of the intermediaries ever knowing.
As I’ve already said countless times, I’m working on my first game for Steam, which you can check out online at reprobate.site.
I recently discovered that V8, the engine behind Node.js and Chrome, has been using xorshift128+ since 2014. Out of curiosity, I checked what the Lua VM uses, and to my surprise, it relies on the standard C library, which is extremely slow.
Spoiler: it’s not shaders
I was working on my engine, which includes a sort of canvas where Lua code can generate chunks of pixels and send them in batches for the C++ engine to render. This worked very well and smoothly at 60 frames per second with no frame drops at low resolutions (240p, which is the screen size of my games). However, when I happened to try 1080p, the frame rate dropped.
As you know, this blog is more focused on sharing code snippets than on teaching, so today I’m going to show you something I recently discovered.
Introducing the IoT device Tabajara: “I’m in a meeting.”