shalabh
08/20/2019, 4:26 PMI am thinking more and more that if would be nice to have *all* functions in
a key_value database with unique names.
Brian Hempel
08/20/2019, 4:32 PMall functions in a key_value database with unique namesThere’s a large part of me that wants to believe this could work. Yet the received wisdom is the opposite: modules facilitate independent development by encouraging loose coupling, and (following Conway’s law) make interfaces explicit between the people building the software. https://en.wikipedia.org/wiki/Conway%27s_law
shalabh
08/20/2019, 4:36 PMFelix Kohlgrüber
08/20/2019, 4:39 PMshalabh
08/20/2019, 4:42 PMFelix Kohlgrüber
08/20/2019, 5:26 PMogadaki
08/20/2019, 5:35 PMogadaki
08/20/2019, 5:36 PMogadaki
08/20/2019, 5:37 PMKartik Agaram
Doug Moen
08/20/2019, 6:37 PMIlari Kajaste
08/20/2019, 7:24 PMIlari Kajaste
08/20/2019, 7:27 PMIlari Kajaste
08/20/2019, 7:41 PMIlari Kajaste
08/20/2019, 7:41 PMfoo.doSomething()
then what actually happens is that the resource foo
is a valos Entity that has a Property doSomething
, which references a valos resource containing the function data - this is likely to be a resource directly owned by foo, but it doesn't need to be, in fact it could be a resource on a completely different authority. When that function call starts to happen, the system running the valos (the valos gateway) will notice the reference to doSomething, discern from the partition URI the correct protocol for connecting to the authority that has that resource, establish the connection, fetch the contents, and then execute the function. The code doing the call (and indeed the user) doesn't need to care, and the actual Resource that the foo.doSomething
references could indeed be called or renamed to whatever, the relevant part is that it's a810b-c9eea-...
that lives at <valos-protocol://authorityUri/partition>
. In the programmer's IDE it will be just a reference like any other (well, probably with a small indicator that it's a foreign reference). (This has obvious app security ramifications, but those can be mitigated by various means.)Ilari Kajaste
08/20/2019, 7:42 PM