Language Selection

English French German Italian Portuguese Spanish

Programming/Development: Rust, Python and More

Filed under
Development
  • Announcing Rustup 1.23.0 | Rust Blog

    The rustup working group is happy to announce the release of rustup version 1.23.0. Rustup is the recommended tool to install Rust, a programming language that is empowering everyone to build reliable and efficient software.

    [...]

    The Rust team releases a new version every six weeks, bringing new features and bugfixes on a regular basis. Sometimes a regression slips into a stable release, and the team releases a "point release" containing fixes for that regression. For example, 1.45.1 and 1.45.2 were point releases of Rust 1.45.0, while 1.46.0 and 1.47.0 both had no point releases.

    With rustup 1.22.1 or earlier if you wanted to use a stable release you were able to either install stable (which automatically updates to the latest one) or a specific version number, such as 1.48.0, 1.45.0 or 1.45.2. Starting from this release of rustup (1.23.0) you can also install a minor version without specifying the patch version, like 1.48 or 1.45. These "virtual" releases will always point to the latest patch release of that cycle, so rustup toolchain install 1.45 will get you a 1.45.2 toolchain.

  • Book club: Rust after the honeymoon

    One of the first areas we discussed was data bearing enums – these have been very important to Bryan. In keeping with a pattern we all noted these take a construct that’s relatively commonly implemented by hand in C (or skipped as too much effort, as Lars found) and provides direct support in the language for it. For both Daniel and Lars this has been key to their enjoyment of Rust, it makes things that are good practice or common idioms in C and C++ into first class language features which makes them more robust and allows them to fade into the background in a way they can’t when done by hand.

    [...]
    This distracted us a bit from the actual content of the article and we had an interesting discussion of the issues with handling OS differences in filenames portably. Rather than mapping filenames onto a standard type within the language and then have to map back out into whatever representation the system actually uses Rust has an explicit type for filenames which must be explicitly converted on those occasions when it’s required, meaning that a lot of file handling never needs to worry about anything except the OS native format and doesn’t run into surprises. This is in keeping with Rust’s general approach to interfacing with things that can’t be represented in its abstractions, rather than hide things it keeps track of where things that might break the assumptions it makes are and requires the programmer to acknowledge and handle them explicitly. Both Lars and Daniel said that this made them feel a lot more confident in the code that they were writing and that they had a good handle on where complexity might lie, Lars noted that Rust is the first languages he’s felt comfortable writing multi threaded code in.

  • Top 4 Most Popular Programming Languages in November 2020

    When starting out in the programming world, beginners often face the dilemma of choosing which programming language to learn first. Questions like, ‘What are the most popular programming languages,’ ‘Will the chosen language have any relevance in the future,’ ‘Where to learn to code,’ ‘Learning which language will provide more benefits professionally”, continue to rattle the minds. At the same time, while we worry about lagging in the fast-paced technological world, new programming languages (Elm, Rust, Kotlin, Elixir, Crystal, etc.) emerge, poised to overtake an older one. Furthermore, learning to code these languages is important as they provide programmers a crucial medium of connecting humans to computers. Since computers cannot comprehend the languages of the common man, these programmed commands can be used to control the behavior and output of a machine through accurate algorithms. Hence, helping us harness the power of computing in all human endeavors and projects.

  • 2D Array – Linux Hint

    A Two-dimensional (2D) array is an array of one dimensional (1D) arrays. The 1D array sizes are equal. The 2D array is also called a matrix with rows and columns.

  • Python Ternary Operator – Linux Hint

    Ternary operators are Python built-in conditional operators that are used to evaluate the defined conditions. It evaluates the condition for being true or false. Like the if-else statement, it is another way of defining conditional statements. The ternary operator is defined in the single line. The if-else statement and ternary operator returns a similar output. The ternary operator was introduced in Python version 2.5. This article explains the Python ternary operator in detail with examples.

  • Python zfill() Function – Linux Hint

    Owing to the versatility and availability of vast built-in modules, functions, and statements, Python is now a widely-used general-purpose programming language. The Python built-in features help programmers to perform complicated tasks very simply and efficiently. The zfill() is a Python built-in function that zeros on the left of the string to fill the specified width and return the string’s copy. It makes a padded string by adding zeros. This article demonstrates the use of the Python zfill() function.

More in Tux Machines

Broadcom Valkyrie/Viper VK Accelerators Set To See Mainline Support With Linux 5.12

For nearly one year Broadcom engineers have been working on Linux mainline drivers for their VK accelerators. Finally with the upcoming Linux 5.12 kernel the support is in place for those Broadcom Viper and Valkyrie accelerator cards. These Broadcom accelerator cards interface via PCI Express and provide offload engines for video transcoding and other tasks. These accelerator cards can be used for other real-time, high performance, high throughput offload compute purposes like around image and audio operations as well as crypto. Read more

Android Leftovers

Audiocasts/Shows: LINUX Unplugged, Homelab, and Tabliss

  • Eating the License Cake | LINUX Unplugged 390

    Successful open-source projects all seem to struggle with one major gorilla. Who it is, and what their options are now. Special Guests: Drew DeVore and Jonathan Corbet.

  • The Raspberry Pi is a great way to get started with Homelab! (How to Homelab Episode 4)

    If you're looking for a low-cost way to enter into the world of Homelab, look no further than the Raspberry Pi! These small computers are plenty powerful to run quite a few Homelab apps, and in this video I give you my thoughts on why that is. In a future video, we'll explore running some apps on the Raspberry Pi but I wanted to create this video as an introduction to the concept of using a Pi in this way

  • Tabliss Is A "New Tab" Plugin For Firefox and Chrome

    Tabliss is a beautiful, customisable "New Tab" page for Firefox and Chrome, and the browsers that base of Firefox and Chrome (such as LibreWolf and Brave). In particular, it solves the "empty tab" problem that I was having on LibreWolf

Games: Cyber Shadow, Ova Magica, Plex Arcade Flunks

  • With some epic 8-bit styled artwork Cyber Shadow is out now | GamingOnLinux

    Cyber Shadow from Aarne "MekaSkull" Hunziker and Yacht Club Games is an epic throwback to the likes of Ninja Gaiden and Shadow Of The Ninja and it's out now with Linux support. Nice the see Yacht Club give a hand to another developer, after their success with the Shovel Knight series.

  • Monster taming and farming mix in Ova Magica is up on Kickstarter and already funded

    Ova Magica, a blending of casual farming in the spirit of Stardew Valley and Harvest Moon blended with monster taming and battling like something out of Pokemon is now live on Kickstarter. It managed to get fully funded within the first 2-3 hours, which I'm really not surprised about. The early tech demo was promising and it has such a great idea. Thankfully it's another that will support Linux too and the developer has been very clear about this. The Kickstarter campaign also lists it nice and clear as "The game will be released on PC DRM-Free, on Steam (Windows, Mac OS and Linux), Nintendo Switch, Playstation 4, Playstation 5, Xbox One, Xbox Series X/S.".

  • Plex Arcade is a retro video game streaming service that excludes Linux users

    Unfortunately, there is one big catch -- Linux users are being left out.