zlacker

[parent] [thread] 9 comments
1. almost+(OP)[view] [source] 2024-08-24 18:50:15
> a directed graph of operations

What syntax do you know that can represent a dag in text?

replies(3): >>RyanHa+Ac >>cha42+Cc >>mr_toa+jec
2. RyanHa+Ac[view] [source] 2024-08-24 20:30:17
>>almost+(OP)
A = select * from tbla

B = select * from tblb

C = select * from A join B

replies(2): >>wtetzn+Sf >>almost+9l
3. cha42+Cc[view] [source] 2024-08-24 20:30:55
>>almost+(OP)
Any syntax with a let operator to name stuff or a lambda abstraction.
replies(1): >>almost+Qk
◧◩
4. wtetzn+Sf[view] [source] [discussion] 2024-08-24 20:59:23
>>RyanHa+Ac
I guess CTEs already provide that (even if they're a bit clunky).

    WITH a AS (select * from tbla),
    b AS (select * from tblb)
    select * from a join b
◧◩
5. almost+Qk[view] [source] [discussion] 2024-08-24 21:36:53
>>cha42+Cc
That only gives you trees not DAGs - you can't do fan-in (there's no way to "share" let bound names).
replies(1): >>mathnm+S1f
◧◩
6. almost+9l[view] [source] [discussion] 2024-08-24 21:38:22
>>RyanHa+Ac
Yes we already have that, it's called `async def`.
7. mr_toa+jec[view] [source] 2024-08-29 04:58:35
>>almost+(OP)
Something like the DOT language used in GraphViz

https://graphviz.org/doc/info/lang.html

replies(1): >>almost+Tjc
◧◩
8. almost+Tjc[view] [source] [discussion] 2024-08-29 06:07:06
>>mr_toa+jec
Yes DOT (and the other UML whatever languages) are absolutely the only extant examples that make an attempt. But again, if you look at DOT you'll see it doesn't actually do anything syntactically - it just has syntax for edge lists.
◧◩◪
9. mathnm+S1f[view] [source] [discussion] 2024-08-30 06:40:33
>>almost+Qk
Isn't this fan-in?

let A = select * from tbla

let B = select * from tblb

let C = select * from A join B

replies(1): >>almost+s6h
◧◩◪◨
10. almost+s6h[view] [source] [discussion] 2024-08-31 02:36:16
>>mathnm+S1f
Think about what tbla and tblb can be - hint they can only be globals (ie actual tables)
[go to top]