Re:Launch HN: Enso (YC S21) – Visual programming and workflo...
by infinite8s on Tuesday July 06, 2021 @04:11PM
(#27753628)
Yes, thanks that makes sense now that I think about it. I never made the connection between visual UIs and functional programming!
Re:Launch HN: Enso (YC S21) – Visual programming and workflo...
by wdanilo on Tuesday July 06, 2021 @04:40PM
(#27753945)
I believe that functional programming with immutable memory is the only model you can use in order to create a visual language that you can reason about. E.g. you do not want to allow some nodes (visual components) to affect the execution of other nodes if not connected with each other. There are many more such implications there!
The same is applied to our data-flow errors. Think of them like about Haskell's `Either` or Rust's `Result` types, but with automatic lifting (automatic applicative functor lifting). So in Enso, you can have a "broken value", like a string read from a file that could be broken because the file did not exist, but you can still concatenate it with other string WITHOUT using any special syntax, and the result may also be broken. In Rust and Haskell you can do the same, but with a special syntax like `(+) <$> str1 <+> str2`.
I hope it clarifies some things under the hood! :)