Zulip Chat Archive

Stream: lean4

Topic: some graphical algorithm notation


Locria Cyber (Aug 16 2022 at 12:18):

@Jad Ghalayini

Locria Cyber (Aug 16 2022 at 12:22):

1.jpg 2.jpg 3.jpg

Locria Cyber (Aug 16 2022 at 12:24):

This is inspired by Koka. When effects are lifted, the language no longer subject to linearity of lambda calculus.

Locria Cyber (Aug 16 2022 at 12:25):

a -> b -> c is the same as b -> a -> c

Locria Cyber (Aug 16 2022 at 12:27):

And different effects do not need to be sequenced one after another. The trivial implementation of map in my language allows the compiler to parallelize it.

Locria Cyber (Aug 16 2022 at 12:29):

In fact, the language is so free about effects that I have to invent causality constraint (similar to atomic order, but as hint for compiler not to parallelize). See Picture 3.

Locria Cyber (Aug 16 2022 at 12:32):

When I replicate simple UNIX programs in this language, I found myself sometimes forget to add causality constraints (downside).

Locria Cyber (Aug 16 2022 at 12:33):

The upside is, the compiler knows about causality relationship of your code.

Locria Cyber (Aug 16 2022 at 12:36):

See lower half of Picture 1. A function that emits two entangled effects (represented as coiled together) cannot be cut in two, while a function with two not-entangled effects can.

Locria Cyber (Aug 16 2022 at 12:37):

This language is very friendly to refactoring. You can cut any algorithm in any way, and the resulting parts are still valid in this language.

Henrik Böving (Aug 16 2022 at 12:39):

Is there a particular reason you are sharing this here?

Locria Cyber (Aug 16 2022 at 12:40):

Because I saw the work @Jad Ghalayini is doing.

Locria Cyber (Aug 16 2022 at 12:41):

This thread not really belong to #lean4. How do I move it somewhere else?

Eric Wieser (Aug 16 2022 at 13:34):

I'm not sure whether this really belongs anywhere, but my closest guesses would be, in order of relevance:

Eric Wieser (Aug 16 2022 at 13:35):

This is how you can move your own message:

image.png

Henrik Böving (Aug 16 2022 at 13:47):

Moving messages is actually a privilege reserved to people with moderator powers or higher @Eric Wieser at least that button is not here for me.

Eric Wieser (Aug 16 2022 at 13:48):

Ah you're right, non-moderators can only move their messages within a stream (by editing the title)

Jad Ghalayini (Aug 16 2022 at 21:27):

@Locria Cyber fascinating; I'd be happy to discuss this further, seens related to my work! Would you mind sending me an e-mail?

Jad Ghalayini (Aug 16 2022 at 21:27):

Probably not the best place haha


Last updated: Dec 20 2023 at 11:08 UTC