HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
huonw
card-trace
Rust2013–2013
huonw / card-trace

card-trace

Discover this repository through its Hacker News conversations.

4Distinct people
4Mentions
0Explicit recommenders
10GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

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 day4 dated mentions

Observed mentions: 2013-09-24 19:17:48 UTC to 2013-10-05 10:48:17 UTC.

0122013-09-24 00:00:00 UTC to 2013-09-25 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsSep 242013-09-25 00:00:00 UTC to 2013-09-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-09-26 00:00:00 UTC to 2013-09-27 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2013-09-27 00:00:00 UTC to 2013-09-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-09-28 00:00:00 UTC to 2013-09-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-09-29 00:00:00 UTC to 2013-09-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsSep 292013-09-30 00:00:00 UTC to 2013-10-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-10-01 00:00:00 UTC to 2013-10-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-10-02 00:00:00 UTC to 2013-10-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-10-03 00:00:00 UTC to 2013-10-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-10-04 00:00:00 UTC to 2013-10-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-10-05 00:00:00 UTC to 2013-10-06 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsOct 5

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

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
Sep 242013-09-24 00:00:00 UTC2013-09-25 00:00:00 UTC110
Sep 252013-09-25 00:00:00 UTC2013-09-26 00:00:00 UTC000
Sep 262013-09-26 00:00:00 UTC2013-09-27 00:00:00 UTC101
Sep 272013-09-27 00:00:00 UTC2013-09-28 00:00:00 UTC000
Sep 282013-09-28 00:00:00 UTC2013-09-29 00:00:00 UTC000
Sep 292013-09-29 00:00:00 UTC2013-09-30 00:00:00 UTC000
Sep 302013-09-30 00:00:00 UTC2013-10-01 00:00:00 UTC000
Oct 12013-10-01 00:00:00 UTC2013-10-02 00:00:00 UTC000
Oct 22013-10-02 00:00:00 UTC2013-10-03 00:00:00 UTC000
Oct 32013-10-03 00:00:00 UTC2013-10-04 00:00:00 UTC000
Oct 42013-10-04 00:00:00 UTC2013-10-05 00:00:00 UTC000
Oct 52013-10-05 00:00:00 UTC2013-10-06 00:00:00 UTC202

What Hacker News says

4 sources
Compiler optimization flags are very code and type specific. (Note that I am comparing apples to oranges here, I used the C++ code used in Rust experiments found here: https://github.com/huonw/card-trace/blob/master/original.cpp ) I changed the C++ version typedef float f to typedef double f, so using floats instead of doubles, compiling with the following flags: -m64 -march=corei7-avx -mtune=corei7-avx -Ofast -funroll-all-loops and the run time dropped down from 17.5 seconds to 11.2 seconds. If I remove -funroll-all-loops, the run time jumps to 14.2 seconds. The original 17.5 seconds were ran with vanilla code using float and -O3. Interestingly enough, if you use the aforementioned flags with floats instead of doubles, the program executes in 15.01 seconds instead. Using floats is bad for performance! Further, if you remove -funroll
Read the rest
-all-loops when using floats, the performance increases, but with doubles it decreases. So, when optimizing, play with compiler flags. Play with types. Play with whatever you have at your disposal and make no assumptions. This stuff is far more complex than believing that certain flags are better than others, it all depends on everything.
In Go vs C++: Ray tracer (part 3)

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.