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

 



Forgot your password?
typodupeerror
×

Comment Re:More solutions, less doom and gloom please (Score 1) 280

Sorry for the late reply, I'm rarely logged in.

There are two reasons why building in the ocean makes economic sense: 1) Economy of scale. There's plenty of room in the ocean to make it as large as you like, and while building costs increase by the square of the width, capacity increases by the cube. 2) The walls can be thin because the pressure is on the convex side.

Comment Re:More solutions, less doom and gloom please (Score 1) 280

Speaking as a UK resident, I do not see hydro energy storage being viable here, due to high population density, and concern for preservation of the remaining wild places and their ecology.

Build it in the ocean. Wall off a section of the sea and store energy by pumping water out.

Comment Re:Yes, master (Score 1) 50

Because I expect that the reason it affects only these two domains, is not because they are specifically mentioned in the site data delete procedure, but due to a subtle interaction of complex features.

If I'm wrong, and they literally wrote:

if(site!="google.com") delete_site_data(site)

then sure, fixing the bug would end any special treatment, but that kind of code would stand out as a sore thumb in any kind of code review.

Comment Re:OpenZFS (Score 1) 236

Various posts say various. I was curious about the claim that Oracle can't change the OpenZFS license, because there are other copyright holders. (Of course they won't, they're Oracle.) It's hard to tell whether the linked FAQ is backed by the legal opinion of an IP lawyer, or if it's just a random developer shooting their mouth..

Comment Re:Yes, master (Score 2) 50

I'm usually the first to reach for Hanlon's razor, and you know, even here I'll give google the benefit of the doubt in that this could be an accidental bug.

But that doesn't get them off the hook: The only way such a bug can exist is because there's code in there that special-cases these google domains. Maybe in a subtle way: It could be a special feature that any site could in theory use, but in practice is only used by google domains, and no-one else knows about it. In that code there's a site-data bug that they'll fix and call it a day.

But even after they've fixed the bug, the special-case code remains. And that's the real issue. The anti-trust case material. The reason not to use Chrome.

Comment Re:But does it address some issues? (Score 1) 74

I'm kinda confused as to how your problems with pip are fundamental to the Python language, when apparently you have the same kind of problems with ant and maven, which are written in a language very much different from Python.

Take a look in /usr/bin/ on any system with python. Can you find any python scripts that do not import python modules installed separately?

Well, yes I can. I went looking, and the first Python script I found was smtpd.py, which imports sys, os, errno, getopt, time, socket, asyncore and asynchat. Standard library only.

Can you find any C programs that don't use dynamically-linked shared objects installed separately?

Comment Re:Why would you make a language a moving target? (Score 1) 74

On *nix systems you could just spell it out with a shebang line.

And on Windows, ditto. If you write python2 on the shebang line, that's what you get.

Just add that to your existing Python 2 programs, ensure that Python 3 is the default otherwise (which it probably is without you having to do anything), and you're all set. It's not like you're going to be writing new Python 2 programs, is it?

Comment Re:But does it address some issues? (Score 1) 74

Many languages that "dynamically install modules as needed [...]

Only thing, that's not a Python language feature.

Some people have a build setup where the CI 'pip installs' everything from scratch every time, or a test setup where they "pip install -r requirements.txt" into a virtualenv every time they run the test. But that's just their build setup. They could stop doing that in an instant, and their program would still run fine.

If someone deploys to production in a way that's automated along those lines, with a requirements file that pulls in the latest and greatest of every package, then it's easy to see how that can go wrong. It's easily fixed, just pin the versions in the requirements file to the versions you tested with. Also, instead of using pypi.org directly, you can install from a local repo with only select vetted versions of packages.

Complain if you like if you see someone with a setup that's a little too dynamic, but it's not Python or pip that's making them do it.

Comment Re:which Pyhon? (Score 1) 155

2. They must be exhaustive (a few tests here or there wont help much)

Not necessarily. Sometimes you can get a lot of mileage out of a very few tests. If you test composite functionality that involves many modules, you can get reasonable coverage from a small number of high-level tests. Strictly speaking that's not unit testing, even if you do use a unit testing framework for it, but it works, so who cares what it's called.

Even if you have lots of tests and they are well maintained and correct, it still pretty much guaranteed that not all edge cases would be covered

Edge case errors are rarely type errors. The way to catch edge case errors is by having unit tests, regardless of language. And of course, by writing clean code that doesn't have too many special cases in the first place.

The people most likely to skip unit testing are the people who trust the static type checker too much.

I like Python and it is usually my language of choice for scripting (mostly because of a large variety of libraries available), but for a large and complex codebase I would rather choose something more strictly typed

I don't know what you call large, but I'm quite comfortable working with 100K SLOC Python applications. It does take discipline, but then writing large applications takes discipline in any language, and I'm not convinced that it takes more discipline to write a 100K Python program than it takes to write the 300K C# program with the equivalent functionality.

Comment Re:Who is the worst, again? (Score 1) 161

By the way: The current case-fatality rate in France is more like 1-2%.

Citations? What's "current"?

If I had a more precise number to quote I would have done so instead giving a very rough estimate, but it wasn't worth the effort find one. But you go ahead and dig up a precise number if it's important to you. The point I was making was that the French double-digit percentages are historical; there were a lot a deaths and very little testing in March.

3.77% is our overall CFR and it is 4.5 times lower, than France's — for all the supposed inferiority of US healthcare and system of government.

The point is that the overall CFR is a terrible measure that you should not be using for anything. It depends on the testing rate, and the testing rate has fluctuated dramatically.

Contrary to what you seem to think, I'm not dissing US healthcare. I wouldn't dream of doing that based on such poor data.

Slashdot Top Deals

Dinosaurs aren't extinct. They've just learned to hide in the trees.

Working...