ProgrammingLanguages
By Simon Ritter With atomic clock-like regularity, the latest version of Java, JDK 22, was released last week. Although this is not a long-term support (LTS) release, there is nothing to stop you from using it in production, and it contains some interesting new features. Let’s dive in and see what this brings us. New features for the Java platform are defined through JDK Enhancement Proposals (JEPs), and JDK 22 contains 12 of these. Coincidentally, over the last 13 Java releases, since the switch to a six-month cadence, the average number of JEPs (to the nearest integer) is also 12. You could,...
Info World
By Paul Krill To reduce application execution time, Java’s segmented code cache would be extended with an optional “hot” code heap to compactly accommodate a part of non-profiled methods, under a draft JDK enhancement proposal now floating in the OpenJDK community. Another success metric of the plan is reducing the fragmentation of highly-optimized code in the code cache. By extending Java’s compiler control mechanism to mark certain methods as hot so they could compile into the hot code heap, the proposal would separate code that is known to be hot, decrease fragmentation of selected code, an...
Info World
By Paul Krill Java Development Kit (JDK) 22, released by Oracle March 19 as the latest version of standard Java, offers a number of security enhancements, covering areas ranging from an asymmetric key interface to a new security option for -XshowSettings that allows developers to easily display security-related settings. In a March 20 blog post on Oracle’s inside.java web page, Sean Mullan, technical lead of the Java Security libraries team and lead of the OpenJDK Security Group, detailed the security enhancements in JDK 22. The java -Xshowsettings option, which can be used to print system set...
Info World
By Paul Krill Rust 1.77, the latest version of the Mozilla Research-founded programming language focused on safety, speed, and concurrency, adds support for C-string literals. C-string literals in Rust expand to a null-byte terminated string in memory of type & ‘static CStr. This makes it easier to write code that will interoperate with foreign language interfaces that require null-terminated strings. All relevant error-checking, such as for a missing interior null byte, is performed at compile time. Announced March 21, Rust 1.77 can be installed using rustup: $ rustup update stable Another im...
Info World
By Matthew Tyson Java has made some big shifts over the past few years, as seemingly disparate forces converged to make the platform easier to use. New features like auto-compile and the var keyword lower the bar for using Java, for beginners and veterans alike. Let's take a look at what's cooking in this new, friendlier Java. varPerhaps the most astounding thing about modern Java, at least for long-timers, is the presence of var support. One of Java’s defining characteristics is that it is strongly typed, but var loosens that a bit. Within a method, you can now define a reference using var wh...
Info World
By Paul Krill C++ creator Bjarne Stroustrup has defended the widely used programming language in response to a Biden administration report that calls on developers to use memory-safe languages and avoid using vulnerable ones such as C++ and C. In a March 15 response to an inquiry from InfoWorld, Stroustrup pointed out strengths of C++, which was designed in 1979. “I find it surprising that the writers of those government documents seem oblivious of the strengths of contemporary C++ and the efforts to provide strong safety guarantees,” Stroustrup said. “On the other hand, they seem to have real...
Info World
By Paul Krill Python has its largest lead ever in Tiobe’s monthly index of programming language popularity, having jumped ahead of second-place C language by nearly 4.5 percentage points. Published yesterday, the Tiobe Programming Community Index of language popularity for March 2024 saw Python once again leading the index that C and Java once dominated. Python first topped the Tiobe index in October 2021. Elsewhere in the index, Scratch re-entered the top 10 and Rust climbed to 17th. Rust was 19th one year ago. [ Also on InfoWorld: Python moves to remove the GIL and boost concurrency ] The Ti...
Info World
By Paul Krill Apple has released Swift 5.10, an update to the company’s open-source programming language that reaches a major milestone: providing safety against data races via full data isolation in the concurrency model. The improvement prepares the way for the planned Swift 6 release. Binaries for Swift 5.10, introduced March 5, can be found at swift.org for Windows, macOS, and Linux. In explaining the milestone, Apple Swift engineer Holly Borla said an increasingly important source of undefined behavior is concurrent code that inadvertently accesses memory from one thread at the same time ...
Info World
By Paul Krill Apple has released Swift 5.10, an update to the company’s open-source programming language that reaches a major milestone: providing safety against data races via full data isolation in the concurrency model. The improvement prepares the way for the planned Swift 6 release. Binaries for Swift 5.10, introduced March 5, can be found at swift.org for Windows, macOS, and Linux. In explaining the milestone, Apple Swift engineer Holly Borla said an increasingly important source of undefined behavior is concurrent code that inadvertently accesses memory from one thread at the same time ...
Info World
By Paul Krill Gleam, a programming language designed to ease the development of type-safe, scalable systems, is now available in version 1.0.0, the language’s first stable release. Compiling to Erlang or JavaScript, Gleam was created by London-based developer Louis Pilfold. Gleam 1.0.0 was announced March 4. Developers can try Gleam from the Gleam Language Tour page. Public APIs can be found in the main GitHub repository for Gleam, covering areas such as language design, compiler, build tool, and the package manager. There are 234 packages available for the language. In a post describing the l...
Info World
閲覧を続けるには、ノアドット株式会社が「プライバシーポリシー」に定める「アクセスデータ」を取得することを含む「nor.利用規約」に同意する必要があります。
「これは何?」という方はこちら