×

Announcing: Slashdot Deals - Explore geek apps, games, gadgets and more. (what is this?)

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!

Comments

top

Is D an Underrated Programming Language?

Jamu Re:Problems in C++ (383 comments)

Dude, don't use square brackets with STL arrays and vectors, just to make your code more readable. The [] operator skips bounds checking, which is the main reason for using these classes in the first place. At() is the proper methodology to use in pretty much every case, unless you are so confident in your bounds that its worth the trivial speed increase in access time.

Bjarne Stroustrup's solution:

template<typename>
class Vec : public std::vector<T>; {
public:
using vector<T>::vector

T& operator[](int i)
{ return vector<T>::at(i); }

const T& operator[](int i) const
{ return vector<T>::at(i); }
};

Page 97 of The C++ Programming Language.

about two weeks ago
top

Know Your Type: Five Mechanical Keyboards Compared

Jamu Re:About the Cherry key switches (190 comments)

What would you recommend if I wanted silent, short action keys with tactile feedback?

about a month ago
top

Quantum Physics Just Got Less Complicated

Jamu Re:How about someone who groks the math, comment? (197 comments)

A quantum state of position can be written as a superposition of a momentum states; the position is certain and the momentum is uncertain.

A quantum state of momentum can be written as a superposition of position states; the momentum is certain and the position is uncertain.

That's the duality and the extremes of the uncertainty principle. The mathematics can also show more generally, that the uncertainty in position and momentum is always more that a certain value (Planck's constant).

These things follow directly from the axioms of Quantum theory, Hilbert spaces and any two non-commutative operators. So I really don't see how Quantum Physics "just got less complicated". It's the same as it's always been. Although I've not read the paper yet, maybe that makes more sense.

about a month ago
top

Amazon UK Glitch Sells Thousands of Products For a Penny

Jamu Re:Sigh. (138 comments)

They could insert it after the bit of code that reads:

if (price = 0.00)
price = 0.01;

about a month and a half ago
top

FreeNAS 9.3 Released

Jamu Re: Advertisement? (115 comments)

I tried both FreeNAS and NAS4Free for a home server, and they were both good for what they aim to do. The problem I had was when I wanted to run something other than a NAS on the same box, such as tvheadend. I consequently tried OpenMediaVault as this is based on linux. In the end, I concluded that these only work if you're running your box purely as NAS. After a look at virtualisation using docker, and concluding that this was overkill, if not a bad idea, I went with Ubuntu Server and webmin. The storage is using BTRFS. I could have used ZFS, but BTRFS seemed a better choice, for what I wanted, at the time.

Note that if you want proper NAS, you'll probably want to avoid everything I've done at home. :)

about a month and a half ago
top

Apple and Amazon Launch Black Friday Price War

Jamu Re:All the Kindles are on sale... (43 comments)

I have a Nook. This has a passive screen. Great for reading in bed before going to sleep or in direct sunlight. It doesn't shine a light into your eyes keeping you awake. I believe the Kindle Paperwhite does have a light, but I guess you could switch that off. I'd probably just get the Kindle if I didn't already have the Nook. I can't see any advantage with the Kindle Fire over my Nexus 7 though.

about 2 months ago
top

Alva Noe: Don't Worry About the Singularity, We Can't Even Copy an Amoeba

Jamu Re:AI researcher here (455 comments)

How can you have emotion or desire without consciousness?

about 2 months ago
top

CERN Releases LHC Data

Jamu Re:Nuclear weapons? (42 comments)

No. Even though it's called CERN. The research is very much sub-nuclear. And although the energies are higher, this also means the particles involved decay quickly. Similarly in nature, they're created with high energies, but don't last long. The A-bomb relies on the natural abundance of uranium or plutonium. These are unstable elements that can be triggered into decaying in a chain reaction. The particles at the LHC need a lot of energy to create, and they decay quickly. It's been suggested they could make an anti-matter bomb. You'd need to use a lot more energy making the anti-matter than would be released in the bomb. Anti-matter is hard to store: it will interact with any matter destructively. No one can make anti-matter in enough quantity. Even if they could, and despite the great energy efficiencies, plutonium and uranium is so much more practical, along with some fusion fuel, that the relatively low energy efficiencies of a nuclear bomb, isn't a problem.

about 2 months ago
top

Ubisoft Points Finger At AMD For Assassin's Creed Unity Poor Performance

Jamu Re:A highly relevant comment from the previous pos (262 comments)

I suspect that Mantle would run a lot better on the AMD hardware though. DirectX 12 will end up with the most support.

about 2 months ago
top

Ask Slashdot: Where Do You Stand on Daylight Saving Time?

Jamu Re:Against DST or against winter? (613 comments)

I would, but it involves having two different homes and switching between them twice a year.

about 3 months ago
top

Ask Slashdot: Where Do You Stand on Daylight Saving Time?

Jamu Re:For it! (613 comments)

Maybe it's the one-hour shift to their sleeping-pattern, twice each year, they object to?

about 3 months ago
top

Ask Slashdot: Where Do You Stand on Daylight Saving Time?

Jamu Re:Make DST standard (613 comments)

So you want to go to work earlier. Why change the clocks too?

about 3 months ago
top

Ask Slashdot: Where Do You Stand on Daylight Saving Time?

Jamu Re:I'm surrounded by morons (613 comments)

What I'd hate most would be the fact that Greenwich would never be on Greenwich Mean Time!

about 3 months ago
top

Researchers At Brown University Shattered a Quantum Wave Function

Jamu Re:umm.. what? (150 comments)

How about if I don't look, but the cat does?

The state consists of a superposition of the cat looking at itself, and it being dead.

Or how about instead of a cat, we put you in the box.

The state consists of a superposition of you seeing an alive cat, and you seeing a dead cat.

Are you alowed [sic.] to look at yourself or does it only work if I do it?

If you do it, it's a superposition. If I do it the cat is either dead of alive.

What if we're both in the box?

The cat is either dead or alive.

about 3 months ago
top

Possible Reason Behind Version Hop to Windows 10: Compatibility

Jamu 11 (349 comments)

It would have been better if they'd gone with Windows 11. One better.

about 4 months ago
top

Object Oriented Linux Kernel With C++ Driver Support

Jamu Re:Skip C++ (365 comments)

What if they want to use an unsigned byte?

about 4 months ago
top

The Physics of Space Battles

Jamu Re:Umm no (470 comments)

No fireballs in space? Wrong! Spaceship occupants need atmosphere.

You'll only get fireballs inside the atmosphere. In space, you'll get jets.

about 4 months ago

Submissions

Jamu hasn't submitted any stories.

Journals

Jamu has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?