[ home / overboard ] [ soy / qa / raid / r ] [ craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: msg-intellisense.png 📥︎ (32.84 KB, 822x497) ImgOps

 â„–27684[Quote]

No need to learn other coding languages other than c++ and python i just fucking write pseudocode on claude and it just outputs code in every known coding language.

 â„–27686[Quote]

File: truthnuke.png 📥︎ (93.9 KB, 498x352) ImgOps

though D is gooder than C++ and is just better at everything, and is also memory safe so rust is lose and D keep winning

 â„–27695[Quote]

File: 1767737761194t.gif 📥︎ (101.63 KB, 464x674) ImgOps

How do you maintain the code doe

 â„–27697[Quote]

C++ is so niggerlicious holy shit just use Java C# or Rust, JSID

 â„–27701[Quote]

>>27686
ev&doe D is mostly garbage collected
learn zig if you want a new C and rust if you want a better C

 â„–27704[Quote]

>>27701
>zig
nophono memelang
>d
java is better
>rust
aryan

 â„–27705[Quote]

>>27701
You can disable GC in D
You can use @safe @system @trusted in D
You can call C directly
You can use -betterC
You have far more powerful metaprogramming capabilities than rust
And it's easier for C++ devs to learn D than rust

 â„–27706[Quote]

>>27705
that doesnt matter when most projects use the GC. most codebases use libraries.
snca, rust has that too
… every language can do that.
snca
how does it work? im actually interested now.
somewhat true but still not usable as a c++ replacement (the GC)

 â„–27732[Quote]

>>27684 (OP)
IM FALLING FOR THIS BAIT AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACK!

 â„–27746[Quote]

>>27706
metaprogramming is like programming about programming, youre basically writing a code that can read generate analyze or create other code(including itself) while the program runs so when normal code manipulates data,metaprogramming treats code as data and is able to manipulate it, D is good and even the best for that as you can run it at compile time because of CTFE which is far beyond C++ `constexpr`
it also has string mixins so you can generate arbitrary D code at compile time

for example a code like this
string generateGetters(string[] fields) {
string result;
foreach (f; fields) {
result ~= " @property auto " ~ f ~ "() const { return _" ~ f ~ "; }\n";
}
return result;
}

mixin(generateGetters(["x", "y", "z"]));

will turn into this after compile
@property auto x() const { return _x; }
@property auto y() const { return _y; }
@property auto z() const { return _z; }

 â„–27747[Quote]

>>27706
>… every language can do that.

not every language has calling C that easy though, maybe zig since you just do `@cImport("header.h")` and in D its just `extern(C)`while in rust Bindgen is required for anything non trivial; manual unsafe blocks; alignment/padding is niggerish, Go is really slow at compile, C++ has native C calling but name mangling needs `extern "C"`, and python/JS whatever has really slow and error prone C calling



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ craft ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]