5 Was pretty worn out yesterday, so could not program as much.
9 In the future, I can have a virtual reflection API. Basically I create a class
10 file parser and then define methods which can create, iterate, and invoke
11 methods of another class. Such a thing could eventually be used for example in
12 an IDE or similar. I could have an IDE for the creating and editing of programs
13 for this so one can write code on said devices. I could also tie the
14 interpreter into it too so that code may still run and be tested. I also have
15 this idea of putting all of these notes into their own package which might be
16 included in a distribution of sorts.
20 Now that the class file code is refactored (except for the interface bits but
21 I can get to that later on), the next goal is the program parser and handler
22 which will act as the basis for the compiler and the interpreter.
26 I wonder if LWUIT could be layered on top, this assumes that it is provided by
27 Oracle as a library on top of vendor provided LCDUI and such. Looking at the
28 classes in the binary, it looks like they can put it on top of the canvas and
29 the game canvas. I would have to test this out in the future.
33 In a hypothetical Minecraft clone I could also have as a sample, I can have
34 a repeating world. This would mean that world is a kind of sphere of sorts.
35 Thus, the world would have a circumference of 33,554,431 meters. This would be
36 about 0.84 times the circumference of the Earth, so it would be a slightly
37 smaller size. The world would be 1.5 times the circumference of Mars but
38 should still be smaller than Venus. This is assuming I can fully trust
39 Wolfram Alpha and the data I put in without thinking about it.
43 On something completely unrelated to this software, this is something about the
44 universe we could potentially live inside of. Thinking about it, if we were in
45 a simulated universe one made and optimized in general for speed (for outside
46 of the universe), then it would be likely that it would be an integral universe
47 with no conditional operations. So far many physical equations are basically
48 conditionless. When I say conditions, I mean stuff such as checking if a value
49 is higher than another value and doing something, if it is not then something
50 else is performed. Integers are very simple and the lowest possible value will
51 be the absolute limit to what we can measure and detect in our own universe.
52 Essentially, there will be nothing smaller than it and the universe would
53 essentially be a giant array of pixels containing numerical values. Integers
54 when compared to floating point, are generally faster to execute. One thing to
55 consider however, is that outside of this universe the notion of our time and
56 such is meaningless. However, the one universal thing is math. Math is
57 very fundamental, a universe outside of this universe should follow the same
58 rules, despite a difference in constants. The universe is extremely vast and
59 would require a very extreme amount of memory. If the universe is simulated and
60 it is binary, then we should eventually be able to use the same algorithm to
61 store a binary universe. This would be a very effective compression algorithm,
62 one which none of us has yet perceived. It also possible that such an
63 algorithm does not exist, and regions of space can be placed within hash tables
64 of hash tables. One thing to consider though that although the universe could
65 be binary, that it is not limited to one or two dimensions. A universe for
66 example could have 32 dimensions represented as an array with that many
67 dimensions, all storing the given information. Each index in the array would
68 influence adjacent indexes similarly using the same formula. This would enable
69 theoretical circuits to be made which could efficiently calculate the cells of
70 the universe. This would be a rather complex cellular automata. For example
71 when using the standard game of life, cells next to other cells either are
72 born, stay alive, or die depending on their neighbors. A similar case will have
73 to be done without using such conditions. Thus, all cells would result in the
74 same formula being calculating, but possibly only in a single dimension. When
75 I say this, one dimension could for example could divide its value by 8 and
76 then add that value to all of the neighboring cells and setting the current
77 cell to 1/8th the original value. If all operations happen at the same time
78 (as in a new array is set with the correct values) then the space would be
79 rather uniform in that given dimension. However, across dimensions it is
80 possible that a value of one cell uses a different formula to affect another
81 cell in a completely different dimension, still without using conditionals. In
82 the likely case all operations would be very basic. It is also possible that
83 such operators being used are the primitive binary operations, such as AND, OR,
84 and XOR to name the ones available in Java. Thus, one dimension could XOR
85 adjacent cells and set all values to the same result so to speak. However as
86 state before, it could OR it onto another dimension, where another could
87 AND it back down. This would be a potentially interesting program to write. I
88 do wonder though if it would be a distinct universe rather than uniform.