News for hackers. Stuff that matters.
Re:Machine Learning Is Still Too Hard for Software Engineers by anon291 on Tuesday January 23, 2024 @04:52PM (#39110456)
What's the normal meaning of 'kernel'?

EDIT: Hacker news won't let me respond, but the answers below all seem to be because the original meaning has been lost on everyone.

In English, the word 'kernel' means 'core'. An OS kernel is the core of an operating system. In linear algebra, the kernel of a matrix (or a linear transformation, same thing) is the set of vectors it maps to zero, which is also in a sense the 'core' of the mapping (in so far that zero can be seen to be at the 'core' of the vector space / number line).

So actually, the definition is the same, it's just that the word kernel is rather rare, despite having a well understood meaning. Nevertheless, it is the kernel of many common English idioms such as a 'kernel of truth'.

Going to ML kernels... the etymology is a bit convoluted. I believe they come from operator theory and support vector machines. But nevertheless, the 'normal' meaning of kernel works out because kernels are typically the core fundamental operations supported by a machine learning framework atop which the other operations are built. In that sense, regardless of the etymology, the name actually fits.

Re:Machine Learning Is Still Too Hard for Software Engineers by ozr on Tuesday January 23, 2024 @04:58PM (#39110526)
The bit of code at the center of an operating system that mediates access between userspace code and the hardware.

Whereas in CUDA programming, a kernel is just the code running on the device. When I first heard kernel in relation to CUDA programming, I expected it to be a) the actual OS kernel, and then b) something akin to a GPU driver.

I can see how NVIDIA got there, but it's not immediately obvious if you're coming from a SWE context.

Re:Machine Learning Is Still Too Hard for Software Engineers by joecool1029 on Tuesday January 23, 2024 @05:06PM (#39110619)
> Whereas in CUDA programming, a kernel is just the code running on the device. When I first heard kernel in relation to CUDA programming, I expected it to be a) the actual OS kernel, and then b) something akin to a GPU driver.

I think this is still not the machine learning 'kernel' being talked about. While you'd inevitably need to know about this for tooling in the space, looks like kernel is also a mathematical term.

Re:Machine Learning Is Still Too Hard for Software Engineers by tayo42 on Tuesday January 23, 2024 @05:02PM (#39110574)
Kernel is also used in convolutions... Ugh
Re:Machine Learning Is Still Too Hard for Software Engineers by wholinator2 on Tuesday January 23, 2024 @05:01PM (#39110558)
Well, I'm not actually sure which one they're referring to but there is two meanings that I know of. There's the Software Developer Kernel which is the core of an operating system, and there's the Linear Algebra Kernel which is the null space of a map. Most of us here are familiar with the operating system type but the linear algebra kernel describes the set of vectors which are sent to the null vector (0) by your transformation/map/operation. It's very useful in understanding what exactly your operator does and how it changes a space.
Re:Machine Learning Is Still Too Hard for Software Engineers by noodlesUK on Tuesday January 23, 2024 @04:59PM (#39110538)
I think that to most software people kernel means something like the Linux kernel, but to an ML engineer it is a specific mathematical term-of-art.
Re:Machine Learning Is Still Too Hard for Software Engineers by blackbear_ on Tuesday January 23, 2024 @05:13PM (#39110698)
In a ML context kernel would probably be understood as a way to quantify similarity between different examples: https://en.m.wikipedia.org/wiki/Kernel_method

But it was hilarious to see how many other "normal" meanings came up in the comments.

Re:Machine Learning Is Still Too Hard for Software Engineers by tnecniv on Wednesday January 24, 2024 @12:52AM (#39114093)
Normal is just the first one you learn.

Hell, in math, normal even has multiple meanings. You have the normal distribution and surface normals for example

Re:Machine Learning Is Still Too Hard for Software Engineers by dpig_ on Tuesday January 23, 2024 @11:19PM (#39113575)
Although, funnily enough, we don't use kernel to mean 'core' in the idiom 'kernel of truth.'
Re:Machine Learning Is Still Too Hard for Software Engineers by anon291 on Wednesday January 24, 2024 @09:46AM (#39117899)
How so? Saying something has a 'kernel of truth' means that, while there is some fluff, the core idea holds water.
Re:Machine Learning Is Still Too Hard for Software Engineers by dpig_ on Wednesday January 24, 2024 @05:04PM (#39123187)
I guess I have always interpreted the use of kernel there as meaning something small. But you are probably right.