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

deCapnKit: safe serialization for capn #205

Open
wants to merge 52 commits into
base: master
Choose a base branch
from

Conversation

dckc
Copy link
Member

@dckc dckc commented Mar 9, 2019

includes deSubGraphKit etc. ported from E-on-Java

fixes #203

example from uneval.updoc:

    def x := [1, x, 3]
    test(s(x), "[1, <**CYCLE**>, 3]")

$ monte eval fun/uneval.mt >cycle.msg

$ capnp convert binary:text capn/montevalue.capnp DataExpr <cycle.msg 
( defRec = (
    promIndex = 0,
    rValue = (
      call = (
        receiver = (noun = "_makeList"),
        message = (
          verb = "run",
          args = [
            ( defExpr = (
                index = 2,
                rValue = (
                  literal = (int = (int32 = 1)) ) ) ),
            (ibid = 0),
            ( defExpr = (
                index = 4,
                rValue = (
                  literal = (int = (int32 = 3)) ) ) ) ],
          namedArgs = [] ) ) ) ) )

recognize() is TODO

dckc and others added 30 commits September 2, 2017 22:56
  - def -> object
  - comment out DEBuilderOf module decl
  - :[g1, g2] -> :Pair[g1, g2]
  - :generic(g) -> :generic[g]
  - :g[] -> :List[g]
  - :(g1 | g2) -> :Any[g1, g2]
  - <scheme:rest> -> scheme_uriGetter("rest")
  - for pat in expr -> for pat in (expr)
mute Single Method Object warnings too
  - FinalPattern takes a NounExpr (for quasiquoting)
  - FlexSet.addElement -> include
  - CallExpr -> MethodCallExpr (with named args)
  - [].diverge().put(last, x) -> [].diverge().push(x)
Copy link

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this!

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.

encode any Monte value (object graph) as capn message
2 participants