DrupalEasy: DrupalEasy Podcast S15E6 – Cameron Eagans – Composer Patches

We talk with Cameron Eagans about Composer Patches, an open-source, Composer plugin to assist with applying patches to code files.

URLs mentioned

DrupalEasy News 

Audio transcript

We’re using the machine-driven Amazon Transcribe service to provide an audio transcript of this episode.

Subscribe

Subscribe to our podcast on iTunes, Google Play, iHeart, or Spotify. If you’d like to leave us a voicemail, call 321-396-2340. Please keep in mind that we might play your voicemail during one of our future podcasts. Feel free to call in with suggestions, rants, questions, or corrections. If you’d rather just send us an email, please use our contact page
 

Andy Wingo: a negative result

Briefly, an interesting negative result: consider benchmarks b1, b2,
b3 and so on, with associated .c and .h files. Consider libraries
p and q, with their .c and .h files. You want to run each
benchmark against each library.

P and Q implement the same API, but they have different ABI: you need to
separately compile each benchmark for each library. You also need to
separate compile each library for each benchmark, because p.c also
uses an abstract API implemented by b1.h, b2.h, and so on.

The problem: can you implement a short GNU Makefile that produces
executables b1.p, b1.q, b2.p, b2.q, and so on?

The answer would appear to be “no”.

You might think that with call and all the other functions available
to you, that surely this could be done, and indeed it’s easy to take the
cross product of two lists. But what we need are new rules, not just
new text or variables, and you can’t programmatically create rules. So
we have to look at rules to see what facilities are available.

Consider the rules for one target:

b1.p.lib.o: p.c
	$(CC) -o $@ -include b1.h $<
b1.p.bench.o: b1.c
	$(CC) -o $@ -include p.h $<
b1.p: b1.p.lib.o b1.p.bench.o
    $(CC) -o $@ $<

With pattern
rules
,
you can easily modify these rules to parameterize either over
benchmark or over library, but not both. What you want is something
like:

*.%.lib.o: %.c
	$(CC) -o $@ -include $(call extract_bench,$@) $<
%.*.bench.o: %.c
	$(CC) -o $@ -include $(call extract_lib,$@) $<
%: %.lib.o %.bench.o
    $(CC) -o $@ $<

But that doesn’t work: you can’t have a wildcard (*) in the pattern
rule. (Really you would like to be able to match multiple patterns, but
the above is the closest thing I can think of to what make has.)

Static pattern
rules

don’t help: they are like pattern rules, but more precise as they apply
only to a specific set of targets.

You might think that you could use $* or other special variables on
the right-hand side of a pattern rule, but that’s not the case.

You might think that secondary
expansion

might help you, but then you open the door to an annoying set of
problems: sure, you can mix variable uses that are intended to be
expanded once with those to be expanded twice, but the former set better
be idempotent upon second expansion, or things will go weird!

Perhaps the best chance for a make-only solution would be to recurse
on generated makefiles, but that seems to be quite beyond the pale.

To be concrete, I run into this case when benchmarking
Whippet: there are some number of
benchmarks, and some number of collector configurations. Benchmark code
will inline code from collectors, from their header files; and
collectors will inline code from benchmarks, to implement the
trace-all-the-edges functionality.

So, with Whippet I am left with the strange conclusion that the only
reasonable thing is to generate the
Makefile
with a little custom generator, or at least generate the part of it to
do this benchmark-library cross product. It’s hard to be certain about
negative results with make; perhaps there is a trick. If so, do let
me know!

GNU/Hurd strikes back

The GNU/Hurd is the Sagrada Família of the Software World: having started to develop in 1990, the GNU/Hurd has yet to reach version 1.0. The Linux kernel, on the other hand, began development in 1993 and was initially considered a “kludge” until the Hurd was completed. It is now matured and widely used. Like the Loch Ness Monster, many believe that GNU/Hurd is vaporware and does not exist. It does exist and continues to evolve, albeit at a slow pace. Just recently, the Debian GNU/Hurd 2023 has been released. You can use the GNU/Hurd right now. This article takes a look at what it’s like to use Debian GNU/Hurd in a virtual environment in the cloud, to sidestep the lack of driver support, and highlights some of the unique features of this platform.

Daura e Tarjuma e Quran – Shuja Uddin Sheikh – 7th August 2023 – ARY Qtv

Daura e Tarjuma e Quran – Host: Shuja Uddin Sheikh

1st Time In Electronic Media’s History Complete Translation & Tafseer Of Quran Kareem.

#ShujaUddinSheikh #DauraeTarjumaeQuran #ARYQtv

Subscribe Here: https://bit.ly/3dh3Yj1

Official Facebook: https://www.facebook.com/ARYQTV/
Official Website: https://aryqtv.tv/
Watch ARY Qtv Live: http://live.aryqtv.tv/
Programs Schedule: https://aryqtv.tv/schedule/
Islamic Information: https://bit.ly/2MfIF4P
Android App: https://bit.ly/33wgto4

New Chery TIGGO 9 SUV 2023-2024

Flagship of Tiggo Series, Both Luxury and Comfort, New Chery TIGGO 9 SUV 2023-2024

