Readit News logoReadit News
destructionator commented on Features of D That I Love   bradley.chatha.dev/blog/d... · Posted by u/vips7L
troupo · 2 months ago
IIRC it was weird and not that great in D1 era, and stalled for a very long time. There were also two competing incompatible runtimes.

Then came the D2 re-write which broke backwards compatibility and took another few years.

In the meantime everyone moved on

destructionator · 2 months ago
> D2 re-write

No such thing happened. D has always been built on the same codebase, and the labels "D1" and "D2" are just arbitrary points on a mostly linear evolution (in fact, the tags D 1.0 and D 2.0 came only 6 months apart; 1.0 was just meant to be a long term support branch, not a different language. It was the addition of `const` that broke most code around release 2.6 but if you update those, old and new compilers generally work.

I'd say where D failed was its insistence on chasing every half-baked trend that someone comments on Hacker News. Seriously, look at this very thread, Walter is replying to thing after thing saying "D has this too!!" nevermind if it actually is valuable irl or not.

destructionator commented on Features of D That I Love   bradley.chatha.dev/blog/d... · Posted by u/vips7L
LorenDB · 2 months ago
UFCS is a bit overreaching but I think it's great for its intended use of chaining expressions on ranges and such.
destructionator · 2 months ago
that actually wasn't its intended use; that's a side effect. The original intended use came from Effective C++ by Scott Meyers: "Prefer non-member non-friend functions to member functions.". It was meant to make that as syntactically appealing as the members.
destructionator commented on Features of D That I Love   bradley.chatha.dev/blog/d... · Posted by u/vips7L
nicoburns · 2 months ago
I'd say that the compiler not being open source during the period when it might otherwise have become popular is probably a pretty big factor.
destructionator · 2 months ago
The D parts of the compiler were released under the GPL from almost the beginning, since 2002. By 2004, a full open source compiler - what we now call gdc, officially part of gcc - was released using this GPL code. D was pretty popular in these years.
destructionator commented on Features of D That I Love   bradley.chatha.dev/blog/d... · Posted by u/vips7L
OskarS · 2 months ago
The "invariants" thing is fantastic, I haven't seen anything like that before and it's great. The C++26 contract stuff is fine, but this seems like a really great way of ensuring type invariants, I think I'd use this way more if it was in C++.
destructionator · 2 months ago
Just a personal anecdote, Walter Bright's Digital Mars C++ compiler also had the contracts (D started life almost literally as recycled code from Mr. Bright's other compilers - he wrote a native Java compiler, a Javascript 1.3 stdlib, and a C++ compiler with a bunch of extensions.... smash those together and you have the early D releases!).

Anyway, I used the DM C++ compiler originally because it was the only one I could download to the high school computers without filling out a form, and pimply-face youth me saw "DESIGN BY CONTRACT" at the top of the website and got kinda excited thinking it was a way to make some easy money coding online.

Imagine my disappointment when I saw it was just in/out/invariant/assert features. (I'm pretty sure D had just come out when I saw that, but I saw `import` instead of `#include` and dismissed it as a weenie language. Came back a couple years later and cursed my younger self for being a fool! lol)

destructionator commented on ICANN fee price hike by 11% [pdf]   itp.cdn.icann.org/en/file... · Posted by u/NoahZuniga
destructionator · 3 months ago
lol "11%" i guess sounds a lot bigger than "two cents".
destructionator commented on Programmers want flow. When programming, light turns red   scannedinavian.com/progra... · Posted by u/todsacerdoti
destructionator · 8 months ago
I work from home with a young child. I think if I put a sign up, it'd just prompt more questions from her lol
destructionator commented on Ask HN: Does anyone use sound effects in their dev environment?    · Posted by u/jack_riminton
swah · a year ago
Same, I was surprised to find out how hard it was to play a sound everytime the word ERROR appeared on my terminal.

I even wanted to run a sound on the "positive case" ie a loop that is processing a few hundred items, could easily benefict from a subtle sound so you could feel when some request got hold...

Like virtually all hardware does ie your vacuum cleaner has something stuck and is not operating at 100% etc.

(I'm planning doing a "toy" terminal using a gamedev environment just to explore this a bit)

edit: If you use Raycast you can just throw confetti from the command line too for extra dopamine:

    open raycast://confetti

destructionator · a year ago
Use the ascii bell character "\a" and turn off the "visual bell" or whatever options in the terminal (I hate those things) so you can actually hear it beep and find joy.
destructionator commented on I Hate the Term "Modern"   paritybit.ca/blog/why-i-h... · Posted by u/wild_egg
LtWorf · a year ago
neo means new
destructionator · a year ago
so does modern. so the same author who hates the term modern uses neo - synonomous with modern for all practical purposes - vim and mutt. why is that? might those reasons also apply to other "modern" things?
destructionator commented on I Hate the Term "Modern"   paritybit.ca/blog/why-i-h... · Posted by u/wild_egg
destructionator · a year ago
What I find offensive about this post is using "neo"vim and neomutt. what, was original AgentSmithMutt and TrinityVim not good enough? ...Is it because they're old?

Well anyway, I mostly agree with this post. Another similar thing I hate to see is things like "Really? In 2024?" and im just like that's the laziest critique of something ever.

destructionator commented on Emotional about X11: I'm creating a pure X11 “emoji keyboard”   github.com/Zirias/xmoji... · Posted by u/Zirias
dark-star · a year ago
Writing a pure X11 application in 2024 is an interesting choice, given the recent push to Wayland.

Nevertheless, it looks like a pretty cool tool!

destructionator · a year ago
The recent push to Wayland in 2024 is an interesting choice, given how productive and usable X11 is.

u/destructionator

KarmaCake day438October 22, 2015View Original