Better HN
topnewbestaskshowjobs
Log inSign up

ddahlen

1,503 karma · joined Sep 4, 2024 (2y ago) · 85 submissions

I calculate orbital dynamics of comets/asteroids/dust in the solar system.

https://github.com/dahlend/kete

Previously worked in quantum computing in both hardware (transmons) and writing compilers.

Submissions

comment 4d ago · link · parent

This looks neat! N-body simulation is a lot of fun to play with!

If you want a flashy example of an orbit you can show off, go grab comet P/2023 V2, it had a close encounter with saturn back in 2018 and does some crazy moves: https://dahlend.github.io/ketev/#t=2018-02-08.6163&sel=P/202...

How does this compare to something like universe sandbox? https://store.steampowered.com/app/230290/Universe_Sandbox/

comment 5d ago · link · parent

I feel this, my field (orbital dynamics) has a lot of heritage fortran that at this point I think will never go away. Much of it has a proven history, but there are large swaths of it that the original authors have long since died and no one knows the innards anymore.

I know, if it aint broke... but it feels like something has been lost if we are using code that no one alive knows what it is doing. I suppose that is the AI future.

comment 1w ago · link · parent

just in case you see this, I updated the list of interesting orbits.

comment 1w ago · link · parent

Thanks for maintaining such a core tool, it has been really helpful for me!

comment 1w ago · link · parent

Thanks for making useful tools!

Ah yeah hifitime, I tried it out but its internal representation doesn't work well for my long term simulations, the integer representation ends up increasing the numerical noise in my simulations when I do really sensitive long term ones.

comment 1w ago · link · parent

This looks interesting!

Time is such a pain, I write code for simulating orbits of asteroids/stuff in the solar system, and time and time conversions play a major roll in it. I often need accuracy at the mega-year to giga-year scales, but also sometimes micro-second relative.

I saw on this page that you at least mention TAI time, how are you handling time scales in general? Like would it be hard to add some other timescales like UT1?

Right now I have to do all of this manually and I have been using chrono as just a convenience wrapper so that my users can convert ISO time strings into my internal representation.

Edit: Oh no! I just found out chrono is being semi-deprecated, looks like I'm going to be switching...

comment 1w ago · link · parent

Thanks!

Here is a fun comet orbit for you: https://dahlend.github.io/ketev/#t=2018-02-08.9717&sel=P/202...

This guy had a close encounter with saturn in 2018 and his orbit dramatically changed. At the time he was likely a very cold object that had frozen volatile material (usually water and CO/CO2), The PANSTARRS telescope found him in 2023 after he started giving off material and becoming a comet.

Because he came so close to saturn, it is likely that the estimate of the orbit before this is not super precise, as orbital mechanics is a chaotic thing and small changes of initial conditions become huge changes later.

comment 1w ago · link · parent

Worked at caltech on the Near Earth Object Surveyor (NEO Surveyor) space telescope building orbital simulation tools.

comment 1w ago · link · parent

Yes its egui. I know nothing of UI stuff, I am more on the "make math go fast" side of the programming spectrum, and less on the pretty button side.

comment 1w ago · link · parent

The Lagrange points are more like "regions" than points in reality. There is some complicated math you can do to work it out, but typically numerical stuff is a bit more reliable once you start to include the rest of the planets, the analytic theory gets pretty complicated the more bodies you include.

The trojans that you see there sort of do a little dance when you plot them in the rotating frame of Jupiter (more technical term is librate). The size of the region has to do with the mass of the parent body, since jupiter is so big, the capturing region is pretty large. Technically there are other trojans around some other planets, but most of them are not long term stable like jupiter is, mainly because jupiter is just big.

comment 1w ago · link · parent

Yeah its not the most user friendly, go into the filters tab and check the numbered and unnumbered check boxes.

comment 1w ago · link · parent

Hah, no that's a mistake. I really need to update that list anyways, there are more interesting orbits.

comment 1w ago · link · parent

Thanks!

You can also turn on the known asteroid population:

https://dahlend.github.io/ketev/#t=2026-11-12.9717&sel=2026%...

Everything runs in the browser, served as a static github pages so I don't have to think about hosting or anything.

comment 1w ago · link · parent

If anyone is interested, here is its orbit, my old day job was to compute orbits for asteroids and comets.

(This uses wasm, meant for a desktop, and will download the asteroid catalog of about 65mb, you have been warned)

https://dahlend.github.io/ketev/#t=2009-07-01.717&sel=2026%2...

This is a big boy.

comment 2w ago · link · parent

It is made of water-ice, however it cannot be forming clouds using the same formation process that happens on Earth. The typical cloud formation process that happens on Earth has water forming around bits of dust, but on mars the atmosphere is too thin to have dust particles at that altitude. So something else is causing the cloud formation.

At least that is my read of it.

I think there was a recent paper about this, I seem to recall seeing a discussion of the process somewhere.

comment 3w ago · link · parent

Here is the orbit of it:

https://dahlend.github.io/ketev/#t=2026-10-28.9204&sel=2026%...

comment 1mo ago · link · parent

Its a fun mini-game, but your ceres is flying. I suspect there is a speed issue there. Here is it moving at accurate speeds: https://dahlend.github.io/ketev/#t=2026-10-10.2621&sel=1&v=4...

comment 1mo ago · link · parent

How are you sourcing the spacecraft positions from JPL? Are you just grabbing a huge list of state vectors?

