Абстрактна Вікіпедія/Оновлення/2023-11-03

This page is a translated version of the page Abstract Wikipedia/Updates/2023-11-03 and the translation is 44% complete.
Оновлення Абстрактної Вікіпедії Translate

Абстрактна Вікіпедія (список розсилки) Абстрактна Вікіпедія в ICR Абстрактна Вікіпедія в Телеграм Wikifunctions on Mastodon Абстрактна Вікіпедія у Твіттері Абстрактна Вікіпедія у Фейсбуці Абстрактна Вікіпедія на Ютубі Сторінка проекту Абстрактні Вікіпедії Translate

Виконання Python на WebAssembly

 
A screenshot of the improved selector, finding types related to the input as labels or aliases in different languages. The input, "cha", matches the Polish "Cecha" for Key, the French "Chaîne" for String, the English alias "Unreachable" for Nothing, and the English alias "Character" for Code point.

Як повідомлено минулого тижня, ми перемкнули наше середовище виконання для JavaScript на використання стека на основі WebAssembly. Нам довелося зробити те саме для мови Python.

Станом на середу код Python тепер також виконується у середовищі виконання на основі WebAssembly. Це означає, що тепер увесь код, написаний користувачами, виконуватиметься у середовищі виконання WebAssembly, незалежно від того, чи він написаний на JavaScript, чи на Python.

The change turned out to be more difficult than anticipated. We tried several different ways, and discovered entirely novel ways our testing infrastructure could run into interesting issues. This has uncovered enough work for weeks! Finally, we ended up using Wasmtime with a locally-compiled RustPython module. There are a number of improvements and simplifications we want to work on in the coming weeks and months, but for now we are happy that the system seems to run in production. The WebAssembly-based Python runtime we have now seems to run a bit slower than the previous one, but it is likely that you won’t notice a difference.

With this change, we have completed adding an additional layer of security to Wikifunctions. This way we are really close to actually opening up editing. We will continue monitoring the systems, and if everything looks good, we will soon open for wider editing.

Thanks to Cory and James for integrating and deploying the WebAssembly runtime!

Покрашення селектора об'єктів

 
Пошук мови

Another set of improvements were deployed to the object selector, the widget that allows you to select a function or other object. You use this every time you create a function definition, and often when calling them, so it's important that we make it helpful for key parts of the workflow. It should be much more descriptive now because it shows the right label and type. It is also better at finding the right object because it’s taking aliases and languages into account. For finding languages, now also BCP 47 (and when different, also their MediaWiki) language codes are taken into account.

It used to be that you would sometimes need to type in raw ZIDs to find the right object. This should now be needed much more rarely, and work more fluently when you do need it. Let us know if you ever run into such a situation, so that we have input for further improving the widget.

Thanks to Geno and Amin for improving and redesigning the object selector! Also thanks to the community members who suggested improvements, including GZWDer and egezort.

Volunteer’s Corner on November 13, 2023

 
Пошук з використанням ZID

The next volunteer’s corner will be on November 13, 2023, at 18:30 UTC. We will meet in meet.google.com/xuy-njxh-rkw. Bring your questions, and if time permits, we will build a new function together.