3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
> a sizeable share of the community deems inferior
Well, yeah, SQLAlchemy is standalone, you can use it in a lot more situations than Django's ORM in practice, because you're not tied to using it in a Django site. But that doesn't mean it's "better"
comment 2y ago · link · parent
The main thing I miss about Django is always the DB migrations in any case. I found that pattern to be very flexible and very powerful.
comment 2y ago · link · parent
In my day job I just made a big change across many microservices updating a core dependency library, so last week it looks like I've done about 50x more work than I have any other week, but that's because I scripted the update, it's not a reflection of the actual work I did at all.
comment 2y ago · link · parent
The general public don't really understand where most physicists work. The largest subfield of Physics is really in condensed matter, where (depending on how you count it) somewhere like 30-50% of physicists work, and where there is plenty of interesting theory work. High energy physics is the next biggest subfield, but much of it is experimental, and then you get into "classical physics" like acoustics, optics, etc. Astrophysics is relatively smaller. There's also nuclear, plasma, fusion and then a whole host of interdisciplinary work like biophysics, materials science, etc. Especially with interdisciplinary work, people often do bits and pieces throughout their career, not everyone sticks strictly to a single subfield.
There's plenty of interesting theoretical physics work in pretty much all of these fields. Not everyone works on grand problems of the universe!
comment 2y ago · link · parent
Take for e.g. this:
void add(double *A, double *B, double *C, int N) {
for(int i = 0; i < N; i++) {
C[i] = A[i] + B[i];
}
}
You generally wouldn't find many C developers sprinkling restrict in on functions like this, since that function could be useful to someone using add on two overlapping arrays.On the other hand, someone writing a ODE solver in a scientific code might write a function like this, where it would never make sense for the memory locations to overlap:
void RHS(double* restrict x, double* restrict xdot, int N, double dt) {
for(int i = 0; i < N; i++) {
xdot[i] = -x[i]/dt;
}
}
In those sorts of circumstances, it's one of the first performance optimisations you might reach for in your C/C++ toolkit, before starting to look at for e.g. parallelism. It's been in every simulation or mathematical code base I've worked on in 10+ years at various different academic institutions and industry companies.comment 2y ago · link · parent
Other languages have long had aliasing, Fortran for one. C and C++ have the restrict keyword though obviously it's a programmer guarantee there and is less safe, since if the user of the function does pass the same memory ref offset for e.g. the optimisation is not safe.
comment 2y ago · link · parent
I can't remember where the original paper was submitted to, but it's worth saying that Nature allow basically any paper submitted to their Nature journals to be transferred to Scientific Reports, which is open access. So if it's been rejected, it's a bit of a path of least resistance to let it go there rather than trying again in a better rated journal like Phys Rev A-E or Phys Rev Letters, which also requires you to reformat the whole thing to their standards.
I don't think anyone really thinks it's a high impact journal or anything. The review is as good as the reviewers ultimately. I've reviewed papers for it and recommended rejection and the paper has been rejected. That's more than I can say for other journals.
comment 2y ago · link · parent
Fundamentally it’s still a good place to live. We have a good education system. Sure, you might have to choose between a longer commute or leaving London and accepting a bit of a lower salary in a different city but that’s true the world over.
comment 2y ago · link · parent