Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arcadia_leak
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
arcadia_leak
7mo ago
> not everything has a C API Anything that has stable ABI does. > go look how long I have been around on D forums You claimed higher up in this thread that D requires bindings to interoperate with C API. You don't seem that well
2.
▲
by
arcadia_leak
7mo ago
> Rust also has issues using anything besides cargo. D also has its own build system but it's not the only option. Meson officially supports building D sources. You could also easily integrate D with SCons, though there's no of
3.
▲
by
arcadia_leak
7mo ago
> You also need bindings in D, nothing new there. You don't. Any D compiler is a C compiler too, so it can take C headers without bindings or any overhead added.
4.
▲
by
arcadia_leak
7mo ago
> You never get a second chance at making a good first impression. There's a good number of younger programmers like myself who've never heard of D, say, before 2017 when those false claims were still true. Our first impression
5.
▲
by
arcadia_leak
7mo ago
> C# 14/.NET 10 Yes, they added AOT but it's still challenging to do anything that requires calling into the OS, because you're going to need the bindings. It will still add some overhead under the hood and more overhead w
6.
▲
by
arcadia_leak
7mo ago
> This talk explain why, it's not technical: https://www.youtube.com/watch?v=XZ3w_jec1v8 Really good talk, I remember watching it when it came out. Elm is what got me looking into FP several years ago, a nice langua
7.
▲
by
arcadia_leak
7mo ago
Depends on what the multiplicand is.
8.
▲
by
arcadia_leak
7mo ago
> Writing C# that doesn't allocate is like wearing a straightjacket Yes, and that's where D is majorly superior to C# -- it's flexible enough for you to go down to the metal for the critical parts.
9.
▲
by
arcadia_leak
7mo ago
Why yes, D is not the best choice if you're looking for instant profit.
10.
▲
by
arcadia_leak
7mo ago
You can use C but you are not forced to. In fact, you can write C and convert it automatically to D (though it will need some amount of manual editing afterwards). C is supported as a syntax option but it's still the same compiler for
11.
▲
by
arcadia_leak
7mo ago
D by definition meets the FFmpeg's criteria because it's also a C compiler. Because of that I never wondered how D performs in the benchmarks, as I know for sure that it can give me the performance of C where I need it.
12.
▲
by
arcadia_leak
7mo ago
It's true that there is no off the shelf tool that you can use right now to write your app, but it certainly doesn't prove that making such a tool is impossible or even complicated. It makes sense for a complex productivity app (e
13.
▲
by
arcadia_leak
7mo ago
> D/C#/Java are valid options I'm never picking D This is perfectly fair. > D was in the perfect spot to fill if it did not make the GC decision I just find it hard to believe that the GC is the one big wart that pushed
14.
▲
by
arcadia_leak
7mo ago
> The fact that C# is becoming the GC language in game dev is proving my point. Respectfully, it doesn't prove your point. Unity is a commercial product that employed C# because they could sell it easily, not because it's the b
15.
▲
by
arcadia_leak
7mo ago
> C# C interop is pretty smooth True, but you still need to either generate or manually write the bindings. In D, you just import the C headers directly without depending on the bindings' maintainers. > If it was an actual C++ mo
16.
▲
by
arcadia_leak
7mo ago
One good case for it that I see is a viable basis for cross-platform desktop apps. Today, cross-platform desktop GUI apps are either just a snapshot of the website contained inside Electron, or a C/C++ code base with manual memory mana
17.
▲
by
arcadia_leak
7mo ago
You'd be surprised to see how active the D community is, despite your fair point that it's noticeably smaller than in the "competing" (in quotes because it's not a competition, actually) languages. The latest releas
18.
▲
by
arcadia_leak
7mo ago
I'd rather say that the GC is the superpower of the language. It allows you to quickly prototype without focusing too much on performance, but it also allows you to come back to the exact same piece of code and rewrite it using malloc
19.
▲
by
arcadia_leak
7mo ago
I'd say D's template error messages are much better than C++'s, because D prints the instantiation stack with exact locations in the code and the whole message is just more concise. In C++, it just prints a bunch of gibberish
20.
▲
by
arcadia_leak
7mo ago
Yeah, I just saw his posts too and picked up the term :)
21.
▲
by
arcadia_leak
7mo ago
Well, I would say it's more like glasses - you can't convince those who don't wear them, and you don't need to convince those who need them either.
22.
▲
by
arcadia_leak
7mo ago
D and Rust are on the opposite sides at dealing with memory safety. Rust ensures safety by constantly making you think about memory with its highly sophisticated compile-time checks. D, on the other hand, offers you to either employ a GC an
23.
▲
by
arcadia_leak
7mo ago
On the flipside, with OOP is usually quite easy to put a debugger breakpoint on a particular line and see the full picture of what the program is doing. In diehard FP (e.g. Haskell) it's hard to even place a breakpoint, let alone see t
24.
▲
by
arcadia_leak
7mo ago
This is not true. It took about 20 years for Python to reach the levels of its today's popularity. JavaScript also wasn't so dominant and omnipresent until the Chrome era. Also, many languages that see a lot of hype initially lose
25.
▲
D Programming Language
(dlang.org)
216 points
by
arcadia_leak
7mo ago
|
273 comments