GithubHelp home page GithubHelp logo

project-rela's Introduction

project-rela

Deprecated

project-rela's People

Contributors

chuigda avatar cousinze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

project-rela's Issues

The indexing API is so limited that impossible to implement ranged scanning with

The current indexing implementation, svec or sorted vector, is capable of ranged scanning. However, the indexing API looks like this:

(define (rl-iter-indexable? iter indexed-field)
  (let* ([iter-indexable-check (rl-iter-procs-indexable-check iter)])
    (and (not-null? iter-indexable-check)
         (iter-indexable-check indexed-field))))

(define (rl-iter-index iter column-name)
  (let* ([procs (rl-iter-procset iter)]
         [index (rl-iter-procs-index procs)])
    (index column-name)))

We need soem new API, to support the need of ranged scanning.

store more data in procedures

in essence, since we are using Racket, we should store more data into procedures, instead of extracting them from input parameters. for example:

 219 (define (rl-build-basic-iter table)                                                                                                              
 220   (define (rl-basic-iter-get basic-iter)                                                                                                         
 221     (let ([cur-tuples (rl-basic-iter-cur-tuples basic-iter)])                                                                                    
 222       (cond [(rl-phantom-tuple? cur-tuples) (error "iterator not ready")]                                                                        
 223             [(null? cur-tuples) (error "iterator at end")]                                                                                       
 224             [else (car cur-tuples)])))
; ...
 237   (define (rl-basic-iter-name basic-iter)                                                                                                        
 238     (let ([table (rl-basic-iter-table basic-iter)])                                                                                              
 239       (rl-table-name table)))                                                                                                                    
 240   (define (rl-basic-iter-columns basic-iter)                                                                                                     
 241     (let ([table (rl-basic-iter-table basic-iter)])                                                                                              
 242       (rl-table-columns table)))  

Since the iterator and the procedures are always bundled together, the rl-basic-iter-name could simply rely on the outter table, instead of extracting the table information from basic-iter. So does rl-basic-iter-columns. We should re-design our API.

Structural testing

The current testing requires human observations. I'd be appreciate if someone can make it structural.

Indexed scanning with ordered index

currently we implement the ordered index as a binary tree, which makes it uneasy to work with our current iterator API, since iterating a binary tree requires bunches of bookkeeping informations.

Optimized compiler

We need an optimized compiler in order to make full use of the rl-ranged-iter and rl-equiv-join-iter.

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.