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

Vector instructions speed up things like:

    for (int i = 0; i < N; i++)
    {
        a[i] = b[i]*c[i];
    }
Effectively, they let you do this in chunks of 2, 4 or 8 elements in a single instruction instead of element by element. Usually the clock speed of the processor drops slightly while executing these instructions but not so much as to make it slower than not having the instruction.

New instruction sets usually do two things - add support for new operations, and widen the registers and allow you to perform the operation on more elements at a time.

If you’re writing in a high level language, you’ll only really see performance improvements if your interpreter or library takes advantage of them. For e.g. the Python library NumPy makes good use of vectorisation.

In terms of writing low level code, simple loops are often auto-vectorised by the compiler so you often see a sort of odd style where a loop doing many things is split up so the compiler can deal with it. You often end up having to run the code through something like VTune to work out whether a particular loop has actually vectorised.

comment 3y ago · link · parent

> Because the language is so easy to learn, many practitioners only scratch the surface of its full potential, neglecting to delve into the more advanced and powerful aspects of the language which makes it so truly unique and powerful

We have definitely found this to be true in hiring. Many people’s Python knowledge seems to just be surface deep.

comment 3y ago · link · parent

In theory, but it’s usually specific optimisations that work well on HPC codes that they’d need to replicate at the LLVM level: https://www.umr-cnrm.fr/aladin/IMG/pdf/compilers_elsinore_re...

comment 3y ago · link · parent

Plus vendor compilers often outperform GCC and LLVM… on Cray systems especially

comment 3y ago · link · parent

Pinning depends on the requirements you as the consumer have, and the specific package manager (pip, conda, poetry, etc.) so it's hard to give guidance that's helpful when you're a library maintainer. Generally when consuming any dependency you should pin though...

comment 3y ago · link · parent

Cython did everything right here since it used a major version number to signify the change.

Other projets not pinning their dependencies is not their fault!

comment 3y ago · link · parent

It’s designed for building libraries really. You write functions in the foo.pyx file, Cython generates a foo.c file which gets compiled to foo.cpython-39m-x86_64-linux-gnu and then in your script you do “import foo”

comment 3y ago · link · parent

I've used it previously, and the issue is that while it "works", it's a nightmare to maintain, and the resulting code is not idiomatic in the high-level language which makes it difficult to use.

comment 3y ago · link · parent

Charge 5x more. Enterprise clients are much more demanding.

Do things like create a second tier price, call it enterprise, and for SSO and other enterprise focused features only put these in the more expensive tier.

comment 3y ago · link · parent

Because having AD, AzureAD, AzureAD B2B and AzureAD B2C (that can be used for B2B applications) wasn’t confusing enough…!

comment 3y ago · link · parent

Location: Nottingham, UK

Remote: Preferred but can commute to London/Manchester/etc. a couple of times a month or more frequently if closer.

Technologies: Python (scientific stack, Django), C, C++ (OpenMP, MPI, CUDA), AWS

CV: available on request. 4 years commercial experience + 4 years in highly technical PhD writing open source simulation software.

Interests in renewable energy, scientific/engineering companies, tech for good. Enjoy working on challenging technical problems. Looking for new role as current company going through an extended period of instability.

E-mail: hn-looking-for-a-job@outlook.com

comment 3y ago · link · parent

I struggle to see why they’d focus on things like this when missing features like this [1] go unresolved for years and prevent big enterprise customers from migrating…

[1] https://gitlab.com/gitlab-org/gitlab/-/issues/29674

comment 3y ago · link · parent

Of course, but aside from standardisation defined details, it also depends on your compiler's standard library implementation, and those are not all made equal, especially if you've got to build something both for Windows and Linux.

comment 3y ago · link · parent

You can always just use Boost. I don't think I've ever worked on a C++ project that didn't use it!

std::filesystem = boost::filesystem - 1.30.0, 2003

std::optional = boost::optional - 1.30.0, 2003

comment 3y ago · link · parent

This only makes sense if the local market you’re in can actually support this.

If I in the UK ask for £150k outside of very few FAANG or finance companies, it just ain’t gonna happen!

comment 3y ago · link · parent

The majority benefit of HS2 is significantly improved freight and passenger services throughput nationally which allows intercity lines to run many more trains in Birmingham.

The government knows this but completely missold it to the public.

comment 3y ago · link · parent

“No true Scotsman” fallacy surely? Yes, in theory, but in practice, all sorts of issues like the N+1 problem can pop up

comment 3y ago · link · parent

Except when it’s not performant, and then suddenly you need those backend guys again!

comment 3y ago · link · parent

I’d argue that FEniCs was a prime example of this in some ways, at least earlier in it’s history.

I started using it in about 2014. It was not exactly what I would call a simple project. It used to be an ordeal to build, could only easily be used via Docker, ported to Python 3 a long long time after most of it’s dependencies did, had an unstable C++ API that changes were not documented for but nonetheless you were required to use if you wanted for reasonable performance for some calculations, etc. The national supercomputing centre in my country managed to only get one version to build because it was so poorly specified at the time and basically only supported Ubuntu!

FEniCsX is considerably better usability wise, but that’s the result of hard lessons learnt.

comment 3y ago · link · parent

This is one reason I’m glad I came from a research background into software. If something doesn’t work it doesn’t upset me and I don’t personally feel aggrieved, you just chalk it up to experience and move on. The number of times I worked on a study that had to be abandoned either because it didn’t work or because another research group beat us to it!

comment 3y ago · link · parent

I worked in this area of magnetics, and it’s been in research for at least 15 years. Companies had made devices by about 10 years ago but the storage capacities were low so they weren’t that useful for consumer applications at that point. The hard problem with HAMR is dissipating the heat.

comment 3y ago · link · parent

A big company like a FAANG will shift the local market when they open an office.

There are plenty of competent people all over the world that can’t move easily for whatever reason - usually family.

comment 3y ago · link · parent

Pop is common where I live in the Midlands

comment 3y ago · link · parent

Way less than people think they’re going to.

When I started my current job, the project was veering into microservices hell by a team that did not understand how to build a web application. A rough back of envelope calculation of potential customer base and what the product was aimed at (B2B in renewables) told me that even with world domination, the backend of the application would at most have 50k active users ever. So we didn’t really need 30 different microservices all which could scale independently, maybe just 2 or 3 larger services.

comment 3y ago · link · parent

Conda requires a commercial license too

comment 3y ago · link · parent

I laughed most at the idea you’d wear this at your child’s birthday party

comment 3y ago · link · parent

The issue is that as web software becomes more and more complex and desktop-esque, it needs features that were common in desktop software. It's a poor user experience to open a new window for lots of things in the browser, but that sort of functionality is still needed sometimes.

If I think about the engineering product I work on and where they do have modals, none of them would work with a separate page. It's things like "Load one or more of your saved graphs (which you can search and filter) into this existing page of graphs"

comment 3y ago · link · parent

This is nothing new. The game N was an exe and I worked out through trial and error that if you ran the exe through a compressed file format like zip, it bypassed the school’s antivirus. That was in about 2005!

comment 3y ago · link · parent

My boss and I have this week literally been talking about how there has been so much title inflation that job title is meaningless now. “Senior” means 3 years of experience and is asking for salary far beyond many peoples deliverable value which makes it hard to justify hiring people like that that need a lot of development and growth still. The thing is that while some people who have three-five years experience are really good, they’re at the right hand side distribution on the bell curve.

I’ve interviewed people who tell me they’re experts in X but can’t tell me common tooling, how they might debug poorly performing code, etc. etc. I don’t think this is sustainable personally, when you look at what “senior” is in other industries (like engineering) people are expected to be much more competent relative to their peers before they get such a title.

comment 3y ago · link · parent

Quite interesting, here in the U.K. it’s generally monthly payroll, usually towards the end of the month, something like closest working day after the 25th is common
1
323334
49