Skip to content
Menu
Open World News Open World News
  • Privacy Policy
Open World News Open World News

Category: News

Ruby 3.2.0 Preview 2 Released

Posted on September 9, 2022 by Michael G

We are pleased to announce the release of Ruby 3.2.0-preview2. Ruby 3.2 adds many features and performance improvements.

WASI based WebAssembly support

This is an initial port of WASI based WebAssembly support. This enables a CRuby binary to be available on Web browser, Serverless Edge environment, and other WebAssembly/WASI embedders. Currently this port passes basic and bootstrap test suites not using Thread API.

Ruby 3.2.0 Preview 2 Released

Background

WebAssembly (WASM) is originally introduced to run programs safely and fast in web browsers. But its objective – running programs efficinently with security on various environment – is long wanted not only by web but also by general applications.

WASI (The WebAssembly System Interface) is designed for such use cases. Though such applications need to communicate with operating systems, WebAssembly runs on a virtual machine which didn’t have a system interface. WASI standardizes it.

WebAssembly/WASI Support in Ruby intends to leverage those projects. It enables Ruby developers to write applications which runs on such promised platform.

Use case

This support encourages developers can utilize CRuby in WebAssembly environment. An example use case of it is TryRuby playground’s CRuby support. Now you can try original CRuby in your web browser.

Technical points

Today’s WASI and WebAssembly itself has some missing features to implement Fiber, exception, and GC because it’s still evolving and also for security reasons. So CRuby fills the gap by using Asyncify, which is a binary transformation technique to control execution in userland.

In addition, we built a VFS on top of WASI so that we can easily pack Ruby apps into a single .wasm file. This makes distribution of Ruby apps a bit easier.

Related links

  • Add WASI based WebAssembly support #5407
  • An Update on WebAssembly/WASI Support in Ruby

Regexp timeout

A timeout feature for Regexp matching is introduced.

Regexp.timeout = 1.0

/^a*b?a*$/ =~ "a" * 50000 + "x"
#=> Regexp::TimeoutError is raised in one second

It is known that Regexp matching may take unexpectedly long. If your code attempts to match an possibly inefficient Regexp against an untrusted input, an attacker may exploit it for efficient Denial of Service (so-called Regular expression DoS, or ReDoS).

The risk of DoS can be prevented or significantly mitigated by configuring Regexp.timeout according to the requirements of your Ruby application. Please try it out in your application and welcome your feedback.

Note that Regexp.timeout is a global configuration. If you want to use different timeout settings for some special Regexps, you may want to use timeout keyword for Regexp.new.

Regexp.timeout = 1.0

# This regexp has no timeout
long_time_re = Regexp.new("^a*b?a*$", timeout: nil)

long_time_re =~ "a" * 50000 + "x" # never interrupted

The original proposal is https://bugs.ruby-lang.org/issues/17837

Other Notable New Features

No longer bundle 3rd party sources

  • We no longer bundle 3rd party sources like libyaml, libffi.

    • libyaml source has been removed from psych. You may need to install libyaml-dev with Ubuntu/Debian platfrom. The package name is different each platforms.

    • libffi will be removed from fiddle at preview2

