• chevron_right

      Erlang Solutions: What is Elixir?

      news.movim.eu / PlanetJabber · Thursday, 22 February - 08:58 · 9 minutes

    What is Elixir: Exploring its Functional Programming Essence

    In our latest post, we’ll be exploring Elixir, a robust programming language known for its concurrency and fault-tolerance capabilities. We’ll look at some of Elixir’s syntax, and core features, as well as the Elixir community some resources for beginners and enthusiasts alike.

    The birth of Elixir

    As the brainchild of José Valim, Elixir is rooted in Valim’s experiences with Ruby on Rails and Erlang. Elixir aimed to tackle the challenges of building scalable and fault-tolerant applications.

    Harnessing the power of the Erlang Virtual Machine (VM), Elixir inherits its renowned traits of low latency, distributed computing, and fault tolerance. This foundation empowers developers to create robust systems capable of handling demanding workloads across diverse industries.

    Erlang VM and Virtual Machine Process

    Elixir’s versatility extends far beyond its roots. With its powerful tooling and ecosystem, Elixir facilitates productivity in various domains, including web development, embedded software, machine learning, data pipelines, and multimedia processing. Its flexibility and efficiency make it an ideal choice for tackling an array of challenges in today’s tech landscape.

    Elixir and Erlang: A powerful duo

    Elixir, a robust programming language, collaborates closely with Erlang, renowned for building fault-tolerant and distributed systems. Developed by Ericsson in the late 1980s, Erlang initially targeted telecommunications applications, prioritising reliability and uninterrupted service.

    A key element driving the synergy between Elixir and Erlang is the BEAM, a virtual environment proficient in executing code written in both languages. Elixir, uniquely, is constructed directly atop the BEAM, inheriting its capacity for highly concurrent and fault-tolerant runtime operations. This integration fosters seamless interoperability between Elixir and Erlang applications, ensuring optimal performance and reliability

    Elixir on BEAM

    Elixir benefits significantly from Erlang’s robust framework, leveraging its scalability, fault tolerance, and distributed processing capabilities. This makes Elixir a preferred choice in industries where system uptime is paramount. Additionally, Elixir developers gain access to Erlang’s established ecosystem and libraries, simplifying the development of resilient and scalable systems.

    It also introduces contemporary syntax and language features, enhancing developer productivity and code expressiveness. This modernisation, combined with Erlang’s robust runtime, empowers developers to navigate the complexities of today’s software landscape confidently, delivering efficient and reliable solutions.

    Furthermore, Elixir introduces contemporary syntax and language features, enhancing developer productivity and code expressiveness. This modernisation, combined with Erlang’s robust runtime, empowers developers to navigate today’s complex software landscape with confidence, delivering efficient and reliable solutions.

    Elixir and Erlang are a formidable duo, Complementing each other’s strengths to empower developers in crafting dependable, scalable, and fault-tolerant systems with ease and effectiveness.

    Elixir’s syntax and language features

    Elixir boasts a clean and expressive syntax inspired by Ruby, with a focus on developer productivity and readability. Its language features are designed to promote conciseness and clarity, making it an ideal choice for both beginners and experienced developers alike.

    • Concurrency with Erlang processes: Elixir utilises lightweight Erlang processes for concurrency. These processes communicate via message passing, facilitating highly concurrent and fault-tolerant systems.
    • Immutable data: Elixir promotes immutability, ensuring that once data is created, it cannot be changed. This simplifies code reasoning and mitigates unexpected side effects.
    • Pattern matching : A core feature, pattern matching allows developers to destructure data and match it against predefined patterns, leading to concise and elegant code.
    • Functions as first-class entities: Functions can be assigned to variables, passed as arguments, and returned from other functions, enabling powerful abstractions and composition.
    • Metaprogramming with macros: Elixir offers metaprogramming capabilities through macros, empowering developers to generate and manipulate code at compile time. This facilitates the creation of domain-specific languages and powerful abstractions.
    • Fault Tolerance via Supervision Trees: Elixir adopts Erlang’s “let it crash” philosophy, isolating processes and containing failures. Supervision trees structure and manage process supervision, ensuring robust fault tolerance.
    • OTP for scalability and reliability: Elixir includes OTP, providing libraries and best practices for building scalable, fault-tolerant, and distributed systems. OTP features such as gen_servers and supervisors enhance system reliability.
    • Comprehensive tooling and documentation: Elixir offers a rich set of tools for development, testing, and deployment. Mix, the build tool, manages dependencies and runs tests, while ExDoc simplifies documentation creation and maintenance.

    Understanding functional programming in Elixir

    In Elixir, functional programming prioritises pure functions, immutable data, and higher-order functions. It encourages writing code clearly and expressively, treating functions as primary elements that can be passed as arguments or returned as results.

    Elixir’s functional programming paradigm supports the development of robust, scalable, and fault-tolerant systems, which makes it an excellent option for creating distributed and concurrent applications.

    Robustness :

    • Elixir’s functional approach reduces bugs and promotes code clarity.
    • Problems are solved in smaller, testable units.

    Scalability:

    • Elixir’s lightweight processes enable easy concurrency.
    • Systems can scale across multiple cores or nodes effortlessly.

    Fault Tolerance:

    • Elixir’s supervision tree ensures system resilience.
    • Failures are isolated and managed, keeping the system running.

    Concurrency:

    • Elixir’s processes communicate asynchronously.
    • Concurrent operations are efficient and responsive.

    Distribution:

    • Elixir applications can easily scale across multiple nodes.
    • Distributed computing is simplified, enabling high availability.

    Practical applications of Elixir

    Elixir’s versatility and robust features make it a powerful language for developing a wide range of applications across different domains. From web development to distributed systems and embedded devices, Elixir’s concurrency, fault tolerance, and scalability enable developers to build resilient and efficient solutions. Here are some practical applications where Elixir shines:

    Web development with Phoenix Framework

    Phoenix, Elixir’s web framework, offers high-performance solutions for modern web apps. Leveraging Elixir’s concurrency and fault tolerance, Phoenix scales effortlessly to handle concurrent connections and real-time features.

    Elixir Phoenix

    Distributed systems and microservices

    Elixir’s lightweight processes and distribution support make it ideal for distributed systems and microservices. Its fault-tolerant supervision trees ensure system reliability and scalability across multiple nodes.

    Embedded systems and IoT

    Elixir’s small footprint and low-latency performance suit embedded systems and IoT. With Nerves, developers can deploy Elixir to devices like Raspberry Pi, ensuring fault tolerance and resilience.

    Real-time messaging and chat applications

    Elixir’s concurrency and real-time support make it perfect for messaging apps. Libraries like Phoenix Channels enable scalable and fault-tolerant chat systems, handling numerous concurrent users seamlessly.

    Financial and e-commerce systems

    Elixir’s reliability and scalability are beneficial for financial and e-commerce platforms. Its fault-tolerant supervision ensures uninterrupted processing of transactions. Frameworks like Broadway facilitate scalable data processing for large transaction volumes.

    What is Elixir used for: Real-world examples

    Elixir, with its powerful features and versatile ecosystem, finds applications in a host of real-world scenarios across different industries:

    Discord: Community-driven communication

    Discord, serving over 150 million monthly active users, relies on Elixir for seamless voice and text chat experiences in gaming and educational communities.

    Pinterest: Scalable backend services

    Pinterest, with over 450 million monthly active users, employs Elixir for its backend services, handling millions of user interactions and content updates daily.

    Deliveroo: Reliable food delivery services

    Deliveroo, operating in over 800 cities globally, employs Elixir for its backend systems, ensuring reliable food delivery services for millions of customers worldwide.

    Bleacher Report: Real-time sports updates

    Bleacher Report delivers real-time sports updates and news to over 40 million monthly active users, leveraging Elixir for efficient data processing and content delivery.

    PepsiCo: Supply chain optimisation

    PepsiCo, one of the world’s largest food and beverage companies, uses Elixir to optimise its supply chain operations, ensuring efficient distribution of products across its global network.

    Scalable web applications with Elixir

    When you’re making mobile or web apps, scalability is key. If your app can’t handle more users, you might lose them. Plus, you could miss out on chances for growth.

    Scalability also matters financially. If your app can’t grow smoothly, you’ll end up spending more on infrastructure. That’s where Elixir comes in. It’s a powerful language for building apps that can handle lots of users. Elixir is used in different areas such as gaming and e-commerce.

    It’s like combining the best of OCaml and Haskel languages. With strong tools and a helpful community, Elixir is perfect for making apps that can grow with businesses.

    Elixir’s ecosystem and community

    Elixir’s success isn’t just attributed to its language features, but also to its vibrant ecosystem and supportive community. With a growing collection of libraries, tools, and resources, Elixir’s ecosystem continues to expand, making it easier for developers to build and maintain Elixir applications.

    Tools and libraries enhancing Elixir development

    Elixir boasts a rich ecosystem of libraries and tools that cover a wide range of functionalities, from web development and database integration to concurrency and distributed computing. The Phoenix web framework, for instance, provides a robust foundation for building scalable and real-time web applications, while Ecto offers a powerful database abstraction layer for interacting with databases in Elixir applications. Other notable libraries include Broadway for building concurrent and fault-tolerant data processing pipelines, and Nerves for developing embedded systems and IoT applications.

    The growing community and learning resources

    One of Elixir’s greatest strengths is its supportive and inclusive community. From online forums and chat rooms to local meetups and conferences, Elixir enthusiasts have numerous avenues to connect, learn, and collaborate with fellow developers.
    The Elixir Forum and the Elixir Slack community are popular online hubs where developers can seek help, share knowledge, and discuss best practices.

    Additionally, ElixirConf, the annual conference dedicated to Elixir and Erlang, provides a platform for developers to network, attend talks and workshops, and stay up-to-date with the latest developments in the Elixir ecosystem.

    Conclusion

    Elixir’s unique blend of concurrency, fault tolerance, and scalability makes it a powerful language for modern application development. Its clean syntax and functional programming principles enhance developer productivity and code maintainability.

    Looking ahead, Elixir’s future in software development is promising. With the growing demand for distributed systems and data-intensive applications, Elixir’s strengths position it well for continued growth and innovation.

    Supported by an active community and ongoing contributions, Elixir is set to play a significant role in shaping the future of software development. Whether you’re a seasoned developer or new to Elixir, its potential is boundless in the dynamic landscape of software engineering.

    Further reading and resources

    Books on Elixir

    • Programming Elixir” by Dave Thomas : This book offers a comprehensive introduction to Elixir, covering its syntax, features, and best practices for building robust applications.
    • “Elixir in Action” by Saša Jurić: A practical guide to Elixir programming, covering topics such as concurrency, distributed computing, and building scalable applications.
    • “The Little Elixir & OTP Guidebook” by Benjamin Tan Wei Hao: This book provides a gentle introduction to Elixir’s concurrency model and the OTP framework, essential for building fault-tolerant and distributed systems.

    Online Tutorials on Elixir

    • Elixir School: A free online resource offering interactive lessons and tutorials on Elixir programming, suitable for beginners and experienced developers alike.

    The Complete Elixir and Phoenix Bootcamp

    Master Functional Programming techniques with Elixir and Phoenix while learning to build compelling web applications!

    Community forums and support for Elixir learners

    • Elixir Forum : A vibrant online community for Elixir enthusiasts to ask questions, share knowledge, and discuss topics related to Elixir programming and ecosystem.
    • Elixir Slack Community: (https://elixir-slackin.herokuapp.com/): Join the Elixir Slack community to connect with fellow developers, ask for help, and engage in discussions on all things Elixir.
    • Reddit r/elixir: The Elixir subreddit is a place to share news, articles, and questions about the Elixir programming language and ecosystem.

    These resources provide a solid foundation for learning the Elixir programming language and engaging with the vibrant Elixir community. Whether you’re just starting your journey with Elixir or looking to deepen your knowledge, these books, tutorials, and forums offer valuable insights and support along the way.

    The post What is Elixir? appeared first on Erlang Solutions .

    • chevron_right

      JMP: Newsletter: JMP is 7 years old — thanks to our awesome community!

      news.movim.eu / PlanetJabber · Friday, 16 February - 02:51 · 2 minutes

    Hi everyone!

    Welcome to the latest edition of your pseudo-monthly JMP update!

    In case it’s been a while since you checked out JMP, here’s a refresher: JMP lets you send and receive text and picture messages (and calls) through a real phone number right from your computer, tablet, phone, or anything else that has a Jabber client. Among other things, JMP has these features: Your phone number on every device; Multiple phone numbers, one app; Free as in Freedom; Share one number with multiple people.

    Today JMP is 7 years old! We launched on this day in 2017 and a lot has changed since then. In addition to what we talked about in past years (see https://blog.jmp.chat/b/february-newsletter-2022 and https://blog.jmp.chat/b/february-newsletter-2023 for example), in the last year we’ve brought JMP out of beta, launched a data plan, and have continued to grow our huge community of people (channel participants, JMP customers, and many more) excited about communication freedom. So, in light of some vibes from yesterday’s “celebration” in some countries, we’d like to take this opportunity to say: Thank you to everyone involved in JMP, however that may be! You are part of something big and getting bigger! Communication freedom knows no bounds, technically, socially, or geographically. And you make that happen!

    Along with this huge community growing, we’ve been growing JMP’s staff as well — we’re now up to 5 employees working hard to build and maintain the foundations of communication freedom every day. We look forward to continuing this growth, in a strong and sustainable way, for years to come.

    Lastly, while dates have not been announced yet, we’re excited to say we’ll be back at FOSSY in Portland, Oregon, this year! FOSSY is expected to happen in July and, if last year is any indication, it will be a blast. We’d love to see some of you there!

    Thanks again to everyone for helping us get to where we are today. We’re super grateful for all your support!

    As always, we’re very open to feedback and would love to hear from you if you have any comments, questions, or otherwise. Feel free to reply (if you got this by email), comment, or find us on any of the following:

    Thanks for reading and have a wonderful rest of your week!

    • wifi_tethering open_in_new

      This post is public

      blog.jmp.chat /b/february-newsletter-2024

    • chevron_right

      Erlang Solutions: Why Elixir is the Programming Language You Should Learn in 2024

      news.movim.eu / PlanetJabber · Wednesday, 14 February - 15:25 · 5 minutes

    In this article, we’ll explain why learning Elixir is an ideal way to advance your growth as a developer in 2024. What factors should you consider when deciding to learn a new programming language?

    Well, it typically depends on your project or career goals. Ideally, you’d want a language that:

    • Is enjoyable and straightforward to use
    • Can meet the needs of modern users
    • Can offer promising career prospects
    • Has an active and supportive community
    • Provides a range of useful tools
    • Supports full-stack development through frameworks
    • Offers easily accessible documentation
    • Helps you grow as a programmer

    This article will explore how Elixir stacks up against these criteria.

    Elixir is fun and easy to use

    Elixir is fun and very user-friendly, which is an important long-term consideration. Its syntax bears a striking resemblance to Ruby. It’s clean and intuitive, making coding simple.

    When it comes to concepts like pattern matching and immutable data, they become your trusted allies and simplify your work. You’re also surrounded by a supportive and vibrant community, so you’re never alone in your journey. Whether you’re building web apps, handling real-time tasks, or just experimenting, Elixir makes programming enjoyable and straightforward, without any unnecessary complexity.

    How Elixir can meet modern usage demands

    Elixir’s strength in handling massive spikes in user traffic is unparalleled, thanks to its foundation on the BEAM VM, designed explicitly for concurrency.

    BEAM Scheduler

    While digital transformation brings about increased pressure on systems to accommodate billions of concurrent users, Elixir stands out as a reliable solution. For those curious about concurrency and its workings, our blog compares the JVM and BEAM VM, offering insightful explanations.

    Major players like Pinterest and Bleacher Report have recognised the scalability benefits of Elixir, with Bleacher Report , for instance, reducing its server count from 150 to just 5.

    This not only streamlines infrastructure but also enhances performance, allowing them to manage higher traffic volumes with faster response times. The appeal of a language that delivers scalability and fault tolerance is great for navigating the demands of today’s digital landscape.

    Elixir’s rewarding career progression

    Embarking on a career in Elixir programming promises an exciting journey filled with learning and progress. As the demand for its developers rises, opportunities for growth blossom across various industries. Mastering Elixir’s unique mix of functional programming and concurrency equips developers with sought-after skills applicable to a wide range of projects, from building websites to crafting complex systems. Plus, with more and more companies, big and small, embracing the programming language. As developers dive deeper into Elixir and gain hands-on experience, they pave the way for a rewarding career path filled with growth and success.

    When Elixir first emerged, its community was small, as expected with any new technology. But now, it’s thriving! Exciting events like ElixirConf in Europe and the US, EMPEX, Code Elixir LDN, Gig City Elixir, and Meetups worldwide contribute to this vibrant community.

    This growth means the language is always evolving with new tools, and there’s always someone ready to offer inspiration or a helping hand when tackling a problem.

    Elixir’s range of useful tooling

    Tooling makes languages more versatile and tasks easier, saving you from reinventing the wheel each time you tackle a new problem. Elixir comes equipped with a range of robust tools:

    • Phoenix LiveView : Enables developers to build real-time, front-end web applications without JavaScript.
    • Crawly : Simplifies web crawling and data scraping tasks in Elixir.
    • Ecto : A database wrapper and query generator for Elixir, designed for building composable queries and interacting with databases.
    • ExUnit : Elixir’s built-in testing framework provides a clean syntax for writing tests and running them in parallel for efficient testing.
    • Mix : Elixir’s build tool, which automates tasks such as compiling code, managing dependencies, and running tests.
    • Dialyzer : A static analysis tool for identifying type discrepancies and errors in Erlang and Elixir code, helping to catch bugs early in the development process.
    • ExDoc : A documentation generator for Elixir projects, which generates HTML documentation from code comments and annotations, making it easy to create and maintain project documentation.

    Elixir frameworks allow for full-stack development

    Given its scalability performance and its origins in Erlang, it is no surprise that Elixir is a popular backend choice. As mentioned above, Phoenix LiveView has provided an easy, time-efficient and elegant way for Elixir developers to produce front-end applications.
    Also, the Nerves framework allows for embedded software development on the hardware end. As a result, this is a language that can be adopted throughout the tech stack. This doesn’t just make it an attractive choice for businesses; it also opens up the door for where the language can take you as a developer.

    Elixir’s easily accessible documentation

    In a community that values good documentation, sharing what you know is easy. Elixir is all about that – they take their docs seriously, which makes learning the language easy. And it isn’t just about learning – everyone can jump in and help make those docs even better. It’s like a big conversation where everyone’s invited to share and improve together.

    Learning Elixir can make you a better programmer in other languages

    Many developers transitioning from object-oriented languages have shared their experiences of how learning Elixir has enhanced their programming skills in their main languages. When you dive into a new purely functional programming style like Elixir, it makes you rethink how you code. It’s like shining a light on your programming habits and opening your mind to fresh ways of solving problems. This newfound perspective sticks with you, no matter what language you’re coding in next. And if you’re a Ruby fan– Elixir’s syntax feels like home, making the switch to functional, concurrent programming super smooth.

    While everyone has their reasons for picking a programming language, these are some pretty solid reasons to give Elixir a try in 2024 and beyond.

    Ready to get started in Elixir?

    Getting started is simple.

    Begin by visiting the official “Getting Started” page. Additionally, you’ll find a host of free downloadable packages from our team at Erlang Solutions, available for Elixir.

    To immerse yourself in the community, ElixirForum is an excellent starting point. You can also explore discussions using the #Elixirlang and #MyElixirStatus hashtags on Twitter.

    Curious to learn more about what we do with the Elixir language? Keep exploring!

    The post Why Elixir is the Programming Language You Should Learn in 2024 appeared first on Erlang Solutions .

    • wifi_tethering open_in_new

      This post is public

      www.erlang-solutions.com /blog/why-elixir-is-the-programming-language-you-should-learn-in-2024/

    • chevron_right

      Ignite Realtime Blog: inVerse plugin for Openfire version 9.0.0.1 released!

      guus · news.movim.eu / PlanetJabber · Thursday, 2 December, 2021 - 17:47

    The Ignite Realtime community is happy to announce the immediate availability of a an update to the inVerse plugin for Openfire, which makes the Converse.js web client available to your users.

    This release updates Converse to version 9.0.0.

    Your Openfire instance should automatically display the availability of the update. Alternatively, you can download the new release of the plugin at the inVerse plugin’s archive page . If you’ve got feedback or ideas about this plugin, come and join the conversation on Discourse !

    For other release announcements and news follow us on Twitter

    1 post - 1 participant

    Read full topic

    • chevron_right

      Jérôme Poisson: Libervia v0.8 « La Cecília »

      goffi · news.movim.eu / PlanetJabber · Tuesday, 30 November, 2021 - 22:54 · 7 minutes

    I'm proud to announce the release of Libervia 0.8 « La Cecília » (formerly known as « Salut à Toi »), after more than 2 years of development.

    This version is a big milestone preparing the future of the project. Let's have an overview of some major changes.

    Project Renaming

    In the interest of simplicity, the project has been renamed to " Libervia " (with was formerly the name of the web frontend), and all official frontends have now a straightforward name such as Libervia Web , Libervia Desktop / Mobile (same frontend for both), Libervia CLI for Command-Line Interface , and Libervia TUI for Terminal User Interface . The backend is, as you can guess, Libervia Backend . The former names are for now still used as aliases.

    Beside simplicity, the name change was also due to concerns with international audience: some people were thinking that "Salut à Toi" was dedicated to French-speaking people only. Hopefully, it will be easier for everybody, and people won't get confused any more by all the names which were previously used.

    Note that the renaming has implications on your configuration file which is now named libervia.conf ( sat.conf is still working for now). The sections have been updated with new names (to configure the CLI frontend you now use [cli] section instead of [jp] , for the web frontend it's now [web] instead of [libervia] ). Please check documentation in case of doubt.

    Technical Changes

    Libervia has been ported to Python 3, which has opened the door to other changes.

    Brython has been integrated to Libervia Web, to replace the unmaintained "Pyjamas" (which was a Python port of GWT ).

    Nunjucks is also now integrated in Libervia Web, making it possible to share some templates with Jinja . This is notably useful to make some pages working with or without JavaScript.

    OMEMO implementation has been completed with support for MUCs (group chats) and files (via XEP-0454: OMEMO Media Sharing ).

    Many other changes are not explained in this note to avoid it being indigestible, you can check the CHANGELOG for more information.

    Libervia Web New Default Theme

    A new theme for Libervia Web based on the nice Bulma CSS framework has been made and is now the default one. Thanks to it the interface is clearer and more pleasant to use.

    Events list with the new theme

    Invitations

    An easy to use invitation system has been implemented in Web frontend, and can be used either to give access to something to somebody with an existing XMPP account, or to invite somebody by email. The goal is to be able to share things (e.g. photo album, event) with family or friends without having to expect them to install a software or create an account.

    Inviting people to see a photo album

    Lists

    A decentralised issue tracking system was implemented since version 0.7, which was notably used to manage Libervia's own tickets. It was using a non-standard feature available only in Libervia Pubsub (formerly "SàT Pubsub", server independent Pubsub/PEP component, a side project).

    This feature has been renamed to "Lists" and now uses XEP-0346: Form Discovery and Publishing which makes it usable with a generic Pubsub service.

    Any kind of list can be created, from project tickets to keep track of bug report of feature requests, to To-do list, grocery list, etc. Being based on XMPP pubsub, lists can be federated, and permissions can be managed easily (for instance to allow various family members to modify a shopping list).

    Grocery List on Libervia Web

    For the moment 3 kinds of lists are available (generic tickets, To-Do, grocery), but more are expected to come in future versions.

    Photo albums

    Lots of improvements have been made on the photo albums in the web frontend. They can now be created or deleted from Libervia Web, photos or videos can be uploaded, a touch/mobile-friendly slideshow is available, ogv.js has been integrated to make possible the viewing of videos in Ogg Vorbis/Opus/Theora ans WebM VP8/VP9/AV1 on platforms not supporting them natively, and the invitation system mentioned above has been integrated.

    you can now use a slideshow to see your photos and videos

    Desktop

    Libervia Desktop UI has also been updated, the top menu has been removed, file dropping is now possible on suitable platforms, chat has infinite scrolling, a new "chat selector" screen makes it easier to select entity to chat with or room to join, message attachments are show in a more user-friendly way, and several other improvements has been done.

    Chat Selector on Libervia Desktop

    Work has also been done on Libervia Mobile (which is Android only for now), but this frontend is not user-friendly enough yet for end-user.

    Attachment on Libervia Mobile

    CLI

    The CLI frontend is now fully documented and following the renaming can now be accessed either by libervia-cli or the shorter li (legacy jp is still working for now). Among new commands we can highlight li file get which retrieve a file with support of aesgcm scheme (i.e. OMEMO Media Sharing), which makes it a kind of OMEMO enabled wget like. li file upload also handle end-to-end encryption, it's thus easy to share an encrypted file from command-line or a script.

    Background colour is now automatically detected on compatible terminal emulator, and theme is adapted consequently.

    But Also…

    File Sharing Component

    Libervia can act as a component (which can be seen as generic XMPP server plugins), and it includes a File Sharing Component.

    This component store files which can be retrieved either according to given permissions or publicly.

    Files can be uploaded or downloaded via XEP-0234: Jingle File Transfer and XEP-0363: HTTP File Upload is now also implemented, making it possible to share files via HTTPS link.

    This component can now be used to replace internal XMPP servers HTTP File Upload implementations. In addition to the fine permission management, it does not have a size limit and user quotas can be set, check the documentation to see how to set them. Files uploaded can be retrieved using XEP-0329: File Information Sharing and deleted with XEP-0050: Ad-Hoc Commands .

    This component is necessary to use the Photo Album feature.

    Libervia Pubsub

    A Pubsub/PEP component (formerly named "SàT Pubsub") is developed next to Libervia. It aims to provide a server independent feature-full implementation.

    Libervia Pubsub is released at the same time as the Libervia XMPP client, and has also been ported to Python 3.

    Among novelties, Full-Text Search has been implemented ( XEP-0431: Full Text Search in MAM ), as well as XEP-0346: Form Discovery and Publishing which replaces the former non-standard node schema, and PEP is now working for the server itself, making it usable for XEP-0455: Service Outage Status .

    Docker Images

    Docker images have been updated and moved directly to libervia-backend repository (in docker subdirectory).

    Official Website

    The Official Website has been updated with a new theme (based on Libervia Web new theme).

    Installation

    Libervia is available on several GNU/Linux distributions (at least Debian and derivative and Arch Linux). Unfortunately, the current Debian version is outdated (due to incompatible Debian and Libervia release dates), hopefully the new version will be available as a backport soon.

    You can easily install Libervia on any distribution by using pipx :

    $ pipx install libervia-backend$ pipx install libervia-desktop

    Then launch libervia-backend , and a frontend (e.g. libervia-cli or libervia-desktop ). Check the documentation for details.

    Docker images are available, and notably a web-demo.yml file can be used with docker-compose to quickly try a local demo:

    $ hg clone https://repos.goffi.org/libervia-backend $ cd libervia-backend/docker$ docker-compose -f web-demo.yml up

    Then open your browser on http://localhost:8880 and use the login demo with password demo .

    What's Next

    A Libervia based project has been selected by NLnet for a grant. This project is in 2 parts: working on an XMPP ⟺ ActivityPub gateway, then on pubsub and files end-to-end encryption. You'll find more information on this blog post and on NLnet project page . The project has already well started, and you can follow the progress on my blog (which is Libervia/XMPP powered) or on the ticket tracker (which is also Libervia/XMPP powered). A huge thanks to NLnet/NGI0 Discovery Fund!

    Besides, work is planned to improve user experience and instant messaging feature (notably on Web frontend). Libervia aims to be a good fit for private networks for family and friends.

    Last but not least, I've been pleased to see that Libervia Web is used to power jmp.chat blog . JMP is a company which give you a real phone number which can be used with XMPP and SIP (you can call this number from a traditional phone and get the voice call from a XMPP client).

    This concludes this release post. Stay tuned!

    • wifi_tethering open_in_new

      This post is public

      www.goffi.org /b/libervia-v0-8-la-cecilia-BdQ4

    • chevron_right

      Erlang Solutions: Blockchain Tech Deep Dive 1/4

      Erlang Admin · news.movim.eu / PlanetJabber · Monday, 22 November, 2021 - 16:36 · 6 minutes

    INTRODUCTION

    Blockchain technology is transforming nearly every industry, whether it be banking,  government, fashion or logistics. The benefits of using blockchain are substantial – businesses can lower transaction costs, free up capital, speed up processes, and enhance security and trust. So it’s no surprise that more and more companies and developers are interested in working with the technology and leveraging its potential than ever before.

    This blog post series will cover some of the thinking from Erlang Solutions’ subject matter experts on blockchain technology published over the last couple of years. Across four main themes, we will explore how companies and developers are working with blockchain, the principles behind the technology, what we can expect in the future and where we all fit into things.

    Theme I – 6 Principles – Blockchain Guidance

    Theme II – Blockchain Myths vs Reality

    Theme III – Digital Asset Ownership

    Theme IV – How Erlang Optimises Blockchain

    Blockchain – an overview

    The world is becoming decentralised.

    A multitude of platforms, technologies, and services are moving from centralised proprietary systems to decentralised, open ones. This is being driven by several powerful social and psychological factors which you can find discussed later in Blockchain: Myths vs Reality and Digital Asset Ownership in the Era of Blockchain by Dominic Perini and MIchael Jaiyeola.

    A blockchain is one architectural design of the broader concept of distributed ledger technology (DLT). Essentially, a blockchain is an expanding list of cryptographically signed, irrevocable transactional records that are shared by all participants in a network. Each record is time-stamped and references links to previous transactions. Anyone with access rights can trace back a transactional event, at any point in its history, belonging to any participant.


    For organisations, blockchain presents an opportunity for a fundamental change in how data is managed; from where every company has its own copy of a data set to a scenario in which all parties in a network have controlled access to a shared copy.

    The key benefit of this is that traditional independent institutions can collaboratively work together to integrate and optimise existing processes to mutual advantage while, crucially, not compromising on the security of sensitive data.

    We view it as vital that relevant parties from every industry are across the latest in debate surrounding blockchain as the technology is set to become increasingly prevalent in all of our lives.

    Theme I

    6 Principles – Blockchain Guidance

    1. Software Engineering

    Embrace the best practices in software engineering, in particular, the exploitation of functional programming and the design patterns that emerge from it. Develop and optimise code that speeds up the software development process, its evolution and adaptation, delivering on critical time-to-market business requirements, which is essential when it comes to blockchain!

    Take a modern approach to test ensuring that a high degree of quality is preserved throughout the lifecycle of a system. Leverage auto-generated Property-Based Test and continuous stress tests combined with traditional Test-Driven Development.

    Empower your software engineers to embrace modern agile software development methodologies that support scaling the workforce whenever and however needed. Practising agile ways of deployment automation, type checks, sensible naming conventions and documentation is extremely important, especially during handovers or when onboarding new developers.

    Distributed Systems

    Work with engineers previously involved in the development of massively scalable systems. Their experience working on messaging systems or distributed databases gives you the confidence that they will choose the correct partitioning, sharding and replica parameters.

    The need for engineering highly scalable and distributed systems has grown, and this is what we do every day. Building distributed systems to cater to billions of users and transactions on a daily basis. Delivering solutions that are resilient against node crashes or bad actors, and therefore exclude single points of failure.

    “Having numerous clients around the globe spanning from startups to Fortune 500 companies, Erlang Solutions has gained invaluable experience and thrives when working on complex cases and providing solutions to distributed systems.”

    Yanislav Malahov, æternity founder

    Networking

    Find a team with vast experience in growing automated network traffic management and dynamic topologies. Check if their monitoring capacity and expertise can be embedded to allow adaptation to changing scenarios, and identify problems before they occur (preemptive adaptation).

    Does their approach also ensure that back-pressure control protects the system’s capacity against overloads and increases its robustness? These modern approaches are valid for centralised, decentralised and distributed peer-to-peer (p2p) networks, often associated with bespoke service discovery mechanisms, and should be something that you clear with your team early on.

    Security & Resilience

    Make sure that you have the right people to monitor your system and repair mechanisms, and strategies using important resilience components. Dedicated secure p2p protocols, static analysis and property-based testing are among the techniques you should adopt to drive the security of a system. Information validation is used to protect against the man in the middle (MitM) attacks. Back pressure mechanisms protect against distributed denial of service attacks (DDOS).

    Both symmetrical and asymmetrical encryptions are used to achieve the highest level of security possible. It’s also worth checking on hardware security ensuring that sensitive private keys are only accessible via hardware security modules (HSM).

    Erlang is a high-level language that avoids a lot of the security issues that are an issue with C/C++ (no buffer overflows, no dangling pointers, etc)

    Dal Gemmell, Head of Product at Helium Inc.

    Integration

    ‘Blockchain needs to be integrated into existing technology to be usable and affordable.’
    Arzu Toren, Global Banker

    Integrating applications on top of complex backends, as well as providing synchronous and asynchronous interfaces among backends, is a serious job. So it’s worth checking if your team uses frontend facing APIs such as REST and Websocket to implement responsive applications. They should comply with industry standards for compatibility and security to drive message exchanges on top of a variety of AMQP and JMS queuing mechanisms.

    In the Blockchain space, we are highly competent in designing cross-chain smart contracts capable of changing anchor data to major networks such as Bitcoin, leveraging its security against history revisions. We can provide guidance to plan effective and reliable integration tests, ensuring the compliance of data validation and communication protocols is preserved throughout the development process.

    Erlang can easily interface with C/C++/Rust libraries using Native Implemented Functions (NIFs), and we do that a lot to talk to cryptographic libraries and for performance-critical code.

    Dal Gemmell, Head of Product at Helium Inc.

    Programming Language

    Engage with us as true polyglots! We specialise in Erlang and Elixir, but we are highly competent in every other language in the industry, this could be Java/Scala, JS, C/C++, Python, Rust or Go , we stay relevant!

    Vast expertise in language interpretation and virtual machines has proven to be critical know-how in a variety of modern blockchain solutions.

    “Erlang Solutions is renowned for its technical talent, and having already embedded some of its engineers and architects in our development team, we have no doubt that Erlang Solutions will play a crucial part in building out an extremely strong core team.”

    Yanislav Malahov, æternity founder

    For any business size in any industry, we’re ready to investigate, build and deploy your blockchain-based project on time and to budget.

    Get in touch with your blockchain project queries general@erlang-solutions.com or via the contact us form. Stay tuned for the next theme in this series ‘Blockchain: Myths vs Reality by Dominic Perini.

    The post Blockchain Tech Deep Dive 1/4 appeared first on Erlang Solutions .

    • chevron_right

      Ignite Realtime Blog: Smack 4.4.4 released

      Flow · news.movim.eu / PlanetJabber · Monday, 1 November, 2021 - 18:06 · 2 minutes

    We are happy to announce the release of Smack 4.4.4. Thanks to numerous contributors this patch level release includes many fixes and improvements. I’d like to especially thank the folks from Jitsi , namely Boris Grozev, Damian Minkov, Ingo Bauersachs, and Jonathan Lennox. Who tracked down multiple bugs, including a nasty concurrency bug. Furthermore, thanks to Ingo, Smack and its important dependencies jxmpp and MiniDNS are now, again, OSGi compatible.

    For a high-level overview of what’s changed in Smack 4.4.4, check out Smack’s changelog .

    The shortlog for the 4.4.4 release is

    flo@neo-pc ~/code/smack $ git shortlog -n --no-merges 4.4.3..4.4.4 Florian Schmaus (23):      Smack 4.4.4-SNAPSHOT      [xdata] Add missing ensureAtMostSingleValue() to parseBooleanFormField      [xdata] Safe the raw character data of form field values      [caps] Use the raw character data of form fields when caclulating the hash      [pubsub] FormNode(Provider) should not fail if there is no DataForm      [socks5] Ensure that the local SOCKS5 proxy is running (if enabled)      [core] Assert that 'event' is not END_DOCUMENT in forwardToEndTagOfDepth()      [socks5] Fix javadoc of getLocalStreamHost()      [socks5] Remove stale null check      [disco] Add DisocverInfo.nullSafeContainsFuture(DiscoverInfo, CharSequence)      [muc] Check mucServicedDiscoInfo for null in serviceSupportsStableIds()      [carbons] Remove erroneous assert statement in connectionClosed()      [muc] Check for self-presence first in presence listener      [muc] Call userHasLeft() *after* the leave presence was sent      [jingle] Add empty element optimization for <content/>      [core] Pass down the XML environment in IQChildElementXmlStringBuilder      [jingle] Mimic Manager.connection() in JingleTransportManager      [jingle] Make Jingle.Builder extend IqBuilder      [jingle] Add unit test to check that there are no redundant namespaces      [build] Remove OSS Sonatype Snapshot repository      Update NOTICE file      [resources] Rename get-contributors.sh to generate-notice-file      Smack 4.4.4Ingo Bauersachs (5):      Prevent password enforcement for SASL anonymous      Fix BOSH connection establishment      Make Smack jars OSGi bundles      Add getter for the stanza associated with the exception      Add missing stream namespace to xml declarationJonathan Lennox (2):      Update documentation of default SecurityMode.      Add removeExtension methods to StanzaBuilder.Damian Minkov (1):      [muc] Also process destory message if it contains <status/>Guus der Kinderen (1):      SMACK-908: Don't use components to count tabs in DebuggerSimon Abykov (1):      Accept an empty string as the label value

    As always, this Smack release is available via Maven Central .

    We would like to use this occasion to point at that Smack now ships with a NOTICE file. Please note that this adds some requirements when using Smack as per the Apache License 2.0 . The content of Smack’s NOTICE file can conveniently be retrieved using Smack.getNoticeStream() .

    1 post - 1 participant

    Read full topic

    • chevron_right

      Ignite Realtime Blog: Push Notification Openfire plugin 0.9.0 released

      guus · news.movim.eu / PlanetJabber · Wednesday, 27 October, 2021 - 16:09

    I’m happy to be able to announce that we’ve released version 0.9.0 of the Push Notifications plugin for Openfire!

    This version does not bring new functionality. It does fix a bug that older versions of this plugin had, when running on Openfire 4.6.4 or later.

    For other release announcements and news follow us on Twitter

    1 post - 1 participant

    Read full topic

    • chevron_right

      Paul Schaub: A Simple OpenPGP API

      vanitasvitae · news.movim.eu / PlanetJabber · Sunday, 10 October, 2021 - 15:45 · 2 minutes

    In this post I want to share how easy it is to use OpenPGP using the Stateless OpenPGP Protocol (SOP).

    I talked about the SOP specification and its purpose and benefits already in past blog posts. This time I want to give some in-depth examples of how the API can be used in your application.

    There are SOP API implementations available in different languages like Java and Rust . They have in common, that they are based around the Stateless OpenPGP Command Line Specification , so they are very similar in form and function.

    For Java-based systems, the SOP API was defined in the sop-java library. This module merely contains interface definitions. It is up to the user to choose a library that provides an implementation for those interfaces. Currently the only known implementation is pgpainless-sop based on PGPainless.

    The single entry point to the SOP API is the SOP interface (obviously). It provides methods for OpenPGP actions. All we need to get started is an instantiation of this interface:

    // This is an ideal candidate for a dependency injection framework!SOP sop = new SOPImpl(); // provided by pgpainless-sop

    Let’s start by generating a secret key for the user Alice:

    byte[] key = sop.generateKey()        .userId("Alice <alice@example.org>")        .generate()        .getBytes();

    The resulting byte array now contains our OpenPGP secret key. Next, lets extract the public key certificate, so that we can share it with out contacts.

    // public keybyte[] cert = sop.extractCert()        .key(key) // secret key        .getBytes();

    There we go! Both byte arrays contain the key material in ASCII armored form (which we could disable by calling .noArmor() ), so we can simply share the certificate with our contacts.

    Let’s actually create an encrypted, signed message. We obviously need our secret key from above, as well as the certificate of our contact Bob.

    // get bobs certificatebyte[] bobsCert = ...byte[] message = "Hello, World!\n".getBytes(StandardCharsets.UTF_8);byte[] encryptedAndSigned = sop.encrypt()        .signWith(key) // sign with our key        .withCert(cert) // encrypt for us, so that we too can decrypt        .withCert(bobsCert) // encrypt for Bob        .plaintext(message)        .getBytes();

    Again, by default this message is ASCII armored, so we can simply share it as a String with Bob.

    We can decrypt and verify Bobs reply like this:

    // Bobs answerbyte[] bobsEncryptedSignedReply = ...ByteArrayAndResult<DecryptionResult> decrypted = sop.decrypt()        .verifyWithCert(bobsCert) // verify bobs signature        .withKey(key) // decrypt with our key        .ciphertext(bobsEncryptedSignedReply)        .toByteArrayAndResult();// Bobs plaintext replybyte[] message = decrypted.getBytes();// List of signature verificationsList<Verification> verifications = decrypted.getResult().getVerifications();

    Easy! Signing messages and verifying signed-only messages basically works the same, so I’ll omit examples for it in this post.

    As you can see, performing basic OpenPGP operations using the Stateless OpenPGP Protocol is as simple as it gets. And the best part is that the API is defined as an interface, so swapping the backend can simply be done by replacing the SOP object with an implementation from another library. All API usages stay the same.

    I want to use this opportunity to encourage YOU the reader: If there is no SOP API available for your language of choice, consider creating one! Take a look at the specification and an API definition like sop-java or the sop Rust crate to get an idea of how to design the API. If you keep your SOP API independent from any backend library it will be easy to swap backends out for another library later in the process.

    Let’s make OpenPGP great again! Happy Hacking!

    • wifi_tethering open_in_new

      This post is public

      blog.jabberhead.tk /2021/10/10/a-simple-openpgp-api/