内容简介:近些年以来 dlang 版本发布节奏稳健,编译器更新越来越实用,这个版本附带了上下文感知断言消息、较低的 GC 内存使用方式、精确的 GC、对链接自定义 GC 的支持、大量的 Objective-C 混编改进,以及对 DUB 的工具链...
近些年以来 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
@ as a shortcut - extraDependencyFiles attribute added
- File system supplier enabled
- toolchainRequirements recipe entry
Dlang 官方完整的发行细节说明:
https://dlang.org/changelog/2.085.0.html
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
高性能MySQL
施瓦茨 (Baron Schwartz)、扎伊采夫 (Peter Zaitsev)、特卡琴科 (Vadim Tkachenko) / 宁海元、周振兴、彭立勋、翟卫祥,刘辉 / 电子工业出版社 / 2013-5-1 / 128.00元
《高性能mysql(第3版)》是mysql 领域的经典之作,拥有广泛的影响力。第3 版更新了大量的内容,不但涵盖了最新mysql 5.5版本的新特性,也讲述了关于固态盘、高可扩展性设计和云计算环境下的数据库相关的新内容,原有的基准测试和性能优化部分也做了大量的扩展和补充。全书共分为16 章和6 个附录,内容涵盖mysql 架构和历史,基准测试和性能剖析,数据库软硬件性能优化,复制、备份和恢复,高可......一起来看看 《高性能MySQL》 这本书的介绍吧!