My old day job was to compute asteroid positions for NASA telescopes, if you are interested in orbit prop you may be interested in: https://github.com/dahlend/kete

I made an asteroid only version of yours earlier this year, where it does full orbit propagation in workers: https://dahlend.github.io/ketev/

comment 1mo ago · link · parent

Thanks but I have no interest, I already have my own viewer:

dahlend.github.io/ketev/

comment 1mo ago · link · parent

Hi, I wrote orbit propagation code that is used to compute asteroids and comet positions for several of the NASA space telescopes.

I refit the orbit and yeah this is not a dangerous object. Given its (currently poorly constrained) orbit it is likely a comet, it came the closest it will ever come to Earth last month at about half an AU from us. (IE: half the distance from the earth to the sun).

It is at about a 110 degree inclination, meaning it is basically perpendicular to the solar system plane and already passed perihelion.

MOID, or Minimum Orbital Intersection Distance, is a basic geometric measurement that says how close the geometric ellipses of two orbits get together. It doesnt mean that the objects will actually be that close ever. For example the MOID of the jupiter trojan asteroids is basically 0 since the orbits are the same, but they dont get close to jupiter. It's really handy to use it to rule out dangerous stuff though, non-zero MOID usually means there is no way it could ever be dangerous.

Here is some of the orbit code I used: https://github.com/dahlend/kete

comment 2mo ago · link · parent

This is very niche, only for people who do astrophotography or astronomers, mostly because of the required specialized file format.

I have slowly built out a set of tools for asteroid orbits and photometry (measuring how bright stars/asteroids are).

It is very rough still (Desktop only), and it only supports the FITs file standard.

https://www.astrometry.space/

Basically it is a full professional grade telescope processing pipeline in your browser. It does 2 queries to some custom databases to identify known asteroids and stars, but all image processing and calculations are done in the browser. This means the backend is pretty tiny. That said it is running on an old box in my closet, so queries may take a while if it gets hammered.

I built it since I have worked with quite a few astronomers over the past 4 years and I keep watching them do the same steps, purely built to make my friends lives easier. I wrote it all in rust and managed to compile it into wasm. With some help from fable as I am not a frontend guy at all, I built it into a small website.

Some of the code is public, the orbital mechanics code I wrote while I worked at Caltech. Which is being used on SphereX, NEO Surveyor, and the Roman telescopes to identify known asteroids. https://github.com/dahlend/kete

comment 2mo ago · link · parent

The writing style has significantly improved, however the token burn rate for tasks I have been working on seems to have skyrocketed. It definitely appears more capable (though I am unclear how much of that is just me liking the English it writes now vs actually more performant). I was using Fable 5 for some mathematical analysis assistance and redoing a part of it with 5.1 burned 60% of my session at a much faster rate.

comment 4mo ago · link · parent

Strictly from an energy conservation argument this doesnt make a whole lot of sense to me. Just some back of the envelope math if they take their current mirror size, make 50k of them and overlap all of the output on the same 3 mile spot (the spot size they claim they will get on a single mirror). With an ideal reflector it is still less than mid-day daylight. Thats 50k satellites to give you direct sun over one 3 mile spot.

I suppose to make this feasible they would have to up the size of the mirrors. Unless this is somehow dirt cheap I can't imagine farmers or solar operators buying this.

comment 5mo ago · link · parent

You can put in a public comment on these changes here:

https://www.federalregister.gov/documents/2026/05/29/2026-10...

comment 5mo ago · link · parent

I am a researcher studying orbital dynamics of asteroids/comets/dust. I made a very precise visualization tool for the solar system, it shows the motion of all of the known asteroids. When you click on a specific asteroid it will then show the hyper precise orbit for it which matches JPL's orbit calculations (full physics, n-body, relativity, non-spherical planets).

Not mobile friendly

https://dahlend.github.io/ketev/

comment 6mo ago · link · parent

Research grade orbital mechanics, specifically of asteroids/comets. I've been working on it for 4 years now, finally tried using some AI tooling the last few months and ended up vibe coding a fun little visualization.

(Desktop Strongly recommended) https://dahlend.github.io/ketev/

comment 1y ago · link · parent

I suggest the appendix of the arxiv paper if you want to see some of the math required for solar system objects beyond simple Newtonian gravity (like Relativity corrections). I wrote that section specifically because I found it a pain in the ass to source those equations in literature.

comment 1y ago · link · parent

Its an implementation of a pretty standard integrator used by astronomers informally called "RADAU", but it is not exactly the same RADAU you would find elsewhere. Basically it is about as good as you can typically get for multi-step integrators, tuned for speed not precision though.

Note that how the code is laid out you cant really simulate non-solar system masses. Its really aimed at massless objects in the solar system, your 3-body simulations are actually quite difficult to do given the design.

comment 1y ago · link · parent

Working on orbital dynamics code for my PhD in astronomy, written in rust, it can accurately calculate the positions of all asteroids/comets to within a few meters. Today I am adding a new numerical integration method which should enable me to predict orbits from observations.

https://github.com/dahlend/kete

I'm working on modeling the motion of observed dust particles coming off of comet 67P, here is are some example 3d plots:

Example of rocks ejected from one position and their possible motions: https://dahlend.github.io/67p_beta_dust.html

Trying to determine possible orbits from a set of observations (the straight lines): https://dahlend.github.io/67p_dust_orbit.html

Shout out to pyvista for making these great 3d plots possible, a little less ergonomic than matplotlib, but it can export directly to html.

123