{"path": "/vrn/", "title": "The Verona language · Bruno Dias", "html": "<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <meta name=\"description\" content=\"A statically typed systems language with S-expressions, native compilation, and explicit C interoperability.\">\n  <title>The Verona language · Bruno Dias</title>\n\n  <link rel=\"icon\" href=\"/assets/site/signature.svg\" type=\"image/svg+xml\">\n  <link rel=\"alternate\" type=\"application/atom+xml\" title=\"diasbruno\" href=\"/atom.xml\">\n  <link rel=\"alternate\" type=\"application/json\" href=\"/vrn/content.json\">\n  <link rel=\"stylesheet\" href=\"/assets/site/tokens.css\">\n  <link rel=\"stylesheet\" href=\"/assets/site/site.css\">\n  <link rel=\"stylesheet\" href=\"/assets/site/footer.css\">\n\n</head>\n<body class=\"dark\">\n<div id=\"site-page\">\n<a class=\"skip-link\" href=\"#content\">Skip to content</a>\n<header class=\"site-header\">\n  <a class=\"brand\" href=\"/\" data-site-navigation aria-label=\"Bruno Dias, home\">\n    <img src=\"/assets/site/signature.svg\" width=\"24\" height=\"34\" alt=\"\">\n  </a>\n  <nav aria-label=\"Main navigation\">\n    <ul>\n<li><a class=\"nav-vrn\" href=\"/vrn/\" data-site-navigation aria-current=\"page\"><span class=\"nav-label\">vrn</span> <span class=\"nav-badge\">research</span></a></li>\n<li><a class=\"nav-posts\" href=\"/posts/\" data-site-navigation>Posts</a></li>\n<li><a class=\"nav-projects\" href=\"/projects/\" data-site-navigation>Projects</a></li>\n<li><a class=\"nav-about\" href=\"/about/\" data-site-navigation>About</a></li>\n</ul>\n  </nav>\n</header>\n\n<main class=\"section vrn-page\" id=\"content\" tabindex=\"-1\">\n  <header class=\"section-header vrn-header\">\n    <h1>Verona</h1>\n    <p>A statically typed systems language with S-expressions, native compilation, and explicit C interoperability.</p>\n  </header>\n  <div class=\"post-columns\">\n    <section class=\"post-body\" aria-label=\"Verona language notes\">\n<blockquote class=\"research-warning\">\n  <p><strong>Warning</strong></p>\n  <p>Verona is still in research.</p>\n</blockquote>\n<h2>A small program</h2>\n<p>Verona writes types alongside parameter names. This example defines a function over two 32-bit integers, then uses it from the program’s entry point.</p>\n<pre><code class=\"language-lisp\">(import base)\n\n(base:function total\n  ((quantity i32) (unit-price i32))\n  i32\n  (* quantity unit-price))\n\n(base:function main () exit-code\n  (total 3 7))\n</code></pre>\n<p>The program exits with status 21.</p>\n<h2>From source to native code</h2>\n<p>The compiler can check a program with <code>verona check</code> before you build a native executable with <code>verona compile</code>. Verona uses LLVM for native code generation. It can also produce libraries for use from C.</p>\n<p>S-expressions let macros work directly with the structure of a program. The compiler carries source locations through code generation so diagnostics can point back to the original forms.</p>\n\n    </section>\n    <aside class=\"post-links\" aria-labelledby=\"vrn-links-heading\">\n      <h2 id=\"vrn-links-heading\">Links</h2>\n      <ul>\n<li><a href=\"https://verona-project.github.io/\">Official site</a></li>\n<li><a href=\"https://github.com/verona-project/verona\">Repository</a></li>\n<li><a href=\"https://github.com/verona-project/verona/blob/HEAD/docs/command-line.org\">Command-line reference</a></li>\n<li><a href=\"/projects/verona/\" data-site-navigation>Verona project page</a></li>\n      </ul>\n    </aside>\n  </div>\n</main>\n\n<footer class=\"site-footer\">\n  <div class=\"site-footer-inner\">\n    <a class=\"site-footer-home\" href=\"/\" data-site-navigation>Bruno Dias</a>\n    <ul aria-label=\"Footer links\">\n      <li><a href=\"https://github.com/diasbruno\">GitHub</a></li>\n      <li><a href=\"/atom.xml\">Atom feed</a></li>\n    </ul>\n  </div>\n</footer>\n\n</div>\n<script type=\"module\" src=\"/assets/site/navigation.js\"></script>\n</body>\n</html>\n"}
