News for hackers. Stuff that matters.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by jessriedel on Thursday December 10, 2015 @04:38PM (#10713688)
Honest question: do you really think talking much with computer scientists would help? My impression is that most of the improvements (besides Moore's law) in the power of simulation of physical systems has come from either new physical insights, or computational insights developed by physicists who were mostly self-taught numerical techniques. It seems very plausible to me that there are honest-to-goodness CS insights that remain unexploited, such as better parallelizing physical simulations, but the track record hasn't been good. Why aren't CS people coming in and showing everyone how it should be done?

(For what it's worth, I'm a physicist, but not one who does anything numerical, and I'm happy to admit arrogance by physicists could be a problem here.)

Re:The first plasma: the Wendelstein 7-X fusion device is no... by sonium on Thursday December 10, 2015 @05:41PM (#10714131)
I'm doing a PhD in physics using using large scale numerical codes. From what I can see more computer-science would mainly improve the maintainability rather than the speed of codes used. They are often already heavily optimized and, for the numerical heavy lifting rely on standard libraries such as Intel's MKL. Also scalability is usually quite good since the codes are routinely developed to run on a large number of CPUs in parallel. GPU support is coming slowly since it's also new to the people who developed Fortran codes for the last 20 years. For example VASP, a popular atomic structure simulation, is getting GPU support just now through a public-private partnership with nVidia. The speed-up for a 16-core sandy-bride machine with and without two GPU cards is about up to factor 8.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by mrottenkolber on Thursday December 10, 2015 @06:44PM (#10714492)
If you ask me they mostly need software engineers, not “CS people” especially. Whenever I talk to a scientist about their software, I see great opportunities and interesting problems that are solved in suboptimal ways. To be blunt, scientists can't code (and neither can most “CS people” for that matter). Every scientist (be it physics or CS) could use a professional software people, who have experience with developing and maintaining complex code bases. The problem is, there is no funding. Let's say a researcher gets a budget for some hardware and 10 PhD students, then there is nothing left to pay the engineer with. We're too expensive.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by adrianN on Friday December 11, 2015 @03:06AM (#10715949)
Software quality is just not something academia optimizes for. It only counts whether you can get your paper out. The chances that somebody else actually uses your software are slim, so investing time that could be spent writing more papers into better engineering makes little sense.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by gaze on Friday December 11, 2015 @01:14AM (#10715686)
What's really funny is I started in software (have code committed to some open source projects... BIND, Valgrind), and then moved to Physics. The code is garbage because the constraints are totally different. Experiments and code can be brittle and still work. There's no time to consider user experience for fellow grad student when there's so much else to do... though I do know of SOME students who make time to write good code. Hats off to them.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by Hockenbrizzle on Friday December 11, 2015 @04:36AM (#10716172)
I'm a mechanical engineer in physics and I've had no formal training in writing code or computer science, yet, I am now doing simulations for atomic physics in Python. I am designing some software library package which will serve as a sort of diagnostic/design tool for future experiments with a machine being built.

I've run into the problem of figuring out how to organize the whole dang thing and sometimes have to go back and re-write a lot of code. Can you recommend any good books that introduce computing concepts for applied physics and engineering?

Re:The first plasma: the Wendelstein 7-X fusion device is no... by scrumper on Friday December 11, 2015 @01:16PM (#10718788)
My favorite general guidebook for writing good, readable, maintainable, defensive code is "Code Complete": http://www.amazon.com/Code-Complete-Practical-Handbook-Const...

It isn't domain specific but there is so much good advice in there around variable naming, code structure, general principles of bug-resistant coding that you will get a tremendous amount from it.

Re:The first plasma: the Wendelstein 7-X fusion device is no... by hvidgaard on Friday December 11, 2015 @02:46AM (#10715907)
Not sure that would help though. You want someone with the theoretical knowhow to understand the problem at hand, so you can rewrite it to be simpler to program. In other words, a CS major with programming skills. They are in very high demand.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by duncan_bayne on Thursday December 10, 2015 @08:16PM (#10714909)
Essentially what you're talking about is a lab assistant who can code? Sounds like a good idea, and might be something for people who work at companies that do pro-bono charity work.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by Asbostos on Thursday December 10, 2015 @08:29PM (#10714961)
Optimizations, GPUs and even parallelization are not always much use in simulations because the computational complexity is usually very high - like O(n^3) or so. That's not even counting the cubing of the problem size in going from 1D to 3D. If you can get 10x the performance out of some optimization, that can allow you to solve a slightly bigger problem - but isn't likely to be dramatic enough to go from 2D to 3D.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by cma on Thursday December 10, 2015 @11:57PM (#10715529)
There are bigger optimizations than 10X with some of the adaptive grid / wavelet compression stuff. I think these are still 2D, but pretty amazing: https://youtu.be/vYA0f6R5KAI
Re:The first plasma: the Wendelstein 7-X fusion device is no... by stevep98 on Friday December 11, 2015 @12:42AM (#10715629)
I was going to link to this too. It's almost as if the internet is calling for us to write an app called "here, the internet wants to help you researchers... have a video..."
Re:The first plasma: the Wendelstein 7-X fusion device is no... by bdamm on Thursday December 10, 2015 @06:00PM (#10714255)
CS people aren't coming in and showing how it should be done probably for the same reason that Physicists don't show up at a bridge construction project and show the engineers how it should be done.

Theoretical computer science is quite distinct from coding and large scale numerical computation practice. Just as theoretical physics, or even experimental physics, is quite different from structural engineering.

Re:The first plasma: the Wendelstein 7-X fusion device is no... by jessriedel on Thursday December 10, 2015 @08:53PM (#10715032)
Except that physicists do come in and show biologists how it's done for all sorts of mathematical problems in biology! People call it "biophysics" but very often it's things where there is really no physics per se, like statistical analysis of genomics.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by conceit on Friday December 11, 2015 @10:50AM (#10717761)
That might be because the Physicists had help from Mathematicians before and are just passing it on. I don't think that's quite true though, i like to believe that polymaths and university aren't quite dead in academics.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by make3 on Thursday December 10, 2015 @09:50PM (#10715192)
I think you might need hire engineers. What I mean is, someone in cs wouldn't have any papers to produce from applying well known parallelism techniques to your problem. In academia, papers and innovation in one's field are the motivation. What physicists appear to need is well established and understood. Hire a parallelism expert
Re:The first plasma: the Wendelstein 7-X fusion device is no... by eli_gottlieb on Thursday December 10, 2015 @08:51PM (#10715020)
> Why aren't CS people coming in and showing everyone how it should be done?

Because CS students don't learn differential equations or real and functional analysis.

Re:The first plasma: the Wendelstein 7-X fusion device is no... by Shadow6363 on Thursday December 10, 2015 @10:23PM (#10715292)
Have a B.S. in CS and I learned both differential equations and real analysis.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by CountSessine on Thursday December 10, 2015 @10:45PM (#10715329)
?

What school did you go to? What school would issue a BSc in computing science without analysis and differential equations?

Re:The first plasma: the Wendelstein 7-X fusion device is no... by eli_gottlieb on Friday December 11, 2015 @09:20AM (#10717203)
I did undergrad at UMass Amherst, where computer-science students take math up to multivariable calculus 1 and linear algebra. I then did my MSc at the Technion, where some amount of differential equations and vector calculus is normal for undergrads, but even there, requiring multiple semesters of analysis to grant a degree in computing, where most of the maths are discrete, is considered overkill.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by Retric on Thursday December 10, 2015 @05:03PM (#10713849)
It's not all about algorithms. Unless current simulations are running on Asics or even GPU's there are probably 10-1,000+x speedups possible.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by bsder on Thursday December 10, 2015 @05:37PM (#10714100)
Why do you assume that the computational fluid dynamics folks are dumb and haven't done this?

CFD is a very vibrant field with applications across the entire spectrum of engineering.

In fact, modern supercomputers are MOSTLY running CFD codes (weather prediction is effectively a gigantic CFD simulation). Nothing else really demands that level of power.

Re:The first plasma: the Wendelstein 7-X fusion device is no... by Retric on Thursday December 10, 2015 @05:45PM (#10714166)
I know some CFD is still run on CPU's and some is run on GPU's. But, I don't know what the fusion tradeoffs are.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by xixi77 on Thursday December 10, 2015 @05:52PM (#10714204)
I'm quite sure a good number of these are running partly on GPU's. People are quite aware of them; their practical use in research applications is still a bit limited because of how often the code needs to be modified -- but in industry where the same basic model is run over and over they (as well as FPGA's) are pretty common. Not every computational application is the same :)
Re:The first plasma: the Wendelstein 7-X fusion device is no... by rickycook on Thursday December 10, 2015 @05:14PM (#10713931)
well, it's not the job of a physicist to understand the many many different sorting algorithms, how to optimise loops so they are cached in the cpu, and plenty more.

I guarantee that most CS professionals (CS; not necessarily developers) are able to write much more efficient code than most professional physicists, because they spent the same amount of time understanding software and hardware that these guys spent building a fusion reactor.

that said, considering the billions that have been spent on fusion research, I doubt they did it in a bubble. it would seem strange if they didn't enlist the help of some CS

Re:The first plasma: the Wendelstein 7-X fusion device is no... by xixi77 on Thursday December 10, 2015 @05:43PM (#10714149)
Not sure about this project, but a lot of physics simulations are written by computational physicists, who don't really do actual lab work, and instead spend a lot of their time coding and optimizing. These folks are often aware of things like caches or branch prediction penalties or gpu's (mostly I see MPI codes running on largish clusters though). This doesn't mean that there is no room for optimization, most likely there's some because I am yet to see code that doesn't leave any, but it's probably not something an average CS expert would easily find.
Re:The first plasma: the Wendelstein 7-X fusion device is no... by MrScruff on Thursday December 10, 2015 @05:44PM (#10714157)
CFD is also used in computer graphics (games and film) which is filled with people who focus on low level optimisation.