Skip to content

Conversation

@jeanbarrossilva
Copy link
Collaborator

@jeanbarrossilva jeanbarrossilva commented Feb 6, 2026

Because my goal with this project is quite ambitious and my knowledge regarding physics is hugely scarce, I think that one of the best ways to get better in it is to experiment. This PR adds a framework, LaboratoryKit, unrelated to the API or user-facing features of Deus, in which I intend to replicate physics experiments to — most importantly — learn a certain concept, ranging from general to more specific ones (such as those of quantum mechanics).

In the framework itself, the first experiment is a simulation of repulsion of particles. This is an interesting one, given that it is my first time doing any kind of simulation (which is funny, given the nature of this project). The implementation is in SwiftUI, but was inspired by the simulator by Tatum Roaquim.

This is just the start of experimentation in Deus. An experiment I would like to simulate here is, also, the double-slit experiment. The ultimate aim is to do it quantum-mechanically; it may be better, however, to first do it like I made this repulsion one: directly, classically.

@jeanbarrossilva jeanbarrossilva self-assigned this Feb 6, 2026
Mainly targeted at SwiftUI views right now, of which there are not that much in the project currently. As we create more of them and they get more complex, the current formatting would make them harder to read. This is not perfect, though, and a context-specific solution has been suggested in swiftlang/swift-format#543.
@jeanbarrossilva jeanbarrossilva changed the title Add repulsion experiment Add repulsion simulation Feb 7, 2026
@jeanbarrossilva jeanbarrossilva merged commit 9bd6c62 into main Feb 7, 2026
2 checks passed
@jeanbarrossilva jeanbarrossilva deleted the repulsion-experiment branch February 7, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant