The Peterman Pod

Creator of OCaml: Functional Programming, Formal Verification, Programming Languages | Xavier Leroy

84 min
Jul 20, 2026about 1 month ago
Listen to Episode
Summary

Xavier Leroy, creator of OCaml, discusses functional programming language design, formal verification techniques, and the implications of AI-generated code for software development. The episode covers OCaml's unique position as both a functional and systems programming language, comparisons with Rust and JavaScript, and the potential for formal verification to become mainstream in the coming decade.

Insights
  • Garbage collection overhead (10-30%) is often offset by manual memory management costs like defensive copying, making GC languages competitive for many applications despite theoretical performance penalties
  • Type inference systems can automatically discover polymorphism as a consequence of constraint solving, enabling safer code with less verbosity than explicitly typed languages
  • Formal verification tools like Lean and Coq are becoming practical for real-world systems (e.g., SEL4 microkernel), but require significant upfront investment and specification discipline that AI currently struggles to provide
  • Adding multi-core support to OCaml required not just engineering work on garbage collection but also complex language design decisions around memory models, similar to challenges Java and C++ faced
  • LLM-generated code quality depends heavily on language design—static type systems and algebraic data types help AI produce better code by constraining the solution space
Trends
Formal verification moving from academic curiosity to practical necessity for safety-critical systems, potentially becoming the defining software engineering practice of the 2020sIndustry-driven programming language innovation (Rust, Swift, Java) now outpaces academia, with companies backing research that academia alone could not sustainStatic typing and functional paradigms gaining adoption in mainstream industry (Jane Street, financial services) due to code elegance and maintainability benefits over raw performanceAI-generated code creating pressure to shift verification burden from testing to specification and proof-checking, rather than traditional QA processesGPU and massively parallel hardware remaining underutilized due to lack of appropriate high-level languages and verification tools, representing a major unsolved problemType systems emerging as a critical tool for constraining AI model outputs and improving code generation quality across languagesConcern about 'AI slop' in open source and enterprise software driving potential backlash against unvetted generated code contributionsHybrid memory management (stack allocation + GC) showing limited practical benefits, suggesting GC remains the right default for most applicationsMessage-passing concurrency models (Erlang-style) remaining theoretically superior but practically abandoned in favor of shared-memory threading due to performance trade-offsSpecification-driven development becoming critical bottleneck for formal methods adoption, as AI and humans struggle equally with defining correct requirements
Companies
Jane Street
Major OCaml user implementing trading infrastructure; uses language as hiring filter for engineers with stronger back...
Google
Referenced through Rob Pike's Go language design philosophy emphasizing simplicity for fresh engineers over advanced ...
Xerox
Developed Smalltalk in research labs, cited as example of industrial research contributing to programming language in...
IBM
Developed practical languages like Fortran, COBOL, and PL/1 in early computing era
Cornell University
Ensemble project in late 1990s used OCaml for network protocol stack, demonstrating language viability for systems pr...
OCaml Labs
Cambridge University team that led the engineering effort to add multi-core support to OCaml
OpenAI
Mentioned as developer of generative AI models that produce code with quality dependent on language design features
Anthropic
AI company mentioned as user of WorkOS product for enterprise SaaS features
Cursor
AI-powered code editor mentioned as WorkOS customer
Vercel
Web platform company mentioned as WorkOS customer
People
Xavier Leroy
Guest discussing OCaml design, formal verification, and programming language innovation over 40+ year career
Jaron Minsky
PhD student on Ensemble project who later implemented Jane Street's trading infrastructure in OCaml
Robin Milner
British pioneer who invented ML family of languages and type inference in the 1970s
Brendan Eich
Creator of JavaScript; former Lisp programmer whose heritage influenced JavaScript's functional capabilities
Rob Pike
Go language designer quoted on hiring philosophy and language design for non-researcher engineers
Edsger Dijkstra
Dutch pioneer quoted on limitations of testing: 'testing can only show presence of bugs, not their absence'
Donald Knuth
Author of 'The Art of Computer Programming' series referenced in discussion of programming excellence
Quotes
"Testing can only show the presence of bugs, but not their complete absence."
Edsger Dijkstra (cited by Xavier Leroy)Opening
"Manual memory management is not always faster. Maybe this will be the decade of formal verification of software."
Xavier LeroyMid-episode
"I'm not a big fan of JavaScript... it's a big weakness. It makes programs that can be very fragile and also have some security issues."
Xavier LeroyJavaScript discussion
"Every new line of code is a liability. You have to test it. You have to check it. Maybe you have to do formal verification."
Xavier LeroyLLM-generated code discussion
"Rust is the finest language that I know for manual memory management. It manages to make it mostly safe with the discipline of borrowing."
Xavier LeroyRust comparison
Full Transcript
Testing can only show the presence of bugs, but not their complete absence. This is the creator of the OCaml programming language, and I asked them all about programming language design and formal verification. Oh my god, I'm not a big fan of javascript. And Rust is the finest language for manual memory management. Manual memory management is not always faster. Maybe this will be the decade of formal verification of software. If you took LM generated code and turned it up, what languages would become more popular? What languages might fade away? Here's the full episode. What sets OCaml apart from other programming languages? It is a fine functional language. You can write functions by case over inductive types and recursion and combine them with combinators and higher order functions and everything. So it's really a fine functional language, but it's also a fairly decent systems programming language. And so it has fully imperative power. It has lots of interesting control structures, exceptions, threads, handlers for user-defined effects, which we added recently. And it has a very predictable cost model, execution model. So when you write your code, you have a pretty good idea what will take time and what will be fast and what will be slow. And that's not the case for all functional languages. Some are pretty unpredictable. And then the implementation is also pretty performant. So there's a fairly decent compiler, not the best in this class, but the code is pretty efficient. There's a very good allocator on garbage collector with low latency, so you don't have much poses. You don't have long poses, and that's quite important when you do things like network programming. And so you can write systems applications in a mostly functional style and with all the benefits of functional programming. And so initially, OCaml wasn't designed for those kind of applications. It was more for things like theorem proving or implementing domain-specific languages. And then we got some of our first users who were from the systems community, in particular, the Ensemble project in the late 90s at Cornell University. So it was a network protocol stack for reliable multicast and those kind of collaborative distributed applications, like collaborative editing or multiplayer video games. And their first code was in C, of course. They were systems people, right? And it worked, but it was unmaintainable, and they couldn't extend it anymore. And someone had the idea to try Okamer. and so first the code became a lot nicer and easier to evolve and the performance was about as good as the SQL. In particular, they had this brilliant trick of running the garbage collector while packets are in flight. Once you've sent a packet, you're idle for a few microseconds and so you can run some GC. It costs nothing. and so they were very happy with that and then there were some other projects like this using OCaml4 systems applications like the Mirage Unikernels and another benefit or consequence of this Ensemble project is that one of the PhD students working on that was Jaron Minsky who then went to Jane Street and implemented their trading infrastructure in OCaml. So that is still today one of our big users. And again, it's, well, they do automatic trading, so it must be fast and reliable and no long pauses, but they also want the elegance of functional programming. They want non-programmers to be able to read their code, like financial engineers or quantitative analysts. and so OCaml is a fairly good match for those kind of applications. I thought it might be interesting to ground some of the conversation here by making comparisons across programming languages, maybe ones that people know more. When you think about Rust versus OCaml, what are the big differences and the pros and cons of the various design decisions in those languages? The big dividing line is between Rust and OCaml. Well, OCaml has automatic memory management, garbage collection, and Rust is definitely a language for manual memory management. It's the finest language that I know for manual memory management. It manages to make it mostly safe with the discipline of borrowing, etc. and tracking ownership and so on. So it's infinitely safer than C or C++, but it's still a language where you allocate and free memory yourself. And on the one hand, it gives more control over what the program is doing. On the other hand, it's still a big responsibility. It's significantly harder to write programs when you have to manage your memory, even with the help of host types. So, yeah, for me, that's kind of the main dividing line. Otherwise, Rust has many of the high-level features of functional languages, in particular in data structures and ability to do pattern matching and so on. So it's a very interesting design because they really managed to some kind of fusion between C or C++ style low-level programming and some of the high-level facilities of functional programming. But still, that divide, garbage collection versus manual memory management remains. So it sounds like this is a performance trade-off where you give more to the programmer in exchange for higher performance. That's mostly true. They said manual memory management is not always faster. Or you need to be a very good programmer so that it's always faster. There's been some mostly C++ code, for instance, that does a lot of copying of objects just because you're not quite sure you're the only owner. So you make a copy and now you're the only owner. But the copying is quite costly in time and in memory bloat. And for those kind of applications, garbage collected language is better. And likewise, with a GC, you can work with shared sharing in data structures. Okay. And it's perfectly safe. While sharing is kind of limited with Rust's ownership discipline, there are more constraints. And so you may end up unsharing and so using more memory. It is surprising to me that manual memory management would in many cases be more performant than automatic. Because, for instance, in other patterns in computer science, like let's say letting the compiler optimize things for you instead of optimizing things yourself. I would have thought that letting some system manage memory for you rather than manually managing it would also be better. So why is there a difference there? Well, because garbage collection takes place at runtime. So indeed, from time to time, the program is no longer computing, executing what you wrote. It is actually scanning memory, trying to find memory that is no longer used. So there is a runtime overhead. And it can be, depending on applications, 10%, 20%, maybe sometimes 30%. But again, that doesn't mean the whole program is 30% slower than if you had written it with manual memory management, because there may have been other costs, as you said, of manual memory management. But yes, there's been a lot of research on trying to do more, let's say, compile time automatic memory management. And you can do that to some extent, but it's for some programming styles where it's easy to track the lifetime of objects and data blocks. But in general, you still have quite a bit of work to do at runtime. I think a lot of people for garbage collection, they might think of it as a binary thing or it's either you have it or you don't. but I wonder in OCaml, is there some way to like turn down the memory management and do some manual? So kind of like a mixture to have the benefits of both. So that's one of the things that the Jane Street people are looking at. So they have their OxCaml variant, oxidized OCaml, which is kind of OCaml with some inspiration from Rust. So it's still very experimental. But yeah, they've been playing with things like stack allocation of some data structures so that they're automatically de-allocated when the function returns, which is quite cheap. Yeah, there are a few things you could try, but I'm not sure they are going to make such a big difference. I remember doing with the students some experiments with stack allocation of data structures a long time ago, and you don't win as much as you would think. SIGLI garbage collection or heap allocation is pretty cheap for objects that have a very short lifetime. If they die before the next garbage collector, they will cost very little in garbage collection time. But it's more expensive for long-lived data structures, because those will be scanned and analyzed multiple times. and stack allocation works for the first kind of objects, things that have a short lifetime anyway. So you don't win as much as you think. One of the most popular programming languages, JavaScript. Curious, when you think about the difference between JavaScript and OCaml, what's the main thing that comes to mind? I'm not a big fan of JavaScript. Well, so JavaScript is, well, first it's very dynamic. So type checking is entirely dynamic, but it's more than that. I mean, pretty much everything can be redefined at runtime, including, I don't know, the semantics of method invocation, for instance. So really some pretty fundamental aspects of the language are very flexible. So some people say, oh, that's great. We can do lots of meta programming, et cetera. And to me, it's a big weakness. I mean, it makes programs that can be very fragile and also have some security issues. So, yeah, so JavaScript is a ultimate dynamic language, in my opinion, while OCaml is very static, static typing, static binding. Pretty much everything is fixed at compile time. Okay. And then, well, I guess it's kind of a different data model. JavaScript is a little more object-oriented in the way it presents data. Maybe that's not that important. And to say one good thing about JavaScript is that it also contains a decent functional language inside. There's a little core of JavaScript, which is basically Lisp, and can be used to do functional programming if you want. And actually the designer of JavaScript, I think, was a former Lisp person. I can't remember his name, but... Brendan Eich, maybe? Yeah, Brendan Eich. There's a little bit of heritage from Lisp to JavaScript, but a very dynamic kind of Lisp. You said you weren't the biggest fan. Is that just because of the dynamics or is there some other aspect? Yeah, mostly the dynamics. I think they really went overboard with that. This kind of meta object protocol where you can really find the semantics of very basic operations like method invocation. The fact that a method can, there's a lot of introspection. A method can look at its own call stack, look at its callers, look at the code of its callers, which is a security nightmare. all those things I think are completely unnecessary and not conducive to good programs easily abused yeah easily abused I think on the topic of functional languages compared to imperative languages there's this thought that functional languages are kind of hard harder to learn or maybe they have more perceived complexity and actually I when I research there's this popular quote from the designer of Go, Rob Pike, and he's talking about what they intended to do with Go. And he said, you know, the key point here is the programmers are Googlers. They're not researchers. You know, they're young, fresh out of school. They're not capable of understanding a brilliant language. And I think, you know, that thought of a brilliant language is often attributed to functional languages. What do you think about, is a language like OCaml harder for programmers to grasp than imperative languages? I think functional programming is not fundamentally harder, especially if you have a little bit of mathematics background. So coming back to the quote by Rob Pike, I think it describes very much how they go about hiring at Google. They hire a lot of engineers who are fresh out of college. Some of them have master's degree, and then they train them internally. Other companies, I think, try to hire people with more education and perhaps more diverse backgrounds. And, yeah, so Jane Street, for instance, and some others use Okamel as a filter on who they want to hire. Yes, they have fewer applicants, but in general, they have more interesting backgrounds. And perhaps one last thing I would like to say, Python is 50% functional language. A lot of good Python code looks like functional code with comprehensions. So I think people are already halfway through functional programming when they are comfortable with Python. Yeah, when I was learning OCaml in college, I think one thing that really stood out to me and I thought was interesting was this concept of type inference, where the compiler is kind of, it knows the types of everything implicitly in the way that the code is written. Can you explain type inference and what the advantages are? Well, the basic idea is that you don't have to declare the type of every variable you introduce, every function parameter, every local variable, because quite often the type can be deduced from the uses of the variable. Like if you do, I don't know, x equals string length of s, then you kind of know that s is a string and x is an integer, because that's what the string length function, that's a type of string length. and it tells you that. So that's a basic idea. Now the actual realization is a little more complicated. Basically, you need to collect a number of, the compiler needs to collect a number of constraints and then try to solve them. Well, if there's no solution, then it's a type error. But sometimes there are several solutions and you must find good criteria to choose one. Otherwise, I mean, it also needs to be predictable for programmers. And often also you can still put type annotation. As a programmer, you can still put type annotations, see if that makes the code clearer. So I think the main advantage is precisely to have less verbose code, less verbose code, where you don't need to put types everywhere, but only where they help documentation and documenting the code and making it easier to read. But quite often, for small local functions, for short-lived temporary variables, the type is obvious from the context, so let's just admit it. If I'm trying to figure out how this type inference works, the intuitive example you said makes sense. but you mentioned it seems to be some sort of system of equations that you solve or something like that. Can you give a concrete example? Maybe, you know, what does that look like to the compiler? Okay. Well, for a slightly more complex example, say you have a function with two parameters, x and y, and then you do if x equals y. So that tells you that x and y have the same type, but that still doesn't tell you which type it is, assuming polymorphic equality comparison. So you've learned something about X and Y, that they have the same type, but you still don't know what the type is. And later, maybe you will learn something about the type of X, and now you will have determined the type of Y as well. So that's the kind of constraints you accumulate and solve, a little bit like, you know, Sudoku, those kinds of puzzles. And then there's the interesting case where you don't have enough constraints to find a unique type. So maybe in the end X and Y will be, you know, they have the same type, but it's still unconstrained. And then that's where you automatically get polymorphism for free. The type checker says, okay, those types are unconstrained, so it can work for any type. So my function can take an X of any type and a Y of the same type, again, any type, and it's a polymorphic function. So there's this beautiful, I think, phenomenon that polymorphism can be discovered just by running type inference and noticing that, oh, there are no constraints, so it must be polymorphic. And that was a guide in sight by Robin Milner, the British computer scientist pioneer who invented this ML family of languages and this kind of type inference in the 70s. Polymorphism was not well understood at the time. And so the fact that he could introduce polymorphism so easily in his language just as a consequence of type inference was a beautiful discovery. So for type inference, it seems like the benefit is the code is going to be a lot more concise because we don't need to write out all the types, which seems nice. But what are the tradeoffs of adding type inference to a programming language? Well, as I said, type error messages can be very confusing because they not always point to the actual source of the type error. The system may have done some wrong inferences and will report some of those inferences instead of reporting the actual source of the type error So it been a subject of much research and there's no very well-defined idea of the source of a type error, basically. So errors can be an issue. Some features of type systems are easy to combine with type inference, to handle with type inference, and some are harder. For instance, when it comes to genericity, so I mentioned parametric polymorphism, which is very well handled. But subtyping, the kind of thing you have in object-oriented languages, is actually harder to combine with type inference. For super technical reasons that I'm not going to go into. So sometimes you have to make a choice. either you have type inference, but it is less powerful, or you have a full type inference, but a more restrictive type system. And that choice is part of the language design, actually. You mentioning this solver kind of reminds me of the topic of formal verification. Could you explain what formal verification is? Well, the idea that for some programs, you want strong guarantees that the program is correct and guarantees that are hard to get just with testing and code reviews. There's this famous quote by Dijkstra, the Dutch computer pioneer, which goes something like, testing can only show the presence of bugs, but not their complete absence. Because in general, there's infinitely many inputs to your program and you cannot test them all. So you're only testing a sample and sometimes you have surprises. So what if you want to make sure that program is correct for an infinite number of inputs? And that's where you need to turn to those so-called formal methods. methods, so you're using mathematical reasoning, you're using static analysis algorithms on your program, to really analyze all possible executions of a piece of code and making sure that it matches a specification. The specification can be very simple, like the code will never crash, given well-formed inputs. So that's a fairly simple property, but still extremely useful because code that crashes is always code that can be attacked. It's often a security hole. So for instance, all accesses within array, all array accesses are within bounds. That's a very simple property. And it's very hard to ensure just by type system or just by testing. So that's where you need some more advanced formal verification. And then there are much more precise specifications that you may want to check that can be where the program always terminates. It can be the program doesn't leak confidential data. It can even be where the program computes this mathematical function with a floating point error and 10 to the minus 6. Okay. Something like that, something very precise like that. And so it's been a really hot topic in software sciences since the 70s, I would say. There's lots of techniques. Some are just fully automatic, like static analyses, but they're already pretty good at finding bugs and making sure that some bugs like out of bounds are not there. And some are a lot more interactive and require a lot more programmer assistance to write specifications and then do so-called program proofs. So proving mathematical statements about the program. I hear about it a lot more now, which is Lean and these theorem provers. What are those in this context and how are they used? So, yeah, so Lean is an example, an instance of the so-called approvers or proof assistants. So originally those were developed to do mathematics on the computer. So nothing with not formal verification of programs, but they can also be used for formal verification of programs. But the initial motivation was really to do mathematics with the help of the computer. where originally everyone focused on automatic theorem proving, so having the machine find proofs all by itself. But that's very, very difficult. And not necessarily what mathematicians need. And so those proof assistants are more like formal languages, like programming languages, but you can write mathematical definitions, mathematical statements, and they will help you prove. So some small proof steps they will do automatically. And for others, the user still has to guide the prover through the major steps. But the good thing is that the proof is recorded also in a format that the machine can understand and recheck. So when you complete a proof in Lean or Rock or Isabelle or one of those tools, And it is rechecked, and the computer makes sure that all inferences are justified, that you didn't forget any case, that you didn't use a conclusion as an hypothesis, or all kind of problems you can have with a pencil and paper proof. And so in the end, you get proofs that are extremely reliable, extremely credible. and it's been, so those tools have been used a little bit for some big mathematical results where the proofs are so big that they can't be done just by humans. You really need computer assistance. I think there's a recent example with a weak Goldbach conjecture. So part of the proofs involved checking a whole lot of inequalities, maybe a thousand inequalities involving several real variables and blah, blah, blah. And so computer assistance was really needed to make sure that everything was checked and there was no human mistakes left. and maybe we'll talk about generative AI later but there's also now a lot of interest in conjunction with generative AI. AI is pretty good at coming up with plausible proofs but then they have to be checked by humans unless AI writes a proof in one of those formal languages like Lean, in which case it can be checked by a machine and that's much more effective. So yeah, it's the idea of using the machine to help you write proofs and recheck proofs that you've written yourself or maybe with some help from an AI. And now those tools can also be used to prove properties about programs. And so I spent many years proving the correctness of a compiler using one of those tools, the Rack proof assistant. So basically, what I'm proving about the compiler, so it takes C code, it produces assembly code, and proving that the assembly code is phase four to the C code. So there's no miscompilation. The compiler didn't introduce a bug in the program that wasn't there originally. And it's a fairly big proof because compilers do complicated things about programs, and then you have to define exactly what it means to preserve the semantics of a program. So you have to define the semantics of your programming languages. And so it's all a very good use of those machine, of those proof assistants. The same work could be done on paper, but, I mean, this would be a proof of several thousand pages and nobody would want to read it. Nobody would trust it. It's just too big. And it would be very hard to evolve. One good thing about those mechanized verifications of programs is that it can also help you evolve the program. You can add new features and so on and adapt your proofs and be really sure that you haven't introduced a regression or things like that. So, yeah, so it's really programming taken to a higher level. and today it's quite expensive. It takes a lot more time to prove a program than to find it in the first place, but maybe this is getting a little better. Yeah, and I should also mention another great example of verified software. It's a microkernel, the SEL4 microkernel, developed in Australia, which is used as a hypervisor in some applications. And so it's really like 8,000 lines of extremely technical C code that manipulates processes and capabilities and security tokens and so on. And it's been proved correct. Every line has been proved correct. And that's a very big achievement. When you mentioned the example of verifying a mathematical proof, that makes sense to me. When you talk about proving something about a program, it's a little bit more abstract to me, or I'm having some trouble visualizing. Could you give a concrete example, like maybe some trivial program and we're trying to prove something about it and how that theorem prover would work? Let's say you have a function that takes three numbers, x, y, z, and returns the average of those numbers. Okay. Only, yeah, and maybe you're using a not completely obvious formula, like t equals x plus y, and then t equals t plus z, and then t equals t divided by three, and then return t. So not exactly the formula for the average. And you want to prove that the function is correct. So you want to prove that it returns x plus y plus z divided by three. And maybe you will have to make it clear whether you're rounding up or rounding down. If you're using integers or floating-point numbers, it's not an exact arithmetic. So yeah, you will have to say exactly what you mean by divide it by three. And then if you're in a language like C, you can have arithmetic overflows. When you compute X plus Y or plus Z, you can overflow the range of of representable integers, and in C, it's a bug. It's an undefined behavior. So typically, you will want to put a so-called precondition on your function saying, okay, if you call me, call me with numbers that are between, I don't know, zero and one million, for instance, but no bigger than that. And then the prover will check that no overflow can occur in this case. OK, and so basically you have the precondition that says, OK, these are safety guarantees that must hold of the parameters, otherwise anything can happen. And then there will be a little bit of kind of symbolic execution of the function body. It says, OK, when you do t equals x plus y, then t plus equals z, then t slash equals 3, then in the end t is x plus y plus z divided by 3, provided no overflow occurred. And then you put that with a precondition that says there cannot be any overflow, and you get your final result. Okay? So basically you're stating a contract for your function, a hypothesis on the arguments, guarantees on the results, and you want to prove or analyze the function body to show that this contract is respected. I hope it's a little more concrete. So it sounds like Lean will help you basically take in some invariance about a program and kind of propagate them through line by line and uphold them. And so you can say something about. Yes. Maybe not Lean by itself. Well, a program prover. A program prover will do exactly what you say. And for Lean to be able to do it, you still need to teach it a little bit about the semantics of your programming language. Okay. What does plus mean? What does assignment mean? Lean is mathematics. You don't assign in mathematics. You don't say x equals x plus 1, or you're just comparing x and x plus y, and it's always false. There's no assignment in mathematics. There's assignment in many programs. So you need to make it explicit that there are three different states for the t variable, three different values, and relate those values to, well, the program defines what those values are, and then a prover like Lean can reason about those three successive values, because now you're in mathematics. And that kind of bridge between programs and their mathematical meaning is called semantics, that the field of semantics of programming languages has been a big topic in peer research since the 60s at least. Am I understanding then that like a pure functional programming language, that gap between mathematics and the actual symbols is much smaller than an imperative? Absolutely. Yeah, you're absolutely right. And that's one of the reasons why people who do formal methods don't like assignment, don't like imperative features. Purely functional style is much closer to mathematical style, so much easier to reason about. There can still be a few discrepancies between the program and the math. For instance, functional programs may not terminate. They may loop forever. Mathematics doesn't like that, so you need a way to reason about termination. And also, yeah, sometimes, for instance, the arithmetic you get in the programming language is not integer arithmetic or it's not real, you know, it's floating point, it's not real, so you still have to account for that gap. But you're absolutely right that the gap is much shorter for functional programming. And in the experience of ComServe, my verified compiler, I think the first decision was to write it in a purely functional style so that it would be easier to reason about it later. You mentioned the specifications that we could prove. And one of them was proving that the program terminates. but I thought that's a famously difficult or impossible, I forgot exactly, the halting problem, right? So how is that something that you could prove? Okay, so what the computability theory says is that there is no algorithm that can always say this program terminates or this program doesn't terminate. So there will always be some very weird programs for which your analyzer, your automatic termination analyzer, will produce a wrong result or will not terminate itself. So it will not work. But still, for many programs, you can succeed. You can write automatic termination analyzers that will work for a large class of programs. And then the termination analysis, termination proof, can also be done by hand, by a mathematician. Okay, so perhaps a human can see through those weird Turing programs that are hard to prove to terminate and recognize the trick. But anyway, so yeah, it's a hard problem, and all program verification tasks are difficult problems. They are pretty much all undecidable. So you know that there is no static analyzer that will always find all problems in all programs. But still you can try. You can try for specific problems, for specific programs, and get some very useful results out of that. You only need to be able to do it for the cases that are of interest to you, the programs you really care about. OpenAI, Anthropic, Cursor, and Vercel all use this product to make their lives better. And the problem it solves is when you're building SaaS or an AI product and you want to sell to other companies, there's all these requirements you need to meet. There's SSO, there's SCIM, there's RBAC, there's audit logs. These are all things that take time to integrate, but aren't the main focus of your app. WorkOS is an API layer that lets you meet all of these requirements in just a few lines of code. So let's say you have a new SaaS product and you want to sell to other companies, WorkOS will solve all of these critical feature gaps for you. You can check them out at workos.com to learn more and get started. And I appreciate them for supporting my work and sponsoring this podcast. One thing I saw when I was researching OCaml is that in 2022, OCaml added multi-core support. But from my memory, I remember multi-core processors became standard much earlier than that. And so I figured there might be some unique engineering challenge in adding that support. So, yeah, what happened there and what made it difficult? Well, there were engineering challenges, that's for sure. There were also some language design issues. But let's talk about the engineering challenges first. So it's true that when you have a language with an runtime system, a memory allocator or garbage collector, well, at least the one for OCaml was really designed with sequential executions in mind. So if you had the shared memory concurrency, then you need a garbage collector and a memory allocator that can work concurrently, and that's actually quite difficult, at least if you want them to be fast. Of course, you could always take a look at every operation in the heap, but then you would sequentialize your programs. Basically, they would run as slowly as in a single processor. So that's not interesting. So, yeah, there were engineering challenges. and, yeah, I was at least initially quite reluctant to basically reimplement a complete garbage collector and memory allocator on large parts of the runtime system. That's what we did eventually. Well, it was done mostly by the team at OCaml Labs at Cambridge University. But, yes, it was a really big rewrite. But then I said there also a language design issue which is that for the longest time well now when you say multi processors and so on pretty much everyone and language support for multi processors everyone thinks about language support for shared memory concurrency You know, this model where you have several threads of control and they access the same memory, and basically the threads communicate by modifying the memory, and someone else is going to know this. And I've never liked this model of communication. I mean, it's a bit like if you want to communicate with your neighbor, then you break into their houses and their house and then you move the furniture around. And then when they are back, they say, oh, something was moved. So it's probably Ryan who's trying to tell us something. Maybe you could just meet your neighbors, you know. And that would be things like message passing, which is a completely different form of communication, much higher level. So, yeah, so for the longest time, I was really interested in message passing concurrency. And there's, for instance, a functional language called Erlang that was built on those ideas and that I found quite interesting. However, I never got to have a decent language design. And everyone was saying, no, but it's too costly. It's not effective. if there's too much copying of data. With shared memory, you can share some kind of huge database in memory. If you don't modify it too much, then basically the sharing, the concurrency is free. While with message passing, we'll have to exchange a lot of data to get the same effect, so you will pay more for it. Anyway, so, okay, so starting with Java, I guess, and then C, C++ 2011, there was this idea that, okay, we need to expose shared memory concurrency to the programmers. But then comes the problem of the memory model, which is that what happens when there's a race, for instance, when two sides want to access the same location, and maybe they want to modify it in different ways. And so sometimes part of the C, C++ standard says it's undefined behavior. Anything can happen. But still, you need to give a little more guarantees. At the other end of the spectrum, there's so-called sequential consistency, which says, well, what happens is like an interleaving of reads and writes of your program. You don't know which interleaving, but there is an interleaving. But that doesn't work with modern processors, multicore processors. They reorder memory accesses in very clever ways to get more performance. And so viewed from the program, It's very hard to predict what they are actually doing. And so you need to give your programmers, when you're designing a language with shared memory concurrency, you need to give your programmers some guarantees about the ordering of reads and writes, concurrent reads and writes, while not constraining the hardware too much. And it's very difficult. So Java went through like five different iterations of the memory model. Some were too strict, some were too lax, and were inconsistent, were making impossible predictions, where the past depends on the future. Crazy, really crazy stuff. Then C++11 did a little better, but still extremely complex memory model. And so when we wanted to add, especially the OCaml Labs people wanted to add shared memory concurrency to OCaml, we had to also agree on a memory model that would be exposed to the programmers. And that also took quite a bit of a design, quite a bit of time to come up with a good design. And I think it's better and easier to understand and use than the way of Java, but the OCaml memory model is still quite complicated. And sometimes I feel sorry our users are exposed to that. Okay. So that explains why it took so long. Solving the engineering challenges, but also agreeing on a memory model and what kind of guarantees we're going to give to programmers. Oh, yeah, I forgot to say one thing, which is that in C and C++, there's a lot of things you can say, oh, it's just undefined behavior, anything can happen. In type-safe languages like Java and OKML, you want to give stronger guarantees. Maybe many things can happen, but your data should remain well-typed. Typically, you don't want to expose an object to another thread before it's been fully initialized, for instance. That's actually very hard to guarantee in your memory model. Then you have to implement that memory model, So your compiler also needs to take extra precautions to guarantee this. So yeah, type safety in the presence of shared memory concurrency is not obvious at all. So that's why it took so long. So in Python, I know there's the famous GIL, the global interpreter lock. What is that lock protecting? Is it the cleanup of objects on the heap or is it something else? Among other things, yes. So yeah, we had the same thing in OKML before, before multi-core OKML was merged in. So yeah, well, basically the idea that when your runtime system is not thread safe, as we said, you can protect the non-thread safe functions by your lock so that they will never be executed concurrently. But if you take the lock at every allocation and release it, you take and release the lock for every allocation, then it's just too slow anyway. The idea is that you take the lock when you enter Python code, let's say, and you start executing Python code, but you can still release it when you do input-output, for instance, when you're going to block for a long time, or when you're calling into C code that is thread-safe and is not going to use your runtime system. Then you can release the lock, and some other Python thread can take it and execute. So you get a little bit of concurrency. You can overlap computations in your high-level language with IO, or computation is a low-level language in another language. But you still have mutual exclusion between two threads running Python or running OCaml before multicore OCaml. So you get some benefits like concurrent IO, but you don't get any parallelism. You don't get a speedup for computations. We used to have this guild in OCaml as well. You can get rid of it, but in general, you need to redesign at least the garbage collector and memory allocator. There's probably a few places in the OCaml runtime system that still use locks to ensure mutual exclusion, like in the IO subsystem. And some phases of the garbage collector, I think, are the phase which has kind of stopped the world, where you need to make sure that everyone, no camel code is running. For a short time, you need to make sure that everyone is stopped and then do a little bit of work to finish the GC, and then you can restart everyone. So yeah, these are tricky things. And I don't know what the Python people are up to with their gil, if they finally managed to remove it or they're still working on it. But I've heard they're making progress. Yeah, you mentioned Python calling into C, and I've seen that pattern before of a higher level language interfacing with a lower level one. How does that binding typically work? Oh, it's another kind of worms. Well, there are two aspects. There are the control flow and there are the data. The control part is not that hard. Yes, you need a mechanism so that your Python interpreter or your OCaml compiled code will actually jump to the C function. For OCaml, basically, you tell the OCaml compiler that this function is not implemented in OCaml. is actually implemented by the C function, and you give its name, and then the compiler will emit a call to the C function using the C calling conventions, which are not exactly the same as the OCaml calling conventions, but the compiler knows about that. And so it will call the C function, maybe through a little bit of glue code, whatever, and then the C function will execute and return back to the OCaml code. That's relatively easy. Now, the hard part is data, like function arguments and function results, because OCaml and C have different data representations. For instance, a floating point number in OCaml is generally boxed, so it's allocated in the heap and handled through a pointer. So it's more like a double star in C, and it's not a double, which is not allocated, just sits in a register. So typically, the C code needs to use a so-called foreign function interface, so some C function and macros provided by OCaml to access the OCaml data, the OCaml arguments, extract the part that it needs, the numbers. The, yeah, another example is arrays. In OCaml, when you have a two-dimensional array, it's actually an array of arrays. So view from C is an array of pointers to arrays, While in C, an array of arrays, there's no intermediate pointer. So it's not the same representation. And so you have to explain to C or give C some functions and macros to access elements in OCaml arrays. It's not exactly the same code that you would do to access a C array from C. OK, so you need access all. But now if your C code wants to return some complex results, like a list, an array, and so on, it needs to allocate it in the OKML heap. So it needs to ask the runtime system to do some heap allocation and then fill the heap blocks correctly. And then this allocation can trigger a garbage collection. So the C code must also kind of cooperate with garbage collection, with boot registration mechanisms, et cetera, et cetera. So there's quite a bit of work to be done. And then different fine function interfaces arrange this work differently. So there's a base FFI for OKML. Basically, it's a C code that must do all the work. But then it can be very fast and quite optimized. But there are other FFIs, like the C types FFI in OKML, where most of this data conversion and mediating between two data formats is automated. You start basically with a description of the C type of the C function, and you can automate some of those conversions. But sometimes it can be expensive. For instance, you may end up copying a whole array while your C code only needs to access two or three elements in it. Okay, so there's lots of trade-offs. And quite frankly, it's a dirty part of programming language implementation. The OCaml FFI is... It's not that clean, but if you look at the Java FFI, for instance, it's also quite complicated. And for Python, I've never tried, so I don't know what it looks like. But yeah, it's a necessity, but it can be quite hard because the data models are different between the two languages. So to kind of get the big picture, on the OCaml side, there's an interpreter, which is a program running an application space that is interpreting your OCaml code. And then at some point in the OCaml code, it says, load this C program. And the C program is a binary somewhere. And the OCaml interpreter then starts to load those instructions and execute them. Okay, so actually this is the third aspect that I didn't touch. So OCaml, well, there's an interpreter mode, but in general we compile. We compile to assembly code and then machine code. And so in compiled mode, what you say is how you put together the OCaml code and the C code is done by the linker, the C linker. So basically, someone else is doing that for us. And it's not that different from linking together two object files produced by C or two object files produced by OCaml. Okay. But you're right that for more interpreted languages, there's also the question of how you load the C code. In general, you use a dynamic loading interface, DLopen, for instance, in Unix. So, and then there's a little bit of introspection. So at runtime, the interpreter always queries, the C libraries, and what is the address of a function named foo? And then it will find the address and use that to manufacture a call. So yeah, if you're in an interpreted setting or bytecode compiled setting like Python, there's this additional level of complexity on top of it. on top of it. I see. I see. Okay. So if I had a mixed OCaml C program to my computer, it's just one binary or one blob. In the simplest case, yes. There are also dynamic loading facilities in OCaml, but I don't want to get into that because I'm a firm believer in static linking. I think programs should be statically linked so that there's no surprise when you run them. Like, oh, where is this DLL or DLL not found, for instance, problems. But of course, you lose a little bit in flexibility. But yeah, I think static linking is actually quite useful in that it guarantees a lot of things. it checks a lot of things at link time that you don't have to check again at one time. We mentioned earlier in the conversation talking a little bit about LLM-generated code. I thought that might be interesting to cover. And in one interview, you talked about the danger of almost correct code. So plausible code, but it's wrong that an LLM can produce. And what are your thoughts on how to address that kind of problem? it's a tough problem I mean globally I'm a little bit skeptical about General EBI of course they can do amazing things that were unthinkable like a few years ago but there's also there's always some errors okay you can't really trust what's being produced by General EBI And so, in principle, humans should be there to check the output and fix errors or ask the LLM to fix its own errors until the result is actually usable. But, of course, it's very hard because there's a slope problem. AI is produced so much. It's so easy to produce large quantities of text, of code, pictures, whatever, that in the end, there's no human time to check it all. Recently, I heard someone working in an AI startup who was enthusiastic about AI-generated code, saying that thanks to generative AI, the cost of programming is dropping to zero. Well, the cost of writing code, maybe, but what about checking it, making sure it is correct, that it does what we want? Well, that cost is not zero at all. And for me, every new line of code is a liability. You have to test it. You have to check it. Maybe you have to do formal verification. You have to evolve it, maintain it later. So, no, I don't want huge amounts of code. I want 50 lines of code that have been thought, that have been polished over the years. So, anyway, I'm not getting that with AI. And I think that's a problem. And this idea that humans will be there to check the output of general AI is just wrong. No, they are not available for that. There's too much of it, and it's not present either. I mean, I don't think it's a good way to split the work between machines and humans. so anyway so maybe there will be some societal solution like a big no to AI slop movement so we're trying to see that in some open source projects that refuse and generate contributions because there's just too many I know that well for OCaml and especially for ComCert have received some issues report of issues that were obviously generated by AI, and there was maybe one good issue among 10 reports, okay? And each report was several pages long with very detailed explanations and a repro case that in the end doesn't repro anything or reproduces something else. But it takes time to go through all those things, and maybe at some point I will say no to AI-generated contributions. Okay, but maybe there's also a bit of a technical solution, which is, as we said earlier, to have AI produce proofs. So evidence that its creation is correct. So as I said, this is starting to work for mathematical proofs. Some general AIs are able to produce proofs both in English and in the formal language of the lean prover, for instance. for instance, and so you can get a link to recheck the proof and get some confidence. You still need to be very careful about the statement, because sometimes AIs will change the statement or the definitions to make the proof easier. That happens. And also you should be careful about so-called self-formalizations, where the AI also comes up with some definitions and some statements by parsing a PDF file or whatever. And sometimes it introduces errors at that point. So anyway, there's still a need for human review, but on smaller quantities of text and mathematical text. And maybe one day it will also work for program proof. So when an AI generates a program, it might be able to generate some lean proof or whatever that the program satisfies some specification. So I think it is possible But now the question will be where does the specification come from It always been a big issue for formal methods It's not just that verification is hard, but agreeing on the spec can be difficult too. And mathematicians have a lot of experience in stating, finding definitions that they find interesting, and stating theorems that they believe should be true or that will mean something. Computer programmers are less good with that, and it's fairly easy to come up with specifications that are inconsistent or impossible. So remember this average function, there was a precondition of the three numbers, three arguments, saying they must not be too big. But say, maybe you can end up with a precondition that just cannot be satisfied. And at this point, the body of the function will always be verified, okay, even if it's completely wrong because the assumption says, basically, this function cannot be called. And so you get a false sense of confidence. You've verified something, but it's actually unusable. And that's a fairly delicate point where I'm not sure LLMs are going to, or AI is going to help much, but it's a problem with formal methods in general. And some possibilities include the ability to test specifications, for instance. So instead of using your test suite to see if your code works out, you can also use it to see if your spec checks out. Those kind of things. But yeah, we're kind of moving some of the difficulties from the programming phase to the specification phase. But we still have some problems. anyway so that might be a way to to deal with the um uh air generated code and and and develop some confidence in it you know llm generated code is becoming extremely popular and i think there's a lot of potential downstream consequences on this on the programming language uh landscape and i thought it might be interesting to hear your thoughts on speculating like imagine 10 years for now, if you took LLM-generated code and turned it up, how might you think that the programming language landscape might change? Yeah, a couple of years ago, someone asked me about that. And there was a concern that the training data would be, there wouldn't be enough training data in OCaml for an LLM to really learn how to program in OCaml. and it's true that there's less OCaml code in the world than JavaScript code, for instance. But apparently, contemporary LLMs do well with the amount of OCaml code they have. Maybe because there's enough, maybe because learning has become a little more efficient, maybe because there's less OCaml code than JavaScript code, but maybe the OCaml code is better quality on an average. I don't know. Anyway, maybe LLMs are getting better also to transfer knowledge that they've learned from one language to another. That could be. I have no idea how those things work. But yeah, so the latest feedback I've got about LLMs and generative AI and OCaml is that the OCaml code generated is quite decent and quite similar in quality to more popular languages. And one thing that seems to help the generative AI is the type system. So the fact that there's some static checking just of the type, it's already effective in, you know, avoiding some errors and maybe encouraging the LLM to declare types first. So give some type structure to the program. All right. And now, 10 years from now, it's difficult to guess. So will it be the more popular languages of today that will be even more popular because of generated AI? Will it be the safer languages of today that will be more popular with AI because there are fewer errors in the end. I'm hoping it will be the safer languages, but I really don't know. I've seen in the industry, there's a few cases where, because it's so easy to generate code, massive rewrites are something that would have been very infeasible in the past are very realizable now. So if there's an existing project where they chose a programming language for whatever reason in the past, they could translate the entire thing into another language with reasonable confidence. Given that kind of environment, which programming languages would you expect more people would switch to? Because they want to switch to it, but they weren't able to in the past, but now it's cheaper, so they can. Well, so today, I've heard mostly about C and C++ to Rust translations, hoping that the generated Rust code will be safer. As I said, I've seen at least one project when the generated Rust code is entirely in unsafe blocks. So it's really kind of line by line translation of the C code, you know. But maybe it can still be used at a starting point for making it safer later. So yeah, I would say today I can imagine significant efforts being done with Rust as the target language. In the functional world, I'm not quite sure. Well, maybe a functional language to one of those proof assistants, like Lean or Rock, because they also have functional programming languages in them, much more restricted, but much more amenable to proofs. So maybe for a few projects that could be interesting, again, as a first step towards a formal proof, as we said earlier. When you compare industry versus academia today, where would you say most of the innovation and programming languages comes from? And also, has that changed over time? Okay, well, I think most of the innovations have come from industry lately. And that wasn't the case in the early days of computer science. if you think of the truly innovative languages like Algol, Lisp Prolog Smalltalk were developed in mostly academic settings Smalltalk was Xerox Spark which was an industrial research lab but very far away from industrial customers and then there were much more practical languages and uglier languages developed typically at IBM, like Fortran, COBOL, PL1, etc. And then, so really the idea that the nice ideas come from academia and mature there. And then, well, the nice ideas from academia started to be transferred by industry much more quickly. I'm thinking of C and especially C++ and then Java, which really took ideas like object orientation and garbage collection, automatic memory management in industry. Before Java, it was just crazy academics in the ivory tower that were using garbage collected languages. sites. It was completely impossible to have that in enterprise computing. And Java came and two years later, everyone was doing garbage collection and being very happy about it. And there were, well, Java also popularized type safety, bytecode verification, some pretty advanced techniques of the 90s. And if you look at further developments, I don't know, Swift, for instance, popularized the idea of algebraic data types and pattern matching, and then Rust. Well, Rust is even more spectacular, I would say, because algebraic data types, garbage collections, etc. Those were already present in academic languages, like, well, CAMEL, for instance. But Rust really took very recent research results of the 2000s on SafeFlow level programming that were basically never implemented in any language and managed to do a consistent whole from that. And so I'm really admirative. And I have the impression that, well, I would have loved if Rust came out of academia, but I'm not sure it would have been possible because it's also a huge effort and you really need the backing of a big company. But still, I'm not sad because I think it's also a very good sign that industry is interested in new programming languages. You know, at some point in the 90s, well, pretty much when I was hired at Inria on a research position, when I was hired as someone who had developed first versions of OCaml, well, predecessor of OCaml and who was working on type systems or programming languages and so on. But then some people told me, but there's no future in programming language research. Industry has decided it will be C++ forever. So deal with it. Maybe you could do software engineering and not PL research. And then Java came a few years later and showing that no, industry hasn't decided on a particular programming language. industry is still interested in new programming languages. Industry still thinks that a new programming language can be part of the solution to software problems. And I find it extremely encouraging. We are not stuck with bad languages from the past. Well, there's a lot of legacy code, of course, but there's still real interest for better languages, and I think this will continue and I think it's good for the computing field. In 2018, there was an interview that you did, and they asked you what are the most interesting and important problems to focus on in the coming years. And you called out the difficulty of programming, you know, GPUs, because they were using dialects of C, shoddy tools, and also the challenges in verifying machine learned code, basically. And that sounds pretty relevant today, but what would you say your answer is today? So, yeah, I think for the question of how we program massively parallel hardware, I think we've made a little bit of progress recently with things like the MLIR initiative on LLVM or some domain-specific languages like Allied, which are pretty good. You know, those terms or domain-specific languages for tens for computations are getting a little better. but still I find it a little bit frustrating that I cannot do I don't know, say I'm proving on a GPU I have absolutely no idea how to go about that and in part by lack of an appropriate language so I'm not ready to program the GPU pipelines at a very low level myself and I think it's more general I think we are not using all these GPU and other highly parallel hardware as much as we could. Yeah, so verifying applications that have been learned or generated by AI or so on is still a pretty hot issue. Back in 2018, I was more thinking of verifying simple neural networks, like those used for, I don't know, computer vision, self-driving cars, or some numerical computations like weather prediction and so on. So specialized LLMs, but you still want some guarantees about what they produce, that they cannot produce completely inconsistent outputs, for instance. There were some attempts in the last years at using static analysis tools and basically program verification tools applied to LLMs, but, well, it doesn't scale. LLMs are big. Sorry, neural networks are big. And for LLMs, they're also a distinct lack of specification. Okay, you don't really know what's a good answer from an LLM. Well, you know it when you see it, but you can advise the mathematical specification of it. So that part is probably over. What I would say are the big problems for today, probably maintaining software quality despite AI slope, despite a lot of pressure to throw away traditional software development techniques. Using LLMs and AI as much as we can to do mechanized proofs, so proofs that can be checked by machines. Maybe this will be the decade of formal verification of software. We've been waiting for that for 50 years. Maybe it will finally take off. What's your top book recommendation for software engineers and why? This is an old one, Programming Perth by Bentley. I think I read it when I was a PhD student. But I think it's nice showing how very talented programmers work. how they think about their programs. It's a combination of choosing the right algorithms, expressing them clearly, knowing when to stop, when to use a simple algorithm when a more complicated one is not needed, having a sense of elegance in the code you write, having a feeling for where the problem is when the code misbehaves. So all those kind of things that are hard to communicate, and I think those pearls that are very easy to read and don't use any complicated data structures, don't use any complicated language, I mean, it's kind of timeless, you know. I think those pearls are a good illustration of that. So if you haven't read it, it's a classic, but I think it's a nice reading. Nice read. The second one is a little more controversial, I guess. So in the How to Design Program, which is a fairly ambitious title as well. And this comes from the scheme community. Okay, Fenizen, Findler, Flat, and Krishnamurthy. And those people have developed, well, the scheme community is famous for having developed pedagogical resources. that are, I mean, ways to teach programming that go beyond teaching functional programming, basically. And so there was the MIT course, Structural Interpretation of Computer Programs, which was quite famous. And this is kind of a more modern twist on similar ideas. And I find this book interesting because, well, It really teaches you the way of functional programming, or a way to functional programming. It can be very irritating sometimes, very opinionated, almost mystical sometimes, but it's also another great attempt at trying to communicate how experienced programmers go about designing a program even before writing the first line. And then how, given a language like skiing, which is pretty flexible, how the code kind of follows naturally. Knowing what you know now, if you could go back to when you just started your career and give yourself some advice, what would you say? Sometimes I regard that maybe I specialized a little too early in programming language research. Or maybe, well, there are some topics that I didn't learn because I didn't feel like it. And that I had to relearn later, or I still have to learn now that I'm almost 60. and maybe not as quick as I was back in the day. So yeah, maybe I did specialize a little too early, and so I would encourage everyone who's serious about working in computing to get a fairly diverse computer science background, even for topics that look super theoretical and not very relevant to everyday jobs. Well, we mentioned computability, for instance, things like the halting problem and so on. You're not going to run into that very often, but it still gives interesting perspectives, I think. and then it also helps understanding new problems like with quantum computing what can you do with a quantum computer that you cannot do with a normal computer and it's time to revisit all of the classic complexity theory I learned earlier when I was young and so yeah I think it's good to have this kind of background even if it's not obvious you will be using it every day. And sometimes I wish I had taken time to accumulate a little more of this background before specializing in programming languages. Awesome. Well, thank you so much for your time, Professor Liwar. I appreciate it. Thank you, Arian. That was nice. Hey, thank you for watching this podcast. If you liked it and you want to see the show grow, please support with a comment or a like. also if you have any recommendations for people you want me to bring on please drop a comment guests like barbara liskov mike stonebreaker mark brooker these were all people that i brought on because someone left a comment on another note aside from the podcast i'm working on building the ergonomic keyboard that i wish existed here's a glance at the prototype it's a split keyboard so there's two sides this is in the case but yeah we launched on kickstarter and we hit our goal within eight hours of launching. I really appreciate it if you were one of the people who grabbed one of the early units. We're now working on the long journey of building the tooling now. And so if you still want to pick one up, I've left the late pledges open on Kickstarter. So you can grab one there. I'll put a link in the description. Thank you again for watching the podcast and I'll see you in the next episode.