HN user

WalterBright

80,419 karma
Posts27
Comments28,816
View on HN
blog.dlang.org 3d ago

(Ab)Using Overload Sets to Create Ad-Hoc Template APIs in D

WalterBright
14pts2
www.seattletimes.com 9d ago

Why recruiters can't find workers and new grads can't find jobs (it's not AI)

WalterBright
4pts9
blog.dlang.org 1mo ago

I Stopped Fighting My Tools and Built a Game Engine in D

WalterBright
21pts2
www.seattletimes.com 11mo ago

Jim Lovell has passed away

WalterBright
1pts3
news.ycombinator.com 1y ago

Top Greatest Movie Soundtracks

WalterBright
1pts11
www.sae.org 2y ago

Control Law for Fast, Non-Ringing Transients for Dynamic Systems

WalterBright
2pts2
www.kdab.com 2y ago

Using D to glue together C++ and Rust

WalterBright
7pts2
news.ycombinator.com 2y ago

Should have a black bar today for Netflix DVDs

WalterBright
7pts2
www.wsj.com 2y ago

Scientists Question Superconductivity Claim from Physicist Accused of Plagiarism

WalterBright
10pts6
news.ycombinator.com 3y ago

Remembering Paul Fillinich and Licensing C++ from AT&T

WalterBright
24pts4
www.caltech.edu 3y ago

Caltech to launch space solar power technology demo into orbit

WalterBright
174pts144
briancallahan.net 3y ago

Next C compiler is a D compiler: Introducing DMD's ImportC

WalterBright
189pts83
www.youtube.com 3y ago

Introduction to Dlang [video]

WalterBright
166pts100
www.frbsf.org 4y ago

Why Is U.S. Inflation Higher Than in Other Countries [pdf]

WalterBright
2pts0
www.seattletimes.com 5y ago

Laser-equipped robots to zap weeds on farmland

WalterBright
9pts3
www.reuters.com 5y ago

Amazon offers to help US with vaccine efforts

WalterBright
2pts2
venturebeat.com 5y ago

Eric Engstrom, co-creator of DirectX, has died

WalterBright
630pts338
www.seattletimes.com 7y ago

Rocket Labs Achieves Orbit

WalterBright
1pts0
twit.tv 11y ago

FLOSS Weekly 311: The D Language

WalterBright
4pts0
braingam.es 13y ago

Complex networks in D

WalterBright
36pts11
vimeo.com 13y ago

Andrei Alexandrescu: Generic Programming Galore using D (video)

WalterBright
9pts1
youtube.com 13y ago

Using D Alongside A Game Engine

WalterBright
7pts2
www.gamedev.net 13y ago

Binding D to C

WalterBright
4pts1
www.youtube.com 13y ago

Writing Testable Code in D (video)

WalterBright
6pts1
www.informit.com 15y ago

Interview with Andrei Alexandrescu

WalterBright
13pts0
www.youtube.com 15y ago

Google Tech Talk: Three Cool Things About The D Programing Language

WalterBright
19pts1
www.informit.com 16y ago

Full chapter text on concurrency for The D Programming Language

WalterBright
7pts0

I wonder how the future will judge you and I.

I've lived long enough to see a distinct shift in what people consider moral and immoral. Are you certain in your moral rectitude? (I am, even though I fall short of it, and change my mind now and then.)

these men were judged by the morality of their times

Half the colonies considered slavery to be moral in their time. So much so that, a few years later, fought and died in a terrible war to defend it.

What is moral and what isn't changes with the times. For example, blaspheming could get you murdered by the state in medieval times. The colonies had different views of morality, especially religious morality. It was immoral to work on the Sabbath. It was immoral to have sex before marriage.

The Founders saw fit to abolish the nobility, and disassociated religion from government. We've forgotten what an enormous leap both of those were (each of the colonies had an establishment of religion). I've seen endless documentaries on the founding of the country, and there's no mention of either of these.

Half of the colonies did abolish slavery. But, again, if it was demanded of the other half, the Union would never have happened.

Jefferson, Franklin, and Washington all held slaves.

I am certainly not advocating slavery. I'm merely pointing out that people should be judged on the morality of their times, not today's morality. If we judged past people by our modern standards, they would all be condemned.

I consider freedom to include the free market. Norway has a mixed economy, due to its extensive regulation.

While it operates as a free-market country, the Norwegian government holds large ownership stakes in strategic industries, including petroleum, hydroelectric power, telecommunications, and banking.

Experts often characterize the Norwegian economy as a blend of private enterprise, state ownership, and social welfare that provides high standards of living.

(Cribbed from google)

The only radio show I ever particularly liked was Jeff Gilbert's "Brain Pain" in the late 80s, on KCMU 90.3. He played metal music, particularly from the local Seattle bands.

What was fun about it was his irreverent sense of humor, the silly contests he'd run, the ads that made no sense, and all the drugged out band members he'd invite to the station.

I still have several cassettes of Brain Pain. Lost treasures, I presume. I wound up buying many of the albums he spun.

Lots of people have erratic income, such as anyone who owns a business. The options are:

1. buy a Lambo, then get it reposessed

2. save/invest on the peaks

Yes one of my very favorite albums! I'd put it in my top 10 easy, and I listen to a lot of music. I still remember when a friend of mine dropped the needle and I heard it for the first time.

The Thriller album is more popular, but I like Off The Wall better.

The tragedy is that we want artists to have reliable income

If artists create art that people are willing to pay for, great!

I don't really want to pay artists for art I don't like.

I remember when Nirvana suddenly became successful. Many in the local community called them "sellouts", which is quite unfair.

Heresy (2022] 4 days ago

Though the window of opinions you can express publicly has narrowed in the last decade

It's more like what was heresy earlier aligned with one's viewpoint. The change is it has shifted, not narrowed.

If you prefer writing:

    for (auto&& [i, it] : vec | std::views::enumerate)
        println ("{}:{}", ++i, it);
instead of:
    foreach (i, s; vec)
        writeln(i, ": ", s);
well, what can I say?

Some folks don't like iostreams

I thought it was ugly in 1987, and it hasn't improved with age. Then < > for templates made it worse.

Then there's formatted I/O:

    void IOS_precision()
    {
    cout << "\n--------------------------\n";
    cout << "Implementing ios::precision\n\n";
    cout << "Implementing ios::width";
    cout.setf(ios::fixed, ios::floatfield);
    cout.precision(2);
    cout<<3.1422;
    cout << "\n--------------------------\n";
    }
and I don't know if the problem with multithreading was resolved or not.

copied even if badly

Any program can be written in any language. But why suffer?

std::cout << i << ": " << v << std::endl;

C++ needs to abandon iostreams. Didn't the C++ community acknowledge that it was a bad idea? In the early days of D, people did want to do a version of it for D, but I objected and currently nobody wants it.

D has several usages for `foreach` depending on the number and type of its arguments. In this case, it sees that `vec` is an array, and so constructs a loop over the array. If `vec` was a range, the loop will be constructed as a loop over the array.

It's nice because it makes the syntax for arrays and ranges interchangeable, making for easy refactoring.

C++ should copy D's elegance:

    import std.stdio;

    string[9] vec = [ 
      "the", "quick", "brown", "fox", 
      "jumped", "over", "the", "lazy", "dog" 
    ];

    void main()
    {
      foreach (i, s; vec)
        writeln(i, ": ", s);
    }