Fork me on GitHub
#off-topic
<
2021-10-06
>
tessocog04:10:18

is there a graph (more precisely "forrest"?) database wherein identities could be defined such that their attributes may not only be a reference to but also a computation over other identities?

tessocog04:10:24

i imagine a transactor that receives an event (an update over an identity) and applies it over the db. each event triggers updates for all the identities that branch from the initial point down the tree until there is no more deps.

jjttjj05:10:40

I've been (slowly) investigated kafka streams to accomplish something similar

thom07:10:42

Materialize is an SQL database that does this. The underlying Differential Dataflow library might be of interest, or indeed the original paper which describes ways to optimise the process of making these incremental updates.

thom07:10:37

Kafka Streams does a pretty good job of simple stuff just by sending CDC messages between tables. My struggle with that has always been that the moment you have both updates and stateful streaming logic you're slightly out of luck.

Max22:10:28

This also sounds pretty similar to entailment/automated reasoning in the field of knowledge graphs/engines. Though in those, entailed facts are usually calculated at query-time on-demand from a set of rules (i.e. an ontology) rather than at insert time, since the body of entailed rules might be big enough that you’d prefer not to store it directly.

phronmophobic04:10:11

That sounds similar to a rules engine like http://www.clara-rules.org/ or https://github.com/oakes/odoyle-rules

👀 2
☝️ 1
phronmophobic04:10:51

you have base facts and you can also have rules/derived facts

valtteri04:10:48

Excel came to my mind 🙂

tessocog04:10:05

excel is place-oriented

valtteri04:10:16

Yes, and it’s not really a database. But it probably has some properties you’re looking for

dgb2307:10:55

In SQL you can do that with views and triggers. In datalog with rules and functions or ions (datomic)

dgb2307:10:47

also there are computed columns (maybe the name is wrong, look it up)

🙏 1
zendevil.eth09:10:19

hi I have an issue with webpack

zendevil.eth09:10:26

so I was following this tutorial:

zendevil.eth09:10:32

and on the npm start step, which runs webpack serve --mode development --env development I get this error:

zendevil.eth09:10:58

% npm start

> [email protected] prestart /Users/prikshetsharma/Desktop/hello
> npm run copy:types


> [email protected] copy:types /Users/prikshetsharma/Desktop/hello
> rsync -avr .dfx/$(echo ${DFX_NETWORK:-'**'})/canisters/** --exclude='assets/' --exclude='idl/' --exclude='*.wasm' --delete src/declarations

building file list ... done

sent 314 bytes  received 20 bytes  668.00 bytes/sec
total size is 19112  speedup is 57.22

> [email protected] start /Users/prikshetsharma/Desktop/hello
> webpack serve --mode development --env development

No production canister_ids.json found. Continuing with local
[webpack-cli] Failed to load '/Users/prikshetsharma/Desktop/hello/webpack.config.js' config
[webpack-cli] TypeError: Cannot read property 'hello' of undefined
    at Object.<anonymous> (/Users/prikshetsharma/Desktop/hello/webpack.config.js:96:35)
    at Module._compile (/Users/prikshetsharma/Desktop/hello/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (/Users/prikshetsharma/Desktop/hello/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at WebpackCLI.tryRequireThenImport (/Users/prikshetsharma/Desktop/hello/node_modules/webpack-cli/lib/webpack-cli.js:32:22)
    at WebpackCLI.loadConfig (/Users/prikshetsharma/Desktop/hello/node_modules/webpack-cli/lib/webpack-cli.js:1554:34)
    at WebpackCLI.resolveConfig (/Users/prikshetsharma/Desktop/hello/node_modules/webpack-cli/lib/webpack-cli.js:1677:49)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: `webpack serve --mode development --env development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/prikshetsharma/.npm/_logs/2021-10-06T09_04_41_152Z-debug.log
any ideas what might be causing this?

dpsutton09:10:02

this doesn't seem like a good off-topic question. But also you have a stack trace telling you that line 96, column 35 of hello/webpack.config.js it cannot read the property 'hello' of an object that is undefined

zendevil.eth12:10:10

it’s working on other machines, but not this one

solf21:10:55

#other-languages