Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do webservers solve this problem and why can't CLI programsw do the same? Invoking a Java program could connect to a running jvmd daemon


They "solve" it by being long running applications. When GP says CLI they likely mean things like grep or cat or other command line tools, not just interfaces, that tend to run in a very short time. A Java implementation would see a lot of extra time spent on just the startup. Consider writing a bash script that calls out to grep for each of a bunch of different files (an example, better ways, but go with it). Say it ran grep 100 times, jgrep at 100ms startup time would take 10s longer just on the java startup time, ignoring any other performance differences.


A project which does exactly that: http://www.martiansoftware.com/nailgun/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: