You do not want unnecessary memory allocations in the kernel — any memory allocated and unused by the kernel is not easy to free up when there’s a need for it. Also memory leaks. Also memory fragmentation. The kernel is intended to be stingy for stuff running in kernel space, so the userspace has access to as much as possible.
Whats up with adding lot of unnecessary setup complications by supporting languages that adds little to no value for something like kernel for namesake.
Yeah not being in control of your memory allocation seems messy.
Im not even sure how that would work when you need to transfer an allocation between user and kernel space, how do you know what space an object exists in and when its going to disappear in to the gc?
10
u/Thin_Dragonfruit2254 10d ago
It might have a usecase but "garbage-collected Go heap inside the kernel" is a bit concerning, no?
10
u/alpha417 10d ago
"Dont use in production"
welp, i dev in prod...so that settles it for me.
4
u/nhermosilla14 9d ago
I see a point to TinyGo, but I'm having a hard time seeing it here. Not every language is a systems language, and that's fine.
2
u/AngryFker 9d ago
this is mega dumb
1
u/This_Maintenance_834 8d ago
people cannot be serious enough to write kernel with language that uses garbage collection? is this a joke?
1
u/winelover97 7d ago
Whats up with adding lot of unnecessary setup complications by supporting languages that adds little to no value for something like kernel for namesake.
1
u/notddh 4d ago
Can't wait for other garbage collected languages to join in. Imagine having five different JS runtimes running in ring 0.
1
u/clippy_is_a_prick 3d ago
Yeah not being in control of your memory allocation seems messy.
Im not even sure how that would work when you need to transfer an allocation between user and kernel space, how do you know what space an object exists in and when its going to disappear in to the gc?