Programming: Rust, Python, C++, COBOL and More

-
Announcing Rust 1.43.0
The Rust team is happy to announce a new version of Rust, 1.43.0. Rust is a programming language that is empowering everyone to build reliable and efficient software.
[...]
There are other changes in the Rust 1.43.0 release: check out what changed in Rust, Cargo, and Clippy.
-
Nicholas Nethercote: How to speed up the Rust compiler in 2020
I last wrote in December 2019 about my work on speeding up the Rust compiler. Time for another update.
[...]
Last year I noticed from profiles that rustc spends some time compressing the LLVM bitcode it produces, especially for debug builds. I tried changing it to not compress the bitcode, and that gave some small speed-ups, but also increased the size of compiled artifacts on disk significantly.
Then Alex Crichton told me something important: the compiler always produces both object code and bitcode for crates. The object code is used when compiling normally, and the bitcode is used when compiling with link-time optimization (LTO), which is rare. A user is only ever doing one or the other, so producing both kinds of code is typically a waste of time and disk space.
In #66598 I tried a simple fix for this: add a new flag to rustc that tells it to omit the LLVM bitcode. Cargo could then use this flag whenever LTO wasn’t being used. After some discussion we decided it was too simplistic, and filed issue #66961 for a more extensive change. That involved getting rid of the use of compressed bitcode by instead storing uncompressed bitcode in a section in the object code (a standard format used by clang), and introducing the flag for Cargo to use to disable the production of bitcode.
The part of rustc that deals with all this was messy. The compiler can produce many different kinds of output: assembly code, object code, LLVM IR, and LLVM bitcode in a couple of possible formats. Some of these outputs are dependent on other outputs, and the choices on what to produce depend on various command line options, as well as details of the particular target platform. The internal state used to track output production relied on many boolean values, and various nonsensical combinations of these boolean values were possible.
-
More Onboarding Goodness - Building SaaS #53
In this episode, we continued with onboarding. I added unit tests for the new form and explained how foreign keys are wired through in CreateView. Then we marched on to the next template in the flow.
In the last stream, we set all the context data for the view that shows the form to create a grade level for the school. With the context in place, and the form structure set, I added the form class that will create the GradeLevel record.
We used Test Driven Development (TDD) to ensure that the form works. Once the happy path was in place, I wrote some additional tests to guard against some edge cases to guarantee that the user’s data is safe.
Once the grade level form was complete, I started on the template for the course form. I finished the stream by getting the basic template structure in place for that step.
-
PyCharm & DSF Campaign 2020 Results
The partnership between PyCharm and the Django Software Foundation has just raised 40,000 USD!
For the fourth time, JetBrains PyCharm boosted the Django Software Foundation (DSF) fundraising with the campaign ‘Get PyCharm, Support Django’, where for 28 days users could purchase new individual PyCharm Professional annual subscriptions 30% OFF while giving the full amount of their purchase directly to the DSF. Even given current conditions, the campaign was a success, raising a total of 40,000 USD and representing 20% of the Foundation’s funding goal for 2020.
-
Python Project: Send a Text Message when root logs in
A sped-up Python coding session where I program a script to alert me (via SMS) whenever root logs in via SSH, or when someone uses 'sudo'. I've sped it up from ~2.5 hours to about 15 minutes, with a few breaks for explanation about my approach. None of the dead ends and wrong turns have been edited out, so have fun.
-
Cypress basics: how do cypress tests work?
As I wrote earlier in a blogpost now we have cypress.io test framework integrated into Collabora Online codebase. Since we are testing an online, Javascript-based application that means we are working in an asynchronous environment. So triggering a user event via this framework, does not mean that this event is actually finished at the same time when the related cypress method is called. On the other hand, we try to cover real user scenarios, which are usually a sequence of events, as the user doing things on the UI step-by-step. So the question is, how to write sequential tests in an asynchronous environment. Fortunately, cypress has the answer to that.
-
Report from the February 2020 ISO C++ meeting (Core Language Working Group)
The first International Organization for Standardization (ISO) C++ meeting of 2020 happened in Prague, Czechia. It was our first time meeting in Prague, though I’ve been there a few times for the GNU Tools Cauldron. Two of us from Red Hat attended: Jonathan Wakely serves on the ISO C++ Standards Committee Library Working Group (LWG), and I am part of the Core Language Working Group (CWG). (You can see the ISO C++ committee structure here.)
This was our second meeting after sending the C++20 draft standard out for comments from the ISO C++ national bodies. We finished responses to the last round of comments. That went well, and at the end of the week, we voted to send the resulting C++20 standard to the national bodies for ratification.
In the next sections, I’ll share the thinking behind some of our decisions. Note that this report addresses mostly lower-level issues, unlike my usual trip reports.
-
Google's Flutter: 2 million developers, uptick in enterprise use, new release model revealed
Google says two million developers have used its Flutter user-interface (UI) framework for building apps targeting mobile, desktop, and the web since declaring it production ready at Google I/O 2018.
Unlike Microsoft, which will proceed with an online-only Build 2020 developer conference this May, Google in March decided to cancel its Google I/O developer conference completely. It was scheduled for May 12-14.
-
COBOL Coders Needed for Coronavirus Fight
-
Is COBOL your plan B? and more industry trends
The impact: I'm a writer first and foremost, and the most code I've ever written was under 100 lines of Perl to manage network config. Part of me is wondering how hard it could possibly be to pick up enough COBOL to be attractive to a bank? Always good to have a plan B, right?
-

- Login or register to post comments
Printer-friendly version- 2965 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 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.
|
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.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

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