AlgebraicJulia / AlgebraicJulia/TemporalData.jl

Language for Specifing Data Streams

Ouverte
#4 4 commentaires 0 réactions 1 personne assignée Réclamée par @quffaro Voir sur GitHub
Langage dominant
Julia
Étoiles
2
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

The ACSetSpec DSL is basically ready to be the stream language. You just need to add fields for valence (add/delete/merge) and timestamps.

https://github.com/AlgebraicJulia/ACSets.jl/blob/0c5b06649ea6678d2f5668559d8c933f971b62b6/src/ADTs.jl#L22

Instead of:

```julia
@as_record struct Statement <: AbstractACSetSpec
table::Symbol
element::Vector{Args}
end

@as_record struct ACSetSpec <: AbstractACSetSpec
acstype::Union{Symbol,Expr}
body::Vector{Statement}
end
```

You could use:

```julia
@data TimedStatement <: AbstractACSetSpec
Add(s::Statement, t::Time)
Delete(s::Statement, t::Time)
Merge(table::Symbol, part1::Int, part2::Int, t::Time)
end

@as_record struct ACSetSpecSteam <: AbstractACSetSpec
acstype::Union{Symbol,Expr}
body::Vector{TimedStatement}
end
```

And then write an interpreter that takes an ADT in that DSL and gives you a temporal sheaf

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.