Need advice about which tool to choose?Ask the StackShare community!
D vs Perl: What are the differences?
What is D? Modern convenience. Modeling power. Native efficiency. D is a language with C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity.
What is Perl? Highly capable, feature-rich programming language with over 26 years of development. Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.
D and Perl belong to "Languages" category of the tech stack.
"Compile-time function execution" is the primary reason why developers consider D over the competitors, whereas "Lots of libraries" was stated as the key factor in picking Perl.
Perl is an open source tool with 435 GitHub stars and 152 GitHub forks. Here's a link to Perl's open source repository on GitHub.
MIT, DuckDuckGo, and Tilt are some of the popular companies that use Perl, whereas D is used by AdRoll, Stockopedia, and 9Labs. Perl has a broader approval, being mentioned in 133 company stacks & 64 developers stacks; compared to D, which is listed in 6 company stacks and 6 developer stacks.
Pros of D
- Compile-time function execution16
- Makes functional programming style easier12
- Productive12
- Much easier to do Concurrent/Parallel vs C/C++12
- Simple but Powerful template-based generics11
- Powerful static function to avoid macro11
- Meta program is much easier to read/write vs. C++10
- It support unittest etc9
- Assembler is support directly in the language9
- System program language like C++ and C9
- Supports code covarge directly in the compiler9
- Metaprogramming7
- Supports both manuel memory and garbage collection7
- Plugs directly into C6
- Easy to translate from Java and C# to D6
- Feels and looks like C, so it's easy to learn5
- Amazing developer productivity4
- Fast2
- Performance2
- Syntax uniformity across pre-compile/compile/runtime1
Pros of Perl
- Lots of libraries72
- Open source66
- Text processing61
- Powerful54
- Unix-style49
- Regex47
- Stable37
- Concise syntax32
- Hackerish29
- Easy to use22
- Swiss army chainsaw16
- Code Less Do More13
- CPAN12
- Freedom9
- All purpose8
- Readability5
- Familiar5
- Many ways to do it5
- Community5
- Object-Oriented4
- Modular4
- Smart (does alot for you)4
- Postmodern3
- It's the best one-off task language3
- For a man2
- Good man pages2
- Auto case variables1
- Single Source Library (CPAN)1
- Multi-threaded support1
- Multiparadigm1
- C-style1
- Hashes1
Sign up to add or upvote prosMake informed product decisions
Cons of D
Cons of Perl
- Messy $/@/% syntax4
- No exception handling3
- Bad OO support2
- "1;"2
- No OS threads2
- Variables are global by default1
- Copy-on-create for interpreter-based threads1
- Barewords1
- Errors/warnings are ignored by default1