Language Selection

English French German Italian Portuguese Spanish

Programming: C++, Python, Rust and More

Filed under
Development
  • Moving to C++11
    Greetings,
    
    I asked about moving to C/C++ 11 as it would make it easier to
    
    allow multithreading support due to having a memory model
    
    alongside other features. Jason Merill mentioned due to it
    
    being so common it may be a good  time to.
    
    Moving to git seems to be universally agree on so I'm opening the discussion
    
    for the same as related to C/C++11 migration and if possible opening
    
    a TODO similar to git if decided on.
    
    Please post your comments or ideas about the migration in response to this
    
    email,
    
    Nick
    
    
  • Moving to C++11
    Greetings David,
    
    I posted on the list about moving to C++11/C11 but the focus was on
    
    C++11 for my work. Seems that other people wanted to use some
    
    parts of the C++11 standard including rvalues,move,auto and template
    
    aliases. The thread is here:
    
    https://gcc.gnu.org/ml/gcc/2019-09/msg00228.html
    
    I've come to the conclusion that enabling parts of it would be useful overall based
    
    on the linked discussion.
    
    Therefore I'm opening up the discussion again with the commitee involved to figure
    
    out what should be used and how the migration should take place,
    
    Nick
    
  • GCC Developers Look At Transitioning Their Codebase To C++11

    Seven years after the GNU Compiler Collection (GCC) developers began transitioning their codebase from C to C++, they are now discussing the prospects of adopting C++11 as their allowed C++ standard revision for developing this open-source compiler.

    This past week the conversation over allowing C++11 code into the compiler code-base was brought up. So far there seems to be a lot of upstream developer interest in allowing C++11'isms into the GCC code-base. In fact, some have even expressed being open to allowing C++14.

  • Grants Awarded for Python in Education

    The Python Software Foundation has been asked about Python in education quite a bit recently. People have asked, “Is there an official curriculum we can use?”, “Are there online resources?”, “Are there efforts happening to improve Python on mobile?”, and so on.

    9 years ago we instituted the Education Summit at PyCon US where educators as well as students work together on initiatives and obstacles. Earlier this year we decided we needed to do more. In November of 2018, the PSF created the Python in Education Board Committee and it was tasked with finding initiatives to fund to help improve the presence of Python in education.

    In January of this year, the Python in Education Board Committee launched a “request for ideas” phase taking suggestions from the community on what we should focus our funding on. After the RFI period, we came up with 3 areas of education we wanted to focus on and asked to receive grant proposals on the following: resources (curriculums, evaluations, studies, multidisciplinary projects), localization (primarily translations), and mobile (development on mobile devices).

    We are happy to publish more details on the grants the PSF approved from this initiative!

  • ML with Python: Part-3

    In preious post, we saw various steps involved in creating a machine learning (ML) model. You might have noticed in Building ML Model we consider multiple Algorithums in a pipeline and then tune hyperparameter for all the Models. Don't you feel that it would have been easier if some automated tools are there to ease the burden of repetitive and time-consuming tasks of machine learning pipeline design and hyperparameter optimization.

    Here comes AutoML, taking over the machine learning model-building process: once a data set is in a relatively clean format, the AutoML system will be able to design and optimize a machine learning pipeline faster than 99% of the humans out there.

  • Analyzing the Stack Overflow Survey with Python and Pandas

    I'm using the popular Pandas library, which is a "BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools," according to the library's About page.

  • Evennia: Blackifying and fixing bugs

    Evennia's source code is extensively documented and was sort of adhering to the Python formatting standard PEP8. But many places were sort of hit-and-miss and others were formatted with slight variations due to who wrote the code.

    After pre-work and recommendation by Greg Taylor, Evennia has adopted the black autoformatter for its source code. I'm not really convinced that black produces the best output of all possible outputs every time, but as Greg puts it, it's at least consistent in style. We use a line width of 100.

    I have set it up so that whenever a new commit is added to the repo, the black formatter will run on it. It may still produce line widths >100 at times (especially for long strings), but otherwise this reduces the number of different PEP8 infractions in the code a lot.

  • PyDev of the Week: Marlene Mhangami

    Sure, in college I studied molecular biology. I was actually in the schools pre-medicine track because I initially thought I wanted to become a doctor. Looking back on it now I laugh because I hate blood, just the sight of it in movies makes me shut my eyes tightly, so I’m genuinely happy that didn’t work out! I went to a liberal arts college and appreciate that I had the space to take courses in other fields like philosophy and politics which I really enjoy.

    I get asked about what hobbies I have quite often, and I’m not sure if I have anything I do consistently enough to call a hobby. I read, and sometimes run, and love to journal. I also occasionally paint, but the last time I told someone I painted they asked me where my studios were and started listing off artists that I had never heard of before, so I like to disclaimer that I don’t paint in a way that is cultured or sophisticated but just as a way to express myself and have fun.

  • Webinar: “React+TypeScript+TDD in PyCharm” with Paul Everitt

    ReactJS is wildly popular and thus wildly supported. TypeScript is increasingly popular, and thus increasingly supported.

    The two together? Not as much. Given that they both change quickly, it’s hard to find accurate learning materials.

    React+TypeScript, with PyCharm? That three-part combination is the topic of this webinar. We’ll show a little about a lot. Meaning, the key steps to getting productive, in PyCharm, for React projects using TypeScript. Along the way we’ll show test-driven development and emphasize tips-and-tricks in the IDE.

  • The Rust Programming Language Blog: Security advisory for Cargo

    The Rust team was recently notified of a security concern when using older versions of Cargo to build crates which use the package rename feature added in newer versions of Cargo. If you're using Rust 1.26.0, released on 2018-05-10, or later you're not affected.

  • The Rust Programming Language Blog: Async-await hits beta!

    Big news! As of this writing, syntactic support for async-await is available in the Rust beta channel! It will be available in the 1.39 release, which is expected to be released on November 7th, 2019. Once async-await hits stable, that will mark the culmination of a multi-year effort to enable efficient and ergonomic asynchronous I/O in Rust. It will not, however, mark the end of the road: there is still more work to do, both in terms of polish (some of the error messages we get today are, um, not great) and in terms of feature set (async fn in traits, anyone?).

  • September 2019 report: Jules, OpenSMTPD 6.6.0 upcoming release and related things

    Three months ago, I switched to a 75% part-time schedule so that I could spend a “free” week each month working on my own stuff, mostly opensource, without being pressured on what I should do. My employer does not know what I’ll be working on and I get to decide myself how I’ll spend this time.

    This came at the cost of slashing a quarter of my wage, so while most of my “free” weeks will be spent on opensource and writing articles, I might also have to take some contracts and sponsored developments based on the state of my finances. I opened a patreon account so that if enough people want to sponsor me, I can spend these free weeks focusing solely on community work rather than proprietary work.

    Thanks again to the people who make this possible !

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.