Skip to content

Irregular data structures #791

Answered by dougalm
AriMKatz asked this question in Q&A
Mar 14, 2022 · 4 comments · 5 replies
Discussion options

You must be logged in to vote

This is still an area of open exploration! @duvenaud has played with array-backed graphs in #526, as you noticed. There's also a longstanding dream of adding recursion and recursive algebraic data types like you get in conventional functional languages (#331) which are perfect for representing trees.

In general, there's a lot of fun work to do in figuring out how to use Dex's primitives for sophisticated data structures in a way that's safe and parallel. Early functional programmers had to invent new data structure that worked in a functional setting, (see e.g. Chris Okasaki's book). We might find ourselves doing something analogous.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AriMKatz
Comment options

Answer selected by AriMKatz
Comment options

You must be logged in to vote
2 replies
@AriMKatz
Comment options

@tscholak
Comment options

Comment options

You must be logged in to vote
2 replies
@AriMKatz
Comment options

@duvenaud
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants