日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

D语言/dlang 2.085.0 发布,GC、Objective-C 混编增强

發布時間:2025/3/17 编程问答 17 豆豆
生活随笔 收集整理的這篇文章主要介紹了 D语言/dlang 2.085.0 发布,GC、Objective-C 混编增强 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

百度智能云 云生態狂歡季 熱門云產品1折起>>>??

近些年以來 dlang 版本發布節奏穩健,編譯器更新越來越實用,這個版本附帶了上下文感知斷言消息、較低的 GC 內存使用方式、精確的 GC、對鏈接自定義 GC 的支持、大量的 Objective-C 混編改進,以及對 DUB 的工具鏈需求。這次發布也結束了對 OSX-32 的官方支持。

DMD 編譯器改進:

  • Add support for Objective-C classes
  • Add support for Objective-C instance variable
  • Add support for Objective-C super calls
  • Deprecate Objective-C interfaces
  • Context-aware assertion error messages
  • Avoid calling the struct constructor from const-casts
  • dmd now supports expressive diagnostic error messages with -verrors=context
  • memcmp() compares are no longer performed for struct equality tests, memberwise comparisons are done instead, per the spec
  • OSX 32-bit is no longer supported
  • -preview and -revert command line switches have been introduced
  • Transition to C++11 character types
  • Runtime 運行時改進:

  • Added GC.profileStats() to core.memory
  • Added core.stdcpp.new_
  • Added core.sys.linux.sched.CPU_COUNT.
  • Added core.sys.linux.sched.CPU_ISSET.
  • Moved std.conv.emplace, std.algorithm.mutation.move, std.algorithm.mutation.moveEmplace, and std.functional.forward to core/lifetime.d
  • GC cleanup can now be configured as a DRT GC option
  • A garbage collector with precise heap scanning can now be selected
  • GC.realloc is now more consistent and robust
  • User supplied garbage collectors can now be linked with the runtime
  • Added core.stdcpp.allocator
  • char/wchar fields in most D runtime (core.* and rt.*) structs are now zero-initialized
  • 包管理器 dub 改進:

  • dub fetch now supports <package>@<version> as a shortcut
  • extraDependencyFiles attribute added
  • File system supplier enabled
  • toolchainRequirements recipe entry
  • Dlang 官方完整的發行細節說明:

    https://dlang.org/changelog/2.085.0.html

    總結

    以上是生活随笔為你收集整理的D语言/dlang 2.085.0 发布,GC、Objective-C 混编增强的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。