Better HN
topnewbestaskshowjobs
Log inSign up

physicsguy

3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions

Former Physicist. Now developer. Have worked in academia, scientific software development.
Submissions

comment 6y ago · link · parent

So, I'm a physicist, and I went to a number of talks from people involved with the JET fusion reactor over the years, though fusion is not my area. And my understanding is not that it's difficult to make plasma, or even build a reactor in particular that is the main problem (though instabilities can be problematic), but it's that the internal structure degrades very rapidly and becomes highly radioactive, because you get helium bubbles forming inside the steel which causes fractures and the heavy metals that are often put into steel to increase strength are highly fissionable. So you need to use special types of steel to actually construct the reactor, and these need to have a lifetime that's ~5 years+ and it needs to not have very very radioactive steel at the end of it's usable life. And this is basically an unsolved materials science problem at the moment. So while you might even be able to build a fusion reactor, it's not going to last long enough to make it commercially viable using current technology.

comment 6y ago · link · parent

I use QMake and it's painful as hell for certain things. If you want to set certain options globally (e.g. where to look for external libraries that you don't want everything to link against), you end up having to include files all over the place just to avoid duplicating things.

Building multiple executables is not possible in a single .pro file, so if you've got a folder full of unit tests, which are separate applications, you have to create a .pro file with subdirs as the author here does, and then create another pro file for each test executable.

comment 6y ago · link · parent

QMake hasn't actually been killed off, they're still maintaining it but there are no real updates or anything AFAIK.

comment 6y ago · link · parent

Excellent! Calibre is a really great piece of software that I use all the time. Kudos to the devs!

comment 6y ago · link · parent

I love Linux, but this was my big problem with it when working as an academic. Now that WSL is going to support CUDA I think that covers the last remaining thing I was holding out for; it'd be nice to get IT support again other than 'We can reinstall the Linux OS'...

comment 6y ago · link · parent

In the UK we have to deposit with the institution you were working/studying at. It's a bit annoying as there's no central place to deposit.

comment 6y ago · link · parent

I found that the common subexpression elimination performance was significantly better than that in GCC for one thing

comment 6y ago · link · parent

+ Monte Carlo integration goes to shit in higher dimensions...

comment 6y ago · link · parent

I wrote a lot of notebooks because my PhD supervisor liked using them as demos for our scientific software packages, which was for physics simulations.

But in my mind, most things that we wanted to show just weren't useful in notebooks, because they took too long to run. They're great for prototyping stuff like figure generation, and I used them a lot for that personally, and even for setting up the initial conditions for simulations they can work well, but they're terrible for doing a whole workflow of set up simulation -> run simulation -> process data in my opinion.

comment 6y ago · link · parent

I have similar with my Google Home; it can play Netflix but can't work out BBC iPlayer most of the time. And many times if I ask it to play music, it'll give an error saying it can't play on YouTube Music because I don't have a subscription, even though my default music player is Spotify in my account.

comment 6y ago · link · parent

For what sort of application? I ran benchmarks of my own scientific code for doing particle-particle calculations and with -march=native I could get 2.5x better performance with Intel vs GCC.

One thing I found that you do have to be careful with though is ensuring that Intel uses IEEE floating point precision, because by default it's less accurate than GCC. This causes issues in Eigen sometimes, we ran into an issue recently after upgrading compiler where suddenly the results changed and it was because someone had forgotten to set 'fp-model' to 'strict'

comment 6y ago · link · parent

I work on CFD software. We're well aware of this in my work, but the reality is that all our big corporate clients use Intel hardware. We already tell people to set those environment variables in our documentation.

> Avoid the Intel compiler. There are other compilers with similar or better performance.

This is not really true IMO, but even as an aside, the Intel compiler has the enormous advantage of being available cross platform. So we can use it on Linux and Windows, and provides MPI cross platform. We upgrade fairly regularly and that provides us with less work.

