Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

      

  • LLVM Clang 12 Merges Support For x86_64 Microarchitecture Levels - Phoronix

    In an effort to better cater towards newer and common x86_64 instruction set extensions, open-source toolchain developers are moving ahead with the work on x86_64 micro-architecture feature levels for being able to target a handful of different "levels" beyond the base x86_64 instruction set. 

    The x86_64 feature levels are for easily segregating different classes of x86_64 Intel/AMD CPUs in hopes of making it easier for Linux distributions to increase their base requirements beyond just x86_64/AMD64 and improving compiler toolchains with a common set of possible levels / hardware capabilities in generating optimized libraries. This goes along with work pursued by Red Hat in raising the x86_64 CPU requirements for new RHEL/Fedora releases and for optimization initiatives like the glibc HWCAPS in supporting a few different optimization levels rather than having to target every possible Intel/AMD CPU microarchitecture family as is currently done for code optimization/tuning. 

  • RStudio is a refreshingly intuitive IDE | Christian Kastner

    I currently need to dabble with R for a smallish thing. I have previously dabbled with R only once, for an afternoon, and that was about a decade ago, so I had no prior experience to speak of regarding the language and its surrounding ecosystem.

    Somebody recommended that I try out RStudio, a popular IDE for R. I was happy to see that an open-source community edition exists, in the form of a .deb package no less, so I installed it and gave it a try.

    [...]

    This, and many other features that pop up here and there, like the live-rendering of LaTeX equations, contributed to what has to be one of the most positive experiences with an IDE that I've had so far.

  • Engaging in an "Open First" remote internship at Collabora

    The COVID-19 pandemic has forced companies to move very quickly to a partial or even full home office regime. In this context, Collabora is at a very privileged position, since remote work has always been at the core of our day to day operations. Over 80% of our people work remotely from all over the world even when our offices are open.

    As the pandemic continues to wreak havoc across the world, many students' scholarships have been impacted one way or the other. As the world economy is being shaken, many of them are facing challenges finding internships and entering into the professional life.

    At Collabora, and despite of COVID-19, we want remote internships to have the power to get students, regardless of where they live, into a dream job. Or, at the very least, provide them with informative venues for exploring and confirming (or not) professional interests. Our internships also connect students with a larger ecosystem of FLOSS projects and vendors, serving as a good way to improve their visibility and networking.

  • Nibble Stew: Cargo-style dependency management for C, C++ and other languages with Meson

    My previous blog post about modern C++ got a surprising amount of feedback. Some people even reimplemented the program in other languages, including one in Go, two different ones in Rust and even this slightly brain bending C++ reimplementation as a declarative style pipeline. It also got talked about on Reddit and Hacker news. Two major comments that kept popping up were the following.

    [...]

    One notable downside of this approach is that WrapDB does not have all that many packages yet. However I have been told that given the next Meson release (in a few weeks) and some upstream patches, it is possible to build the entire GTK widget toolkit as a subproject, even on Windows. 

    If anyone wants to contribute to the project, contributions are most welcome. You can for example convert existing projects and submit them to wrapdb or become a reviewer. The Meson web site has the relevant documentation. 

  • Percepio Releases Tracealyzer Visual Trace Diagnostics Solution Version 4.4 with Support for Embedded Linux

    -Percepio, the leader in visual trace diagnostics for embedded and IoT software systems, today announced the immediate availability of Tracealyzer version 4.4 with support for embedded Linux. Tracealyzer gives developers a high level of insight during software debugging and verification at the system level by enabling visual exploratory analysis from the top down. This makes it easy to spot issues during full system testing and drill down into the details to find the cause.

  • Facebook Is Looking To Upstream Their BOLT Binary Performance Optimizer Into LLVM - Phoronix

    Facebook's BOLT is a multi-year project focused on speeding up the performance of binaries. This open-source project initially focused on being able to better optimize Linux x86_64/ARM64 ELF binaries as a post-link optimizer. BOLT has been seeing much success with even Google using it now for better performance and now there is work to upstream it as part of the LLVM project. 

    Facebook engineers are hoping to see BOLT added to LLVM as a binary optimization framework. Google has reported with their own workloads that BOLT can normally provide 2~6% uplift on top of the abilities of compiler optimizations. Other organizations and academia also have been using BOLT in varying capacities. 

  •   

  • 5 steps to learn any programming language | Opensource.com

    Some people love learning new programming languages. Other people can't imagine having to learn even one. In this article, I'm going to show you how to think like a coder so that you can confidently learn any programming language you want.

    [...]

    With just a little programming experience, which you can gain from any one of several introductory articles here on Opensource.com, you can go on to learn any programming language in just a few days (sometimes less). Now, this isn't magic, and you do have to put some effort into it. And admittedly, it takes a lot longer than just a few days to learn every library available to a language or to learn the nuances of packaging your code for delivery. But getting started is easier than you might think, and the rest comes naturally with practice.

    When experienced programmers sit down to learn a new language, they're looking for five things. Once you know those five things, you're ready to start coding.

  • RcppZiggurat 0.1.6

    The RcppZiggurat package updates the code for the Ziggurat generator by Marsaglia and other which provides very fast draws from a Normal distribution. The package provides a simple C++ wrapper class for the generator improving on the very basic macros, and permits comparison among several existing Ziggurat implementations. This can be seen in the figure where Ziggurat from this package dominates accessing the implementations from the GSL, QuantLib and Gretl—all of which are still way faster than the default Normal generator in R (which is of course of higher code complexity).

  • The four things you must be able to do in nano

    Text editing is essential to Linux users. Historically, the Vim text editor has been the default tool for managing file contents. Today, many systems and many sysadmins prefer to use the nano text editor.

    [...]

    In some ways, using nano is more like using the keyboard shortcuts in Microsoft Word or LibreOffice Writer. Nano is significantly more powerful than I am showing here, so be sure to check the documentation for more tricks. If you're a Vim user and you find yourself on a distribution that only has nano available, at least you'll know these simple functions.

    I guess I'm old school (or just old), but I prefer Vim, even for very short and simple edits. I acknowledge that nano is easier, but I am in the habit of using Vim. In fact, I have it installed on my Mac and Windows computers, too.

  •   

  • Sysadmin careers: the correlation between mentors and success | Enable Sysadmin

    Typically, the more information you have about a situation, the more successful you will be in navigating it. The same can be said about the level of experience you have in dealing with specific problems. This is what inspired me to explore the experience of other industry professionals. I had several great mentors over the years, and I always felt that the time spent learning from them paid off exponentially. It's not always some intellectual atom bomb that reshapes your skillset. Many times, the most powerful lessons are in the wisdom gained over time. Having the skill to act is great, but it helps to know when and how to act as well.

    We asked a group of our core contributors about their mentors and the impact of these experiences on their careers. Some had specific people in mind; however, an equal number stated that a close-knit team can be just as valuable as a single guiding force.

  •  

  • Steinar H. Gunderson: plocate in testing

    plocate hit testing today, so it's officially on its way to bullseye Smile I'd love to add a backport to stable, but bpo policy says only to backport packages with a “notable userbase”, and I guess 19 installations in popcon isn't that Smile It's also hit Arch Linux, obviously Ubuntu universe, and seemingly also other distributions like Manjaro. No Fedora yet, but hopefully, some Fedora maintainer will pick it up. Smile

  • A PHP syntax for discardable assignments [LWN.net]

    Recently, John Bafford revived a years-long conversation on expanding the syntax of the PHP foreach statement to include iterating solely over keys. Bafford, who wrote a patch and request for comments (RFC) on the matter back in 2016, hopes to update his work and convince the community to adopt the abbreviated syntax in PHP 8.1. The community took Bafford's general idea and expanded it into other areas of the language.

  • Kata Containers rewritten in Rust gets a major speed boost

    Kata provides container isolation and security without the overhead of running them in a VM. Usually, containers are run in VMs for security, but that removes some of the advantages of using containers with their small resources footprint. Kata containers, however, can run on bare metal. 

    The purpose of runV was to make VMs run like containers. In Kata, this approach is combined with Intel's Clear Containers, which uses Intel built-in chip Virtual Technology (VT), to launch containers in lightweight virtual machines (VMs). With Kata, those containers are launched in runV.

    Despite the Intel connection, Kata Containers are hardware agnostic. Kata Containers are also built to be compatible with the Open Container Initiative (OCI) specification, and Kubernetes' container runtime interface (CRI).

  • Forlinx OK1028A-C networking SBC supports LVDS displays, 4G/5G modules

    Forlinx released two networking SBC’s with 10Gbps Ethernet powered by NXP LS1043A and LS1046A processor nearly exactly one year ago. Like many other networking SBCs they do not come with video output so configuration is done via a computer or laptop either through a UART interface or a web interface. But in some cases, such boards may be integrated into machines that require a display for human-machine interaction. That’s why Forlinx has now released a new networking board – OK1028A-C – powered by NXP QorIQ Layerscape LS1028A dual-core Cortex-A72 processor that natively supports video output up to 4K UHD resolution via an eDP/DisplayPort interface which the company used to provide an LVDS header.

  • Flex Logix InferX X1 AI Inference Accelerator Takes on NVIDIA Jetson Xavier NX

    When it comes to AI inference accelerators, NVIDIA has captured the market as drones, intelligent high-resolution sensors, network video recorders, portable medical devices, and other industrial IoT systems use NVIDIA Jetson Xavier NX. This might change as Flex Logix’s InferX X1 AI inference accelerator has been shown to outperform Jetson Xavier NX as well as Tesla T4. During the Linley Fall Conference 2020, Flex Logix showcased InferX X1 AI Inference Accelerator, its performance, and how it outperformed other edge inference chips. It is the most powerful edge inference coprocessor with high throughput, low latency, high accuracy, large model megapixels images, and small die for embedded computing devices at the edge.

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.