Post

netties now supports polarity and types ✨ see the demos 👇 and we're on a new domain: netties.adler.dev

aron@adler.dev

made a playground for interaction nets and i think it's pretty cool so far netties-936.netlify.app

yeah more or less! if you have two principal ports connected by a wire, that's where a rewrite will happen

ok this makes sense, i have always felt vaguely confused about why (a) there's only one primary port; and (b) there's no native notion of "inputs" or "outputs"

i only got it after looking at your 'if' node :3 the 'if' puts the condition in the primary port because that's what it has to evaluate!

ooh yes good point. it wouldn't make sense for any other port to be primary because only ever primary ports determine rewrites, and in an 'if' expr the condition is what determines what is returned❗ 🤯

0 reposts1 like

I wonder if inet rules map neatly onto term-rewriting systems, with the restriction that each kind of term has to commit to one of its arguments to ever pattern-match on Actually this kind of sounds like HVM1 as I recall it 🤔