Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:Knowing when not to (Score 1) 345

You're shifting your claim.

From what to what? You may wish tocheck what my claim actually was.

PTAM is decent C++ code with probably pretty decent performance, but it isn't "high performance numerical code" or even high performance embedded code; it contains none of the performance tuning that such code usually should have.

It's not pure numerics, as you're thinking of them. It's certainly not embedded code. It is certainly high performance however. It is a very CPU bound algorithm and it uses what was at the time state of the art algorithms for pretty much every step. Not only that but very fast implementations of them. It is a very, very well written piece of code.

I think it is dishonest on your part to recommend Eigen, when you know (or ought to know) that it actually isn't high performance

OK, you're determined to completely ignore a large facet of computing. For large amounts of small matrices the fixed sized numerics libraries won't be beaten. I've examined the output of the ASM code. For such things, the cache locality is good and the compiler knows about aliasing. So unless you provide benchmarks, I simply won't believe you.

Also, the eigen benchmarks seem to show it matching BLAS and LAPACK for speed.

and is deeply mired in C++ idiosyncracies.

I think personally, that TooN has a nicer interface than Eigen. I suspect others don't agree because Eigen is more popular. In any case, the idosynchracies are in the function defintion, which frankly doesn't matter nearly as much.

The actual maths code reads like maths. That's the important bit.

Likewise, I think it is dishonest of you to portray C++ as the only high performance computing language in town,

Except I didn't. I said I don't know anyone who uses anything else. I also asserted C++ has the best combination of performance and expressibility. Or course you could write in C or FORTRAN, they're both high performance and Turing complete.

C++ is still more expressive though.

You seem very angry though. I think you should go back and carefully re-read my posts and the context and sift out what I actually said and whatever random things you've hallucinated.

Comment Re:Simple ... (Score 1) 345

Excuse the lack of quoting, on phone.

First, business what now? There is so much more to C++ than that. I doubt I've encountered one this year. But when I do, they can either be shoved into a container, or instantiated with make share or make unique.

There's no need for new anywhere.

But it seems like you're massively misinterpreting what I say as no news happen under the hood. Certainly they do, but they're all safely hidden away, so lifetime is managed cleanly and safely for you. Not sure how you came to that conclusion, but whatever.

And dude, if you call yourself an ex guru, you're implying that you think you were a guru. It's rather tacky to describe oneself as such, not to mention lacking in credibility. Stroustrup and etc never call themselves gurus.

Comment Re:Perhaps this is why some places are better to l (Score 1) 108

Where did you force me to do anything at all?

I didn't force you to do anything, and apparently I didn't force you to read my post. To give a sane and coherent answer would have forced you to actually think about what you're saying.

You can't be aresd though which is why you're not answering my question.

I don't care about your friend and I don't bother anybody and they shouldn't bother me.

You care enough to (in the hypothetical case) switch from calling her "her" to "him".

There are males who look female, that's nothing new.

You know, try actually reading the post I made previously.

Comment Re:Down with "research"! (Re:Wow, just wow...) (Score 1) 490

The i stands for imaginary. Which is really telling about your world...

lol you made a mistake and you're trying to cover it up. The complex field is well accepted and widely used.

Ah, yes, how bigoted and parochial of me...

Bigoted? Perhaps. Flat out dumb-ignorant, yes. If you keep insisting that 1+1 must always equal 2 then yes, bigoted, because it's not true, you've been shown it's not true, much smarter people than you have worked extensively with it and you would in that case keep on insisting on it.

It's kind of funny for you to deny it as you're using it right now even though you don't realise. Modern error correction mostly runs on GF(2), and all modern networking kit relies on modern error correction.

https://en.wikipedia.org/wiki/...

This is the third time you claim evidence exist, but do not quote any. Full of shit much? I think, we are done here...

Apparently the title of a wikipedia page doesn't count according to you. Well, yes, if you make up lies like I didn't present any evidence you can "prove" anything you like. Doesn't make you a raving nutcase though.

One is enough, because it was a counterexample. You claimed, ancients did not "rigidly" define homosexuals nor considered the practice wrong. The quote I provided destroyed both of these claims and your only defence was to accuse of me "cherry-picking" - a line patently idiotic. You made a falsifiable statement and I managed to falsify it... Case closed, you were wrong.

Haaaaa hahahahaha!

That has to be the stupidest thing I've read on the internet today! Congratulations!

A counter example doesn't disprove a counterexample. Mine was a counterexample against yours. You've just shown my counterexample isn't a universal truth, but it doesn't need to be. All I had to do was show you one scoiety where attitudes were wildly different to disprove your claim that society has nothing to do with it. Proving that my counter example doesn't apply to all societies is meaningles.

Yes, "obviously" was my own statement

Yep and completely without evidence. You are so wrapped up in the lens of your own culture that you cannot even see where the error is.

How about you actually read the wikipedia page I quoted at you (which you for some reason denied that I quoted).

Comment Re:Down with "research"! (Re:Wow, just wow...) (Score 1) 490

I suppose, in some "nuanced" world 0 may equal 1 and result of cos() may reach as high as 5.

cos(2.29243i) = 5

So, uh, yes, the result of cos() can indeed reach as high as 5.

And if you insist that 1+1=2, I invite you to try it on a Galois Field, specifically GF(2) where 1+1=0

It's astonishing how people with such firmly held opinions know they are right and revel in their ignorance.

Nor is it possible for a trait to be both imposed by society and inborn at the same time.

Oh gee, I don't see how both could have influence of varying degrees in people!

Citations?

