HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
imeckler
diffgeo
JavaScript2015–2015
imeckler / diffgeo

diffgeo

Discover this repository through its Hacker News conversations.

3Distinct people
3Mentions
0Explicit recommenders
8GitHub 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, 1:49:46 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 hour3 dated mentions

Observed mentions: 2015-07-29 16:35:21 UTC to 2015-07-29 18:09:16 UTC.

0122015-07-29 16:00:00 UTC to 2015-07-29 17:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJul 29, 16:002015-07-29 17:00:00 UTC to 2015-07-29 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJul 29, 17:002015-07-29 18:00:00 UTC to 2015-07-29 19:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 29, 18:00

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
Jul 29, 16:002015-07-29 16:00:00 UTC2015-07-29 17:00:00 UTC202
Jul 29, 17:002015-07-29 17:00:00 UTC2015-07-29 18:00:00 UTC000
Jul 29, 18:002015-07-29 18:00:00 UTC2015-07-29 19:00:00 UTC101

What Hacker News says

3 sources
Looking at the source code (I think this is it: https://github.com/imeckler/diffgeo/blob/master/Main.elm#L32..., https://github.com/imeckler/diffgeo/blob/master/Native/ODE.j...) it looks like the Dormand-Prince method is being used. In general, ODE solvers can't be expected to maintain invariants of the ODE system, such as periodicity. This is typically handled by choosing a solver that maintains such invariants by construction, e.g., symplectic methods for Hamiltonian systems conserve symplectic 2-form. Adding many floating-point numbers together causes serious problems only in relatively rare cases, unlikely to occur here (e.g., see Higham's accuracy and stability book). If I were to guess, the issue is maybe here (https://github.com/imeckler/diffgeo/blob/master/Main.elm#L45...), where the direction change is applied when the key is pre
Read the rest
ssed, which means that the direction change doesn't happen inside the ODE itself: in effect this might be solving "go straight-tiny turn-go straight-tiny turn...", which would not be periodic even with perfectly exact solutions. If this is the case, this is like applying a first-order splitting method in which turns are handled with the forward Euler method, which would be quite inaccurate. An extra source of error would be a positive Lyapunov exponent of the geodesic flow. When it is positive, the errors in the geodesic ODE solutions accumulate, causing exponentially large (in time) changes, meaning that the accumulated errors are much more noticeable than in geometries with non-positive Lyapunov exponents of geodesics (e.g., flat geometry would have smaller errors). That said, it's not clear that you should actually expect to get periodic case in every case like this. I just kind of assumed they would be periodic based on how close they got. Still, flat circles seem to deviate after about half a dozen orbits. (Edit: With a bit of further experimenting, it seems curves in the hyperbolic upper half-plane that constantly turn should be periodic, so there's probably a bug.)
In Show HN: Walk around unusual geometries

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.