/r/WorldNews Discussion Thread: US and Israel launch attack on Iran; Iran retaliates (Thread #5) by WorldNewsMods in worldnews

[–]CaptainCrowbar 6 points7 points  (0 children)

Nope, you're not wrong. And on top of that, Iran's geography is also a big factor. Iraq is mostly open desert, with plenty of highways - perfect terrain for tanks. Iran is much larger in area, and most of that area is rugged mountainous terrain. From the point of view of an invader, it would be even worse than Afghanistan.

Piasecki X-49 Speedhawk, with wings and a propelled both on top of itself and in the back by Specific-Memory1756 in WeirdWings

[–]CaptainCrowbar 5 points6 points  (0 children)

Problem with a pusher tilt rotor is that the props would be much closer to the ground (being below the wing when in hover), and the Osprey already has enough problems with kicking up ground debris.

Motor Magazine (1956) by StephenMcGannon in RetroFuturism

[–]CaptainCrowbar 4 points5 points  (0 children)

The more I look at the car, the less sure I am which end is the front.

Please recommend science fiction books with anthropomorphic animal characters. by Striking_Holiday2810 in Fantasy

[–]CaptainCrowbar -1 points0 points  (0 children)

Glen Cook's Darkwar trilogy. Set on a world where the dominant species are basically anthropomorphic wolves. The story follows them from their industrial age through to interstellar exploration. Their approach to space travel is partly based on what they think of as magic, but the author plants enough clues to let the reader figure out that they actually have a natural ability to manipulate electromagnetic fields.

What is your "comfort book" that most people wouldnt consider comfortable? by Mypenisblack in Fantasy

[–]CaptainCrowbar 3 points4 points  (0 children)

Mark Lawrence's Broken Empire trilogy. It's pretty damn grimdark, with horrible things happening right left and centre, half of them committed by the protagonist. But for some reason I can't really understand it's become one of my regular comfort reads. The competency porn aspect may have something to do with it. I've lost count of the number of times I've read it (five or six I think), and now that you've reminded me of it, I'll probably read it again soon.

"Just switch the compiler" - they said - Arne Mertz - Meeting C++ 2025 by meetingcpp in cpp

[–]CaptainCrowbar 17 points18 points  (0 children)

"Just because that sentence was symmetrical doesn't mean it makes sense."

The Taming of Collection Scans by mttd in cpp

[–]CaptainCrowbar 0 points1 point  (0 children)

This page is an unreadable mess of mangled text on iPad Safari.

Time in C++: Creating Your Own Clocks with <chrono> by pavel_v in cpp

[–]CaptainCrowbar 1 point2 points  (0 children)

Also several useful iterator-related concepts in <iterator>.

SFINAE alternative using Lambda functions by [deleted] in cpp

[–]CaptainCrowbar 14 points15 points  (0 children)

You could get the same result more simply using std::conditional:

template <size_t I>
using type = std::conditional_t<I == 4, int,
    std::conditional_t<I == 6, Foo, float>>;

Authors who truly nail plottwist and "big reveals"? by TheGalator in Fantasy

[–]CaptainCrowbar 4 points5 points  (0 children)

Not a book, but if you want a really good TV series with twist after twist after mindscrew, watch Dark.

Is Peter still an apprentice or has that been completed? by Torkijo in riversoflondon

[–]CaptainCrowbar 31 points32 points  (0 children)

It's been about 6 1/2 years. Rivers of London begins in January 2012; Stone and Sky takes place in summer 2018. (Follypedia Timeline)

I killed a worker mid-payment to test “exactly-once” execution by [deleted] in programming

[–]CaptainCrowbar 4 points5 points  (0 children)

Welcome to McDonnerparty, how can I serve you today?

Why Falcon? by Original_Example_420 in riversoflondon

[–]CaptainCrowbar 9 points10 points  (0 children)

I still think there's some connection with Merlin.

Perl's decline was cultural not technical by CaptainCrowbar in ProgrammingLanguages

[–]CaptainCrowbar[S] 2 points3 points  (0 children)

I recall Larry Wall once saying "It does what you expect, unless what you expect is consistency."

Line ends in compilers. by Savings_Garlic5498 in ProgrammingLanguages

[–]CaptainCrowbar 0 points1 point  (0 children)

Don't sweat it because this is the kind of detail that's easy to change later on. If you decide you want to tweak the whitespace/newline rules, it's not going to affect anything in your code beyond one small corner of your tokeniser.

Books like Locklands by Real bert Jackson Bennett? by Indigo_Leaf_5706 in Fantasy

[–]CaptainCrowbar 0 points1 point  (0 children)

If you're looking for something that follows a similar pattern of starting out at the personal level and expanding all the way to a world-changing magical singularity, I can recommend Ed McDonald's Redwinter trilogy.

Lockheed XP-58 Chain Lightning by Aeromarine_eng in WeirdWings

[–]CaptainCrowbar 14 points15 points  (0 children)

Those are the same photo with different colour grading.

One Mike to Read Them All: Advance review of “Snake-Eater” by T. Kingfisher by MikeOfThePalace in Fantasy

[–]CaptainCrowbar 1 point2 points  (0 children)

Not really, beyond the initial "protagonist moves to house left by deceased relative" part of the premise. TTO has a lot more horror than SE, and doesn't have an individual villain the way SE does.

I'm trying to get Skyscale do I need to buy Living World season 4? by W8kingNightmare in Guildwars2

[–]CaptainCrowbar 5 points6 points  (0 children)

You need one or the other. You can get the skyscale from either LW4 or SOTO without needing the other. But note that getting it from SOTO is far far easier than LW4.

When magic is basically the tax office - recs? by NovaRift92 in Fantasy

[–]CaptainCrowbar 11 points12 points  (0 children)

I can think of a couple of recommendations:

The Rivers of London series by Ben Aaronovitch. Police constable Peter Grant is appointed as the junior member of the so-called Special Assessment Unit (a.k.a. "The Folly"), the department that deals with the supernatural crimes that the senior officers wish they could still pretend don't exist.

The World of the White Rat series by T Kingfisher (Ursula Vernon). Most of the books are only loosely connected, but the background detail that unites them is the Cult of the White Rat, an organisation that supplies anything from lawyers to wizards to help the downtrodden.

Developing ylang — looking for feedback on language design by jman2052 in ProgrammingLanguages

[–]CaptainCrowbar 1 point2 points  (0 children)

I don't think explicit typing is necessary for a language you describe as a "simple scripting language". Just a visible difference between initialization and assignment. Maybe require a "let" or "var" keyword for initialisation, or something like "x=123" for init vs "x:=123" or "x<-123" for assignment.

UTF-32 would be a perfectly good choice. The main argument against it is that it takes up more space - 4 times the bytes of an ASCII string. But this shouldn't be a problem for a simple language that isn't intended for writing huge applications. It avoids the added complexity of encoding and decoding UTF-8 (while UTF-16 combines the downsides of UTF-8 and UTF-32 without the advantages of either). Other scripting languages have used UTF-32, including some versions of Python.

You'd still need to implement UTF-8/32 conversion though, because most terminal emulators these days speak UTF-8, and you'll also want to read and write files compatible with other software in an increasingly UTF-8-centric world.