Giter Site home page Giter Site logo

cobpjs's People

Contributors

achiyae avatar aviransadon avatar geraw avatar ronzi-2002 avatar zvikaz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cobpjs's Issues

First class citizen entity object.

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.

Improved query performance

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:

  1. The number of context switches between java and js is huge.
  2. The answer can be only an entity and not a set of entities.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.