Articles

(Mar 10) #graphics #math Save to Pocket

Ray tracing is when you use math to simulate light rays to create an image. The most basic form involves determining what "objects" the rays from a virtual camera intersect, while more sophisticated versions also take into account reflection and refraction. Although bare of any code, Steven Waterman's article does an excellent job of explaining the math behind the most basic version of ray tracing, giving you the opportunity to code your own ray tracing program from scratch.

(Feb 18) #fine state machine #math Save to Pocket

Text rewriting is so common that "many programming languages provide built-in text rewriting APIs". But maybe these APIs are too much for your needs, or you just feel like writing your own. Well Denis Kyashif has written an informativ article about text rewriting using regular expressions. Denis' article covers finite-state automatons, finite-state transducers, and how they tie into rewrite rules and grammars.

(Mar 08) #c #memory allocation Save to Pocket

We've already had several articles about memory allocation in the past couple of weeks, but none of them have gone into the nitty gritty as much as this one. Chris Rohlf's article covers Isolation Alloc, a security focused memory allocator he wrote in C. Although nothing revolutionary, Chris' article covers all the fundamentals, underlining the root structure, zones, zone bitmaps, the API, and memory safety.

And that''s it for today! Discuss this issue at our subreddit r/morningcupofcoding.

Did you like what you read? Let us know by clicking one of the links below.

Liked - Disliked

I hope you enjoyed reading the latest issue of Morning Cup of Coding. If you did, consider supporting us by becoming a patron (Patreon) for perks like ad-free issues, or via a one-time donation via PayPal.

Interested in sponsoring our newsletter? Click here to send us an email.

Cheers,

Pek