Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:Multiple Return Types? (Score 1) 427

> Does still not make sense. The cost for a particular function is the exact same regardless where you call it.

Do you even understand what an Instruction Cache is?? And the importance of locality?? Too -much- inlining can be worse then not enough inlining. If had actually worked on a C++ compiler on consoles then you would understand.

On PS3 some games can have a performance delta upto ~10% depending on a) the DISTANCE away non-inlined functions are, and b) HOW MANY functions are inlined. I'm talking from real world experience not from your theoretical clueless assumptions of how CPUs work.

In theory every memory access has the same cost (time), in practice the 3 levels of cache show a wildly varying performance difference.

You really should read: "What every programmer should know about memory"

http://www.akkadia.org/drepper...

Before continuing to spout off your ignorance.

Comment Re:Don't allow jpg or gif or ... (Score 1) 299

And this is any different from local, state, and federal laws how again?

A community always has its own laws.

Whether this happens physically or virtually is no difference. Why?

ALL (man-made) laws are relative.

A good moderation system is:

a) fair; in that everyone can vote
b) doesn't censor; perspectives that aren't in alignment with the community "standard" are still there, just down-voted

Politics is a "moderation" system but completely corrupt because those with the most money are the "loudest."

Groupthink isn't the problem. Not allowing those with a differing (or opposite) opinion, aka censorship, IS.

Comment Multiple Return Types? (Score 1) 427

When is C++ going to natively support multiple return types?
i.e.

float sin, cos, angle;
    sin, cos := SinCos( angle );

Right now we can use a struct hack, but native support would be appreciated.

_When_ are pragmas going to be standardized instead of relying on brain-dead proprietary extensions where MSVC does things one way and GCC another way? i.e. I'm specifically talking about the idiotic verbose

__attribute__((always_inline))
 
    __inline
    __forceinline

intead of having a native way to hint the compiler about how hot or cold a function is.

inline = 100 void Foo(); // function is 100% hot, always inline
 
inline = 0 void Foo(); // function is 0% cold, never inline
 
inline = 75 void Foo(); // function is 75% hot, inline most of the time

Lastly, C++ has been extremely complex. When is C++ going to simplify the total over-engineering of the language?

Submission + - Teen's Device Produces Renewable Energy and Fresh Water (inhabitat.com)

An anonymous reader writes: Concerned about the millions of people living without energy and water, 17-year-old student scientist Cynthia Sin Nga Lam developed the H2Pro – a portable photocatalytic electricity generation and water purification unit that produces clean energy and fresh water at the same time. Cynthia explains that while investigating photocatalysis, she stumbled upon the idea of the H2Pro: “In photocatalysis, not only water is purified and sterilized, but hydrogen is also produced through water-splitting, which can be used to generate electricity.”

Submission + - Telegram Not Dead STOP Alive, Evolving In Japan STOP (itworld.com)

itwbennett writes: Japan is one of the last countries in the world where telegrams are still widely used. A combination of traditional manners, market liberalization and innovation has kept alive this age-old form of messaging. Companies affiliated with the country's three mobile carriers, NTT DoCoMo, KDDI and SoftBank, offer telegrams, which are sent via modern server networks instead of the dedicated electrical wires of the past (Morse telegraphy hasn't been used since 1962), and then printed out with modern printers instead of tape glued on paper. But customers are still charged according to the length of the message, which is delivered within three hours. A basic NTT telegram up to 25 characters long can be sent for ¥440 ($4.30) when ordered online.

Comment Re:Don't allow jpg or gif or ... (Score 3, Interesting) 299

Banning images isn't the problem. Why do you think /. has a lame-ass "lameness" filter? Because people were posting ASCII porn.

i.e.
8====> or whatever the penis bird crap was back then.

As another user pointed out, the ability to FILTER and MODERATE allows the community to self-police itself. You can post offensive stuff _solely_ with text using words. The "classics" are the N, C, or F words. i.e. http://southpark.cc.com/clips/...

Sites that only allow upvotes are retarded as they don't give people the option to filter out the "noise".

A _good_ site allows people to upvote the signal and downvote the noise

Slashdot Top Deals

Simplicity does not precede complexity, but follows it.

Working...