The wikipedia page on homosexuality in ancient rome and the same for Greece.

I offered two citations from the top of my head - which is two more than you did. Put up or shut up.

You quoted a line from one, but your conclusion of "Obviously..." was in fact yours alone and not a citation.

Comment Re:Knowing when not to (Score 1) 345

So, you agree then that, numerical performance of Eigen sucks for large matrices.

Not explicitly, since I've not benchmarked it or read any benchmarks but I'm prepared to believe it. I know that BLAS people put a lot of effort into all sorts of cunning blocking stuff.

For small, fixed size matrices it likely is no better than Fortran either.

Depends on how much hand-coding you're prepared to do. C++ has the advantage that you can bake the type into the type, which aids the compiler.

Syntactically, Eigen is pretty lousy as well: you can write some array expressions, but defining functions on matrices is messy, and slicing and similar operations also are restrictive.

I agree there, which is why I don't use Eigen. I'm holding it up since it's for some reason the most popular library, rather then the best.

and parallelization support in it is close to non-existent.

I don't really care much for parallelisation at that level. For my stuff, large matrices are donw with LAPACK which seems to have it and large amounts of small matrices are solved with a #pragma parallel for

Fortran these days has built in matrices that automatically use the best possible BLAS/LAPACK backends.

Maybe, but a BLAS backend is never going to do anything but a wretchedly slow job on a 2x2, 3x3 or 4x4 matrix :) If you have a few billion of them, then the performance matters.

Anyway, we were talking about the comparison to C, not FORTRAN originally. I don't know all that much about FORTRAN except that C++ does seem more expressive for the bits which aren't purely numerical.

Large parts of the numerical and high performance computing community never touch C++ at all. C++ is mostly popular in computer vision, embedded systems, and some areas of machine learning

It seems pretty popular with the supercomputer folks for new codes. But yes, it is popular for computer vision. I can't imagine something like PTAM being written in anything other then C++. Not only do you need high performance numerics, you need high performance book-keeping and other bits and bobs as well. C++ is the only one that gives you the good performance and expressivity across the board.

Anyway, when it comes to array-banging as opposed to linear algebra, I rather prefer using explicit for-loops to array notation. I can do the array notation---I've spent enough time with MATLAB---but I find it clumsy and one often has to work rather hard to solve the problems compared to a for loop. That's personal preference.

Comment Re:Knowing when not to (Score 1) 345

FYI, if you only need to get the best N at the end, it's more efficient to stick everything in a vector and use partial_sort to get the first N. Or nth_element if you don't even need them sortedbut just split into less than Nth and greater than or equal

Depends on the algorith. For a VP-tree or KD-tree, you need the N-th best at every test since you use that to bound the cost and avoid searching as many bins as possible. Without that, you wind up with a linear cost not a logarithmic one.

Comment Re:Why not go back to consumer sorting. (Score 1) 371

Sounds like your local bunch are doing it badly. I think London is too big and dense to worry about such things: it can get very bad very fast is the rubbish clearing doesn't work very smoothly.

I didn't mention but we also have a green waste bin for anything compostable, which is essentially all food and garden waste, including cooked food, bones, even wood infected with honey fungus. The large municipal composters can deal with it properly, kill all the nasties and keep the rats down to a minimum (they actually have a few raptors and owls on the staff to help).

Green waste is collected weekly with recycling and general waste on alternate weeks. That provides a strong incentive so sort properly, especially in summer. If you don't put rottable waste in the green waste bin (actually a brown bin) it gets appalingly smelly. If you don't bother to sort recycling from trash then your bin will get over full.

Also, the dustbin men open the top to check the contents. If you put the wrong stuff in the wrong bin, it won't get emptied and you'll get a tag of shame on the bin telling you why they didn't empty it.

Oh also, you can call the council up to some rather large number of tims per year and they'll come an take away large waste items like beds and old appliances for free. This also prevents people dumping in random locations since it's easier and cheaper to get the waste disposed of properly than it is to dump it.

Comment Re:Why not go back to consumer sorting. (Score 5, Informative) 371

I agree. It seems like the big problem is "single stream". I had never even heard of "single stream" until this article.

It's not much of a problem. I live in Southwark which is a single stream system. The Southwark Waste Management Facility is open one weekend per year and is well worth a visit if you like building sized machines.

They went for single stream for various reasons, an important one being that in deepest, darkest London, space for storing stuff until the dustbin lorry visits is limited so people don't do it.

Basically, the mixed recyclables come in and get put into a giant machine to sort the waste with an effectiveness of over 95%. It first goes under a huge hooked wire brush bag splitter. It then goes over very coarse interleavced rollers which removes the large sheets of cardboard. It then goes over finer meshing things which catch and crush glass to sort that out. Then comes the big magnet for steel. Then there's a pulsed magnet rollers which uses magnetic induction to fire off the aluminium into a hopper. That leaves mixed paper and plastic. This then goes past a multispectral laser clasification system which triggers a very powerful air puffer to sort out the paper and plastic.

The sorted waste then goes past a small army of people who manually identify and remove any further errors. This gets it up to over 99.9%.

It's then baled up into huge bales of aluminium, steel, paper and mixed plastic (glass doesn't bale) which is then sent off to various places for further processing.

The facility is running slightly in the red in that the sales don't cover the running costs, but not by a large margin. That's pretty good because with a relatively small outlay of cost to run it, there's a huge amount not being landfilled.

If you live in London or are in there when it's open, go and visit.

Slashdot Top Deals

egrep -n '^[a-z].*\(' $ | sort -t':' +2.0

Working...