bthink-bgu / cobpjs Goto Github PK
View Code? Open in Web Editor NEWContext idioms for BPjs
License: MIT License
Context idioms for BPjs
License: MIT License
Create an Entity class that inherits from NativeObject. The class will have readonly id and type fields. In addition, it will override the set field method as following: if we're trying to set the id/type fields or if we're inside a b-thread - an exception will be thrown, otherwise it will call the super setter.
Currently, queries receive an Entity and determine whether it is an answer to the query or not.
There are two problems with the current approach:
This issue proposes a new approach where the query receives the entire bp.store and returns a list of answers to the query.
The first advantage - there is only one context switch for each query.
The second advantage - each answer can be either an entity or a ComposedEntity, that inherits from Entetiy and may consist of more than one entity. the id of a ComposedEntity is entities.map(e=>e.type+'^'+e.id).sorted.concatenated.
The first condition supposed to check if data is null, however when data = 0, it is true as well
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.