My own tests found that PGI compiler performance was worse than Intel for C++, and that now appears to have been discontinued on Windows anyway with NVidia's new HPC compiler suite replacing it. GNU can run everywhere, but performance is around 2.5x worse on Linux for our application use case because it doesn't perform many of the optimisations that Intel does. We use MSVC on Windows just because everyone can have a license, and performance is much worse.

The other thing is that MKL is pretty stable and gets updated. If I use an open source BLAS/LAPACK implementation - sure, it works, and it may even give better performance! But it's not guaranteed to get updates beyond a couple of years, and plenty of implementations are also only partial. We pay Intel a lot of money for the lack of hassle, basically.

comment 6y ago · link · parent

This is the norm here in the UK and the EU

comment 6y ago · link · parent

I'm in Engineering Physics and arxiv was already fine for me. What's the point? It just means everyone has to search in more places...

comment 6y ago · link · parent

Fortran

comment 6y ago · link · parent

Find it odd that so many people hate Teams so much. For me, it works considerably better than using Slack did in my previous position; the only downside for me personally was the lack of a Linux client initially, which is now present.

It's also considerably better than Slack for mixing other communications in, which is widely used in corporates: video calling, screen sharing, and the fact that you can hook it in with phone systems. Given it's effectively replaced Skype, that's not really surprising. Prior to teams being introduced at my current company, we were using a mix of Jabber, Cisco WebEx, and other ad-hoc tools in various teams. Now we can use Teams to do all of that.

comment 6y ago · link · parent

One of the issues with the various OSS BLAS/Lapack implementations is that they're inevitably researched heavily for a while and then fall out of maintenance. If you're a commercial developer, unless performance is absolutely critical, you're better off just paying and using MKL as at least it's stable.

comment 6y ago · link · parent

I think that 'Strong Opinions, Weakly Held' often makes people intolerable to work with, to be honest.

comment 6y ago · link · parent

I would have started infant school in the UK in 1995 and we still had one of these in my classroom until I was in Year 2. Great educational computers.

comment 6y ago · link · parent

This looks really bad for BaFin, they basically treated the Financial Times as criminals for blowing the whistle over the last few years.

comment 6y ago · link · parent

Depends very much what you're doing; certainly not in my area (simulation software) at least, not for other than use as dumb terminals.

comment 6y ago · link · parent

SciPy did support Accelerate, but they dropped it in 2018 because Apple’s implementation of LAPACK was so out of date. Apple have been crap at updating this stuff which is why people don’t use it.

comment 6y ago · link · parent

You still need to recompile and relink. And it's not that simple, Apple's implementation of LAPACK is well out of date for e.g. - it dates back to 2009.

comment 6y ago · link · parent

Accelerate is barely used on Mac for scientific stuff in my experience. People tend to use Intel MKL - see for e.g. the Anaconda Python distribution - all of the NumPy/SciPy libs are linked against MKL.

SciPy actually went as far as dropping Accelerate as a supported BLAS implementation in 2018. https://github.com/scipy/scipy/wiki/Dropping-support-for-Acc...

comment 6y ago · link · parent

So, I work in a niche domain - scientific software.

For one thing, you can already get scientific libraries on Linux which run on ARM. That's not too much of an issue. BLAS is an API of which there are many implementations.

The issue is that (a) it requires everyone to recompile everything (b) projects which are 'legacy' and are no longer developed just won't ever switch, so that software won't be runnable. If Apple do a Rosetta equivalent, they'll run slowly, but if that project ends (like Rosetta), that software will just stop working. This is pretty much the same problem as where Apple have killed x86 - there are many apps that just no longer work.

comment 6y ago · link · parent

I did my PhD in a related area of magnetics to this.

One of the problems is finding appropriate materials, and that applies for all magnetic devices.

