Fork me on GitHub
#datascript
<
2017-05-12
>
nikki01:05:37

hey @tonsky (and others potentially) i was wondering

nikki01:05:43

so i really like datascript as an in-mem db solution

nikki01:05:12

and for games, it can potentially overlap two nice design ideas: "entity component system" architecture, where entities are just given by same identity relationally, and "prototype inheritance" which we can do by recursive rule matching

nikki01:05:18

and being able to do this without having to thing about schemas too much upfront is a huge win

nikki01:05:56

i work on a JS environment where you can make native UIs for phone plus also recently do OpenGL rendering -- it's not browser, it's react-native plus our own runtime -- gonna play with using it to maybe do some games / simulations

nikki01:05:59

so i had one question tho

nikki01:05:17

if we were looking to maybe impl datascript's API but could do it over say JS bindings to some native in-memory DB underneath

nikki01:05:20

what DB would be a good fit?

nikki01:05:43

something in C++ could be neat because compiles on both iOS and Android and I can expose it through JavaScriptCore (that's how I did OpenGL)

nikki06:05:26

[if you are curious, http://nikhilesh.info/files/cgame.pdf describes a game engine i worked on that has live coding and visual editing and stores game data in a relational way much like datascript/datomic, section 2.1 is most relevant, it's C + Lua though]