2 ms·
> Cross platform languages. You don't know unix things, yes. I can't understand how can someone be so proud of not knowing something. Python and C++ are cross
by bombolo 4y ago
> Cross platform languages.
You don't know unix things, yes. I can't understand how can someone be so proud of not knowing something.
Python and C++ are cross platforms and both support the things I listed that java doesn't support.
> fork() is legacy, it can't even handle modern UNIX workloads with threads.
Lol, ok. Next you're going to tell me file descriptors are obsolete?
Just a curiosity, what do you use instead of fork()?
- pjmlp 4y agoMy dear HN newbie, I have used more UNIXes in my life that you probably know about. Some education for you about fork(), https://dl.acm.org/doi/10.1145/3317550.3321435 https://dl.acm.org/doi/10.1145/3317550.3321435 https://thorstenball.com/blog/2014/10/13/why-threads-cant-fork/ https://thorstenball.com/blog/2014/10/13/why-threads-cant-fo...
- bombolo 4y ago> My dear HN newbie A person can live for decades before creating an HN account. > I have used more UNIXes in my life that you probably know about. I've used 5 different unix kernels. I've even read manpages instead of taking pride in not reading documentation, like some HN users with a large ego. > Some education for you about fork(), I'm perfectly aware of the issues of fork() when threading is in use. There are a lot of issues to keep track of when using threads. One more, doesn't really make much difference. How do you do this? https://man7.org/linux/man-pages/man3/daemon.3.html https://man7.org/linux/man-pages/man3/daemon.3.html Do you plan on replying to my question? What do you use instead of fork()?
- pjmlp 4y agoUNIX is irrelevant on the cloud, unless one is stuck deploying legacy workloads on VMs, this is what we use in modern applications not stuck in the past. https://aws.amazon.com/eks/ https://aws.amazon.com/eks/ https://azure.microsoft.com/en-us/products/kubernetes-service https://azure.microsoft.com/en-us/products/kubernetes-servic... https://cloud.google.com/kubernetes-engine/ https://cloud.google.com/kubernetes-engine/ https://cloud.google.com/appengine https://cloud.google.com/appengine https://azure.microsoft.com/en-us/products/app-service https://azure.microsoft.com/en-us/products/app-service https://aws.amazon.com/lambda/ https://aws.amazon.com/lambda/ https://azure.microsoft.com/en-us/products/functions/ https://azure.microsoft.com/en-us/products/functions/ https://cloud.google.com/serverless https://cloud.google.com/serverless If you insist in calling fork() as matter of existial crysis, by all means do, Java doesn't stand in your way, learn JNI. https://github.com/luben/process-jni/blob/master/src/main/java/com/github/luben/process/Process.java#L14 https://github.com/luben/process-jni/blob/master/src/main/ja...
- bombolo 4y ago> UNIX is irrelevant on the cloud On what exactly do you think the containers run on? What kind of system call do you think happens on a machine to create a new container? Again, you're so proud of not knowing something. The fact that you write very high level code and have other engineers figure out how to run that code for you, doesn't mean that their job is unimportant. In fact, it might be the case that they might replace you, but not viceversa :)