Commit Graph

25 Commits

Author SHA1 Message Date
Aryadev Chavali
eebe39c241 simulation done 2026-03-18 01:02:07 +00:00
Aryadev Chavali
23add2c55f added simulation file for actually performing sim 2026-03-17 23:22:18 +00:00
Aryadev Chavali
5110ce8c42 bf: move SIZEOF_PROGRAM to base.h 2026-03-17 21:33:07 +00:00
Aryadev Chavali
39e8b37f5b update complife.org 2026-03-17 21:32:59 +00:00
Aryadev Chavali
75d45ee79a build.sh: adjust for new bf interpreter 2026-03-17 21:32:59 +00:00
Aryadev Chavali
4ba7d3c554 bf: added notes regarding '{' and '<'. 2026-03-17 21:32:59 +00:00
Aryadev Chavali
071fe2ff98 bf: extract loop_end to its own function 2026-03-17 21:32:59 +00:00
Aryadev Chavali
c6433b4429 bf: cond_stack -> loop_stack 2026-03-17 21:25:49 +00:00
Aryadev Chavali
146921bdef main: adjustments 2026-03-17 21:22:26 +00:00
Aryadev Chavali
99134c3a32 program_iter -> bf, simulation to be redone 2026-03-16 14:45:30 +00:00
Aryadev Chavali
2e78cf5e45 vec: vec_pop and vec_data 2026-03-16 14:45:23 +00:00
Aryadev Chavali
c29e70b1da complife.org: added todo 2026-03-11 00:10:42 +00:00
Aryadev Chavali
0bba1894dc neighbour based algorithm for threads
It does seem to affect since sim falls into a "stable" configuration
where cells rarely change quite quickly.  I'm thinking of making a
better colouring algorithm to see if I can get better images.
2026-03-10 22:50:38 +00:00
Aryadev Chavali
0e1229569a simulation: added TODO regarding choosing neighbours for p2 2026-03-10 22:21:43 +00:00
Aryadev Chavali
fabd593eff main: threaded simulation
The actual computation is embarrassingly parallelised - the only part
that requires a mutex is the picking of any two programs due to the
fact that both programs may be affected following a compute block.
This is why we do a uniqueness check in thread_pick.
2026-03-10 22:19:34 +00:00
Aryadev Chavali
30f8e65cc2 main: added pause (KEY_SPACE) and "inspect this cell" (MOUSE_BUTTON_LEFT) 2026-03-10 21:37:00 +00:00
Aryadev Chavali
6039ab720f simulation split out from main 2026-03-10 21:20:25 +00:00
Aryadev Chavali
2b8a3cbda2 main: split off program iteration to its own unit 2026-03-10 21:12:10 +00:00
Aryadev Chavali
07d9de99d7 move to src folder 2026-03-10 21:09:10 +00:00
Aryadev Chavali
24f4962d8c extracted prick into their own header files and deleted lib 2026-03-10 21:08:24 +00:00
Aryadev Chavali
f811665ae9 Basic computational life as a single file done! 2026-03-10 21:03:19 +00:00
Aryadev Chavali
87e84587d8 simulated life paper 2026-03-10 21:03:13 +00:00
Aryadev Chavali
9781384d30 added some prick libraries for useful data structures 2026-03-09 07:19:47 +00:00
Aryadev Chavali
c26e462429 basic raylib boilerplate 2026-03-09 07:19:01 +00:00
Aryadev Chavali
2d75874423 hello world 2026-03-09 07:18:48 +00:00