programminglanguages
By Paul Krill ECMAScript 2024, the latest version of ECMA International’s standard for JavaScript, has been officially approved, with features including transferring ArrayBuffers and advanced capabilities for working with string sets. The ECMAScript 2024 specification, also generally known as ECMA-262, was approved on June 26. Among the features are added facilities for resizing and transferring ArrayBuffers and SharedArrayBuffers. ArrayBuffers have previously enabled in-memory handling of binary data. The new feature extends ArrayBuffer constructors to take an additional maximum length that a...
Info World
By Matthew Tyson The JavaScript language is one of the wonders of the software world. It is incredibly powerful, flexible, and versatile. One limitation of its fundamental design, however, is its single-threaded nature. Traditional JavaScript appears to handle parallel tasks, but that is a trick of syntax. To achieve true parallelism, you need to use modern multithreading approaches like web workers and worker threads. Parallelism vs. concurrencyThe most basic way to understand the difference between parallelism and concurrency is that concurrency is semantic whereas parallelism is implementat...
Info World
By Paul Krill The Rust types team has made significant progress on the next-generation trait solver, according to a June 26 blog post. Work done to stabilize the use of the next-generation trait solver in coherence checking surfaced small behavior regressions and hangs, which caused delays. But the team is close to compiling the standard library and the compiler with the new solver enabled everywhere. They expect a long tail of minor issues and behavioral differences from the existing implementation. There also are open design questions that will need to be resolved prior to stabilizing the ne...
Info World
By Serdar Yegulalp This half-month Python report includes a quick guide to writing Python code in 2024, how to build Python-based data-driven web apps without a line of JavaScript, and 10 smart ways to make Python faster. We also have an intro to the one library Python users lean on for faster math at scale—and do check out all the breezy updates in Python Polars 1.0.0-rc.1. Top picks for Python readers on InfoWorld4 keys to writing modern PythonDitch the oldandbusted.py, embrace the newhotness.py—this update includes Python's new type hinting syntax and structural pattern matching, among othe...
Info World
By Paul Krill An OpenJDK proposal would preview value classes and objects in a forthcoming version of Java. The feature would provide Java class instances that have only final fields and lack object identity. The Java enhancement proposal, which dates back to August 2020, was updated on June 21. The plan would allow developers to opt into a programming model for simple values in which objects are distinguished by their field values, much as the int value 3 is distinguished from the int value 4. A second goal is to migrate popular classes that represent simple values in the JDK, such as Integer...
Info World
By Matthew Tyson Java 22 introduces stream gatherers, a new mechanism for manipulating streams of data. Stream gatherers are the delivered feature for JEP 461, allowing developers to create custom intermediate operators that simplify complex operations. At first glance, stream gatherers seem a bit complex and obscure, and you might wonder why you'd need them. But when you are confronted with a situation that requires a certain kind of stream manipulation, gatherers become an obvious and welcome addition to the Stream API. The Stream API and stream gatherersJava streams model dynamic collection...
Info World
By Paul Krill The OpenJDK’s Project Leyden, an effort to improve the startup time, time to peak performance, and footprint of Java programs, has published its first early-access build. Accessible from java.jdk.net, the initial Project Leyden release focuses on improving application startup time, according to a June 24 bulletin on the Oracle Java team’s Inside Java website. Other Leyden optimizations will be explored in future releases. The easiest way to start with Leyden features is by using the java program in the Leyden Early Access Release with the -XX:CacheDataStore flag. Project Leyden i...
Info World
By Serdar Yegulalp Although Python had its 30-year anniversary in 2021, the explosion of adoption, growth, and forward-thinking development associated with the language is still relatively new. Many features of Python have remained unchanged since its inception, but with every passing year, and every new edition of Python, there are new ways of doing things and new libraries that take advantage of those advances. So, Python has its old ways and its new ways. Naturally, it makes sense to learn how to work with Python using its most modern and convenient features. Here, we’ll run down the key co...
Info World
By Serdar Yegulalp What's new this (half-)month in Python and elsewhere? First up is Monkeytype, an Instagram-created library with a somewhat silly name. What's not silly is using it to add type hints automatically to untyped Python code. We also have five lesser-known tools for data science, a chance to go feet-first into Django 5 without getting swamped, and another look at Python 3.13, whose second beta has arrived. Sadly, you still gotta compile it from source to try out the bleeding-edge goodies. Top picks for Python readers on InfoWorldAuto-generate Python type hints with MonkeytypeSick ...
Info World
By Matthew Tyson Java’s sun.misc.Unsafe class has been in use since 2002. It provides essential low-level methods that framework developers use to deliver otherwise unobtainable features and performance. Unfortunately, Unsafe also has long-standing problems related to JVM maintainability. And, as the name implies, it isn't exactly safe to use. A newer JEP proposes to remove sun.misc.Unsafe's memory access methods in a future Java release. But what will replace them? This article looks at the Unsafe class, why some of its methods are slated for removal, and what developers can do to prepare for...
Info World
閲覧を続けるには、ノアドット株式会社が「プライバシーポリシー」に定める「アクセスデータ」を取得することを含む「nor.利用規約」に同意する必要があります。
「これは何?」という方はこちら