Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Re:and no one gives a damn. (Score 1) 328

One thing we've noticed is the other side: it's often cheaper to just buy the movie, watch it at home (home-popped popcorn) and throw away the disc afterwards than it is to watch it in the theatre.

Home movies have gotten so much cheaper than theatres that this is feasible for most movies. We still see the odd one in the theatre, but that has gotten quite rare over the years.

You actually have something there. HDTV's are relatively cheap compared to the original vacuum tube variety that was used for standard definition. Even if you want to buy a 4K HDTV over the now standard 2K (1080p) 15:9 aspect ratio HDTV's you may pay about 10% more. In fact it is possible to set-up a reasonable home theatre (includes HDTV, DVD/BD player, amplifier and speakers) system for under $2000. Of course you could spend ridicules amounts of money on a home theatre system as well.

If you are into watching movies it is actually cheaper to either rent or if you think you may want to watch the movie again then purchase the Blu-ray. Even if that movie is the latest release and costs say $30 it would still be cheaper to purchase and watch with friends and family than go to a movie theatre.

It probably would be cheaper over the long-haul, plus you don't have people standing up in front of you in the middle of the "closure" scene just to beat the queue to get out... argh, so inconsiderate! Also, you can pause it at any point to talk, make tea or go for a piss. And you don't have to spend time and money travelling to/from the theatre and parking. I'm poor so I neither go to the cinema nor have a big home cinema system, but that'll definitely be my preferred choice upon leaving poverty :D

Comment: Re:i vote with my wallet (Score 1) 328

cool. then boycott copyrighted works and advocate for changing the law. don't steal. is that what you want to teach your kids?

The point of contention here is that these "copyrighted works" are very old and could be considered culturally significant, and that the current rights holders are not the people who created the works.

Consider this: imagine these laws were even more extreme and it was illegal to share or view an image of the Mona Lisa or a copy of Shakespeare's works online without paying Fox or MGM a stupid sum of money. In that case, would you advocate that society boycott reading Shakespeare or viewing the Mona Lisa? Is that what you want to teach your kids -- to lie back and accept an unjust situation? If so, why? If not, why is it a different situation to "Attack of the 50-foot Woman"?

Comment: Re: Why do people still care about C++ for kernel (Score 1) 365

