近些年以来 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
引用来自“奋斗de熊猫”的评论
idea 装了 DCD 之后,代码提示会非常的卡,这个怎么处理引用来自“Alex-wxlang”的评论
万能语言!出点好的应用就出名了!有人开发http服务器吗?怎么开发?引用来自“冰力”的评论
hunt framework 是 web 框架,hunt-http 是 library(支持 http 1.1 / 2.0 / websocket / stomp),hunt-entity 是数据库持久化 ORM 框架,hunt-cache 是缓存框架。另一个 vibe.d 是 http library 只支持 http 1.1引用来自“Alex-wxlang”的评论
hunt 文档太少了引用来自“Alex-wxlang”的评论
万能语言!出点好的应用就出名了!有人开发http服务器吗?怎么开发?引用来自“冰力”的评论
hunt framework 是 web 框架,hunt-http 是 library(支持 http 1.1 / 2.0 / websocket / stomp),hunt-entity 是数据库持久化 ORM 框架,hunt-cache 是缓存框架。另一个 vibe.d 是 http library 只支持 http 1.1引用来自“Alex-wxlang”的评论
万能语言!出点好的应用就出名了!有人开发http服务器吗?怎么开发?引用来自“奋斗de熊猫”的评论
idea 装了 DCD 之后,代码提示会非常的卡,这个怎么处理引用来自“平原君”的评论
感觉最近更新速度可以啊,难道有被facebook收编的意思引用来自“BuFuZao”的评论
这个语言其实挺好的,就缺个好爹了引用来自“Eriloan”的评论
确实引用来自“kut”的评论
如果这货替换dart来做flutter话,必火。引用来自“BuFuZao”的评论
这个语言其实挺好的,就缺个好爹了引用来自“Eriloan”的评论
确实引用来自“BuFuZao”的评论
这个语言其实挺好的,就缺个好爹了