Crystal structures are hugely complex, and the way that atoms interact manifests primarily through the 'exchange' interaction. This is caused by a combination of the Coulomb interaction (charges repelling/attracting), and through the quantum mechanical Pauli exclusion principle, which basically stops electrons with the same state from sitting in the same position. The problem is, while it's the dominant energy term, there are several forms of exchange interaction - RKKY, Dzyaloshinskii-Moriya (which affects the boundaries at interfaces and in certain crystals), etc. and so while the length scale over which the exchange interaction acts is normally on the order of a single atom, it can often actually act on next-nearest neighbour atoms and cause odd effects. This means that finding a 'pure' antiferromagnet is difficult; many things are actually ferrimagentic.

Many studies which suggest wonderful new storage technologies are computational and have little bearing on the experimental reality. There are serious difficulties in predicting the magnetic properties of materials with density functional theory because the results are often oscillatory as you refine the model, meaning that the computational cost is enormous - the properties of even simple systems such as the two species alloy FePt can't be easily predicted. Real crystal structures are hugely more complex than this, and so it's questionable whether results given by people are any more than junk. The work in this area is hampered by the fact that DFT research is overwhelmingly focused on calculating bonding and chemical structures. DFT scales poorly, and while there are a few codes that scale better, they're licensed under weird license structures. There's also some odd fallings-out between various code authors with accusations of stealing...

The 'next level' in the heirarchy of modelling neglects quantum effects completely and is known as atomistic modelling. These models are still enormously costly, but it's the only proper way to treat properly antiferromagnetism, as the next level in the heirarchy, micromagnetism, takes a continuum limit of this discrete model, and by doing so has assumptions that antiferromagnets break. Parameterising these models is enormously difficult, because it is pretty much impossible to measure experimentally the values that you need, and DFT gives answers which when used bear little resemblance to the real material.

You have to sort of realise that many people in magnetics have lost funding because industry has moved on, and academic labs seem to be left behind. So everyone tries to work on the 'next big thing' - there are hundreds of various proposals for devices that haven't worked out, and it's worth being very, very sceptical of articles like this which promise that a new technology will revolutionise things. Just as an example, one of the biggest wastes of time over the last 10 years has been that of Skyrmions, which have been cited as the possible hallelujah of magnetic storage, and for which there is basically no evidence of utility after millions of dollars of research funding worldwide, and thousands of articles. Many scientists jumped onto this topic in my opinion because a Nobel prize winner wrote a brief, speculative computational paper suggesting that Skyrmions could be the panacea to the woes of current magnetic storage, despite there being even a lot of evidence at that point to the contrary - in particular, work by Stuart Parkin at IBM in trying to use magnetic domain walls for storage, and a whole host of work on magnetic bubble memory that even made it to market in the 70s and 80s but which was replaced because of poorer performance.

comment 6y ago · link · parent

In English Law (and in many other jurisdictions) it's only a legal contract if "consideration" is given by both parties; i.e. Palantir here must charge something in return for it to be an enforceable contract.

comment 6y ago · link · parent

I find it incredible that these calculators are even allowed in exams. In the UK, for University, we were allowed at most a Casio fx series scientific calculator, nothing more sophisticated. At A-Level (pre-college) you were allowed very basic graphical calculators but I knew of nobody that bought one and they were seen as being pointless.

comment 6y ago · link · parent

"A broken code that happily executed"?

I think that's unfair. There was plenty of code that was out there for 10 years or more that was working completely fine and had to be ported. One of the most frustrating things I had to do was completely rearchitect some legacy binary file reading/writing because of the changes to how Python handled bytes. That code was out there as open source in the wild, stable, and was being widely used, and it basically required a full rewrite underneath the API.

One of the most frustrating things was that many packages we used as dependencies took ~5 years to port to Python 3, and then dropped Python 2 support immediately, leaving us with no choice but to use the old version for some time. We'd done a lot of the easy stuff already (2to3 on all files), but lots of the non-trivial things were the interactions with other packages so couldn't be touched until they had themselves got a Python 3 version.

comment 6y ago · link · parent

We didn't. Hardly anyone went to University in the UK at that time, compared to now.
1
4546474849