holochain / org

Organizational Repo for project-wide tickets
http://holochain.org
11 stars 1 forks source link

Code Reuse Discussion #38

Open zippy opened 6 years ago

zippy commented 6 years ago

child of #6

this intentionally is a super open ticket, for tracking design discussion around code re-use

lrgchvu

"Big ideas"

Details

Approach A: HC core in Rust + Web Assembly

... TODO ...

Approach B: Nix builds

There's a nice slidedeck from @gavinrogers:

https://gavinrogers.github.io/gavinrogers/holochain-package-management.html

ddd-mtl commented 6 years ago

From what I understand, the main questions is "How do we handle code dependency?" And breaks down into different problems:

  1. Is it possible for two different apps to share a same library and do some kind of runtime optimization for that?
  2. How can an end-user trust a new or updated app?
  3. Can app devs leverage code from other devs in there apps?

What is confusing to me is the discussion seems to mix all different levels of 'apps':

  1. Web app: An app that uses one or several HC apps plus extra glue & custom code
  2. HC app: Nucleus + UI
  3. Nucleus: DNA of one or several Zomes

(Then there is also mixins and 'middleware' for DNA or UI part of an HC app.)

My feeling is these different levels have different answers to the main question.