TruffleRuby 24.2.0
TruffleRuby 24.2.0

原始链接: https://github.com/oracle/truffleruby/releases/tag/graal-24.2.0

TruffleRuby发布了新版本,重点关注错误修复、兼容性和性能改进。关键的错误修复解决了`Module#name`、`Module#const_added`、OpenSSL支持、`Time`方法和`ObjectSpace.undefine_finalizer`中的问题。 兼容性增强包括修复了`Module#include`、`Kernel#eval`、`Env#delete`,以及对`RbConfig::CONFIG`、`String`、`Time`和`Hash`方法的许多补充和修正,以与MRI Ruby保持一致。此版本实现了许多缺失的Ruby特性,并为不支持的操作抛出正确的错误。 性能得到了提升,通过Panama NFI后端优化了sqlite3、trilogy和json等C扩展,并改进了ASCII兼容编码的编码协商。`Polyglot::ForeignException`的继承也得到了更新。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 TruffleRuby 24.2.0 (github.com/oracle) 8 分 mooreds 31 分钟前 | 隐藏 | 过去 | 收藏 | 讨论 加入我们 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:
相关文章
  • 红宝石3.3 2023-12-26
  • 正则表达式匹配速度提升200倍 2025-03-18
  • (评论) 2024-08-22
  • (评论) 2025-03-16
  • (评论) 2023-12-26

  • 原文

    TruffleRuby is a high-performance implementation of the Ruby programming language.
    TruffleRuby aims to be fully compatible with the standard implementation of Ruby, MRI.
    More information is available on the website: http://www.graalvm.org/ruby/
    TruffleRuby comes in two standalone modes, native and jvm, for both Oracle GraalVM and Community Edition.
    See the documentation for which release asset corresponds to what.

    Changelog

    New features:

    Bug fixes:

    • Fix Module#name called inside the Module#const_added callback when the module is defined in the top-level scope (#3683, @andrykonchin).
    • Fix duplicated calls of a Module#const_added callback when a module with nested modules is assigned to a constant (@andrykonchin).
    • Support OpenSSL 1.1-3.4 and prefer in order OpenSSL 3.0.x, 3.x and 1.1 (EOL). There was a compilation issue with OpenSSL 3.4 (#3724, @eregon).
    • Fix Time{.at,.new,.now,#getlocal,#localtime} methods and validation of seconds in utc offset in String format (@andrykonchin).
    • Fix ObjectSpace.undefine_finalizer and raise FrozenError when called for a frozen object (@andrykonchin).
    • Fix Integer#/ when called with a bignum argument (@andrykonchin).

    Compatibility:

    Performance:

    • Speedup some C extensions like sqlite3, trilogy and json by 2 to 3 times by using the Panama NFI backend for faster upcalls in JVM mode (@eregon).
    • Optimize encoding negotiation for ASCII-compatible encodings (@eregon, @andrykonchin).

    Changes:

    • Inherit Polyglot::ForeignException from StandardError instead of Exception (#3620, @andrykonchin).
    联系我们 contact @ memedata.com