Okay. Hi everybody. Welcome to a special meeting of the New York Java SIG. As I mentioned, our next meeting is October 28th, but tonight we have two very special guests. So, Colt McNealy and Scott McNealy were in town and we thought it'd be great to invite them to speak to the Java SIG courtesy of Tristai. So please everybody give a round of applause to Tristai.
Thank you for hosting our meeting. Also thank you Little Horse for sponsoring the pizza. Thank you Little Horse.
So let me introduce Scott McNealy, especially for you youngans. So Scott ran Sun Microsystems, your CEO for 22 years. Started back in the early 80s, 82, 83.
Oops, 82. One of the most influential tech companies ever.
So many things that we use today come from Sun Microsystems, not just Java. The network is the computer, Scott's mantra for the longest time. Now we know cloud computing, and that's where it all came from. Containers come from Sun, like Solaris containers, so we use Docker, things like that came from Sun. I know GUI toolkits, one of my things I used for like 10 years, all those GUI toolkits and windowing systems, Sun workstations. So there's a lot that came from Sun Microsystems, and we have Scott and his team to be thankful for. So, Scott McNealy.
So yeah, there were a lot of things we did that were unique and different. In fact, one that we never really get much credit for. You know, Al Gore invented the internet, if you remember, but we were the first company to ship IP on every computer we ever shipped from day one. And that was a big deal. It seems sort of like duh now, but it was kind of a leap of faith. We had all the — IBM had their — I can't even remember their — IBM networking strategy. DEC had token ring, DECnet. We had — Apollo had theirs, I can't remember their name now. So hard to remember. They're just all gone in TCP/IP. We were — Al Gore did the internet. We did open source, and I would say we didn't invent it, but we certainly made it popular and drove it in ways. We were the only company that ever got to shipping 60-plus percent of its R&D and IP into the open-source arena. And that was sort of unique. The S stood for sharing, not Sun. That was just what we did. And for some of you youngans, open source doesn't seem so radical. But I remember we had brought in a DEC VP to be a president, and we told him that NFS is coming out and that we were going to open source it, and he goes, 'You can't do that, those are the corporate jewels.' And we go, 'It's networking software.' And Bill Joy was — we were all just arguing with him, 'No, you open...' Bill says, 'What good is a telephone that doesn't talk to any other telephones?' Right, we can't just talk to ourselves. We're a tiny little startup.
All right.
I don't know how — does that work?
So, a lot of other things that we did. He actually did Java glasses a long time ago, you know, and I just walk up behind my buddy when he wears his glasses and I just start doing searches. 'Hey, Meta, search this.' And he goes, 'No, no, no.' But anyhow, a lot of this stuff came out of the labs at Sun over the years, and we didn't do the greatest job of taking it to market all the time, but that's because we were more interested in doing interesting and fun stuff and getting other people to adopt it and go with it. I probably made some management mistakes along the way in terms of who I put in charge, and it didn't really help it when I looked at myself and said I didn't get married till I was 39, and then all of a sudden I had, you know, in my mid-50s I had boys at home that were two, four, six, and eight years old. And my wife, who's just the nicest and most wonderful person, I said, 'I can't leave her alone with those boys.' So I stepped back, and long story short, five years later the stock was trading at a pretty funky easy price, and Larry picked it up. And that was after I saved us from IBM. The problem with IBM buying us is that for every job title we had in our company, IBM had the same — you know, chip designers, computer designers, and services people and all the rest of it, and Unix and everything else. So I could see that if they bought Sun, 100% of our employees were effectively redundant. So I called Larry and I said, 'Larry, just please, just beat...' because Larry wasn't in the computer and hardware business and operating system business, and we weren't in the database business and we weren't in the apps business, and it was much more of a merger like this. So I felt like it was a much better way to go. I was just on the board at that time, I wasn't the CEO, but Larry came through, and within a week I remember I was on the 17th hole at TPC Sawgrass with my wife on the 17th hole, and I go, 'Larry, will you buy Sun, please?' And by the 18th hole, we sort of had agreed on a deal. And two weeks later we kind of blacked it away — white-knighted it away, I should say — from IBM, who I don't think would have helped the technology. You know, that's a quick story of what happened to Sun over the years. It was fun. It was the most amazing thing. Twitter's built on — I should say X is built on Java. Java was the only operating system language allowed on the lunar — we had 100% of the — excuse me — the Mars landing vehicle market of one. So, but you know, we were the — I still don't know if Java Card is on your smart cards that you all have. You all have a chip now on your card, that was new back in the old days, and the Java Card OS was a big part of that. Java in the phone was a big deal. Made the phones interact with Java into the browser. I mean, the way it happened was Jim Barksdale was the CEO of Netscape and a buddy of ours. And when James and Bill Joy and I went over to go visit them, Marc Andreessen was in the room, and they had just showed us their new browser, the Netscape browser. And I don't know who gets credit for the idea, but I said, 'Well, let's just put the Java virtual machine into the browser.' And on that day, the internet was born. I mean, TCP/IP was a critical component. Those were just the rails, but we had no trains to run on the rails. I can't remember the numbers, but they were fascinating numbers at the time, but like 10 million users had downloaded the browser with Java on it within a matter of weeks with no advertising, no fanfare, no whatever. And that was a big deal. Now, the thing has to hit a billion users in a couple of weeks to be something interesting. But that was the good old days. And I think my first board meeting we had an overhead projector, and I put the blank slide down and I would mark up, and that was slide one, slide two. So that tells you what's happened since 1983-84 and today. Pretty amazing. None of this would have happened when it did. I can't say that it wouldn't have happened, but when we were recruiting early on, we needed a software guy, and I kept asking everybody, 'I want the best Unix programmer in the world.' When Vinod was CEO, I was running everything else. That didn't sound right, but he sort of was doing product and I did everything else. We wanted a good Unix guy because we had Andy, who today is the most unheralded guy. Steve Jobs has done consumer hardware and systems that has touched more people on this planet than any other probably. Andy Bechtolsheim has done industrial, commercial, backend hardware that has touched more packets and emails and electrons and everything else with all that he did at Sun and all of his startups. He is easily the undisputed guru of network modern hardware. Even with Nvidia and all the rest of it, it's just — everything you've done over your career has run through Andy Bechtolsheim hardware at some point during the travels. So pretty amazing group. But I remember after we asked around for the best Unix person, we'd interview them and then we'd go, 'Okay, but who's the best person?' And you know, we kept climbing the Unix ladder and we got to a guy at — I can't remember where he was — National Semiconductor, one of the top Unix gurus at National Semi, and I'm at the staff meeting and I go, 'Well, so-and-so said Bill Joy is the best Unix programmer in the world. He's the best programmer anywhere.' And Andy goes, 'Yeah, I know Bill. He's super smart.' I said, 'I've been trying to get the best Unix guy for months, and you've been sitting here not mentioning...' 'Oh, you'll never get him.' 'Pick up the phone.' I think we had to do it this way back then. And we get Bill on the phone, and right in our staff meeting, we got him on the speakerphone. 'Hey, Bill...' he was at Berkeley. And we called him up and said, 'Bill, can we talk to you? Come down here and interview at Sun. We'll make you one of the founders.' He goes, 'Nah, they're paying me 40 grand a year at Berkeley, and you know, I can do whatever I want.' He said, 'Well, Andy says you're the...' 'Andy Bechtolsheim? Oh, yeah, I'll talk to Andy.' So, Vinod and I drove up, and Andy came up separate, and we got to Bill Joy's office — it's a little tiny office, half the size of one of these. And Bill's at the keyboard, and I kid you not, code was going up on the screen like this. Colt, you're good, but this guy — and his fingers didn't move. They maybe trembled a little bit, and code was flying up like this, and he's talking to us, and he's still coding and all the rest of it. He actually didn't — he just said hello. And so Vinod and I sat there for about 15 minutes, and finally he says, 'Do you guys want something?' He said, 'We're from Sun.' And he goes, 'Oh.' He didn't realize. He thought we were janitors or something. He didn't realize the president and the vice president of the company were sitting in the room with him. And Andy showed up, and they did the Vulcan mind meld. Anyhow, Bill joined. And we kept looking for more and better programmers. Once at my staff meeting, I said, 'We need the world's best software programmers in the world.' And he goes, 'Well, the best is James Gosling.' And I said, 'Get him on the phone.' And same thing, he talks to Bill Joy, and the two of them do. James joins the company. And so when Bill Joy says he's the world's greatest programmer, which is how he described him, I said that's like Tiger Woods saying that's the best golfer in the world, right? So I was curious after a while, like two, three years later, somebody, you know, the grapevine gets to me, and they say James is leaving to go do something different. I said, 'No, the best programmer in the world is not leaving my company.' So I called James into my office, and I sat him down on a chair right in front of my desk. He sits down. I had to close the door. He sits down. I said, 'I hear you want to leave the company.' He said, 'Yeah, I'm leaving.' I said, 'No, you're not. This is not happening.' I said, 'Why are you leaving?' He goes, 'Well, I want to go do something consumer grade. I want to do something that's billions of users, not hundreds of thousands or millions of users.' And I said, 'That's cool.' I said, 'What exactly do you want to do?' He says, 'Well, I don't know exactly.' I said, 'That's cool, too.' He said, 'You know, I'm thinking, you know, there's 10 clickers on everybody's coffee table right now. Wouldn't it be nice if we could kind of merge that into one system and miniaturize it and have this control everything?' I said, 'Okay, that's cool.' I said, 'Here's the deal. However much money you need, for as long as you need it, wherever you want, you can take anybody out of Sun that you want. I will fund it. You just need to come to me within the next two weeks with your plan. It doesn't have to be formal. You just go run it. Put the pirate flag up on any building wherever you want to do it. And you need to come to me once a year and show me how much progress you're making. And don't you let anybody else near you or bother you. It's your deal. You do this. Go for it.' And he looked at me like, 'Have you lost your mind?' He goes, 'Really?' I said, 'Yeah.' He kind of half smiles. I said, 'Get out of here. Go get it done.' So he walked out happy as a lark, and he got all the people that he wanted to work with, and he was going to do — he came out with this universal remote that was about the size of a shoebox, just a big clunky thing, but in the process he couldn't do the software that he wanted to do with the current operating systems, the current languages, and so he just started all at the beginning to create Java. And he wanted something that was really unique back then: write once, run anywhere, that everybody just sort of takes for granted now. There were like 120 different systems you could compile to back in those old days. Most people, older people, all get, 'Yeah, I remember compiling to platforms,' but now everybody thinks everything runs everywhere. Well, that wasn't the case back then. Strongly typed, no viruses. It had, you know, a container that would keep it from — you know, Microsoft would have hated it. No viruses, no computer, you know. So anyhow, he built this thing to be for that, but it was really taking the JVM and putting it on the browser that he hadn't planned on because he didn't know the browser was coming. But it turned out that was a zero cost of goods sold way to deploy the Java virtual machine and really, really invented the internet. So that's the — By the way, one of the challenges was four different times my president or division manager or whatever took Oak or Green or whatever it was called at the moment, took his project out of the budget. And four different times I had to say to the CFO, 'Nope, put it back in. I don't care who's trying to get that out of the budget. We're going to spend the money and let him get to fruition on it.' So that was — I allowed Java to happen. I made sure it had a chance to happen, but I certainly didn't write any of the code, which is why it's so successful. So that's the Java story that not everybody knows or heard or understood. It was a little accidental, but you know, we tried to set up people to accidentally do great things at that company. And we never fired people for trying something that failed. And I think that's a really big key. Just go for it. Just try it and see what happens. So, you know, we did a lot of things: file systems, operating systems. We were one of the early drivers of the RISC technology and the multi-threaded technologies and memory — what's it called when you — software memory management was one of the things where your memory size was bigger than the amount of DRAM you have. I can't even remember the names — all the virtual memory — virtual memory. Thank you. And by the way, 10 months before I started Sun, I didn't know what a disk drive did. I didn't know what memory was. I didn't know what an operating system was. I looked at the power supply, and the manufacturing manager who was now reporting to me as I got brought into this company — I worked at Onyx, which was the first company to put Unix on a microprocessor in the valley. And my poor manufacturing manager going, 'What's that?' He goes, 'That's the CPU.' I said, 'That little thing?' You know, because in my business school books, they had a big refrigerator that was called the CPU. 'That little thing? What are those little black things?' 'That's memory chips.' 'What do they do?' 'That holds the operating system.' Oh, and then they point to the disk drive. I — 'What is that thing with the spinning thingies going around?' He goes, 'That's the disk drive.' I said, 'What does that do?' 'It holds the operating system.' I said, 'I thought the operating system was over there.' This guy's getting really frustrated with my job, and now he — and it was just, you know, this size thing with the cover off. And I go, 'Well, what's that?' He goes, 'That's the power supply.' 'What does it do?' He says, 'It switches AC power to DC.' I said, 'This thing goes both ways.' He's like, 'Oh my god.' So finally, 'What about this thing?' He goes, 'That's the tape player.' And I said, 'This plays music.' And by this time the guy just grabs the cover, slams it down, and he literally went to his office for two weeks and never came out. He reports to me, and he's running manufacturing, and I was director of operations. Anyhow, that was my start 10 months before we started Sun. So I sort of learned computer technology along the way. But fortunately I was smart enough to not get in the way. Elon Musk I'm not. Larry Ellison I'm not. Steve Jobs I'm not. But I tried to be a really good manager. I tried to help people rock and roll and get it going along the way. So that's sort of — I couldn't tell them, 'Go invent Java.' I just said, 'Go out and do something great.' And that happened a lot at Sun Microsystems. So I'm sort of doing that now again to transition. I'm happy to answer questions after Colt talks about anything anybody wants to talk about. But let me talk about four other startups I had. I have four boys. The oldest and the youngest are in Japan right now playing in the golf tournament, the PGA Tour golf tournament in Japan. Maverick has been on the tour for eight-plus years now, nine, 10 years maybe. He's top 50 in the world. He's making way more money than me by a lot. And he drafted his youngest brother, Colt's younger brother, to be his caddy a couple of years ago. And his career had really skyrocketed since the two of them became a duo out there. And it's really, if you're a parent, it's kind of fun to see your kids working together. Well, about four, four and a half years ago, Colt, who did three years of CS at Stanford and was bored but got an AI degree in three years, so he said to me after working for a little while, he says, 'I want to go do this orchestra thing.' Whatever he told me. Yeah, whatever. 'Violins and piano?' 'No, it's orchestration, Dad.' So he went in a cave by himself for a few years, and I funded him under one rule. I said, 'You're not going to get money from me. You're going to borrow it. It's going to be on you to pay me back. And I'm not going to let you have any other shareholders because I don't want you screwing around with SOX 404, with investors, with VCs wanting an exit, with board meetings, with any of that other stuff. I'm just going to be there to help you and all the rest of it.' He came out of the cave with Little Horse, and this thing is rocking and rolling. And his brother, who also went to Stanford and did CS — the fourth brother joined him earlier this year. And so the two of them are competing with the golfer-caddy duo to see who — each month they say, 'All right, how much did you score this month?' And you beat him last week, right? He beat him. Mav missed the cut last week, and he scored six- and seven-figure deals. So it's kind of an interesting little battle. But if you want to be a proud parent and have two pairs out there competing, doing really wonderful things. I also like the fact that given where the industry is headed and the world is headed, with Optimus robots taking out all of the moving-atoms jobs and AI taking all of the moving-electrons jobs out of the — it's technology and entertainment, live sports, what else is out there that you're still going to be — they're still going to be doing drugs, so drugs will be a business. But it's, you know, the world is shrinking in terms of the number of things that we're going to have to fill our days with a lot, because we're going to have a lot more leisure time for a lot of people. So I think it's good to have my four boys in live entertainment and sports. Oh, betting is another big one that's going to be. So Vegas is going to be in a good spot with people going there for all the entertainment. Anyhow, that's a world view I have that may or may not work out. But anyhow, that's the story of how Java got started and how Sun was able to make some of that happen. I'll be happy to answer other questions, but I'd really rather sit down and let the old man sit down and try not to let the old man in, if you remember the Clint Eastwood movie. But yes.
Scott, I just wanted to see if my history is correct. Can I toss this to you? Here we go. So when the green team, the original team, was — I think they were disbanded at one point, from what I understand.
They were never disbanded. They tried to defund them, but I wouldn't let it happen.
They were renegades. They were pirates. I told them, 'Put a pirate flag up and don't let anybody in the door you don't want to let in the door.' That's what I told him, those words.
But then, is it true that because you played hockey with some of them that you discussed Java?
Yeah, I played hockey with one of the guys. He got in a little bit of trouble.
But is it during those discussions that you —
No, I didn't. No, no. I told him, 'Pass me the puck more.' That's about all I — You have to understand, I was a golf major at Harvard. I was captain of the golf team, which is like being a Florida State snow ski captain. And I played club hockey. We won the house club hockey championship at Harvard. And I studied economics. That's my background. So no, nobody came to me asking me what to do with the memory management system. No, that was not — it just wasn't anything for me to talk about. So I will not take any credit for the technology genius of the people at Sun.
What was this magazine? 1997.
This one is October 1997. So that's almost 20 years ago.
That's depressing. That's depressing. So, you're wondering how did I fly through the air? I'm actually standing on a little footstool, and the photographer is on a ladder way up above me shooting down at me. So I'm like this, and then they just tilted the — So that's how that one happened.
Cool.
It was a Java ring, right? The Java ring.
That's the Java ring. Yes.
So anyhow, I'm going to turn it over to Colt, who will talk to you about a product that uses Java aggressively and properly because he wants to be in my will. And he's the smart one. So, Colt, you want to take over?
Thank you, Scott. And now Colt McNealy. Colt was the CEO of Little Horse, and you were the original engineer on the kernel, the Little Horse kernel.
I do regret not making it a team earlier. It's too many months on my own.
That's how good things start, right? Single mind, right? Focused.
Yeah. Now, my team is all better than me. It's great.
And if you've taken any of my AI courses, I always tell students that in the future, we're going to mix non-determinism with determinism to be successful. And it's not all going to be just non-determinism. So now we're going to hear about determinism with non-determinism. So Colt, appreciate it.
Well, thanks for the story, Dad. I think it's fun to take a moment to look back at how the use cases for Java have changed. It started out as a remote and then became a browser and then basically client-server applications. Also desktop applications, I think, but you know, I believe — I wasn't around back then, but I believe that Java used to be a way to distribute JAR files to install things, and every computer would have a JVM on it, and then you just run the JAR on your JVM as a way to make things portable. And then it became a back-end server thing, and then it became a microservice language. Spring Boot, for example, has brought Java to the cloud. But how is it going to continue to evolve with agents and with the massive explosion of new software that's being created? So what is the place of Java? And I think the use cases have evolved, but also so has the language. For example, I was profiling Little Horse in our EKS cluster the other day, and the longest GC pause I had under very heavy load was 2 milliseconds. So the generational ZGC has come a very, very, very long way. And I was looking at some CPU problems that we had, and it turns out that we're basically burning three CPU cores, and I thought it should be closer to two. Java, the JVM, was only using 0.7 cores, and the rest was actually RocksDB, which is written in C or C++. So a lot of the major criticisms of Java have been fixed over the last couple of years, and I think the language is very well positioned actually for the future. And one of the things is, you know, what are we going to do as Java developers? And I think Frank hit the nail on the head with mixing determinism and non-determinism. So I'm a huge Star Wars fan. I'd like to talk about how to bring balance to your agents, because he is my father. Okay, so there he is. So we'll quickly talk about how agents work and that might become coding. And then we'll talk about what Little Horse is and how we interact with agents in Little Horse and how our customers have been using Little Horse to do it. And then we'll end up with — if we have time, we'll do a brief live demo, but more importantly, point you guys to be able to run a demo on your own laptops, because open source is kind of — you know, I have to be Java and open source. Those are the two rules of doing business funded by my dad right now. So I highly recommend you guys check out our GitHub. It's github.com/littlehorse-enterprises, and there is basically everything you need to understand and get started with the platform. It points you to the quick start documentation and a brief overview of the architecture of the open source and all of the code if you want to take a look at it. So github.com/littlehorse-enterprises.
So, agents — I have your attention now that we're talking about AI. How do these things work? And I like to think about agents in code. And it'll make sense why we're going through the anatomy of an agent. I know we're talking about Little Horse and Java here, but we are going to write some Java. So I keep pressing too many buttons at once. You all know that an agent has a system prompt. And you know, let's build an agent that will look at your account information and recent trades and tell you whether you should buy, sell, or hold a certain position that you have. Right? So you have a system prompt, and you have context. And when you start out, the context is just system prompts. Right? Now, we've all heard about tools. So we might have — oversimplification would be a tool represented as a string. And you could look up the history of a stock, or you could look up the history of trades in an account as a very simple list of tools. And obviously you need to tell the agent that you have these tools. So we add the tools to our context. Now obviously this is pseudocode, but it is Java. And we'll see how this applies to Little Horse pretty soon. So now that we have the entire system prompt ready to go, we need one of those magic alien intelligence models that can complete text for you and give you more tokens. So how do agents do their thing? And everyone kind of describes agents as a for loop. And it turns out that if you read the code of an agent harness like Py or OpenCode or Codex, which I believe is open source, or the leaked Claude Code, at the core they're all really basically a 12-line for loop, and that's what we're stepping through right now. So first thing you need to do is you feed the context and the system prompt into the LLM and see what it gives you back. So we get this chat response, and it's Java, so it's going to be an object. And we just prompt the LLM with the context and see what it does. And under the hood, the LLMs are trained to do one of three things. One is they can give you another token. Another is they can tell you to call a tool, or they can give you a special token that says conversation is done, right? And the chat model itself kind of abstracts that, and if it gives you another token, it'll keep going until it ends up giving you back either a stop or a tool call. But anyways, so the whole core of how agents actually work is they will prompt the agent once, and while it's not done, they're going to look at the output and add it to the context, and because it's not done, we know that it's a tool call. So what we're going to do is call the tool, take the result of that tool call, append it back to the context, close the loop again, and prompt with the extended context. And this is how agents do research. It's how they edit files if you're using coding agents. It's how they can take action across very, very many systems, right? And when they're finally done — when this line returns, 'Oh, it's done' — well, then we know there's no more tools to call, and we can just return the result of whatever the context is. So that right there is how agents work. And it's incredible how simple this code is at the —
It's simple enough. I wrote that by hand on an airplane with no AI. It probably wouldn't compile, but it's pretty simple, right? And that's actually the core of every single agent system. And if you think about it, that actually in theory can do basically anything that a deterministic software system can do. But will it? That's the problem. So you know, a lot of people are rightly very excited about AI in enterprise integration and workflow automation scenarios because you don't necessarily need to specify the workflow in order to make things happen. But there are a couple problems with it. So Little Horse has a thesis now. I can't claim this is the founding thesis of the company because we started the company on December 31st, 2021. And back then agents weren't even a thing. ChatGPT wasn't a thing. I think GPT-2 hadn't even come out. So we didn't know about agents. But the problem we started the company for was that business logic is fragmented across dozens of systems. Which means when you're a microservice developer like I was, doing anything means that to understand the logic you have to read the code of dozens of different microservices, you have to read the API documentation of third-party SaaS systems where you call something and then three days later when someone fills out a form it sends back a webhook, right? So it's incredibly difficult to understand the end-to-end process logic. So that's the thesis I started the company with. It's not really a sales pitch. And we realized it's actually very hard to get people to buy when you explain that, because the only people who understand that are engineers, and unfortunately they're not, you know — So anyways, so the thesis now is that — you guys want to deploy — well, if I'm speaking to executives, you guys want to deploy agents into mission-critical processes, right? Well, how can you do that? You need to have software engineers go in, understand the way that your process works, and build deterministic guardrails so that your agents don't do something that'll get you sued. And the thesis is that agents aren't orchestrators. So let's take a look at this. So here's a somewhat naive enterprise architecture in the mind of certain executives. Starts with an agent, right? And you know, if you get a little bit more nuanced, well, they say, 'Oh, well, we have MCPs, right?' And then the agent is responsible for orchestrating my workflows across all of the different systems that we've got.
We've got Salesforce. Don't take a picture of this. This isn't the one you want. This is the bad architecture. Um, right. It works reasonably well for answering questions, but it's not a great reliable automation platform because everything, um, is determined by what is the next token sampled from the probability distribution produced by the agent.
I'm going to go back a couple slides. Uh, right here, like what what is uh or on the llm.prompter, I just clicked on it. On the llm.prompt, right, we're relying basically on the non-deterministic, completely well, not completely random, nondeterministic, probabilistic sampling of a token from the output of the agent to determine how we do our tax accounting. So quite obviously, um, in enterprise workflow orchestration you don't want to be relying on agents to determine your process.
Now, um, even at a simpler level it's just very hard to use agents to automate the fuzzy logic that has to be done by an agent and couldn't be done with, you know, the tools available to us software engineers back in 2022. Uh, it's very hard to do that without having a layer that lets you rise above all of the brownfield systems that you have, and that's why it takes so long to do releases of, you know, new features in a website, especially if you're in a microservice environment and you don't have true loose coupling, and that's what Little Horse gives you.
So going on to what's missing in that enterprise architecture that we just had right there. Um, process guarantees, you know, it's probabilistic. Your agent might forget to do tax accounting or something like that. Um, auditing, what tools did it call? So if the tools have side effects and actually write into the world, uh, you have to build a lot of infrastructure to make it easy to audit exactly what the agent's doing.
Durability. So business processes can run for a very, very long time. Um, by a very, very long time I mean anywhere from seconds to minutes to days, right? And a for loop is not designed to run for days at a time because especially in cloud environments, things can, you know, be restarted or crash or something like that. Um, so agents aren't durable. You end up having to build durability in your agents.
Latency as the agent's thinking and calling tools. You know, if I had a bash script to make five API calls, it would be thousands of times faster than a skill that tells an agent to do it. Uh, token cost, I don't need to say anymore. And then, uh, how do you even invoke this process? Because if you're just telling someone to, you know, trigger a process by going to ChatGPT and typing something in, that's not really automation. That's just, you know, a fancy UI wrapper.
So what is the position of Little Horse here, you know, and how is Java involved in this? Well, uh, basically we don't like the business's prompt architecture, Little Horse. Our thesis is business as code. So, um, it's like infrastructure as code but for business processes. So infrastructure as code is amazing and there's many problems that it solves.
So we've all been in places, probably if you've been in several different companies, where you don't really know what is deployed in production because you have click ops people deploying stuff on AWS, you have some servers under the desk, uh, you have Ansible running on some, you have Terraform and other things are in Kubernetes, you have some serverless functions and no idea what is actually deployed. Um, also it's very difficult to roll back changes when you don't have a central environment controlling how your infrastructure is deployed.
So infrastructure as code is the idea that you can write code and then have a platform such as Terraform or Argo CD or something like that, um, look at a declarative specification of what infrastructure you want and then make reality match that declarative specification. So it is hard to get going with it and there's all sorts of problems, but net net it saves a lot of time, it saves a lot of bugs, and it gives you the ability to roll back to older deployments and easily understand what is going on in your system.
So first of all, being version controlled is great. It allows you to test stuff kind of, I think you can write tests against Terraform. So, um, and then it also gives you a central control plane for what you have deployed in your environment. Um, wouldn't it be great if you could do this for business processes and the processes running across all of your different microservices? Wouldn't it be great if you could use that as a way to deploy agents as well?
So, um, that's what business as code does. It takes the desired business process, and whether that's something like, uh, you know, an IT request where you're requesting access to a new laptop or something like that, or if it's a flow across microservices where you're synchronizing data across many different systems. You take the desired process and then you treat it like a software artifact. It's something that's deployed, version controlled, tested, and actually runs.
So the code is the business process, and then it shows up visually on a process graph that you can understand with your product managers, uh, as engineers, and visually see. Or if you're lazy like me and you have Claude write the code, uh, and you don't want to read the code, uh, you can just visualize the graph, which I do more than I should.
So what makes business as code so great? Obviously, if your business process is software and it's deployed and runnable, it's version controlled, it's testable, and it's centralized. Um, it also gives you observability and auditing of what happened. Um, if you have a good runtime for business as code, uh, durability, a good runtime for business as code will make sure that your processes are durable, and it also gives you exception handling.
So it gives you, because it's centralized and it's code, and code naturally lends itself well to exception handling. Business as code allows you to handle exceptions in your processes, whether it's an integration process that takes a couple milliseconds or a long-running business process that takes days or weeks.
So, uh, how does this work, and is there such a way to treat business process as a software artifact to get these benefits? Um, well, uh, I would say yeah, it is real. Here's a real screenshot. There's code on the left and a dashboard on the right. So, um, this is the open source quick start example which I highly encourage you guys to try. It takes maybe three, five minutes depending on your Docker download speed.
Um, and this code on the left is a business process. Well, I'll run it on my laptop and make it bigger. And compiles into a directed graph of computation which is on the right. So this code on the left is about 90%ish normal Java except that it uses our DSL, and then the DSL in Java will interpret and construct a directed graph with nodes and edges where a node is a computational step and the edge defines the control flow, uh, which produces this graph on the right on our dashboard.
And you know, if you squint hard enough, the output of our DSL is quite similar to an abstract syntax tree. Um, I'm not a compiler guy. I regret not taking that class, but I think from what I do know, or do I not regret it? Anyone a compiler guy in here?
Only in school? I heard it was a hard class, but I do wish I took it because it seems interesting.
Okay. So how does business as code work? And the idea of business as code is that we want to orchestrate processes across all of the various complex systems that we have. So, you know, Java started as on a remote that's very much well packaged, and then it moved to desktop applications which is still sort of well packaged, and then we moved to client-server which is now beginning to be distributed, and then cloud microservices which is vastly distributed.
And my dad used to call complex systems like that a hairball, and I think back then the hairball was Oracle, and now it's still Oracle but also microservices.