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 2y ago · link · parent

The cuttings and tunnels mean lots of freight is on the roads right now, and half the project has been sacrificed because it was too expensive to continue in this way politically. In the mean time, we’ll be going well into the 2040s where we won’t be able to place more trains in and around Manchester. The plan to build Northern Powerhouse Rail is basically not possible without continuing on and building much of the now missing HS2 2a leg. Not to mention that the 2b leg isn’t going to go ahead.

Natural England are a statutory consultee for planning applications, so if they oppose the scheme there is a good chance it doesn’t go ahead. It’s crazy that a government can decide to build something only for other arms of the state to block it with a narrow focus only on one aspect.

comment 2y ago · link · parent

When I was in primary school (UK) aged about 10 I got flagged by a teacher for being gifted at Maths. At the time there was a local government scheme that put on little lessons at the local research intensive University on a Saturday morning. For me that was incredibly eye opening; nobody in my family had ever been to University and for the first time I also met people who had a shared interest in maths. The cohort of students was very diverse too. I did that for maybe 6 years and then due to cuts it closed down. At that point the staff tried to take it private and it ticked on for a few years during which I used to go and help (first Saturday job!). It was really really great for me, gave me a lot of exposure to advanced things way earlier, and not necessarily things that were on the normal syllabus either, so it didn't leap me forwards ahead of people in school, just gave me a much broader exposure to what maths was. I ended up doing a degree in Theoretical Physics and then a doctorate in computational physics. I vaguely kept in touch with a couple of guys from it, another one did a doctorate is now a researcher in Chemistry and the other did a degree in maths and is a software developer as well.

comment 2y ago · link · parent

Japan was a colonising state, Korea, Manchuria, Taiwan

comment 2y ago · link · parent

All good stuff, I’d add though that for many numerical routines you end up testing on simple well known systems that have well defined analytic answers.

So for e.g. if you’re writing solvers for ODE systems, then you tend to test it on things like simple harmonic oscillators.

If you’re very lucky, some algorithms have bounded errors. For e.g. the fast multipole method for evaluating long range forces does, so you can check this for very simple systems.

comment 2y ago · link · parent

I’m sure the current system where we let everyone with anon violent conviction who’s reached 40% of their sentence out on probation because all of the prisons are full is preferable to trying to do something a bit more intelligently.

comment 2y ago · link · parent

The point is clearly that they don’t have a vertical axis of control, they can’t make the car fly up in the air unless they’re driving crazy taxi style

comment 2y ago · link · parent

The visual input and sensory input to the self driving function are of the 3D world but the car is still constrained to move along a 2D topological surface, it’s not moving up and down other than by following the curvature of that

comment 2y ago · link · parent

We’ve found that the text it generates in our RAG application is good, but it cocks up probably 5-10% of the time doing the inline references to the documents which users think is a bug and which we aren’t able to fix. This is static rather than interactively generated too

comment 2y ago · link · parent

People don’t have to use GitHub, and certainly don’t have to use GitHub Actions even if they do

comment 2y ago · link · parent

> Async code does not improve the performance of CPU-bound tasks.

The number of people I've had to explain this to when advocating switching from Flask/Django -> FastAPI on a CPU-bound problem because it's "faster"... drives me nuts.

I would say the biggest issue with async Django is that if you have an existing Django site, rewriting it to use django-ninja is not that straightforward if you're heavily invested in DRF, which just hasn't moved to add async support.

comment 2y ago · link · parent

Well, what is now the EU market wasn't fully integrated into the "single market" until 1993, well after Unix (from which MacOS is obviously derived) and Windows OS's were starting to be developed. As others have said, trying to target all those different countries and languages is not that straightforward, but it was significantly harder 30 years ago.

comment 2y ago · link · parent

The software in my Skoda Scala and my Vauxhall/Opel Corsa is terrible as well, but like most new-ish Toyota's, all of them support Apple Play so it doesn't matter.

comment 2y ago · link · parent

