1. Introduction and df_event refactor
So, oh man, this computer's hard drive started dying too. Okay, so where is that? Get similarity. No, okay, so it's just the inner source stuff. Okay, um, okay, so where did that go? I had a branch here. Give repo similarity. I was working on— oh, the— no, I was working on cleanups. That's not right. What was I working on? Oh, this df_event refactor here.
So I was working on this stuff to do— to add event types to the data flow code. So essentially, when you're running a data flow, you would get, you know, this is the standard. This is what you get right now. Let me just open this thing. No, I didn't add the code, did I? Let's see. Let's see. I don't know if this is really going to help this discussion. But yeah, so I was working to add these event types.
So essentially, we would see— because right now, we only get the results of the data flow when it's complete. And it would be nice to be able to say, OK, we want to get progress updates, basically, right? So like, hey, an input moved from one— operation to the next, right? Because for purposes of, for example, visualizing the data flow or tracking what's going on, you would want to know, you know, what's going on inside the data flow, not just whether it's done or not, right?
So I was working on adding event types, and sort of as part of that work, I was explaining— I was playing with, you know, how we might implement a, you know, a more Pythonic API around the data flows. And I think the thing that I consistently keep running into is the flow definition, right? And the way that we're linking together.
Yeah, for example here, right? The way that we link together, this is just not ideal, you know? It accurately describes the flow, but it's not anything like anybody is used to, right? And that's our main issue with that stuff. And so I was thinking, if we made it fully Pythonic, you know, how do you sort of bridge the gap between the full, like, the data flow and then a more familiar Python workflow?
And essentially, what I've come up with so far is sort of like, you know, you have your functions. Right? And let me just write some code. Or where's this code? So you have your functions. And, you know, these are our operations here. And we— okay, here's your data flow. Here's the event types. I'll put it up here with the functions.
So essentially, what this does is it takes inputs. And so it takes this carnivore function. It says carnivore takes an integer value, and then it returns a string of dead or beef. And then this beef to feed— this is just a very basic data flow. So the beef to feed says basically just does a replacement so that if you have 42, you end up with beef. If you have beef, you end up with feed.
And then the last one basically just says, you know, is, is, is the string feed, or is feed in the string, right? Um, so, uh, this is true and this is false. Uh, that will just be false. Um, so that's essentially, you know, this will be our flow, is our flow comes 42, beef, beef, feed, feed, true, and then otherwise essentially we hit false.