Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
schveiguy
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
schveiguy
7mo ago
To be fair, the release cadence has been in a bit of a mess lately. But I expect that to be fixed soon. We don't want 6 months between releases.
2.
▲
by
schveiguy
7mo ago
gdc is 100% Iain Buclaw. But he and Walter collaborate on needs for gcc compatibility, as long as Iain is around, gdc will be around. It is true we have a small team. But we are a dedicated team.
3.
▲
by
schveiguy
7mo ago
No, templates are only needed to introduce new symbols. And D templates are vastly superior to C++. D's superpowers are CTFE, static if, and static foreach. auto is used as a return type because it's easy, and in some cases beca
4.
▲
by
schveiguy
7mo ago
ooooold drama. Like 2008. FOSS: DMD was always open source, but the backend license was not compatible with FOSS until about 2017. D is now officially part of GCC (as of v6 I think?), and even the frontend for D in gcc is written in D (and
5.
▲
by
schveiguy
7mo ago
That's the public stuff. An example of Weka talking about how they use D (there are more examples at this and other dconf presentations): https://www.youtube.com/live/Ou4KUBjr_78?si=bPOs-19gPemQe_ap...
6.
▲
by
schveiguy
11mo ago
Wow, this was introduced in 2012! https://github.com/dlang/druntime/pull/88
7.
▲
by
schveiguy
11mo ago
Thank you for this post. I can tell you that we do appreciate comments like this, and the deficiencies you cite are many of the reasons we are rewriting phobos and druntime. The time module "lied" seems like a straight up bug. Can
8.
▲
by
schveiguy
11mo ago
D has been fully unproprietary since 2017. https://forum.dlang.org/post/oc8acc$1ei9$1@digitalmars.com But that's only the reference compiler, DMD. The other two compilers were fully open source (including gcc, whi
9.
▲
by
schveiguy
1y ago
> Why "a" `a` is a parameter in the lambda function `a => a.idup`. > Why "map!" This is definitely something that can trip up new users or casual users. D does not use <> for template/generic instanti
10.
▲
by
schveiguy
4y ago
import C is not perfect. There are pieces of C that don't map directly to D. Such as #define constants and macros. That being said, it will make writing bindings a LOT easier, even though D already has direct binding to C functions.
11.
▲
by
schveiguy
4y ago
dlangui and dlangide has been adopted by GrimMaple (who is on the D discord as well), and is actively being developed.
12.
▲
by
schveiguy
4y ago
I learned how to use raylib from this youtube series, and used it to teach some homeschool kids D programming. Very nice series!
13.
▲
by
schveiguy
4y ago
The rationale is that in a correctly written program, an Error should never be thrown. It's similar to UB in C. The compiler can assume Errors are never thrown, and so it can not worry about cleanup in nothrow functions. But the nice t
14.
▲
by
schveiguy
4y ago
Oof, seems I got the camelcase wrong. It's `@mustuse` Working on updating that. I think the reason the documentation is cryptic is because it's a library-supplied User Data Attribute that is specially recognized by the compiler. T
15.
▲
by
schveiguy
5y ago
The only way you can be saying this is if you haven't experienced metaprogramming in D. C++ does not compare at all. Generics do not compare at all. You can take D metaprogramming from my cold dead hands.
16.
▲
by
schveiguy
5y ago
You can use arrays as if they were individual operands, and it will expand out the loop and apply the expression to all the values (and can use optimization/vector tricks if posssible). e.g.: arr1[] += arr2[] / 10.0 + 5; TBH, I do
17.
▲
by
schveiguy
5y ago
the "Split stdlib" thing is about 15 years out of date (and only applied to D1, whose final release was in 2012). I wish that criticism would go away.
18.
▲
by
schveiguy
5y ago
What language are you used to that doesn't do this? I think I would go nuts if I had to always use the fully qualified name for all symbols.
19.
▲
by
schveiguy
5y ago
There are "bad" uses of UFCS, and good ones (sometimes depending on preference). For example, I hate code like `1.writeln`. The major feature that it provides is pipelining (as shown in the article)
20.
▲
by
schveiguy
6y ago
Agreed. I've never felt the need to use betterC. The biggest use case I think is writing modules/libraries for other languages to use.
21.
▲
by
schveiguy
6y ago
No this one: "Returns: A range with each fun applied to all the elements. If there is more than one fun, the element type will be Tuple containing one element for each fun."
22.
▲
by
schveiguy
6y ago
the betterC form of D does not use the GC (and the compiler will let you know).
23.
▲
by
schveiguy
6y ago
Yes, it supports interfaces and unions. One thing not being stated enough in this thread also is that the docs are not just a regurgitated version of the prototypes -- there's actual hand-written text that tells you what the things ret
24.
▲
by
schveiguy
6y ago
What am I looking at there? Are those all traits on Vec that I then have to parse mentally so I can understand what I can do with it? Are all those pages basically to say "Vec works like an array of T"? I've dealt with generi
25.
▲
by
schveiguy
6y ago
Yes, this is the problem for returns, but it's going to be difficult for the compiler to put something useful. The best it can do is point you at the code that returns, and let you figure it out. I still think the best option is let th
26.
▲
by
schveiguy
6y ago
This wouldn't work for D. D doesn't constrain return types to something less than what they are. A Range is not just an Iterator, it has optional pieces that depend completely on the given type. For example, the return of map coul
27.
▲
by
schveiguy
6y ago
> You'll never learn it from reading the documentation. Did you not see the Returns section from that link? "Returns: A std.typecons.Tuple of the three resulting ranges. These ranges are slices of the original range." Furt
28.
▲
by
schveiguy
6y ago
Sometimes I feel like auto is definitely overused. In a recent fix, I changed something that returned a boolean (no templates involved) from returning auto to returning bool. But sometimes auto is the best tool for the job, especially when
29.
▲
by
schveiguy
9y ago
Mea Culpa. I installed 2016 to try and find the issue with my system, I haven't searched around the UI for bug reporting tools, didn't even know Microsoft had added them. Just found it now, indeed it looks quite useful. I'm g
30.
▲
by
schveiguy
9y ago
Thanks for the information. I indeed was, after 80 minutes of phone call, not quite in a "listening" mood. I actually kind of felt bad yelling at the last person after hanging up -- it wasn't her fault I was chucked around fo
More ›