Language

  • Anonymous rest and keyword rest arguments can now be passed as
    arguments, instead of just used in method parameters.
    [Feature #18351]

      def foo(*)
        bar(*)
      end
      def baz(**)
        quux(**)
      end
    
  • A proc that accepts a single positional argument and keywords will
    no longer autosplat. [Bug #18633]

    proc{|a, **k| a}.call([1, 2])
    # Ruby 3.1 and before
    # => 1
    # Ruby 3.2 and after
    # => [1, 2]
    
  • Constant assignment evaluation order for constants set on explicit
    objects has been made consistent with single attribute assignment
    evaluation order. With this code:

      foo::BAR = baz
    

    foo is now called before baz. Similarly, for multiple assignments
    to constants, left-to-right evaluation order is used. With this
    code:

        foo1::BAR1, foo2::BAR2 = baz1, baz2
    

    The following evaluation order is now used:

    1. foo1
    2. foo2
    3. baz1
    4. baz2

    [Bug #15928]

  • Find pattern is no longer experimental.
    [Feature #18585]

  • Methods taking a rest parameter (like *args) and wishing to delegate keyword
    arguments through foo(*args) must now be marked with ruby2_keywords
    (if not already the case). In other words, all methods wishing to delegate
    keyword arguments through *args must now be marked with ruby2_keywords,
    with no exception. This will make it easier to transition to other ways of
    delegation once a library can require Ruby 3+. Previously, the ruby2_keywords
    flag was kept if the receiving method took *args, but this was a bug and an
    inconsistency. A good technique to find the potentially-missing ruby2_keywords
    is to run the test suite, for where it fails find the last method which must
    receive keyword arguments, use puts nil, caller, nil there, and check each
    method/block on the call chain which must delegate keywords is correctly marked
    as ruby2_keywords. [Bug #18625] [Bug #16466]

      def target(**kw)
      end
    
      # Accidentally worked without ruby2_keywords in Ruby 2.7-3.1, ruby2_keywords
      # needed in 3.2+. Just like (*args, **kwargs) or (...) would be needed on
      # both #foo and #bar when migrating away from ruby2_keywords.
      ruby2_keywords def bar(*args)
        target(*args)
      end
    
      ruby2_keywords def foo(*args)
        bar(*args)
      end
    
      foo(k: 1)
    

Performance improvements

YJIT

  • Support arm64 / aarch64 on UNIX platforms.
  • Building YJIT requires Rust 1.58.1+. [Feature #18481]

Other notable changes since 3.1

  • Hash
    • Hash#shift now always returns nil if the hash is
      empty, instead of returning the default value or
      calling the default proc. [Bug #16908]
  • MatchData
    • MatchData#byteoffset has been added. [Feature #13110]
  • Module
    • Module.used_refinements has been added. [Feature #14332]
    • Module#refinements has been added. [Feature #12737]
    • Module#const_added has been added. [Feature #17881]
  • Proc
    • Proc#dup returns an instance of subclass. [Bug #17545]
    • Proc#parameters now accepts lambda keyword. [Feature #15357]
  • Refinement
    • Refinement#refined_class has been added. [Feature #12737]
  • Set
    • Set is now available as a builtin class without the need for require "set". [Feature #16989]
      It is currently autoloaded via the Set constant or a call to Enumerable#to_set.
  • String
    • String#byteindex and String#byterindex have been added. [Feature #13110]
    • Update Unicode to Version 14.0.0 and Emoji Version 14.0. [Feature #18037]
      (also applies to Regexp)
    • String#bytesplice has been added. [Feature #18598]
  • Struct
    • A Struct class can also be initialized with keyword arguments
      without keyword_init: true on Struct.new [Feature #16806]

Compatibility issues

Note: Excluding feature bug fixes.

Removed constants

The following deprecated constants are removed.

  • Fixnum and Bignum [Feature #12005]
  • Random::DEFAULT [Feature #17351]
  • Struct::Group
  • Struct::Passwd

Removed methods

The following deprecated methods are removed.

  • Dir.exists? [Feature #17391]
  • File.exists? [Feature #17391]
  • Kernel#=~ [Feature #15231]
  • Kernel#taint, Kernel#untaint, Kernel#tainted?
    [Feature #16131]
  • Kernel#trust, Kernel#untrust, Kernel#untrusted?
    [Feature #16131]

Stdlib compatibility issues

  • Psych no longer bundles libyaml sources.
    Users need to install the libyaml library themselves via the package
    system. [Feature #18571]

C API updates

Removed C APIs

The following deprecated APIs are removed.

  • rb_cData variable.
  • “taintedness” and “trustedness” functions. [Feature #16131]

Standard libraries updates

  • The following default gem are updated.

    • TBD
  • The following bundled gems are updated.

    • TBD
  • The following default gems are now bundled gems. You need to add the following libraries to Gemfile under the bundler environment.

    • TBD

See NEWS
or commit logs
for more details.

With those changes, 2393 files changed, 168931 insertions(+), 113411 deletions(-)
since Ruby 3.1.0!

Download

  • https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0-preview2.tar.gz

    SIZE: 19816780
    SHA1: 2106c77fc1600daf41ae137ecc4cf7937e27f67f
    SHA256: 8a78fd7a221b86032f96f25c1d852954c94d193b9d21388a9b434e160b7ed891
    SHA512: 5e9ddcb1a43cff449b0062cc716bfb80a9ebbb14a1b063f34005e2998c2c5033badb44e882232db9b2fceda9376f6615986e983511fda2575d60894752b605cc
    
  • https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0-preview2.tar.xz

    SIZE: 14578112
    SHA1: 538b3ea4dc0d99f60f8bd6f71e65a56ceeb41c18
    SHA256: 01fac0929dccdabc0686c1109da6c187897a401da9ff8851242befa92f7fd430
    SHA512: 0f4cc919284fdfa1a42b6381760d1b3a4660da4b0fcdd2adf01ea04a425548b3c5ac090866915675db73964a1055090e54dd97cf4628cbb69403e541c71c28ff
    
  • https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0-preview2.zip

    SIZE: 24150109
    SHA1: 69ffffc52cad626166f73f21f25c29c9d73fe0e8
    SHA256: 67f9ad3110be1975b3ce547c0a6e2c910dfc1945fd6e9bb1bd340568897c6554
    SHA512: 1447e099e7a8da0ff206fda6f4e466640d6e86e9da8148315ab0154684b1fd22c02c0022b5a2f4d3fc00103b4e8cef8e35a770174921fd8c6abeca9ad41c1818
    

What is Ruby

Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
and is now developed as Open Source. It runs on multiple platforms
and is used all over the world especially for web development.

Posted by naruse on 9 Sep 2022

Automate network testing with this open source Linux tool

Posted on September 9, 2022 by Michael G

Use iperf3 to troubleshoot bandwidth, timing, protocol, and other problems on your TCP/IP network. Read More at Enable Sysadmin

The post Automate network testing with this open source Linux tool appeared first on Linux.com.

OSI Executive Director to speak at Open Source Summit Europe

Posted on September 9, 2022 by Michael G

We are slowly, but surely starting to return to in person events. Our next stop…

The post OSI Executive Director to speak at Open Source Summit Europe first appeared on Voices of Open Source.

Kala Chashma Trend Continues to Rule The Internet and these Videos are Proof

Posted on September 8, 2022 by Michael G
Kala Chashma Trend Continues to Rule The Internet and these Videos are Proof.

Argus News is Odisha’s fastest-growing news channel having its presence on satellite TV and various web platforms. Watch the latest news updates LIVE on matters related to politics, sports, gadgets, business, entertainment, and more. Argus News is setting new standards for journalism through its differentiated programming, philosophy, and tagline ‘Satyara Sandhana’.

To stay updated on-the-go,

Visit Our Official Website: www.argusnews.in
iOS App: http://bit.ly/ArgusNewsiOSApp
Android App: http://bit.ly/ArgusNewsAndroidApp
Live TV: https://argusnews.in/live-tv/
Facebook: https://www.facebook.com/argusnews.in
YouTube: www.youtube.com/c/TheArgusNewsOdia
Twitter: https://twitter.com/ArgusNews_in
Instagram: https://www.instagram.com/argusnewsin

Argus News Is Available on:
TataPlay channel No – 1780
Airtel TV channel No – 609
Dish TV channel No – 1369
d2h channel No – 1757
SITI Networks – 18
Hathway – 732
GTPL KCBPL – 713
& other Leading Cable Networks please visit https://argusnews.in/channel_number for channel number list

You Can WhatsApp Us Your News On- 8480612900
#Kalachasma #trending #Socialmedia #Argusnews #Argusenglish

iOS 16 Release Date All iPhone Users Get New OS on Sept 12

Posted on September 8, 2022 by Michael G
iOS 16 Release Date All iPhone Users Get New OS on Sept 12

“Solidarité à la source” – Charles Prats : “C’est quelque chose de très couteux pour pas grand-chose

Posted on September 8, 2022 by Michael G
Avec Charles Prats, Magistrat et Auteur de “Cartel des Fraudes 2” aux éditions Ring

André Bercoff du lundi au vendredi de 12h30 à 14h sur #SudRadio.
—
Abonnez-vous pour plus de contenus : http://ow.ly/7FZy50G1rry

———————————————————————

▶️ Suivez le direct : https://www.dailymotion.com/video/x75…
Retrouvez nos podcasts et articles : https://www.sudradio.fr/

———————————————————————

Nous suivre sur les réseaux sociaux

▪️ Facebook : https://www.facebook.com/SudRadioOffi…
▪️ Instagram : https://www.instagram.com/sudradiooff…
▪️ Twitter : https://twitter.com/SudRadio
▪️ TikTok : https://www.tiktok.com/@sudradio?lang=fr
———————————————————————

☀️ Et pour plus de vidéos de Bercoff dans tous ses états : https://youtube.com/playlist?list=PLa…

##LE_FAT_DU_JOUR-2022-09-08##

What is Blogging & How to Earn Money from Blogging 2022

Posted on September 8, 2022 by Michael G
Assalam O Alikum!
Welcome to this video, here you will learn what is blogging and how you can start earning from it.
Hostinger: https://www.hostinger.com/kashif
Cupon Code: KASHIF
10% OFF DUE TO INDEPENDENCE DAY
Blogger Video Link: https://youtu.be/CvjZrtthmjM
_______________________________________________________________
Our Paid Courses are:
◼ YouTube Earning Course, YouTube SEO Course, Fiverr Course & Facebook Earning Course
◼ Whatsapp Numbers For Courses : +92 317 0565779 & +92 313 8971111

____________________________/SOCIAL LINKS__________________________________
Second Channel: https://www.youtube.com/channel/UCU4V…
Instagram ➤ https://www.instagram.com/thekashifma…
Facebook Page ➤ https://web.facebook.com/thekashifmajeed
Facebook Group ➤ https://www.facebook.com/groups/11644…

Disclaimer:
Mera Instagram Par Just 1 Account Hai Jiska Link Video Description mai mention hai. Instagram Par Kisi ko Payment Na den, Instagram par Kashif Majeed Payments Nhe Lety. Promotion, Paid Courses kay lia WhatsApp: +92 317 0565779 & +92 313 8971111 or email: contactmail123a@gmail.com par rabta kren. Reply na Milne ki soorat mai wait kren, Official WhatsApp kay ilawa kisi fake WhatsApp accounts par payment ya rabta na kren, Shukria
_______________________________________________________________

Gurene Wikimedia Community launches ‘Gurene Wiki Youth Month’

Posted on September 8, 2022 by Michael G
The Gurene Wikimedia Community has launched the ‘Gurene Wiki Youth Month’ in commemoration of International Youth Day. The Gurene Wiki Youth Month will celebrate community…

DrupalCon News: Těšíme se na Vás v Praze!

Posted on September 8, 2022 by Michael G

Author: Source Read more

Python releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now available

Posted on September 8, 2022 by Michael G

We have some security content, and plenty of regular bug fixes for 3.10. Let’s dive right in.

CVE-2020-10735

Converting between int and str in bases other than 2 (binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now raises a ValueError if the number of digits in string form is above a limit to avoid potential denial of service attacks due to the algorithmic complexity.

Security releases for 3.9.14, 3.8.14, and 3.7.14 are made available simultaneously to address this issue, along with some less urgent security content.

Upgrading your installations is highly recommended.

Python 3.10.7

Get it here:

https://www.python.org/downloads/release/python-3107/

This bugfix version of Python was released out-of-schedule to address the CVE, and as such contains a smaller number of changes compared to 3.10.6 (200 commits), or in fact 3.9.7 (187 commits) at the same stage of the release cycle a year ago. But there’s still over a 100 commits in this latest Python version so it’s worth checking out the change log.

And now for something completely different

In quantum mechanics, the uncertainty principle (also known as Heisenberg’s uncertainty principle) is any of a variety of mathematical inequalities asserting a fundamental limit to the accuracy with which the values for certain pairs of physical quantities of a particle, such as position and momentum or the time and the energy can be predicted from initial conditions.

Such variable pairs are known as complementary variables or canonically conjugate variables; and, depending on interpretation, the uncertainty principle limits to what extent such conjugate properties maintain their approximate meaning, as the mathematical framework of quantum physics does not support the notion of simultaneously well-defined conjugate properties expressed by a single value.

The uncertainty principle implies that it is in general not possible to predict the value of a quantity with arbitrary certainty, even if all initial conditions are specified.

We hope you enjoy the new releases!

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.

https://www.python.org/psf/

Your friendly release team,

Ned Deily @nad
Steve Dower @steve.dower
Pablo Galindo Salgado @pablogsal
Łukasz Langa @ambv

  • Previous
  • 1
  • …
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • …
  • 821
  • Next

Recent Posts

  • Qwen3-Coder
  • Open Source is Back
  • An easy way to develop Home Assistant integrations
  • SmartEsq has launched an AI-powered MFN Election tool
  • Open Source email Clients

Categories

  • Android
  • Linux
  • News
  • Open Source
©2025 Open World News | Powered by Superb Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT