Better HN
topnewbestaskshowjobs
Log inSign up

physicsguy

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

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

comment 12mo ago · link · parent

Yes, 100%, you end up with a massive main.py file instantiating everything and trying to couple and register stuff.

comment 1y ago · link · parent

Ah well yes to a degree that’s possible but at least at the moment you’d still be better off buying a $5k Mac Studio if it’s just inference you’re doing

comment 1y ago · link · parent

I found Pandera quite good for wrapping input/output expectations over Pandas. At the end of the day the vectorisation of operations in it and other table based formats mean they’re not easy to replace performantly.

comment 1y ago · link · parent

> Push comes to shove im sure an old A100 will run crysis.

They don’t have video out ports!

comment 1y ago · link · parent

Data centre cards a don’t have fans and don’t have video out these days.

comment 1y ago · link · parent

I don't think it's unfair at all, stuff like BoE independence was planned prior to the election and implemented quite quickly.

The planning reforms of Labour have been held up largely by their own MPs. I don't particularly care about it but House of Lords reform seems to have been abandoned. Their 'charter for working people' has been largely unworkable and they're arguing internally an enormous amount. Lots of these don't have a huge amount of bearing on them based on the economy at all, they're largely cost neutral to the government itself.

Instead we've had (a) more bungs to pensioners via the triple lock which they're too scared to deal with at nearly a 5% increase this year (b) getting rid of the cap on benefits for more than 2 children, which is terrible optics for everyone working who can't afford more than two kids and doesn't get any support (c) a rise in employer NI which has hit hiring and pay rises massively for anyone working (d) a rise in employee NI to pay for all of this via stopping salary sacrifice, which only hits private sector employees.

comment 1y ago · link · parent

> They have done a lot.

I really don’t agree. Look at the first year of 1997 Labour:

* Good Friday agreement signed and referendum * Introduction of Minimum Wage * Human Rights act introduced and passed * Scottish and Welsh devolution set out, Parliament voted on it, referendums passed * Bank of England independence

A government coming into a mess of a country on a platform of change cannot just fiddle around with minor things, which is what many of the changes they have done, though positive, are. And at the same time, they’ve also wasted so much political capital on some really stupid things that it’s hard to see where they can go from here.

comment 1y ago · link · parent

> in order to report as soon as it was live

We don't actually know that, it's just that the report did hit Reuters pretty swiftly.

comment 1y ago · link · parent

The fact that they were elected as a 'change' government and have barely done anything that really faces up to the scale of the challenge the country faces? If you're below the age of about 55, then the budget did absolutely nothing for you except put taxes up, and not even to improve services.

I appreciate things time but so far the government have enormously walked back their planning reform proposals, which was one of their few pro-growth policies, and haven't really made any dent in anything else substantive. It's been pretty clear since even before the election that they didn't really have a plan, and they got a fairly light scrutiny through the campaign because the Tories were so appalling. Then since they got in they're just scrambling around looking fairly incompetent and the dearth of talent on the cabinet has been pretty plain to see as well. Largely I want Labour to succeed but they're not making it easy to like them.

comment 1y ago · link · parent

There's two ways of doing it, I implemented them both in my PhD and didn't have a ton of fun doing it.

(a) There's a method that works well for monopolar sources (gravitational + electrostatic particles) called the Barnes-Hut method. You effectively divide space up into a quadtree (2D) or octree (3D), and in each cell work out the center of mass / total charge. You make particles in "nearby" cells (using a distance criterion that can be adjusted to speed up/slow down the simulation in a trade off with accuracy) interact directly, and far away cells you just use the center of mass to work out the interaction between any given 'far' particle and the particles in that cell. The method is O(N log N) but in practice, this is 'good enough' for many applications.

(b) uses a more rigorous technique called the Fast Multipole Method which is O(N), where rather than just using the center of mass or sum of charges, you expand the potential from particles out into higher order components which captures the distribution of particles within each cell. This also means you can capture more complex potentials. The downside is that this is a nightmare to implement in comparison to the Barnes-Hut method. Each cell has it's own multipole expansion, and it is 'transferred' to work out the additive contribution to every 'far' cell, calculating a 'local' expansion. Typically people use the most compact representation of these potential expansions which uses Lagrange polynomials, but this is a pain.

comment 1y ago · link · parent

I don’t know that that is fair.

A number of years ago I worked on a POWER9 GPU cluster. This was quite painful - Python had started moving to use wheels and so most projects had started to build these automatically in CI pipelines but pretty much none of these even supported ARM let alone POWER9 architecture. So you were on your own for pretty much anything that wasn’t Numpy. The reason for this of course is just that there was little demand and as a result even fewer people willing to support it.

comment 1y ago · link · parent

All quite good examples but I would say that these are quite well known. It’s also missing that there are mitigation strategies for some - for e.g. in vibration analysis it’s typical to look at the Hann windowed data to remove the effect of partial cycles, and it’s common to overlap samples too. Similarly there are other tools like the Cepstrum which help you identify periodic peaks in the spectral data.

comment 1y ago · link · parent

I remember watching something on BBC about minimalism years ago when I was doing my PhD and earning £13k a year and thinking that I just couldn’t do it because it relies on you having the money to repurchase something you need that you threw away

comment 1y ago · link · parent

The BBC here used to put a ton of news content on it, it was pretty forward thinking really!

comment 1y ago · link · parent

Remember RealPlayer? Grainy 128 x 128 streamed videos in 1998!

comment 1y ago · link · parent

Sure, but not all applications are equal right? If you get so many applications, you can basically cream off the top % for your grad scheme, even after accounting for the fact that you won't have every student accept a new grad offer.

comment 1y ago · link · parent

No, though that company was a small company owned by a big corporate and working in renewables so somewhat interesting.

I’m not sure it does - I was last hiring two years ago. What I am saying is that this is nothing new.

comment 1y ago · link · parent

If you think that’s bad, about 15 years ago I asked a recruiter from Rolls Royce how competitive their grad scheme was and it had over 20000 applications per year at the time.

comment 1y ago · link · parent

The whole point of Ryanair has always been low cost flights by shoving passengers in and stick to the rules to make everything faster and having less staff. People want the £30 flight but don't want to stick to the conditions, ultimately. But that is the trade off you make.

comment 1y ago · link · parent

> switch majors or ride out the downturn

You can't really do this in the UK where the author is based, it is very difficult. You are normally basically committed to a certain course of study after Year 1.

comment 1y ago · link · parent

I'm based in the UK and have been a hiring manager pretty recently. I have seen a lot of CVs like this. This was the junior positions I was advertising two years ago, this wouldn't have made it through the filter. Because largely, we (as even a small company) would get ~250+ applicants for a single position.

My filters were roughly (in order) (a) remove anyone who didn't study their degree in the UK and didn't explicitly state their right to work / visa status (b) remove people with irrelevant/less relevant degrees e.g. people with Business Information (c) remove weaker/less well regarded Universities.

Not always, but usually even after that you'd still have 150 applicants to review, and at that point you start taking a really critical eye and anything that doesn't look quite right or isn't explained in 30 seconds of reading it gets a CV binned because you just don't have time. I would have immediately binned this one because the person has listed 4 years duration for a 3 year degree and not put an explanation of why. I don't mind what the reason is but you are splitting hairs trying to distinguish between people so stuff like this matters. Other things I would say is that the CV experience listed isn't really verifiable as the companies listed have basically no presence online. That doesn't mean it's negative, but it's not a positive - it just no bearing. The DeepMind internship appears to be an in-university internship which is nothing special.

The reality is that you get a lot of CVs like:

* 1st Class degree from University of Bristol/University of Nottingham/University of Birmingham/UCL/etc.

* Summer internship at <large company you have heard of> OR Placement Year at <large company you have heard of>

* A Level grades listed and are good (AAB+)

And even then, you can't interview all those people.

comment 1y ago · link · parent

I think let's not forget that at the start of the period they mention, the UK (and British Empire) as a share of world GDP was larger than the US is today. It was clearly never going to be able to sustain that position.

Let's also not forget that the country effectively bankrupted itself during WWII. Investment from the Marshall Plan was basically used to prop up the currency which ultimately failed. There were 'balance of payments' crises well through into the 1970s when Bretton Woods collapsed.

comment 1y ago · link · parent

I’m in a rural village and even we got full fibre last year. It’s happening because the government is allowing shutting off the copper ASDL network next year so it has to be done and soon.

comment 1y ago · link · parent

Sharing articles I like to people I know is the other reason, when the site doesn't have any functionality for that.

comment 1y ago · link · parent

My experience (as a non-CS person) has been that aside from where there is a very large maths component which might block people without further academic-style study (and I wouldn't necessarily even count ML in that, since the maths needed for much of ML is relatively low level, it's certainly not graduate school level understanding maths), there are relatively few areas of software which have high barriers to entry in actually doing stuff - where the barriers are are people willing to take a risk on letting you have a go. That's usually much much easier once you're in a company than if you're applying for a role from the outside.

Every time I've felt like I didn't understand something and felt overwhelmed at the scale at a task, 3-6 months down the line of throwing myself at the problem and trying to understand it, I've realised it's not as hard and part of the barrier was just the unfamiliar terminology and unfamiliar tools. Sure, there is a degree of needing to learn new stuff - which is true in any job and in life - to do new things. But those barriers are not normally insurmountable. That's been true for me in basically every area. It is also why I'm fairly willing to give people a chance, so long as they are able to demonstrate some knowledge which would be able to transfer.

comment 1y ago · link · parent

The tech sector in the UK is pretty big but also massively finance weighted. And salaries a lot lower than the US so a $ investment goes further. At my company a few years ago our one developer in Boulder earnt more than our head of software in the U.K.

comment 1y ago · link · parent

pkg-config isn’t the hard bit though, is it?

Usually the hard bit with C libraries is having dependencies with dependencies all of which use their own complex build systems, a mix of Make, CMake, Autotools, Ninja, etc.

Then within that for e.g. a mix of using normal standard names for build parameters and not e.g. PROJECTNAME_COMPILER instead of CMAKE_C_COMPILER

comment 1y ago · link · parent

Most Python libraries that relies on C are numerical stuff.

From experience with this type of code you typically end up with a load of functions that take in a numpy array and its length/dimensions to a C function that works on that array in place or an output array that was also supplied. In terms of getting this wrong, it’s usually a crash caused by out of bounds memory access which would still be a runtime crash in Rust. So I’m not sure there’s a massive benefit for these types of code other than the fun of learning Rust. Other than that, you’re typically writing C/C++ to interface with C and Fortran libraries that are really battle tested, and for which it will take decades for Rust to have equivalents. So moving to Rust will just cause you to have lots of unsafe statements - not a bad thing necessarily if you are doing a lot of work at the C level in existing code but less of a benefit if you are doing a straight wrap of a library.

On the flip side, things on the web side of Python like uWSGI which is written in C are important for the security aspect but they’re a very small part of the Python ecosystem.

comment 1y ago · link · parent

My experience in working in C++ was that the salary wasn’t as good as what I could get elsewhere. That was a big part of why I left, I didn’t hate the job.

comment 1y ago · link · parent

My experience is mostly practical really - the trick is to learn how to compile stuff yourself.

If you do a typical: "cmake . && make install" then you will often miss compiler optimisations. There's no standard across different packages so you often have to dig into internals of the build system and look at the options provided and experiment.

Typically if you compile a C/C++/Fortran .cpp/.c/.fXX file by hand, you have to supply arguments to instruct the use of specific instruction sets. -march=native typically means "compile this binary to run with the maximum set of SIMD instrucitons that my current machine supports" but you can get quite granular doing things like "-march=sse4,avx,avx2" for either compatibility reasons or to try out subsets.

1
678
49