Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Niko Matsakis: Async Vision Doc Writing Sessions V

    This is an exciting week for the vision doc! As of this week, we are starting to draft “shiny future” stories, and we would like your help! (We are also still working on status quo stories, so there is no need to stop working on those.) There will be a blog post coming out on the main Rust blog soon with all the details, but you can go to the “How to vision: Shiny future” page now.

  • What exactly was the point of [ “x$var” = “xval” ]?

    The x-hack was indeed useful and effective against several real and practical problems in multiple shells.

    However, the value was mostly gone by the mid-to-late 1990s, and the few remaining issues were cleaned up before 2010 — shockingly late, but still over a decade ago.

    The last one managed to stay until 2015, but only in the very specific case of comparing opening parenthesis to a closed parenthesis in one specific non-system shell.

    I think it’s time to retire this idiom, and ShellCheck now offers a style suggestion by default.

  • Rakudo Weekly News: 2021.15 First Conf

    Andrew Shitov has announced the very first Raku Conference, to be held online on 7 August 2021. You can sign up if you want to attend, or want to give a presentation. Formats for presentations vary from a 5-minute lightning talk to an 8-hour workshop. The deadline for talk submissions is 15 July 2021. Of course, you can also sponsor this conference in various ways! Exciting to see our first Raku Conference planned like that!

  • Perl Weekly Challenge 108: Locate Memory and Bell Numbers

    In languages such as Perl and C, it is a fairly common task to take a reference or a pointer to a variable, and a reference or a pointer are essentially the memory addresses of such a variable (for some definition of memory address). In Raku, using the memory address of a variable is almost never necessary (except possibly for low-level debugging purpose). Actually, I originally wasn’t even completely sure I was going to find a way of doing that in Raku. However, the Metaobject Protocol (MOP) offers some metamethods, which are introspective macros that provide information about objects (including variables). One such metamethod is WHERE, which returns an Int representing the memory address of the object.

  • Logica: organizing your data queries, making them universally reusable and fun

    We present Logica, a novel open source Logic Programming language. A successor to Yedalog (a language developed at Google earlier) it is a Datalog-like logic programming language. Logica code compiles to SQL and runs on Google BigQuery (with experimental support for PostgreSQL and SQLite), but it is much more concise and supports the clean and reusable abstraction mechanisms that SQL lacks. It supports modules and imports, it can be used from an interactive Python notebook and it even makes testing your queries natural and easy.

  • Google Talks Up Logica As Open-Source Programming Language For Data Manipulation - Phoronix

    Google engineers are responsible for a number of programming languages like Go and Dart while their newest one to be made public is Logica.

    Logica is the successor to Yedalog, another language out of Google. Logica compiles to SQL and can run on Google BigQuery with experimental support for PostgreSQL and SQLite databases.

  • Make Conway's Game of Life in WebAssembly | Opensource.com

    Conway's Game of Life is a popular programming exercise to create a cellular automaton, a system that consists of an infinite grid of cells. You don't play the game in the traditional sense; in fact, it is sometimes referred to as a game for zero players.

    Once you start the Game of Life, the game plays itself to multiply and sustain "life." In the game, digital cells representing lifeforms are allowed to change states as defined by a set of rules. When the rules are applied to cells through multiple iterations, they exhibit complex behavior and interesting patterns.

  • 12 Backend Development Tools For Web Developers

    While Frontend Web Development is concerned with the designing of the user interface of the website using web technologies like HTML, CSS, JavaScript, etc. – Backend Web Development (or you can say Server-Side Development) is responsible for the appropriate functioning of the website.

  • Eclipse Foundation aims open VS Code registry at Microsoft

    VS Code)extension users and providers argue that the industry needs a fully open source marketplace for the extensions. That's because Microsoft forbids the use of its marketplace for non-Microsoft-branded products, as noted in the marketplace user agreement, which reads: "Marketplace Offerings are intended for use only with Visual Studio Products and Services and you may only install and use Marketplace Offerings with Visual Studio Products and Services."

  • 5 dead programming languages we should never forget [Ed: Many programming languages that Chris Tozzi called "dead" are not dead at all! Is he trying to bury things alive?]

    Just as some spoken languages have faded into history, programming languages also face the risk of obsolescence and extinction. Though their profound influence on development techniques and coding styles certainly still resonates, languages like ALGOL and LISP don't enjoy nearly as much prominence and acclaim as they once did. It's only natural that some of the languages we use today will follow the same path.

    In no way does that mean these languages will disappear entirely. There will be plenty of legacy codebases written in these prophetically dead programming languages, and a need for developers with the know-how to understand and maintain them. Just look at legacy languages like COBOL, which still sits at the heart of countless enterprise software systems (including Fortune 500 companies).

    [...]

    Perl was conceived in the 1980s as a scripting language designed for Unix system administration tasks, and subsequently gained popularity as a general-purpose programming language. Despite its age, the language hovers in 19th place on the TIOBE index, as it remains important in areas like data science and analytics. However, Perl commands much less mindshare now than it did a decade ago.

    The release of Raku in 2019 -- a Perl spinoff designed by the language's creator, Larry Wall -- profoundly undercut community enthusiasm for Perl. Plans for future version releases counter the argument that Perl is already a dead programming language, but it is quickly turning into one that may find itself confined to legacy codebases.

  • 11 Open Source DevOps Tools We Love For 2021

    DevOps isn’t just a cultural shift — it requires great tools to come to fruition. Below, we’ve pulled together a list of some of the most well-loved DevOps tools available today. But, throwing loads of money into fancy SaaS solutions can quickly gobble up the cloud budget. These DevOps tools all are open source, and enable everything from container builds and orchestration to microservices networking, configuration management, CI/CD automation, full-stack monitoring and more. Here are some of our favorite open source DevOps tools for 2021.

  • Excellent Free Tutorials to Learn Haml - LinuxLinks

    Haml (HTML Abstraction Markup Language) is a markup language that’s used to cleanly and simply describe the HTML of any web document, without the use of inline code.

  • Steinar H. Gunderson: plocate 1.1.6 released

    I've released version 1.1.6 of plocate with some minor fixes; changelog follows.

  • Tools and Practices I Use In Every Real-World Software Project

    There are very few books written for junior-to-mid level developers that answer the question “How do I run a real-world software project?”. Industry best practices often arise as the result of cross-pollination and institutional/tacit knowledge rather than explicitly prescribed rules that you can read about in a book.

    For developers working alone or in small organizations such as startups, these norms may not be obvious. Knowing which tools one needs to deploy a production-scale application is crucial knowledge.

    In 2019 I published the article “Software Tools for Hobby-Scale Projects.” It is still one of my most popular blog entries. This post will explore the same idea within a professional context and hopefully help new or solo developers get guidance on tools and practices for new projects at small to mid-scale organizations.

    Objective: Provide a list of tools and practices that apply to a majority of real-world software projects.

    Intended audience: Developers familiar with software authorship wishing to learn about real-world software deployments and practices.

  • The Sacred “Back” Button

    Younger readers will find it hard to conceive of a time in which every application screen didn’t have a way to “Go Back”. This universal affordance was there, a new thing, in the first Web browser that anyone saw, and pretty soon after that, more or less everything had it. It’s a crucial part of the user experience and, unfortunately, a lot of popular software is doing it imperfectly. Let’s demand perfection.

    Why it matters · Nobody anywhere is smart enough to build an application that won’t, in some situations, confuse its users. The Back option removes fear and makes people more willing to explore features, because they know they can always back out. It was one of the reasons why the nascent browsers were so much better than the Visual Basic, X11, and character-based interface dinosaurs that then stomped the earth.

    Thus I was delighted, at the advent of Android, that the early phones had physical “back” buttons.

  • An easy to use MTP implementation for your next embedded Linux project

    Did you know you could run a permissively-licensed MTP implementation with minimal dependencies on an embedded device? Here's a step-by-step guide on how to easily run cmtp-responder on a Rock Pi 4 or any other board equipped with a UDC.

    To recap: In part1 of this series I introduced you to the concept of USB gadgets, their configfs composition interface, available opensource tools and basic systemd integration. In part2 I wrote about one particular USB gadget function - FunctionFS - and its integration with systemd. Then I presented cmtp-responder, a permisively-licensed MTP responder implementation and showed how to play with it on your PC with dummy_hcd driver. It is in this latter post that I promised you running cmtp-responder on real hardware. You can also watch me talking about USB gadgets at ELC 2019 and Linux Piter 2019.

  • Gradle Release Notes

    This release enables file system watching by default to make your incremental builds faster, expands support for building projects with Java 16, and adds support for building on Macs using Apple Silicon processors (such as M1).

  • Gradle 7.0 released

    The latest release of the Gradle build tool is now available. Gradle 7.0 enables file system watching by default to make incremental builds faster and expands support for building projects with Java 16 as well as Apple Silicon support.

    When the file system is enabled in the new version, Gradle keeps what it learned from the file system in memory and skips reading from the file system on each build, reducing the amount of disk I/O needed to determine what has changed, the team explained.

    The release also introduces a feature preview for centralized dependency versions and it enables build validation errors to make builds more reliable.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.