by Desty (#48063449) Attached to: Object Oriented Linux Kernel With C++ Driver Support

Well, one way, you can monitor heap usage and trend the usage immediately following full GCs.

The other way to look at it is as a function of time.

None of that applies to modern server-centric garbage collection (GC1). "Stop the world while I collect garbage" makes a server worthless if you have 64 GB and GB takes minutes, which is why the default GC for the server SDK hasn't worked that way since mid Java 7.

That's not quite true; even without a "stop the world" collector, you can still look at the amount of time the parallel GC thread is busy. In fact there seems to be quite a bit of information available with tools such as jstat. Perhaps this could help you better understand actual heap use (this is also a problem I face at work -- processes that run out of heap after many hours, expectedly... argh).

Some info about jstat: http://www.cubrid.org/blog/dev...
Info about G1 (although you already seem very familiar with it): http://www.infoq.com/articles/...

Comment: Re:Time for GATT Article XX tariffs (Score 1) 427

by Desty (#47873121) Attached to: UN Study Shows Record-High Increases For Atmospheric CO2 In 2013

Surely, when the UK has a population of around 65 million, and China has a population of around 1400 million it makes a difference. We are talking about influencing government policy. So, we spend a huge effort changing UK policy, and at most we can effect a reduction in an output of:

7.7t * 65m = 500.5 million t ... while at the same time China is outputing:

7t * 1400m = 9800 million t.

The entire UK output is 5% of China's. If the UK can reduce its output by 20% (hugely unlikely, as just holding steady seems impossible to do), while the Chinese increase theirs by just 1% then the two effects cancel out (to some rounding error that I can't be arsed to calculate).

Focusing on those countries who are both raising their output the most and also have the largest populations (hello too India) seems perfectly sensible.

So if it's "hugely unlikely" to reduce the UK's output, when their per capita emissions are higher than China's, how can we expect China to do it?

Surely it's both fairer and more realistic to treat the targets on a per capita basis and not penalise China for having a large population.

Comment: Re:R... (Score 1) 143

"Portable assembly language" is an oxymoron. And I have never heard anyone use that phrase to describe C.

A quick web search will solve that for you. The phrase has been bandied about for quite a few years now, although many people disagree on the topic.

Never mind building abstractions. The C language itself is a significant abstraction from the machine level. Only a small handful of operators and constructs in C have a close analogue to assembler statements (e.g., accumulation, shift and bitwise logical operators.) Therefore I maintain that it is not a low-level language.

While I certainly agree that C is a significant (and useful) abstraction from the machine -- or more specifically, the assembler -- level, I think you've glossed over quite a few things that are much closer in C to how it works at the machine code level, compared to most other languages. Some that spring to mind are:

  1. Pointers and pointer arithmetic -- and not just for fun; you need to use them to get things done.
  2. Array indexing -- this is little more than syntax sugar atop pointer arithmetic. Indexing element i of an array is equivalent to referencing *(array_base + sizeof that type * i), and accordingly there is no bounds checking etc.
  3. No real strings -- just arrays of characters which suffer from the same problems above.
  4. No garbage collection or even refcounting -- if you want to return a string value from a function, you need to either take a buffer (and, ideally, the size of the buffer since you can't automatically determine it) and store the string there, or you need to dynamically allocate memory and return a pointer. Whoever called the function then needs to "free" that pointer later. That's some pretty low-level stuff you have to do just to pass some strings around!

These are just a handful of many things you need to live with in assembly AND in C, unless you use some non-universal, non-standard library for e.g. strings or GC (Hans Boehm's drop in one seems pretty good though). Additionally, C forces you to declare the types of each variable and function, yet cannot properly enforce type-safety and has no type inference which would have made the job easier.

C is undeniably less low-level than assembly, I consider C to be a low-level language in an arbitrary line-in-the-sand sense. Of course, my view on this is no more valid than yours since how we define "low-level" as some absolute marker is pretty subjective!

Comment: Re:R... (Score 1) 143

C is most certainly a low-level programming language. There's a reason people call it "portable assembly language". Of course, as with almost all programming languages, people build useful abstractions in C to bridge the gap somewhat. But that doesn't make C itself a high-level language, any more so than does the use of functions and macros to increase the expressive power of an assembly language.

Comment: Re:I've also had this happen with HFS+ (Score 1) 396

by Desty (#47240723) Attached to: One Developer's Experience With Real Life Bitrot Under HFS+
JPEG is quite robust to corruption, and even PNG's lossless compression seems to be tolerant of a few stray bytes. However, encrypted files would probably be badly damaged by this sort of corruption.

This is the kind of situation where some form of transparent, redundant error-recovery system is extremely important. I'm sure that in the medium term future (after everyone is using SSDs and the cost/capacity ratio falls much further) some kind of RAID setup will be the norm and these kinds of problems will become vanishingly unlikely.

Comment: Re:Simple (Score 1) 92

by Desty (#46914119) Attached to: Why Speed-Reading Apps Don't Work

Actually you're completely wrong on that, the data suggests that no one can demonstrate long term photographic memory, which is true. If I read a book today, I can probably recall the content for about a week or so, after that it will start to slip and certainly by a mouth or two out I'll retain very little of the information I read over. However that also doesn't matter, usually is something is important enough to remember longer then a week out, you'll have to read it more then once.

Actually you are completely wrong about that. The data suggests that no one can demonstrate even SHORT term photographic memory.

You stated that you can "look over a page" and "load" all the information into your memory before comprehending it. This is an utterly ludicrous claim. You also stated that you can read at over 1000 WPM with very high comprehension. Also a laughable claim that is not supported by any scientific studies.

Comment: Re:Simple (Score 1) 92

by Desty (#46863999) Attached to: Why Speed-Reading Apps Don't Work
Agreed. There's only been one scientifically controlled study that suggested anything remotely like an eidetic memory, and the subject ("Elizabeth") later married the scientist running the study. Then they refused to participate in any further experiments. So, in effect, nobody in the world has ever successfully demonstrated either an eidetic memory, or (much less) an ability to read significantly faster than average while maintaining decent comprehension. Any anecdotal arguments (for example, Murdoch5's frankly laughable claims) otherwise are almost certainly pure Munchausen-esque nonsense and should be disregarded with prejudice.

Comment: This is an "argument to moderation" fallacy (Score 1) 388

by Desty (#46121729) Attached to: Edward Snowden and the Death of Nuance

Although it's certainly important to consider multiple viewpoints in a debate, it's wrong to assume that the truth must lie between two extreme positions.

Personally, I think the guy risked everything to expose what is clearly (to most people in the world) a bad and pointless system. He's certainly more deserving of a Nobel peace prize than Obama, who hasn't even shut down Guantanamo Bay yet. The ironing is delicious.

Comment: Re:See a psychologist. (Score 1) 384

by Desty (#45974953) Attached to: Ask Slashdot: How Can I Improve My Memory For Study?

When you get to a "normal" sleeping state, then you can look at improving memory. Reading is probably one of the best things to do regularly, followed by logic puzzles and memory games. Fish and high protein foods are good for brain function, but also can be a health concern due to mercury and other toxins found in nearly every fish today.

Apparently logic puzzles don't provide much benefit in brain function, even though it seems intuitive that they should. Strangely enough computer games of various sorts have been shown to improve cognitive abilities. Playing tetris for a little while every day actually resulted in a measurable increase in thickness of cortex tissue in one study, along with improved language skills of all things. Playing first-person shooters helped make certain parts of the brain process things more efficiently.

Then, for working memory and (I think) executive function, the adaptive dual n-back (DNB) has shown to be quite useful, although the effect size might be smaller than initially reported.

You're absolutely right that proper exercise, diet and sleep are by far the most important things to have. Having poor quality sleep in particular has an enormous negative impact on long-term memory and can lead to atrophy of the hippocampus and parts of the prefrontal cortex. So I'd recommend spending a lot of effort on really fixing your sleep as it's worth proportionally more than probably any other intervention, and it's easy to keep fixed once you've gotten into a good routine. A good routine is at least 7.5 - 8 hours of decent uninterrupted shuteye at consistent times. Dietary and behavioural changes can also help improve sleep and ensure that you get good slow-wave activity (this is the part that usually suffers most as we age, and is linked with memory deficits). Try to measure your activity with a sleep tracker, and see what's going on.

In case of injury notify your superior immediately. He'll kiss it and make it better.