Smallpt: Global Illumination in 99 lines of C++
smallpt is a global illumination renderer. It is 99 lines of C++, is open source, and renders the above scene using unbiased Monte Carlo path tracing (click for full size) .
Topics /
The most popular blog posts about software engineering on Hacker News. 14,535 posts.
smallpt is a global illumination renderer. It is 99 lines of C++, is open source, and renders the above scene using unbiased Monte Carlo path tracing (click for full size) .
It looks like nothing was found at this location. May be please check the URL for typing errors or start a new search to find the page you are looking for.
Uses some simple trigonometry to calculate the movement of circles bouncing off lines.
Last week I wrote a Mandelbrot set program for the Xerox Alto, which took an hour to generate the fractal. The point of this project was to...
Go 1.7—out today!—features an new SSA-based compiler backend. SSA is a method of describing low-level operations like loads and stores that roughly map to machine instructions, with the special difference that SSA acts as though it has infinite number...
A simple strategy of having LLMs write fuzz tests and build up a port in topological order seems effective at automating porting from C to Rust.
Building Brainf∗ck interpreter for the 21 century, with all the best systems design practices in mind. Think of Brainf∗ck-as-a-service cloud solution!
Over the past few weeks I’ve been dabbling with deep learning, in particular convolutional neural networks . One standout paper from recent times is Google’s Multi-digit Number Recognition from Street View . This paper describes a system for extracting house numbers from street view imagery using a single end-to-end…
A 35 Year Old Bug in Patch. Larry Wall posted patch 1.3 to mod.sources on May 8, 1985. A number of versions followed over the years. It's b...
A simple guide to what CNNs are, how they work, and how to build one from scratch in Python.
It's well known that inheritance was invented by Simula . The History of Programming Languages session on Simula tells us the motivations behind that invention. Let's take a look.
Why developers rarely use state machines, seeing them as overkill until it's too late to switch, and what the state_machine gem did for CrowdHired.
This series has been independently translated into Chinese , Russian , Turkish , and Korean , and formatted as an ebook .
If you're on a version of Windows 11 that is build 22000 or greater, you can ...
In this post I discuss the support for union types released in .NET 11, how they're implemented, the choices made, and how to create your own
It's a bit of a silly post, because syntax is the least interesting detail about the language, but, still, I can't stop thinking how Zig gets this detail just right for the class of curly-braced languages, and, well, now you'll have to think about that too.
In the 1950s, computers did not really interoperate. ARPANET has not yet happened (that would become a thing in the 60s), and every operating system was typically tied to the hardware that was meant to run on. Most communication actually happened over telephone, and no company was more present in that space than the…
It's common knowledge that Rust code is slow to compile. But I have a strong gut feeling that most Rust code out there compiles much slower than it could.
If you don't you're not alone. Right now, as I'm typing this, 4 of the top 4 Google results for "find command linux" contain at least one example of the pattern illustrated by the command above.
Updated Oct 27, 2016: Fixed sample code comments in coroutine example as per suggestion , edited text to note D's similar behaviour .
AI can make implementation cheap while making review and judgment more expensive.
I needed to choose a framework for a mobile-first app at work. I started comparing Next.js, SolidStart, and SvelteKit, then expanded to 10 frameworks. The measurements revealed dramatic differences in bundle sizes, performance, and the real cost of framework choices.
It’s Commencement time! So I thought I’d compile a list of 1010 10000 things I believe all ICS students should have done (by themselves) by the time they get their diplomas. With luck, students have come across some of these in courses. Most likely, that won’t happen, so students need to make time for extra-curricular…
Your laptop spends all day lying to you. If you want your code to run well on server hardware, best write it on server hardware.