InfinitU - Infinite Universes

Join the chat at

Cogito ergo sum

-- René Descartes

What if in the 17th century we had current technology instead of pen and paper? This project is an exploration of ideas using programming without starting from replicating other implementations or theories (I am not a mathematician).

The idea is to create a data structures independent of the collection framework concepts, which usually establish what lists or maps are, but leave out concepts like dimensions.

There are some implementations around for infinite collections, but although it will also be supported here, the focus is on being able of representing an unknown amount of objects in any position expected to be valid by definition in a certain dimension type.

This is not limited to a 3-dimensional space, but taking that as an example, the library could be used to define space with arbitrary precision like BigDecimal allows to numbers.

The structures should be convertible to traditional ones with some loss of precision when required, so a 2 dimension Universe with 0.5 precision would become a Vector of Vector where values from 0 and 0.5 would go to 0, 1 and 1.5 to 1, and so on.

In the first release I explore a prototypical modeling that can be used to solve things like cube puzzles but I wanted to explore something more interesting: Quantum Mechanics


Currently the implementation focusses on 3 main concepts: Superposition, Entanglement and Collapsation.

Without going too deep into the theoretical physics that surround them, the initial abstractions would allow exploration of even more interesting directions, turning weird and counter-intuitive concepts into manageable, understandable and hopefully useful.

The project was configured and organized in a way that you can run it on the JVM( JVM ), on the browser via a Scala.js cross build ( Scala.js version ), and eventually even natively.

Stay tuned for more details soon.

Meanwhile you can have a look on how to check if the cat in the box is alive :)