Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rpep
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
rpep
3y ago
Python has been around since early 90s and it’s main implementation was written in C though. It’s always had first class support for writing C extensions so it’s not illogical that wrapping functions written in other languages interface wit
32.
▲
by
rpep
3y ago
All the processor specific libraries I’ve used could be called from either language family. This was certainly case for Cray LibSci libraries (which for e.g. supported Fortran BLAS and LAPACK interfaces and the equivalent C wrapper CBLAS) a
33.
▲
by
rpep
3y ago
There have been automatic translators from Fortran to C for many years, but they don’t product idiomatic C code.
34.
▲
by
rpep
3y ago
None of this is particularly surprising. I think there are a multitude of factors: * Universities are teaching Python more than ever. When I started my undergrad in Physics everyone took C++, by the time I graduated it was all Python. * Aca
35.
▲
by
rpep
4y ago
It’s worth considerably more than that as an individual since you lose any investment risk, and contributing the same as employer + employee contribution to a pension is unlikely to get you benefits on retirement with the same annual paymen
36.
▲
by
rpep
4y ago
> Most FFI boundaries incur their own performance cost. I’m not sure about Python, but I wouldn’t be surprised if FFI to rust in a hot loop is often slower than just writing the same code in Python directly. And it’s not always easy to r
37.
▲
by
rpep
4y ago
You need to add “-march=native” to turn on SIMD at the highest level your processor will support, otherwise it will just use SSE4.1 by default on most compilers (the lowest common denominator, as all x86-64 processors have it).
38.
▲
by
rpep
4y ago
With a Django project, what it is actually doing is spinning up a new test database at this point which will be the cause of your slowness. If you haven’t made database schema changes you can run it with the flag “—reuse-db”. If you’ve got
39.
▲
by
rpep
4y ago
Completely different landscape but “Rewilding” by Isabella Tree goes into quite a bit of detail about similar challenges in the U.K., for e.g. neighbouring farms being unhappy about them letting grow plants they consider weeds, having to re
40.
▲
by
rpep
4y ago
I only started last year. So far not a lot! I find it helps me clarify my own thoughts however.
41.
▲
by
rpep
4y ago
You can certainly use it, but whether you see any benefit is going to strongly depend on your workload. If you're doing significant calculations in the API then it might be considerably more performant, but if your API is primarily ret
42.
▲
by
rpep
4y ago
This isn't a silly question at all, and it's quite complicated. When compiling C/C++, with some compilers you are able to specify multiple architectures and provide a fat binary. It's been a few years now since I'
43.
▲
by
rpep
4y ago
Premium is already expensive considering that GitHub enterprise is $40/user/month and has many more features. I’ve been following a number of open tickets and certain things I consider pretty basic features aren’t possible at the
44.
▲
by
rpep
4y ago
This misses the forest for the trees IMO. You have to look at “what problem does CMake try and solve”, and the answer is basically “generating build files for toolchains across a varied set of operating systems and environments”. Now do I t
45.
▲
by
rpep
4y ago
The child benefit threshold makes it pretty bad for most mid to high household incomes too, effectively a 60% marginal tax rate between £50k and £60k if you have a student loan
46.
▲
by
rpep
4y ago
Here in the U.K. scooters are only legal in specific trial areas and when hired from a company (normally one per city), which vets that the hirer has a driving license, and this ensures the person is riding them with insurance. But there ar
47.
▲
by
rpep
4y ago
Never heard of Spiral but it looks really interesting, particularly compared to MKL and FFTW. It’s been possible for a long time for C and C++ compilers to use “profile guided optimisation”, but it’s not widely used in practice because it’s
48.
▲
by
rpep
4y ago
The massive database that the author references is actually published here: http://data.atoc.org/routeing-guide The “pink book” is the one to look at to identify which “group” your station is part of. Then with the “yellow
49.
▲
by
rpep
4y ago
I found most precompiled C++ libraries target a specific minimum microarchitecture because it swells the binary size if you do fat binaries, and for most users they wouldn’t know anyway. Companies always get complaints when they bump up the
50.
▲
by
rpep
4y ago
In the U.K. it’s still used to broadcast some national BBC stations (BBC R5 Live, BBC Asian Network) that aren’t available on FM and in some more areas it’s used to broadcast stations that are also on FM (BBC R4). They still also operate so
51.
▲
by
rpep
4y ago
I can't see this being accepted even though I think standardisation is the way to go, because there's a signficant amount of diversity for 'virtual environments' in Python with: * virtualenv (external library) * venv (fo
52.
▲
by
rpep
4y ago
It makes the library a bit useless though. If I'm offline and want to look for a specific artist's music I have downloaded, if I can't remember the name of the album it's not easily findable.
53.
▲
by
rpep
4y ago
The most frustrating one for me is that saving an album doesn’t add the Artist to your artists list in your Library.
54.
▲
by
rpep
4y ago
The ROCm libraries and their documentation are nowhere near as good though. For e.g. compare rocFFT to cuFFT. They're worlds apart still.
55.
▲
by
rpep
4y ago
Most of the additional cost is VAT, and the norm in the US is to show prices without sales tax. It's $1999 for the base model 14" MBP in the US which is roughly €1,850 or £1620 Country, Sales tax, Adjusted Price, Actual Price Fran
56.
▲
by
rpep
4y ago
My view is that it is not that hard (with any tool) to build a wheel. You can basically follow a guide, you have to supply the same information, it’s mostly just the format you do it in. The problem is that compiled extensions are not a min
57.
▲
by
rpep
4y ago
“Most cited” is a very poor way of measuring quality and is massively subject to gaming. When it comes to review it’s not uncommon to get comments like “you didn’t cite this paper” where said paper is only marginally related so it’s clear t
58.
▲
by
rpep
4y ago
People are annoyed because the competitors have got a lot better and because Strava hasn’t improved over that period, in many ways it’s got more annoying to use.
59.
▲
by
rpep
4y ago
https://rpep.dev Just started it really, trying to start writing as I miss it a bit from working in academia. I used Hugo to generate it and host it on GitHub Pages with a custom domain. I need to make some tweaks to the templat
60.
▲
by
rpep
4y ago
I worked on a code base which had a large dependency not port to Python 3 until 2018, and at the same time they made a huge ton of changes to the APIs, most of which were not documented well. So there was both a big refactoring to handle bi
More ›