Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Clio #180

Merged
merged 92 commits into from
Nov 11, 2020
Merged

New Clio #180

merged 92 commits into from
Nov 11, 2020

Conversation

pouya-eghbali
Copy link
Member

@pouya-eghbali pouya-eghbali commented Mar 20, 2020

Fixes #67

Description

Adds multi processing, RPC, micro-services and all the other cool features.

Changes proposed in this pull request

  • replace scope with context
  • TCP transport
  • WS transport
  • introduce a main function
  • modify our syntax to only allow function declarations in the main source tree
  • make a decorator to mark a function not distributable
  • add config options in toml file to choose a transport and a dispatcher
  • wrap generated code in a dispatcher/worker environment
  • import function should be able to import from a dispatcher
    • import from
    • import as
    • import
    • import from as
    • import all
    • implement the required runtime
  • modify map functions, flows and calls to be all async
  • add getFunction method to executor
  • add clio config to generated package.json
  • add metadata to functions to be able to resolve them over network
  • add a thread.js/worker_thread backend for local tests
  • new parser, compiler, language features

I'm adding IPC, without config, as a proof of concept implementation. I'll test it, and if it works good I'll port it to other targets.

ToDo

  • Proposed feature/fix is sufficiently tested
  • Proposed feature/fix is sufficiently documented

@pouya-eghbali pouya-eghbali self-assigned this Nov 10, 2020
@pouya-eghbali pouya-eghbali linked an issue Nov 10, 2020 that may be closed by this pull request
@pouya-eghbali pouya-eghbali mentioned this pull request Nov 11, 2020
2 tasks
@pouya-eghbali pouya-eghbali marked this pull request as ready for review November 11, 2020 19:24
@pouya-eghbali pouya-eghbali merged commit b0199f8 into develop Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add npm flag to deps command Imports (micro-services)
2 participants