Because every other developer in the world screeches and retreats to their lair when you so much as mention attending a single meeting, let alone the number of meetings and conversations with clients and leadership I have to keep up with what we need to build next.
Additionally, for a dev to directly learn what to build, they’d need to work two full time jobs. Most prefer to do just the one job.
Oh, I see: The fact that you can do that doesn't mean that anyone else could, it only means that you're so much better than anyone else. OK, thanks, gotcha, good to know.
It's just two separate jobs, why would anyone sign on to doing two jobs when they can specialize in one or the other, unless they're in a situation like mine, which nearly nobody is.
I gather from your comment that you don’t do frontend. I don’t either. I also think it’s a waste of time. But I think you and I are not the intended audience. I think frontend people are trying to design an experience for users. The same way you or I might be designing an architecture for the system. They want it to look and feel a certain way in order to provoke a response.
If the length is bundled with the pointer as syntax then the compiler and maybe even the runtime can provide checking on behalf of the programmer. Passing it by hand means it’s the programmers responsibility to (remember to) validate
I suspect it’s because manual memory management in Java isn’t built into the language. Is it even possible? I’m not a Java programmer and I don’t know. My understanding has been that the runtime doesn’t expose the memory model to you.
In a way it does. Java just likes to push most features to methods on special objects, instead of exposing them as native functionality (to avoid backwards incompatible changes).
So it would look something like MemorySegment.allocateNatice(100, someScope). This new API has a runtime ownership model, so by default only a single thread can access this memory address, and it can be freed at will.
Neat idea. What does implementing new syntax in one of the established C compilers involve? Is it the kind of thing that could be reasonably tackled in a small patch just to play with?
"A 5-minute soak in a 40% solution of household bleach decontaminated stainless steel wires coated with chronic wasting disease (CWD) prions, according to a new study by National Institutes of Health scientists."
Although it notes: "Notably, the study failed to find an effective method to decontaminate CWD-infected solid tissue. Pieces of CWD-infected brain retained prion activity even after a 30-minute soak in 100% bleach. Investigators note that bleach fails to penetrate tissues and should be used only as a surface decontaminant."