bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
857 stars 59 forks source link

Support determinism annotations for functions invoked by Bud? #305

Open neilconway opened 11 years ago

neilconway commented 11 years ago

If a rule invokes a function, we are currently conservative: we mark the associated operator for rescan at every tick unless the function belongs to a small class of functions known to be safe (e.g., ip_port). We could consider providing a function annotation that would allow users to add new functions to the "safe function" whitelist. (Postgres provides something analogous, BTW -- http://www.postgresql.org/docs/9.2/static/sql-createfunction.html).