DLang 2.087.0 发布,DIP1000 等诸多特性实现

栏目: 软件资讯 · 发布时间: 5年前

内容简介:D 语言现在的更新频路非常稳定,3 年内没两个月发布一个大版本进行特性更新,此次发布的 2.087.0 附带 22 个主要改进和 44 个Bugzilla问题修复,其中最值得关注的是 DIP1000 特性,已经规划了很多年终于现在可以启...

D 语言现在的更新频路非常稳定,3 年内没两个月发布一个大版本进行特性更新,此次发布的 2.087.0 附带 22 个主要改进和 44 个Bugzilla问题修复,其中最值得关注的是 DIP1000 特性,已经规划了很多年终于现在可以启用预览,可在编译的时候加入 -preview=dip1000 进行体验。

编译器改进

  1. A new syntax is available to declare an alias to a function type
  2. Add Markdown-inspired features to Ddoc
  3. scope as a type constraint on class declarations is deprecated.
  4. Usage of this and super as types is obsolete
  5. Turn deprecation into error for some invalid integer literals.
  6. fix Issue 16002 - Add is(sym == module) and is(sym == package)
  7. Local templates can now receive local symbols.
  8. Windows: The mingw based runtime and platform import libraries can now be selected explicitly
  9. Floating point types now use a quiet nan as the .init value
  10. Class allocators and deallocators are now obsolete
  11. The deprecation phase for access checks is finished
  12. Initialization of immutable global data from static this is deprecated
  13. Struct constructors with all-default parameter will now error
  14. Template alias parameters now match basic types as a conversion.
  15. 32 Bit Linux now uses XMM registers for float and double rather than the x87.

标准库改进

  1. Added a table of control characters in ASCII table
  2. Count processors via sched_getaffinity on Linux
  3. Add overload std.algorithm.sorting.schwartzSort!(alias transform, SwapStrategy ss, R)
  4. Phobos is now compiled with -preview=dip1000

D 语言近年来的发展比较迅速,在各平台编译器的支持中可以看到 gcc 已经默认包含 gdc 进行 D 语言编译,基于 LLVM 架构的 LDC 也稳健跟进中,而在著名 linux 发行版 Fedora 的安装镜像中也包含 D 语言开发环境的选择,不难看出 D 语言近些年的努力得到了开源社区的认可。

而在服务端领域 HuntLabs 也提供了很多服务端架构 工具 链,包含底层 io、并发、数据库、分布式缓存、http2 协议等,也包含 gRPC、hunt-framework、hunt-service、hunt-entity 框架方便进行微服务构建。

希望 DLang 在服务端领域能够成为 Java 、Golang、 PHP 之外的另一个好的选择,我们相信好的技术不应该被埋没,加油 D。


以上所述就是小编给大家介绍的《DLang 2.087.0 发布,DIP1000 等诸多特性实现》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Docker——容器与容器云

Docker——容器与容器云

浙江大学SEL实验室 / 人民邮电出版社 / 2015-9-1 / 89.00元

本书从实践者的角度,在讲解Docker高级实践技巧的同时,深入到源代码层次,为读者梳理出Docker容器技术和基于Docker的容器云技术(如Kubernetes)的实现方法和设计思路,帮助读者理解如何在实际场景中利用Docker解决问题并启发新的思考。全书包括两部分,第一部分深入解读Docker容器技术,包括Docker入门、架构总览、Docker容器核心原理解读,以及Docker高级实践技巧;......一起来看看 《Docker——容器与容器云》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具