292 karma · joined Sep 28, 2022 (4y ago) · 109 submissions
1.
Physics AI: The illusion of ground truth(rpep.dev ↗)
3 points · by rpep · 6d ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Most people I know who ended up at RR live in Nottingham or the Peak District and commute in to Derby. Appreciate that’s perhaps not as exciting as London but it’s hardly a shit hole up here.
Agree on pay though. I work for a different engineering conglomerate (foreign owned) and I applied for a HPC role at RR a couple of years ago and the salary was £20k lower. The disparity would be even more now.
comment 1y ago · link · parent
https://taxpolicy.org.uk/2024/03/10/infographic_marginal_rat...
comment 2y ago · link · parent
I have in the past used Mathematica, which I did think was more powerful for symbolic math to be honest, but it had the downside of not being free...!
14.
Go First Impressions(rpep.dev ↗)
1 points · by rpep · 2y ago · discuss
comment 3y ago · link · parent
https://rpep.dev/posts/improving-python-performance-numerica...
https://rpep.dev/posts/best-practices-django-views/
Have just been starting this really. Any feedback much appreciated.
comment 3y ago · link · parent
comment 3y ago · link · parent
Now, bonds are guaranteeing a 5%+ return, so a non-profitable business is much less attractive as a proposition.
comment 3y ago · link · parent
For e.g. say you have a User model and a corresponding “Profile” model. If you need to create the profile object when the user is created, it doesn’t really feel appropriate to put that in a UserModelManager directly coupled to the User object. This is the example given from the Hacksoft Django style guide to advocate creating a service layer.
In terms of the abstraction, I totally agree and tend to be pretty pragmatic about this sort of thing.
comment 3y ago · link · parent
The only thing beyond that that I'd recommend is specifying a get_serializer_class method since it simplifies your boilerplate and plays well with drf-spectacular for generating your API documentation. I generally don't use ModelSerializer unless the logic is very simple, I've been meaning to write a blog post for a long while about avoiding it when your data model is split across two database tables.
comment 3y ago · link · parent
I've also found that it's good practice to impose boundaries between apps so that they are not strongly coupled together but communicate through an interface. That way, if you need to split an app out into its own project at some point, the migration is significantly easier from a code perspective, since the implementation of the interface function is all that needs changing on the consumer side.
comment 3y ago · link · parent
Having had to work on software that did runtime dispatch for SIMD - there is a small performance cost to this. For most software it’s just not worth it. Compiling multiple versions is preferable but more confusing for users, and more costly for the developer in CI and build time. There are therefore good reasons not to support multiple microarchitectures and picking one released 12 years ago is a good compromise. I wouldn’t at all advocate picking AVX512 but this is not that - almost all consumer and professional grade hardware sold in the last 10 years supports AVX, and it’s unreasonable to expect vendors to continue supporting an ever shrinking niche…