Himalayan basalm is all over the place by rivers in the U.K… its invasive and difficult to remove because in quite a bizarre and cool fashion, when it’s ready to disperse seeds, it’s seed pod explodes from actually quite gentle physical contact.

https://youtu.be/XUOEHDRLDFk?si=6ZyxKQR-SxhZcMWt

comment 2y ago · link · parent

I guess the inclusion MBP battery allows drawing higher current than a USB C power supply can provide?

585.

AI tool could influence Home Office immigration decisions, critics say(theguardian.com ↗)

4 points · by physicsguy · 2y ago · discuss

comment 2y ago · link · parent

If the government hadn't kept delaying electrification, and even building new lines without electrification, this wouldn't be an issue.

https://www.railmagazine.com/features-1/time-for-electrifica...

comment 2y ago · link · parent

It was just poking people, playing silly games, and status updates that make me cringe when they come back in my "15 years ago today"

comment 2y ago · link · parent

> middle-aged tech workers, who were almost certainly using some primitive social media themselves as teenagers, are now in support of a full ban

How many people do that becasue they have thought about what they perhaps look back on posting on MySpace or Bebo or whatever and think "thank god that's disappeared from the internet"?

comment 2y ago · link · parent

Async was a good example where that didn’t happen, but to be fair to the maintainers, it was fairly experimental

comment 2y ago · link · parent

Pinning by ‘pip freeze’ only works for a specific platform since there are often differences in the wheels available, particularly for older things.

Conda is it’s own kettle of fish especially given different channels and conda-forge which you have to remember.

591.

There's Almost No Gitlab(julien.danjou.info ↗)

38 points · by physicsguy · 2y ago · 72 comments

comment 2y ago · link · parent

Ha! Well that’s my employer keeping us on 14 for now then to blame for that one.

comment 2y ago · link · parent

Biggest issue I run into now with Rosetta + Linux VMs/Docker is not having support for translating the AVX vector extensions, since they're becoming more and more common in compiled binaries. For more popular things there's typically an ARM image but that's by no means guaranteed, and compiling your own to support ARM can be quite involved.

comment 2y ago · link · parent

I work for a European company and we already have strict rules about what data we’re allowed to remit into the US. Typically we’re only allowed to use cloud products hosted within UK + EU. It’s actually causing problems for us now with some of the generative AI stuff since the Azure offering doesn’t match fully the APIs of OpenAI for e.g.

comment 2y ago · link · parent

I found that, I recently worked on a project where there was a Python library using pymc3, scikit-learn and pytensor that is used for time sensitive calculations. The performance wasn't very good and someone was pushing for us to spend a lot of time moving it to GPU, but as I had to point out, that means almost a total rewrite, not simply switching to the GPU enabled version(s) of those libraries, where they even exist.

comment 2y ago · link · parent

At that point you’re more likely to just go straight to the database though, it sort of defeats the purpose.

comment 2y ago · link · parent

I like your article, a big thing I think you miss though is 'database migrations' which I think Django does brilliantly well at managing for you.

comment 2y ago · link · parent

> There's no reason why Rust can't have its own Django

I'd argue that the ability to do `python manage.py shell` and get an interactive ORM session for debugging is a fairly major reason why Rust can't have it's own Django.

comment 2y ago · link · parent

If few people know Rust, then even fewer people know Elixir. That's a major concern for these types of projects, often.

comment 2y ago · link · parent

I liked https://www.cdrf.co/ for exploring DRF.

You basically have either a property or a function with the name get_property for a certain number of things (queryset, serialiser, pagination class, etc.) in any case. I tend to recommend in our projects style guides that once you want to override the behaviour of a mixin, you don’t inherit from the mixin anymore.

The two biggest issues I came across with teams in DRF were people coupling the serialised directly to a single database model (i.e. using ModelSerializer everywhere, even when that didn’t make sense), and trying to put too much stuff into a single class based view or viewset.

1
192021
49