Language Selection

English French German Italian Portuguese Spanish

Programming: GCC, Python, Perl, Rust and More

Filed under
Development
  • It Looks Like GCC's Long-Awaited Git Conversion Could Happen This Weekend

    The long in development process of converting GCC's SVN repository to Git for using this modern distributed revision control system for developing the GNU Compiler Collection in the 2020s may finally be complete in the days ahead.

    Joseph Myers of CodeSourcery and one of the GCC steering committee members announced that Eric S Raymond's Reposurgeon utility should now be up to the task of converting GCC's SVN repository to Git and doing so the best following a number of last minute improvements.

  • Proposal for the transition timetable for the move to GIT
    On Wed, 8 Jan 2020, Eric S. Raymond wrote:
    
    > They use your feedback to find places where their comment-processing
    > scripts could be improved; we've used it learn what additional
    > oddities in ChangeLogs we need to be able to handle automatically.
    
    I've used comparisons of authors in the two conversions - in cases where 
    they get different human identities for the author, not just different 
    email addresses or name variants - to identify cases for manual review, 
    since ChangeLog parsing is the most subjective part of doing a conversion 
    and cases where different heuristics produce different results indicate 
    those worthy of manual review.
    
    Apart from about 1600 with no changes to ChangeLog files but a ChangeLog 
    entry in the commit message, which I reviewed mostly automatically to make 
    sure I agreed with Maxim's author extraction with only limited manual 
    checks on those that looked like suspect cases, that involved reviewing 
    around 3000 commits manually; I've now completed that review.  Some of 
    those are also subjective cases even after review (for example, where the 
    commit involved one person backporting another person's patch).
    
    In the set of around 1200 commits with both ChangeLog and non-ChangeLog 
    files being changed, which did not look like backports, for example, I 
    arrived at around 400 author improvements from this review (not all of 
    them the same authors as in Maxim's conversion), while for around 800 
    commits I concluded the reposurgeon author was preferable.  (The typical 
    case where reposurgeon does better is where successive commits add new 
    ChangeLog entries under an existing ChangeLog header.  The typical case 
    where I added fixes was where a commit made nonsubstantive changes under 
    an existing header, as well as adding new entries, which is hard to 
    distinguish automatically from a multi-author commit so reposurgeon 
    conservatively treats as a multi-author commit.)
    
    In the case of ChangeLog-only commits, where reposurgeon assumes they are 
    likely to be fixing typos or similar and so does not extract an 
    attribution from ChangeLog files in such commits, manual review identified 
    many cases (especially in the earlier parts of the history) where the 
    ChangeLog was committed separately from the substantive parts of the patch 
    and so a better attribution could be assigned to those substantive 
    commits.
    
    I consider the reposurgeon-based conversion machinery to be in essentially 
    its final state now; I don't have any further authors to review, Richard 
    doesn't have any further Bugzilla-based commit summaries to review and we 
    don't know of any relevant reposurgeon bugs or missing features.  I'm 
    running a conversion now to verify both the current state of the fixups 
    and the Makefile integration of the conversion and subsequent automated 
    validation, and will make that converted repository available for final 
    checks if this succeeds.  Compared to the previous converted repository, 
    this one has many author fixups, a fix for a bug in the author fixups 
    where they broke commit dates, and reposurgeon improvements to avoid 
    producing unidiomatic empty git commits in the converted repository for 
    things such as branch and tag creation.
    
    This converted repository uses the ref rearrangements along the lines 
    proposed by Richard (so dead branches and vendor branches are available 
    but not fetched by default); the objects from the existing git mirror will 
    also be included in the repository (so existing gitweb links to such 
    objects in list archives continue to work, for example, as long as they 
    aren't links to objects that were made unreachable at some point in the 
    mirror's history), but again under ref names that are not fetched by 
    default.
    
    As noted on overseers, once Saturday's DATESTAMP update has run at 00:16 
    UTC on Saturday, I intend to add a README.MOVED_TO_GIT file on SVN trunk 
    and change the SVN hooks to make SVN readonly, then disable gccadmin's 
    cron jobs that build snapshots and update online documentation until they 
    are ready to run with the git repository.  Once the existing git mirror 
    has picked up the last changes I'll make that read-only and disable that 
    cron job as well, and start the conversion process with a view to having 
    the converted repository in place this weekend (it could either be made 
    writable as soon as I think it's ready, or left read-only until people 
    have had time to do any final checks on Monday).  Before then, I'll work 
    on hooks, documentation and maintainer-scripts updates.
    
    As well as having objects from the existing git mirror available under 
    refs that are not fetched by default, that mirror will remain available 
    read-only at git://gcc.gnu.org/git/gcc-old.git (which already exists, 
    currently a symlink to the mirror).
    
  • Serverless Python And Why You Should Try It Out

    At the January 2020 Python Frederick event, Patrick Pierson showed the group how you can use Python in different serverless services on AWS and GCP. He also showed a couple of serverless frameworks like Serverless and Chalice.

  • Convert Strings to Numbers and Numbers to Strings in Python

    Python allows you to convert strings, integers, and floats interchangeably in a few different ways. The simplest way to do this is using the basic str(), int(), and float() functions. On top of this, there are a couple of other ways as well.

    Before we get in to converting strings to numbers, and converting numbers to strings, let's first see a bit about how strings and numbers are represented in Python.

    Note: For simplicity of running and showing these examples we'll be using the Python interpreter.

  • Python first()

    Python prides itself on being a newbie-friendly language; its developers have gone out of their way to try to ensure that easy tasks are straightforward to program. A recent discussion on the python-ideas mailing list looked at a use case that is common, but often implemented in an inefficient, incorrect fashion, with an eye toward making it easier to do correctly. Finding the first match for a regular expression in a body of text is where the conversation started, but it went in some other interesting directions as well.

  • Learn PyQt: Build GUI layouts with Qt Designer for PyQt5 apps

    When laying out your Qt GUIs it can be quite a tricky task to place every widget in the right position on your forms. Fortunately, Qt offers a set of layout managers that simplify the process of widget positioning and will allow you to easily create any kind of layout. To lay out the widget in a form, you can create everything in code, or you can create your layout with Qt Designer. In this tutorial, you'll learn how to use Qt's layouts with Qt Designer to build complex GUIs for your applications.

    Additionally, we'll create a dialog example using several widgets with a coherent layout to reinforce your knowledge and put everything together into a fully functional dialog just like you would create in a real-world application.

  • No more rhyming and I k-means it!

    "... anybody wanna peanut?" - Fezzik, TPB

    When last we saw our heroes, they had just applied PDL::Stats::Kmeans to a CSV file of car data with no thought regarding their own well-being.

    In today's episode, we see them slice through data to identify clusters of cars, only to find they know less than they did before!

    Read on, true believers!

  • Russ Allbery: DocKnot 3.02

    DocKnot is my set of tools for generating package documentation and releases. The long-term goal is for it to subsume the various tools and ad hoc scripts that I use to manage my free software releases and web site.

    This release includes various improvements to docknot dist for generating a new distribution tarball: xz-compressed tarballs are created automatically if necessary, docknot dist now checks that the distribution tarball contains all of the expected files, and it correctly handles cleaning the staging directory when regenerating distribution tarballs. This release also removes make warnings when testing C++ builds since my current Autoconf machinery in rra-c-util doesn't properly exclude options that aren't supported by C++

  • This Week in Rust 320

    Hello and welcome to another issue of This Week in Rust! Rust is a systems language pursuing the trifecta: safety, concurrency, and speed. This is a weekly summary of its progress and community. Want something mentioned? Tweet us at @ThisWeekInRust or send us a pull request. Want to get involved? We love contributions.

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.