Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Justin Le
@mstksg
@daniel-vainsencher i'll let you know when i have some sort of proof of concept up :)
Daniel Vainsencher
@daniel-vainsencher
@mstksg Great, I'd love to play with it :)
Kosyrev Serge
@deepfire
@mstksg, ertes was writing a successor to netwire, do you know anything about that? is it somehow related to auto?
Michael Fox
@gitfoxi
Hi. Question: How could you put more events out than events in? For example, input = [1,2,3]; output=[1,1,2,2,3,3]. Is it possible?
Nicolas Rolland
@nrolland
It would be very useful in a web workflow to provide a way to have on the fly generated URLs representing the state at various locations. in the spirit of https://pages.lip6.fr/Christian.Queinnec/PDF/www.pdf
have you thought already about such a feature ?
Justin Le
@mstksg
@deepfire The two are actually implemented in similar ways (netwire/auto/wires), but their domain and API/semantics are very different :) wires/netwire focuses on continuous time semantics, and auto has discrete-time semantics
@gitfoxi hi michael! it's not directly possible, but you can output lists and concat their results, or use "time slowing" autos to turn [1,2,3] into [Blip 1, NoBlip, Blip 2, NoBlip, Blip 3], etc. :)
@nrolland that's pretty interesting. it's very similar to other things i've been working on, actually! thanks for another paper to check out, though :)
Njagi Mwaniki
@urbanslug
Hello @mstksg what do you think about using do notation like this instead http://lpaste.net/4199862654048665600
Is there a reason we are using proc notation because it makes it harder, at least for me, to understand what is going on.
instead of e.g do
Justin Le
@mstksg
@urbanslug in your 'do' example, you're actually sort of unpacking and recreating the arrow every time you combine it
it's sort of...defeating the whole purpose of the arrow/auto abstraction
if you're familiar with 'State', it's like using State, but instead of using fmap/>>=, you manually runState/State every time you want to make a new action
the point of the auto/arrow abstraction is that you can compose them as first-class items
but here, you're breaking them down and recreating them from scratch, outside of the abstraction
if that makes sense
Justin Le
@mstksg
the reason we use proc/do notation is that it lets us view composition of Auto's like a graph
here is an elaboration of my State example, btw
Njagi Mwaniki
@urbanslug
OK I just saw this reply. Let me read it and understand it.
Ha Ok wasn't a complicated an example as I expected
Makes sense :smile:
Justin Le
@mstksg
mhm, the whole point of the Auto type is so you don't have to manually unwrap and re-wrap