HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
willcrichton
terracuda
Perl2016–2016
willcrichton / terracuda

terracuda

A high-level Lua API for GPU parallelism [15-418 final]

2Distinct people
2Mentions
0Explicit recommenders
65GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A high-level Lua API for GPU parallelism [15-418 final]

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2016-03-31 13:06:09 UTC to 2016-03-31 13:46:00 UTC.

0122016-03-31 13:00:00 UTC to 2016-03-31 14:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsMar 31, 13:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC. One observed period does not establish a trend.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 31, 13:002016-03-31 13:00:00 UTC2016-03-31 14:00:00 UTC202

What Hacker News says

2 sources
Good question. For your first point, Terracuda doesn't do anything particularly intelligent with movement between host/device memories--it's mostly there just to hide that away from you. However, empirically, if your baseline is Lua or Python, almost anything you write in CUDA is going to be more efficient so long as you have enough data to parallelize over. As for the second point, that is still mostly left to the programmer. GPU code doesn't necessarily preclude complex data structures, however. For one of my benchmarks, we used a software renderer that generates a quadtree on the fly and accesses that during the shading phase (https://github.com/willcrichton/terracuda/blob/master/render...).
In A High-Level Lua API for GPU Parallelism
Project author here. Your first claim is true, and you can verify it here: https://github.com/willcrichton/terracuda/blob/master/matrix... However, I would dispute that it makes the benchmark meaningless. I agree that no one will write the hand-optimized matrix multiply routine in Terra, but I think that misunderstands the use case of the language. Terracuda is intended to make everyday GPGPU computations super easy, so you can speed up simple scripting code that would otherwise be order of magnitudes slower. Look at the other examples in the repo: if you wanted to write a simple hash function, Mandelbrot generator, or renderer, Terracuda makes it simple to accelerate Lua code. There will always be room for super optimized kernels for common functions like matrix multiplication, but I believe there's a strong need for a language that hand
Read the rest
les everything else.
In A High-Level Lua API for GPU Parallelism

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.