[Topic DIscussion] 准备创建 deepin 的 dlang SIG
Tofloor
poster avatar
electricface
deepin
2022-10-19 19:52
Author

D语言(dlang)是一种编程语言,至今已有 20 多年的历史了。

官网

简介

D 语言是一种通用系统和应用程序编程语言。它是一种高级语言,但保留了编写高性能代码和直接与操作系统 API 和硬件接口的能力。 D 语言非常适合于开发团队一起编写中到大规模的百万行程序。 D 语言易于学习,提供了许多帮助程序员的功能,并且非常适合激进的编译器优化技术。

D 语言不是脚本语言,也不是解释语言。它没有虚拟机、宗教或压倒一切的哲学。对于需要快速、可靠地完成工作并留下可维护、易于理解的代码的实用程序员来说,这是一种实用的语言。

D 语言是数十年为多种不同语言实现编译器以及尝试使用这些语言构建大型项目的经验的结晶。 D 语言从其他语言(尤其是 C++)中汲取灵感,并通过经验加以调整。

代码示例,来自此处

import std.stdio;
import std.algorithm;
import std.range;

void main()
{
    // Let's get going!
    writeln("Hello World!");

    // An example for experienced programmers:
    // Take three arrays, and without allocating
    // any new memory, sort across all the
    // arrays inplace
    int[] arr1 = [4, 9, 7];
    int[] arr2 = [5, 2, 1, 10];
    int[] arr3 = [6, 8, 3];
    sort(chain(arr1, arr2, arr3));
    writefln("%s\n%s\n%s\n", arr1, arr2, arr3);
    // To learn more about this example, see the
    // "Range algorithms" page under "Gems"
}

正题

我对 D 语言比较热爱,同时 D 语言可以解决 Go 语言内存占用偏大的问题,丰富的语言特性设计的也比 Go 语言好,并且 D 语言改进提案(DIP)1000 极大的提升了内存安全性。

国外已经有 Serpent OS ,在使用 D 语言进行对 dpkg 级别的软件包管理体系的替换。

目前在应用方面的主要问题有:

  • D 语言没有在国产平台上实际尝试过,不清楚对国产平台的支持怎么样。
  • D 语言的编程辅助工具没有主流编程语言的好用,当然这个 D 语言社区正在解决中。

在此热烈有请对 deepin 和 D 语言同时热爱的伙伴们,特别是对 gcc 和 llvm 有些了解的大佬参加组建这个新的 SIG。

Reply Favorite View the author
All Replies
jjcui8595
deepin
2022-10-19 21:44
#1

like

Reply View the author
心平气和
deepin
2022-10-20 00:37
#2

感觉还可以。

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-10-20 00:42
#3

https://www.deepin.org/index/docs/sig/sig/README.zh_CN

Reply View the author
152******14
deepin
2022-10-20 04:54
#4

有没有兴趣给由你浪添把火?

Reply View the author