Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Comment Re: a smart move (Score 1) 50

>> "Yeah, on purpose I assume. It's almost like those symbols have a use and indicate what fundamental type is in play."
> Seems you do not program in Perl. Because: they don't imply that. They imply what type you want to get OUT of the hash or list. Otherwise you would simply write #myHash{"myKey"} and be done with it. But that is to simple ... you have to either write $myHash{"myKey"} if what comes out of myHash is a scalar, or something else depending what you have in the hash ...

That's literally what I said. It tells you the fundamental type that is in play (you know, what the thing you are working with is). $F{"a"} is a scalar, so $. %F is a hash, so %. @F is an array, so @.

Comment Re:Why keep calling out Boeing? (Score 1) 159

Probably because there were a couple of Boeing crashes 2018/19 that saw a worldwide grounding of the 737 MAX 8 for 20 months because it was in fact a problem with the planes.

So it'd be more like a Lexus plowing into a crowd a people and people speculating Toyota might have bad pedals and floor mats again.

It's extremely unlikely this will be a problem with the plane itself, 787s have been flying for a while now.

Comment Re: a smart move (Score 1) 50

> Care to show us a function definition in Python?
> And now one in Perl?

Why? They're easy enough to find, without the cherry picking involved in someone making one up here. But here's a perl function straight from the perl docs:

sub foo ($left, $right) {
        return $left + $right;
}

Of course this is also a perl function:

sub foo {
    return $_[0] + $_[1];
}

> Why do the Python function arguments have names, and the Perl function seems to have no arguments at all?

Because python functions have named parameters (though of course also have *args and **kwargs), while perl functions use implicit positional parameters or named parameters depending on developer choice.

> Care to explain in 3 sentences why accessing a value in a hash table in Perl is done with $ and not with @???

The value is a scalar and thus uses $. That's was only one sentence, sorry. Now it is three.

> Why does Perl use $ and @ when Python obviously does not need this magic?

It indicates which of the fundamental types the value is. Which allows those types to have independent namespaces and also provides information to the programmer/code reader.

> Oh, wait ... did I mix up @ with % again?

Yeah, on purpose I assume. It's almost like those symbols have a use and indicate what fundamental type is in play.

Mind you in the last 20 years I've done at least 10000x more python programming than perl programming, so there are probably more articulate defenses of perl somewhere by people who have been using it more often.

Comment Re:They used math (Re:I love science fiction!) (Score 1) 171

No, what changed the trip was the large deltaV available. Assuming Musk, who promised teslas would self drive without a driver at all from LA to NY within 2 years in 2016, isn't being overly optimistic about his orbital fueling plan and his rockets firing just fine after weeks in orbit.

Yes, people haven't bothered plugging those parameters into the old software because there's no need to calculate fantasy trajectories. Well I'm sure someone at spaceX has - likely with a lot of different values for fuel amounts in order to know what they need to aim for tank size wise and so on.

Comment Re:Dependency and Chaos (Score 1) 36

I've driven to closed freeway entry ramps and had to follow the detour - go the opposite direction for 4 exits and then u-turn - the first signage for which appear after the last point I could have picked a different way enough times that if google maps says the ramp is closed I'll probably go the other way. If the traffic is slow but not way outside normal and google tells me to the take the next exit so I can drive through the city and get back on in two exists time, I'm just going to stay on the freeway. Amazingly you can both use the tech and think.

And yes I could check the notices from the official channels about up coming closures and road works, but that would require planning ahead.

Comment Re:Concentration Camp (Score 1) 79

It is not.

By the very definition a concentration camp involves concentrating people on some ethic, religious, etc basis without fair trials or hearing. German prisons are nothing like that.

The reconcentrados in Cuba, restricted by the Spanish.

The American Indians in the US forced into reservations.

Those of Japanese heritage in the US forced into internment camps.

The Jewish people (and Romas and so on) forced into death camps by Germany.

Palestinians herded into camps by the Israeli government.

Uyghurs sent to the Xinjiang internment camps by China.

And so on and so on.

And so on and so on.

Comment Re:Ironically, this is what Trump wants (Score 0) 268

Why would there be more problems? Depends what the various costs and ratios are. But it could be better for them to relocate in order to serve US customers.

Say their components are from China and hit with a 125% tariff into the US, and half their costs are components, and they markup 100%. Tariffs on EU->US are 25%. Tariffs on China->EU are 2.5% (the current rate for "electrical machinery and electronic equipment").

Say an item is $50 of imported components and $50 of other costs. Manufacturing in the US to sell to the US would cost $50+$50*1.25 + $50 = $162.50. Markup 100% and the item sells in the US for $325.

Manufacturing in the EU to sell the the US would cost $50+$50*0.025 + $50 = $101.25. Markup 100% and the item sells for $202.50, add the 25% tariff and the item sells in the US for $253.13. Add some extra shipping of course and it's still better for their US customers.

If the EU tariff on Chinese components is less than 60% (and it looks like they are low single digit) it'll be cheaper to manufacture in the EU and export to the US than to manufacture in the US.

Of course it isn't that simple. EU labor and energy costs are probably higher - though US workers are going to earn enough have to be able to pay these tariffs...

Comment Re:"Stranglehold" ? (Score 1) 361

> And the difference? Sodium Ion batteries do not require rare earth elements. So if the battery does not require rare earth elements, you are not dependent upon rare earths. It's a alternative alkaline metal battery that is similar, but is a solution to the issue at hand.

Lithium ion batteries do not require rare earth elements. So what so you think that difference is?

And what is the temptation here:

> And we've all been talking about China's rare earth issues for a long time now. One might be tempted to call their investment advisor to put a bit of money into companies making Sodium ion batteries.

So what exactly do you think the link is, that would make Chinas rare earth issues prompt you to want to invest in sodium ion batteries?

Or did you just put two unrelated sentences in a paragraph, might you have just as well said:

And we've been talking about China's copyright law issues for a long time now. One might be tempted to call their investment advisor to put a bit of money into companies making Sodium ion batteries.

Comment Re:"Breakthrough" (Score 1) 302

Yes amazingly a treatment for one cancer doesn't magically fix another cancer. Just like a treatment for one virus doesn't magically fix another virus. Who would have thunk!

More than that every cancer is unique - every person with cancer has a unique cancer, none of the transmissible cancers we know of affect humans.

Comment Re:Predictable outcome (Score 3, Insightful) 338

There's really only two options:

1. They want cover while they loot the system. "Our new system revealed there's hundreds of billions of dollars missing" and all the tracks of them stealing it are gone.

2. Elon is a complete and utter moron. Given hyperloop, those tesla semi trucks, etc, etc that's certainly likely.

Slashdot Top Deals

Competence, like truth, beauty, and contact lenses, is in the eye of the beholder. -- Dr. Laurence J. Peter

Working...