Random Link ¯\_(ツ)_/¯ | ||
Jan 3, 2021 | » | Computer Graphics Potpourri
2 min; updated Feb 12, 2023
Retained Mode vs. Immediate Mode In retained mode, the graphics library exposes an API to the application for building/updating a scene. However, the graphics library is in charge of issuing drawing commands. In contrast, an immediate-mode API allows the application to issue the drawing commands. Retained-mode APIs abstract away initialization, state maintenance and cleanup, but uses more memory. Immediate-mode APIs allow for more targeted optimizations. https://reactjs.org/ is one of the more popular retained-mode web APIs.... |
Jan 7, 2022 | » | 019. Counting Sundays
6 min; updated Jan 7, 2022
Problem Statement You are given the following information, but you may prefer to do some research for yourself: 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain or shine. And on leap years, twenty-nine. A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 400.... |