Hi all! Liquidsoap 2.0.7 and 2.1.0 are out now! [image: :tada:]Liquidsoap 2.0.7 is the seventh bugfix release of the 2.0.x release branch of liquidsoap. We promised to only release new versions for this branch for important bug fixes and found two:
- A memory leak with the opus headers. Technically this is a bug in ocaml-opus but we also had to release new binary assets. - An inefficient initialization of decoding buffer and samplerate converters This release addresses those issues as well as a minor one with initial shoutcast/icecast metadata. It is intended as the last versioned released with potential follow-up being pushed as rolling releases on a best-effort basis.Liquidsoap 2.1.0 is the first release of the 2.1.x release branch!This version comes with some major improvements and breaking changes. As usual, you can get a (mostly) complete list in the migration page <https://www.liquidsoap.info/doc-dev/migrating.html> In particular, the following changes are noticeable:*JSON parsing is greatly improved*You should now be able to do: let json.parse ({ foo, bla, gni } : { foo: string, bla: float, gni: bool }) = '{ "foo": "aabbcc", "bla": 3.14, "gni": true }' For any one who has ever tried to parse json in their liquidsoap scripts, this is gonna be a game changer. We have a detailed article here <https://www.liquidsoap.info/doc-dev/json.html>*Partial function application has been removed*This is not so much an improvement but something we thought was an acceptable trade-off. Support for partial application is creating a lot of complexity in the language's implementation and not a lot of users are actively using it. This change means that instead of doing: def f(x, y) = ... end g = f(0) You will now have to do: def f(x, y) = ... end def g(y) = f(0, y) end *Regular expressions are now first-class entities*This should be familiar to anyone used to working with Javascript's regular expressions. So, now, instead of doing: string.match(pattern="\\d+", s) You will now do: r/\d+/.test(s) There's a detailed description of this new feature here <https://www.liquidsoap.info/doc-dev/language.html#regular_expressions>. Happy liquidsoap hacking! -- Romain
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users