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

Nobody would really use a compiled language for this, the compile-run-edit-cycle just takes too long. Prior to Python people really just used MATLAB and Mathematica for that sort of work in the physics/engineering side, and R and Stata/SPSS on the bio + maths side. MATLAB, Mathematica, Stata and SPSS are all commercial and R has exactly the same problems to Python in environment management and compiled binaries, if you use it today you end up doing a lot of manual compilation of dependencies and putting them in the PATH on Linux at least.

Python became popular because the key scientific ecosystem libraries copied the libraries from MATLAB closely which made it easy to pick up, and because it was free. Anaconda made a distribution that was easy to install with all the dependencies compiled for you, which worked on Linux/Mac/Windows which made it much easier to use than R. The other interactive languages around at the time were Ruby which was heavily web dev focused, and Perl. Node didn’t yet exist.

Once you have an ecosystem in a language it’s very hard to supplant. You need big resources to go against the grain. That no big company has decided to pour lots of money into alternatives even despite the problems probably tells us that it’s not viewed as being worth it.

comment 2y ago · link · parent

It depends on what you're doing right? The commenter here replied to me, and we're processing really large data files that are deliberately not in a SQL database due to size, only artefacts of these files eventually make it into a time series DB. For us Go works well and is performant without any great difficulty. For domain specific analytics we generally use Python, and Go just calls out to an API to do them.

comment 2y ago · link · parent

Yes. It works fairly well. With that said, I've got a feeling that life would be a lot easier to change around if we weren't using it, we end up writing a lot of code to do relatively simple things.

comment 2y ago · link · parent

If I wanted to compile a Go binary using an existing dynamically loaded C library, compiled with -ffast-math, what happens?

comment 2y ago · link · parent

The same problems happen in any language that links C and C++ libraries largely.

It's less common for other languages because they just don't do it as much.

comment 2y ago · link · parent

Depends on the platform you're on, some platforms have very few wheels.

comment 2y ago · link · parent

I've had exactly the same experience, it's a nice language but using it for things it's not suited for like data exploration makes no sense to me.

Production data pipelines on the other hand, but only after testing them well and as you say, making sure there's good testing if you're implementing things like numerical routines.

comment 2y ago · link · parent

I like GitLab's product but I don't like the developments they've made in the last few years. It seemed to me to have been captured by too many product managers trying to make a name for themselves and became less of a cohesive user interface/feature set. The cost kept going up as they hired more and more people.

comment 2y ago · link · parent

Yeah, there's similarly defense reactors. For e.g. this site in Derby in the UK: https://www.onr.org.uk/our-work/what-we-regulate/defence/def...

comment 2y ago · link · parent

Here we go, another HN roundabout criticism of Python performance.

Here’s a real world example. I recently did some work implementing DSP data pipeline. We have a lot of code in Go, which I like generally. I looked at the library ecosystem in Go and there is no sensible set of standard filtering functions in any one library. I needed all the standards for my use case - Butterworth, Chebyshev, etc. and what I found was that they were all over the place, some libraries had one or another, but none had everything and they all had different interfaces. So I could have done it in Go, or I could have kept that part in Python and used SciPy. To me that’s an obvious choice because I and the business care more about getting something finished and working in a reasonable time, and in any case all the numeric work is in C anyway. In a couple of years, maybe that ecosystem for DSP will be better in Go, but right now it’s just not ready. This is the case with most of our algorithm/ML work. The orchestration ends up being in Go but almost everything scientific ends up in Python as the ecosystem is much much more mature.

comment 2y ago · link · parent

On this point it’s worth noting that internal users are very very different from external users too.

An internal user that can wander over to Bob and say hey, this thing isn’t working quite right, I’ll grab a coffee with you and we can talk through it, is very different from a paying corporate who will not tolerate service falling below a certain standard. I joined a company where they were trying to transition an internal piece of condition monitoring software to be a SaaS app and it went really badly wrong, the sales people seemed to assume it was ready for this but it just wasn’t and needed a huge amount of hardening and security work, not to mention features to make it easier to use.

comment 2y ago · link · parent

Not everyone wants to hack on things all the time, and there's nothing wrong with that.

comment 2y ago · link · parent

The point was that you could have an optical out connection to a Hi-Fi system and things would just work from Spotify, etc... The google speakers don't even have an aux out. A Rasperry Pi isn't at all equivalent as it's not plug and play.

comment 2y ago · link · parent

The BoJ put interest rates up last week, which surprised everyone because they've been an outlier for a long time in having negative interest rates and then a 0% rate. That strengthened the currency even more.

If the yen strengthens, then it means the goods sold by Japanese companies become more expensive for foreign buyers, so they'll sell less and earn less. Along with fears of the US economy starting to struggle (worse than expected job figures last week) it's a perfect storm. Gains up to this year have been good so for many firms wanting to de-risk they can still sell now and still make a profit.

comment 2y ago · link · parent

People are unwinding trades because the BoJ put up interest rates as well...!

comment 2y ago · link · parent

2 years on from this, the SNP are in pretty dire straits after scandals engulfing the husband of former First Minister Nicola Sturgeon, Scotland has just elected 30 Labour MPs and the country as a whole has ejected the Tory government.

comment 2y ago · link · parent

Given the abandonment of olympic venues all the way round the world, I don't think this is a bad thing.

There's a lot in the book Soccernomics about how the economic value promised by politicians lobbying for hosting things like this rarely pan out.

comment 2y ago · link · parent

It's not even popular outside of the US, I'm not sure how they can grow with that.

If I look at my closest city in the UK at restaurants, nothing has been reviewed recently (2018, 2019) and it's mostly from US visitors coming here.

comment 2y ago · link · parent

Yeah 100%. I worked in wind energy for a while and the DS team would be pulling as much data as they could get to establish a baseline for normality due to seasonal trends in the wind. This also varied enormously around the world - for e.g. the UK is fairly windy all year, but India typically gets 2/3 of it's generated wind energy in the monsoon season which is about 3 months.

comment 2y ago · link · parent

https://en.wikipedia.org/wiki/Strangler_fig_pattern

comment 2y ago · link · parent

> then I later find that someone (usually someone who signs my paychecks) has been communicating something less-than or not-equal to the agreed upon design.

Ultimately if you've got people going behind your back and directing people to do something other than what you'd like, you're going to struggle here.

comment 2y ago · link · parent

I think a lot of people are just suffering from AI fatigue, where the promises are huge and the product is underwhelming. That's still consistent with high risk things being affected more as found here, because people think 'if you can't get this low stakes thing right, why should I trust high stakes things to be any better?'

comment 2y ago · link · parent

You can't really do it, the best way is to build it with Clang installed with Homebrew and then put in the installation instructions to ask users to install OpenMP with `brew install libomp`.

It really frustrates me that Apple strip it out of their build of Clang in favour of pushing their own Grand Central Dispatch.

comment 2y ago · link · parent

I didn't like working with it much personally (using Express). Typescript always feels very clunky to me, and if doing it in Javascript you lose type safety obviously. The package ecosystem I didn't like very much, too many changes to stay up to date with things for limited benefit.

Currently work in Go and Flask depending on what the service is, much easier to work with than Node.

The most productive I've ever felt was with Django + REST Framework, mainly because so much is built in and it has a good package ecosystem around it. If working with a database the migration support is amazing. I've heard Rails is similar but never tried it personally.

But with all this, I usually say to people to stick to what they know or what the hiring market can support. There's no point learning for e.g. Elixir if you can't find devs to work on it without upskilling them.

comment 2y ago · link · parent

Until about 7 or 8 years ago, install pretty much always meant build from source; wheels only came in fairly recently in the history of Python and are still not universal, as you've found out. You'll typically have problems on:

* ARM Linux

* POWER9/10

* Alpine distros which use MUSL for the C library (https://rpep.dev/posts/alpine-python-antipattern/)

* Some packages which depend on C libraries that are difficult to build on Windows (fault of the C libraries rather than Python really).

Conda (and previous tools before it like Enthought Canopy) were designed to try to fix this problem, since the core Python packaging tooling just wasn't good enough. Wheels were proposed as a PEP extension and adapted but it took years for common packages to be built as wheels and even now there's nowhere near universal coverage for them even on common platforms.

comment 2y ago · link · parent

I tried that approach with a colleague and it just got more and more heated and frustrating. At the same time we were getting heat for reliability. I ended up quitting. Since then I heard from a colleague that they made some staff redundant, on a team that was already underwater.

I doubt very much that my experience was unique. In my new position we have the same problems with reliability but I don’t get involved in the political side of trying to argue about it, just turn up and do my 9-5. I’m a lot less stressed now!

comment 2y ago · link · parent

Have a look at the PRISMA reporting guidelines

comment 2y ago · link · parent

For a systematic review/meta analysis you’d be expected to document your search strategy, exclusion criteria, etc anyway wouldn’t you? That’d preclude using a tool like this other than as a sense check to see if you needed to add more keywords/expand your search criteria anyway.

My wife does that for her day job (in the U.K. national healthcare system) and the systematic reviews have to be super well documented and even pre-registered on a system called PROSPERO. The published papers always have the full search strategy at the end.

comment 2y ago · link · parent

My first impression is that it’s quite cool, but it should weight things by importance to some degree.

I tried a search on my previous research area (https://www.undermind.ai/query_app/display_one_search/5408b4...) and it missed some key theoretical papers. At the same time, it picked up the three or four papers I’d expected it to find plus a PhD thesis I expected it to find. The results at the top of the list though are very recent and one of them is on something totally different to what I asked it for (“Skyrmion bubbles” != “Skyrmions”). The 7th result is an absolutely core paper, would be the one I’d give to a new PhD student going into this area and the one I’d have expected it to push up to the top of the list.

1
242526
49