News for hackers. Stuff that matters.

ryanpepper

Re:Interactive GPU Programming, Part 1: Hello CUDA on Saturday January 27, 2018 @05:36AM (#16245683)
The ability just to swap in the cuFFTW header for FFTW3's making calls execute on GPU (even though it doesn't give the best performance) is also nice for beginners.
Pretty similar to what happened with the Jupyter Notebook last year.

https://github.com/jupyter/notebook/issues/2254

Re:Clang 5 in a Docker container for C++17 development on Friday December 15, 2017 @08:00AM (#15931436)
> The last point is especially important if your host operating system is macOS, on which it is a really bad idea to directly install a binary Clang other than the one that comes with Xcode.

Why is this? I mean, I understand why you don't want to install over the system compiler, but having another version of Clang installed side by side shouldn't be an issue, should it?

I think it's really sad that I often see people on public transport in the UK just offload a device onto their children to placate them when they're bored.
Re:Interactive workflows for C++ with Jupyter on Thursday November 30, 2017 @07:48AM (#15815300)
When I was taught C++ at University, we were just told to download Quincy which bundles a (pretty old) version of GCC with a text editor on Windows.

Once we had the basics down they introduced Linux, the command line interface to GCC, etc.

Re:Interactive workflows for C++ with Jupyter on Thursday November 30, 2017 @07:46AM (#15815292)
I've found generally it's fine for most things but issues come from when the scientific libraries are built with/without certain options. The lack of OpenMP for FFTW is annoying, for example.
Re:Uber loses court appeal against drivers' rights on Friday November 10, 2017 @11:09AM (#15670812)
It takes about 2 years to do the training to be a Black Cab driver in London:

https://www.youtube.com/watch?v=u7gp8KBP7ak

Re:CUPS License Change Coming on Friday November 10, 2017 @11:04AM (#15670748)
Unity is getting ditched in favour of GNOME3 as of 18.04, which probably means it's going to die...
Re:Interfacing Python and C: Advanced “ctypes” Features on Tuesday November 07, 2017 @11:06AM (#15644507)
Boost Python looks somewhat similar to that type of interface too. http://www.boost.org/doc/libs/1_62_0/libs/python/doc/html/tu...
Re:Why we switched from Python to Go on Wednesday October 18, 2017 @03:16AM (#15497460)
Does Go have templating?
Re:Why physicists still use Fortran (2015) on Sunday October 15, 2017 @04:33PM (#15479151)
I was taught to do it like this in C:

  double *a = malloc(sizeof(double)*nx*ny*nz);
  int id;
  for(int k = 0; k < nz; k++) {
      for(int j = 0; j < ny; j++) {
          for(int i = 0; < i < nx; i++) {
              id = k*nx*ny + j*nx + i;
              a[id] = /* some mathematical operation */
          }
      }
  }
You can do it in other ways (arrays of pointes, etc), but I think this is probably the simplest conceptually, and the memory is contiguous.
Re:Why physicists still use Fortran (2015) on Sunday October 15, 2017 @03:58PM (#15478974)
I use Python for most things and write C extensions which can use OpenMP or CUDA and which are hooked in via Cython for the slow parts. Find this works well, although it can lead to you duplicating things unnecessarily sometimes (needing a C function to be callable by Python requires you to write a wrapper for it).
Re:Sorting with GPUs: A Survey on Monday September 11, 2017 @11:45AM (#15219372)
In academia it's also because NVidia does a lot of stuff to make your life easy.

For example, NVidia came to our University in the UK and provided training for £20 an academic/PhD student for a 2 day course on how to use CUDA and with performance tips, hands on porting of code, etc. They also give away CUDA cards to academics under a hardware grant scheme, so it's possible to get a free Titan Xp this year for a research group.

There's not really an equivalent for AMD or Intel; a Xeon Phi Knights Landing chip is significantly more expensive than a consumer level GPU, and the same cost as a workstation GPU, and it's a lot harder to get good performance from it. It also doesn't seem like AMD are targeting this market, at least not currently.

Re:Ask HN: Why doesn't Slack have single sign in? on Wednesday June 28, 2017 @05:47PM (#14658781)
I think it's likely that it's because organisations can manage users by their domain name - it's possible to have a blanket rule that allows users to create an account for a team if they have an e-mail address from that organisation.

That said, I'm surprised they've not let users associate all of your Slack team accounts with a single account.

Ah right, I wasn't aware of that.
Re:Big Tech Company Salaries Are Hurting Startups on Friday March 31, 2017 @11:57AM (#14005074)
Sure. How much are employer health plans in the US? Employer NI is 13% of the salary over £152 per week, so for an employee on £25000 per year, the employer has to fork out about another £2000 on top.

Almost all companies have a pension scheme too which are usually something like matched contributions - the employee contributes X% of their salary, and the employer contributes an additional X% of their salary up to some threshold (usually 5-10%).

Starting salary for any graduate job is about that in the UK, and most of Europe too. I suppose that the cost of upping and moving is significant enough to put people off. Plus, the difficulty in getting a visa is likely a major factor.

I don't mind Make for small projects, but it can be a bit of a nightmare for large ones - there are some very unwieldy Makefiles out there. It gets more complicated when you want to have several libraries and/or executables in a project, each of which link against different external libraries. I've always found CMake makes this much easier IMO, and while the language is a bit janky, it does the job.
Re:Big Tech Company Salaries Are Hurting Startups on Wednesday March 29, 2017 @11:55AM (#13987485)
The starting salary for a new graduate in the UK is probably in the range of £25-£33k, unless you're really lucky and do something like investment banking which is about half of what comparably qualified grads make in the US.

On the other hand, there are additional things that are paid for because of various legal differences between the the UK and the US (such as paid maternity leave, paid sick leave, and employers have to pay a tax for each employee called National Insurance which effectively funds the state pension system). The law also gives all employees 5.5 weeks of holiday (though there often some restrictions on when it can be taken).

Yeah, but Qt has licensing costs for commercial use...