Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment How does that compare to desktops? (Score 4, Informative) 195

Similar statements could be made for desktops, where tray icon pop-ups for updates, email and chat notifications distract and interrupt workflows.

Maybe both for desktops and cars, this problem can be solved by detecting whether the user is currently focussed (on the road or a task) or relaxed/idle, and may be interrupted. Mylyn is a very impressive demo of thinking in this direction, I would like to see more of it.

Comment Re:Weird (Score 1) 146

There are some very nasty pieces of work on that list, rapists and murderers who presumably managed to get a removal order from within prison

Do you have any reasons for your presumption, or are you just babbeling? Maybe they were falsely convicted as rapists and murderers, the ruling overturned and they do not want to be called rapists and murderers every time someone types their name into Google, for the rest of their lives. The fraction of falsely accused rapists is somewhere between 10-40%, and that stigma does not go away.

Comment Re:Infinity (Score 1) 1067

I mentioned the +/- zero thing in another comment elsewhere in this tree, actually! So we're all on board there.

It's not really that signless infinity is a contender for 'consensus' inasmuch as number systems which use signless infinity have utilities different from systems that have signed infinities, just like integer math continues to exist despite the 'improvements' of fractions and decimals.

Comment Re:Exceptions in Python list comprehensions (Score 1) 1067

Same reply: Python is not fully functional, and so list constructors like that cannot be counted upon to work elegantly in all situations. This is a completely normal thing common to basically every imperative language, and it's just something you have to accept—and write a special-purpose function for.

Comment Re:Exceptions in a map function (Score 1) 1067

I think that just means you're a zealot of functional programming; your expectations are wrong. If the language isn't fully functional in nature, don't expect key patterns like map() to work elegantly. They're hacks at best and not really part of the core language design; this is excellent proof of that.

Comment Re:Infinity (Score 1) 1067

You're just validating your own arbitrary decision to use that integer set. IEEE 754 defines positive and negative infinity separately. (However, if you look at the other comments below this one, you'll see that I argued for exactly this, reassigning the largest negative value to NaN in a signed integer format—but only for select situations.)

Comment Re:Kickstarter campaign to fix the overlord proble (Score 1) 124

So I guess ideally Slashdot would have to be run as sort of a public service, rather than as a money-maker. I figured Dice bought Slashdot and SourceForge to drive traffic to their job site, sort of as a loss-leader, goodwill gesture, look-at-us-we-totally-get-you-guys, please-consider-us-for-your-next-job-search sort of thing. But given how they're seemingly burning the goodwill candle at both ends by pushing through unpopular measure after unpopular measure, I have to admit I can't figure out what their real strategy is.

Maybe it's not an evil plan by Dice? I suspect it is some newly-appointed, over-eager IT dude that tries to "improve" the website and make it more 2.0, and perhaps also make some tasks easier for them (site management, statistics). The guy hasn't given up yet ;) but he is learning to make smaller steps.

Then again, how much could Slashdot cost to run? It's just a forum, for chissakes, right?

Then again again, if it's just a forum, why hasn't everybody moved on, en masse, to one of the clones of Slashdot that disgruntled Slashdotters have started in recent years?

That would require changing bookmarks, and habits, both of which is hard! *whine*

By the way, that soylentnews site is looking for someone to make their page (slashcode) more web 2.0. How ironic.

Comment Re:Infinity (Score 1) 1067

I wasn't thinking of the highest bit, just the highest value. As I'm guessing you already know, because of the nature of two's complement there's an asymmetry in positive and negative numbers (2^15 - 1 positive values, 2^15 negative values, and zero) resulting in one value that could easily be discarded; assigning this single value to an error would have an additional benefit of catching counter overflow. Certain older computers like UNIVACs actually used another system called one's complement, where the most significant bit was a negative sign, and numbers otherwise counted up from zero—this had the odd result of leaving a "negative zero" in the numbering system (which IEEE floating point numbers also have); this could also have been reassigned to NaN.

Yes, I agree that try/catch blocks are annoying from the perspective of people writing elaborate flat code—but they do force the programmer to actually handle errors instead of letting them propagate. In certain contexts this is vitally important. A programming language that permits NaNs is essentially making the decision that the division's failure is Not A Problem by default, which is a key point of contention: are we developing for a safety-critical application where a failure to test properly could have dire consequences? What if someone forgets to check for NaN values in the speed control system in an automobile? Is that better or worse than the program aborting entirely? (Almost certainly worse, as it's more likely there would be management code for catching and fixing that!)

So I would argue that, say, MATLAB or Lisp should support NaNs, but definitely not Ada, and I guess now I'm unsure about the C languages again.

Comment Re:Infinity (Score 1) 1067

It was a big story on Slashdot years ago. A similar cascade of discussions resulted. Let's think for a moment.

If you don't want to code to prevent a division by zero error in any situation where NaN isn't handled elegantly, you have an easy alternative, which is a try/catch structure. Adding NaN is basically just a magic error value, like -1 being returned on failure for C functions (example: failing to find a substring returns -1 as the index in many languages.) This practice is considered Generally Bad And Inadvisable by structured programming dogmatists, as it encodes control information inside of a content signal and potentially obfuscates the meaning of the program (and, in languages like Python, where negative indices have meaning, it can cause lots of subsequent problems.)

To keep things consistent, I would argue that NaN doesn't have a place in modern high-level languages that subscribe to structured programming paradigms; a division by zero is an error that occurs when data is improperly initialized or collected, and letting errors like this (a) propagate by ruining subsequent expressions and (b) potentially get displayed to the user is the vice of a PHP programmer who would rather just be told his or her code works rather than know if it was actually doing what was intended.

On the other side of things, I do actually agree with you and would propose that signed integer formats should reserve 0x8000000 (whatever the negative maximum value is, that one extra number you can't fit into the positive side anyway due to the asymmetry of two's complement) for NaN, because exception-handling invariably means unnecessary stack frame manipulation when used in C++, and programmers in low-level languages like the C family should have an alternative, just like they do with string search functions.

Slashdot Top Deals

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh

Working...