Programming/Development: Rust, Python and More
-
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.
- Login or register to post comments
- Printer-friendly version
- 3899 reads
- PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is releasedAfter 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. |
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future TechThe 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. |
today's howtos
|
Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago