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

Julia is great if you can afford to spend 5 minutes sitting around for your session to load, but most people have things to do.

comment 4y ago · link · parent

Gonna depend a huge amount on what you're doing to be honest. I used it for physics modelling codes and it made a bit of a difference (comparable to Numba) but dropping to C for the main computation routines was what we ended up doing, and that worked very well for us.

It's very fast to write for, that's the main benefit. Use it together with profiling and just pick off the slowest part first.

comment 4y ago · link · parent

What's the average age of a Barclays or TSB user vs a Monzo user? According to this, 72% of Monzo customers are 18-35: https://www.businessofapps.com/data/monzo-statistics/

If that's the case, it's fairly obvious why there'd be a lot more noise - a lot larger percentage of people in that age group doing crypto, and a larger percentage are "very online" and likely to complain about it there.

comment 4y ago · link · parent

The law is really strict. If you look on reddit.com/r/ukpersonalfinance there's loads of people complaining that Monzo have frozen accounts and won't tell you way. In pretty much every circumstance, the person involved has been moving large amounts of money around through Crypto, so it's fairly obvious why they might flag that up as potential fraud/money laundering and cause an investigation.

comment 4y ago · link · parent

I love Cython. I really feel like it's the right balance of usability and allowing you to do what you want/need. Want to make your code a bit faster? Write Python with type annotations. Want to call a C library? Just import the header, and then use it from a function.

Pybind11 is also great, but quite different in aims - I feel like it's more like a project for C++ programmers wanting to expose functionality to Python.

comment 4y ago · link · parent

I left after postdoc to go into industry for better salary. Briefly went back to work as an RSE but left again for better salary

comment 4y ago · link · parent

The biggest difference between working and research is that you're free to just try things out without so much pressure.

comment 4y ago · link · parent

From an outsider perspective, the US tax system is nuts.

Here in the UK, the tax year runs from April to April. Your employer reports exactly your taxable earnings to the government every month. You can log in online and see exactly what you're taxed on. You do not need to fill out a self-assessment at all - it's all done automatically, except for under certain circumstances which don't affect most of the population, but roughly:

* You have earnings over £1000 a year from outside of your normal employment (e.g. from interest on savings, selling things on eBay, whatever). * You are earning above £50,000 per year but want to continue claiming child benefit (which phases out between £50,000 and £60,000, so some needs to be repaid). * You earn over £100,000.

comment 4y ago · link · parent

Each market is different; even when UK was in the EU it wasn't like you could for e.g. apply for a credit card from Bulgaria - the supervision responsibilities for UK customers fell onto the UK based Financial Conduct Authority. If you try and purchase an Apple item on credit in the UK, the loans are provided by Barclays even.

comment 4y ago · link · parent

“Nobody ever got fired by choosing Microsoft”

comment 4y ago · link · parent

I have to laugh at the suggestion that Python code is portable. It is, only to the extent that you don't depend on any third party packages with a binary dependency, and then you're often worse off than C/C++, because at least there people tend to think about packaging for multiple architectures and operating systems.

This even now extends to libraries that are so common they're effectively part of the standard library in Python. The cryptography library now depends on Rust to build. That's fine if you can just use the binary wheels that they provide. But if not... you can't use Rust on a number of architectures because LLVM doesn't support them. And now you can't build the library.

comment 4y ago · link · parent

Not the commenter, but I work in scientific software development and it's just a minefield of different units, so being explicit is generally very useful. Even if you can assume you can stick to metric (you can't), what different users want varies across countries. For e.g. here in the UK we often want to represent data as millilitres, but in France the same measurements are often centilitres.

I don't use libraries to enforce it though, we did try this but found it quite clunky: https://pint.readthedocs.io/en/stable/

comment 4y ago · link · parent

I used django_ckeditor and ckeditor_uploader for a very simple site I built for an academic where they needed WYSYWIG forms, it worked a treat and easy to integrate. It's used by Django CMS too.

comment 4y ago · link · parent

Totally agree, my team has been lumped with random projects in C# and Go for this exact reason, with no technical justification for it. It's not that either is particularly difficult to learn, but the person who originally wrote them did it for their CV's benefit.

comment 4y ago · link · parent

And it's the right choice.

comment 4y ago · link · parent

This is UK so different culture for recruiters I think.

comment 4y ago · link · parent

My experience is mostly through consuming packages that other people have written, and the downloading existing packages is a big part of why it's problematic. If I already have PrettyCommonStandardLibraryX, I don't really want Bazel to download another copy of it for me just to incorporate your project. Other build systems are simple enough to change, or support this straightforwardly. Doing it with Bazel is quite painful IMO.

comment 4y ago · link · parent

It's just a nightmare to manage unless you're a Google-sized company

comment 4y ago · link · parent

I've had 21 LinkedIn messages this week, and I'm not even really looking for a job. Almost all are an increase on my current salary. But I've just switched job, so going to bide my time for the next 12 months and then see where I'm at.

comment 4y ago · link · parent

Even if your place is mortgaged - most people in the UK for e.g. are on short fixed interest rate deals, usually 2 to 5 years. If you're on a shorter term deal and your interest rate increases at the end, you're going to struggle to pay your mortgage.

comment 4y ago · link · parent

Yeah, I am aware of that, but Linux distros package very old versions, and we need to be able to support multiple for users. Realistically, academic researchers like to use 'bleeding edge' type things. Generally a big HPC cluster comes with RHEL too and a support contract, because you need the drivers for the hardware - things like Infiniband networking, etc. so switching distro isn't an option really.

comment 4y ago · link · parent

Pretty much every Python + scientific package (and these days, why else would you buy a P9 cluster but for that kind of work?)

comment 4y ago · link · parent

The main reason Windows can still run stuff is because it has Visual Studio Redistributable packages at the OS Level. So got some software that needs VS's C++ symbols from 2008? Usually comes as part of the installation process, but you probably already have it installed.

comment 4y ago · link · parent

I'd never buy a POWER11 system given that IBM barely supported our POWER9 cluster, and we ended up compiling everything ourselves for it, with many, many errors and problems. Any difference in cost is more than made up for with the amount of staff time spend trying to fix bizarre compiler bugs.

comment 4y ago · link · parent

How many dishes have they actually shipped there? Turning it "on" is the easy part.

comment 4y ago · link · parent

They're hardly comparable languages are they? If I want to write some embedded software or work on a POWER9/10 machine at work, I'm basically limited to C or C++.

comment 4y ago · link · parent

If you don’t want to use LLVM then you don’t have much choice.

comment 4y ago · link · parent

It's been open for several years: https://github.com/JuliaLang/julia/issues/37957

comment 4y ago · link · parent

I tried to integrate a Julia REPL into another application and the example on the website didn’t even compile.

comment 4y ago · link · parent

Biggest annoyance with Python GUI applications - how big is the executable constructed with this once you start adding a few libraries in?
1
383940
49