The official guide price of Tiggo 9, the flagship model of Chery Tiggo series SUV, ranges from 152,900 to 209,900 yuan, and all models of the series are equipped with Chery 2.0T Kunpeng power with a maximum output of 261 horsepower. it also provides a seven-speed wet dual-clutch transmission and an 8AT transmission for our consumers to choose.

In terms of appearance, the Polygonal grille has a flat waterfall grille and the details are embellished with silver chrome trim. Sharp headlights on both sides are perfectly connected, which not only shows the car’s aggressiveness, but also makes it fuller. The lower part of the front is designed in an “L” shape and decorated with chrome, making the overall effect more three-dimensional.

The suspended roof and smooth body lines on the side of the car make the Tiggo 9 look very good visually. However, the dual-color wheel hub design and the hidden door handle design enhance the fashion sense. In addition, the rear of the car was outlined with a large number of straight lines to create a good sense of hierarchy, and the addition of backlit taillights once again improved the recognition of the rear of the car. It also added a sharp-edged rear bumper, long and narrow rear width gauges, and two tailpipe designs on each side.

In terms of chassis suspension, MacPherson independent suspension / multi-link independent suspension, which is more common in the same class vehicles, is used, timed all-wheel drive system, multi-disc clutch center differential structure and electromagnetic induction suspension are also the main driving style.

The dimensions of 4820mm, 1930mm, 1699mm in length, width and height and 2820mm wheelbase show that the vehicle has a large seating area. In addition, Tiggo 9 also has two seating arrangements, 5 and 7 seats. The second row of seats has seat heating function and independent rear air conditioning. In the 7-seater model, the second row of seats supports back and forth movement. It provides cup holders and storage compartments.

In addition to its unique appearance, Tiggo 9 also has a brand new interior atmosphere. In this atmosphere, the cockpit is matched with two color combinations that not only enhance the texture of the vehicle, but also exhibit a luxurious atmosphere. The multimedia and instrument cluster are still dual 12.3-inch screens, and there’s still a prominent split in the middle. The screen frame has become more rounded.

In terms of power, all Tiggo 9 models are equipped with the Kunpeng 2.0T engine with a maximum horsepower of 261Ps, a maximum power of 192kW and a maximum torque of 400Nm. In terms of transmission, Aisin Magna Global The latest generation 7DCT wet dual-clutch transmission is available, WLTC comprehensive fuel consumption is 7.5-8.5L/100km.

Source: https://www.pcauto.com.cn/hj/article/2140624.html#ad=20420

Python 3.12.0 release candidate 1 released

 

 I’m pleased to announce the release of Python 3.12 release candidate 1.

https://www.python.org/downloads/release/python-3120rc1/

This is the first release candidate of Python 3.12.0

This release, 3.12.0rc1, is the penultimate release
preview. Entering the release candidate phase, only reviewed code
changes which are clear bug fixes are allowed between this release
candidate and the final release. The second candidate (and the last
planned release preview) is scheduled for Monday, 2023-09-04, while the
official release of 3.12.0 is scheduled for Monday, 2023-10-02.

There will be no ABI changes from this point forward in the 3.12 series, and the goal is that there will be as few code changes as possible.

Call to action

We strongly encourage maintainers of third-party Python projects to
prepare their projects for 3.12 compatibilities during this phase, and
where necessary publish Python 3.12 wheels on PyPI to be ready for the
final release of 3.12.0. Any binary wheels built against Python
3.12.0rc1 will work with future versions of Python 3.12. As always,
report any issues to the Python bug tracker.

Please keep in mind that this is a preview release and while it’s as close to the final release as we can get it, its use is not recommended for production environments.

Core developers: time to work on documentation now

  • Are all your changes properly documented?
  • Are they mentioned in What’s New?
  • Did you notice other changes you know of to have insufficient documentation?

Major new features of the 3.12 series, compared to 3.11

New features

Type annotations

Deprecations

  • The deprecated wstr and wstr_length members of the C implementation of unicode objects were removed, per PEP 623.
  • In the unittest module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).
  • The deprecated smtpd and distutils modules have been removed (see PEP 594 and PEP 632. The setuptools package continues to provide the distutils module.
  • A number of other old, broken and deprecated functions, classes and methods have been removed.
  • Invalid backslash escape sequences in strings now warn with SyntaxWarning instead of DeprecationWarning, making them more visible. (They will become syntax errors in the future.)
  • The internal representation of integers has changed in preparation
    for performance enhancements. (This should not affect most users as it
    is an internal detail, but it may cause problems for Cython-generated
    code.)

(Hey, fellow core developer, if a feature you find important is missing from this list, let Thomas know.)

For more details on the changes to Python 3.12, see What’s new in Python 3.12. The next pre-release of Python 3.12 will be 3.12.0rc2, the final release candidate, currently scheduled for 2023-09-04.

More resources

Enjoy the new release

Thanks
to all of the many volunteers who help make Python Development and
these releases possible! Please consider supporting our efforts by
volunteering yourself or through organization contributions to the Python Software Foundation.
Your release team,
Thomas Wouters
Ned Deily
Steve Dower
Łukasz Langa