The Perl and Raku Conference 2023 in Toronto
Attending this event?
Back To Schedule
Tuesday, July 11 • 2:00pm - 2:50pm
Lingy & YAMLScript — News Ways to Program Perl

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Lingy brings to Perl what Clojure did for Java. Immutable data, functional programming, simple concurrency and the genius of Lisp.

In this talk, Ingy döt Net (inventor of the YAML data language) will teach you how to program in Perl using Lingy, a new hosted programming language that is a Perl implementation of Clojure (a Lisp hosted by Java and the JVM). "Hosted" means that Lingy can use Perl modules, and normal Perl code can use modules written in Lingy.

Clojure was designed to make Java programming not suck. It's a Lisp dialect that feels as dynamic as Perl, but JIT compiles to JVM bytecode, making it very performant. It's a very practical language that is both ways compatible with anything written in Java. Among other things, it supports functional programming and makes concurrent programming simple.

Lingy attempts to do the same things for Perl. It feels dynamic but it JIT compiles to bytecode. This means you can very easily write "XS speed" programs and modules that use CPAN modules in Lingy. You can also publish Lingy modules to CPAN as easily as pure Perl ones.

If writing code in Lisp isn't your style, you'll also learn about YAMLScript, a new programming language that is really just an alternate syntax transpiled to Lingy. This is not just Lingy expressions expressed in YAML. YAMLScript programs are indeed valid YAML, but in a style that looks and feels more like Perl or Python imperative ones. This means you can do real programming in YAML. Yes, you can write a YAML parser in YAML!

You'll also learn how to write Perl tests in YAML with YAMLTest. They work just like Perl .t files and can be run with prove or yath.

avatar for Ingy döt؜؜ Net­

Ingy döt؜؜ Net­

Enigmatic Acmeist
Ingy döt Net likes to write code that writes code in all programming languages.Ingy likes to hack, hang and drink beer with people of all programming communities.Ingy considers the Perl community his family.https://metacpan.org/author/INGYhttps://github.com/ingydotnet/http://ing... Read More →

Tuesday July 11, 2023 2:00pm - 2:50pm EDT
Track 1