Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Lesson Here (Score 1) 250

A non lazy programmer shouldn't subtract two timestamps from each other to get a duration but uses a (self written) function that can handle overflows.

I am not sure who you are even talking to. My response was in response to a smart ass comment made by a user named fisted, where he basically said that someone was a moron for suggesting counters that will run for orders of magnitude longer (ie. tens of thousands of millennia) are a pretty OK idea.

Nobody mentioned calculating duration besides you (in a perfectly sensible way, I might add). This is a smart answer to the question that it is an answer to, but a really kind of silly answer to a question that it is not an answer to.

Comment Re:Lesson Here (Score 1) 250

And you have to adjust a lot of variables to become long. All temp vars that hold a timestamp. If you miss a single one, your screwed.

Yes, the program would have to be implemented without error, to not have an error... that is a tautology. Pragmatically, use a statically typed language, and do not change anything, use the correct type while implementing the program the first time.

What would a non-lazy programmer use instead? An arbitrary precision int or something? Can you think of any downsides to that approach?

Comment Re:Lesson Here (Score 1) 250

If you did the math, you don't need excess space. If you need excess space, you're just shifting the day of failure into the future. Yes, perhaps far enough, but still.

What math would you do to determine exactly how high a counter should count?

Would using a 64-bit long on a millisecond counter be lazy programming?

Comment Re:IPv6 and Rust: overhyped and unwanted! (Score 1) 390

I note that you did not specify which Xeon chips you actually have, which kind of suggests a set of E5450 or something similar. FiOS does not charge you enough for a continually saturated link, whether it is 25 or 500mbps, so you are still contending with some hard and secret GB limit (starts to make the $/GB model seem more appealing). Game servers tend to be pretty light, and most could run on very modest AWS hardware. Beyond that, EC2 costs nothing when the machines are powered down, and they provide a robust API & access control that would easily allow your friends to boot/stop the machines on demand. That setup is how my friends game, and you really should at least consider it when the service life of your server machine finally ends.

Comment Re:Why not? (Score 1) 678

Water ain't free, and Cali farmers think it should be.

There's your problem.

There is something that we agree upon vigorously. Not letting all users of water bid on available water is a subsidy.

I was reading interesting stuff about using forward osmosis to recover energy from desalination effluent, or even as a pre-treatment step before final desalination.

Comment Re:Why not? (Score 1) 678

Yes, but there are different types of desalination plants. Modern tech has hybrid micropore with solar/wind assist for pumping, and uses the old technique of glass windows to collect clean water. Do a search for solar desalination in any reputable energy journal.

Note that I said energy, to which you responded with several sources of alternative energy that might be employed. At the end of the day, the hypothetical pipeline might be driven by wind or solar energy as well. The wind or solar energy generated at the desalination plant could alternatively be sold, and so has monetary value that must be used to desalinate water.

Comment Re:So... (Score 1) 114

Let's stick with an analysis of the text in question, the post to which mine replied.

The text begins with, "There are two types of civil forfeiture", indicating an intention to describe two and only two types of scenario. Following this are two paragraphs clearly defining two types of persons from whom property is seized. First the text describes guilty people who totally deserve it, "There's the kind where they arrest you, take your stuff because it's evidence, or involved in a crime, and then, because it's involved in a crime, after you're convicted, they keep it." After this, the other situation where civil forfeiture occurs, "There's the kind where they arrest you, take your stuff because it's evidence, or involved in a crime, and then, because it's involved in a crime, after you're convicted, they keep it."

Characterizing the debate in this way makes it easy to dismiss the actual problems. In the latter case, the cops are implied to be corrupt, and in the former case the criminals deserve it. Sadly the issue is much more complex than this. Questions like, "who should benefit from the sales of seized property?", and, "since almost any physical object can be used in the furtherance of a crime, should a guilty person have all of their property seized?"

It is perplexing when you say, "Ignoring the outrageous cases that do occasionally happen is no less erroneous than what you accused us of", because this usage of us implies that I intended to say anything to you, Jane Q Public... a terrible mistake, which I already know well to avoid.

Slashdot Top Deals

This file will self-destruct in five minutes.

Working...