HN user

lessbergstein

-16 karma
Posts0
Comments35
View on HN
No posts found.

Yes, this is an extremely trivial problem. Anybody who knows how to program in more than one language is going to find this silly. awk or perl would finish it before jit compilation gets started.

It's really not. We're talking about gigahertz CPUs and likely solid state storage that can stream many gb/s.. running through a perl script. There really isn't much that is faster than that.

Perl is always going to be much faster than Java at tasks like this. Use stdin and chomp() instead of reading each line explicitly.

This is really a small, trivial task for a perl script. Even with a billion lines this is nothing for a modern cpu and perl.

That's strange, you should be able to stream the file right into a tiny perl executable at the same speed as the bottlenecking hardware. The kernel will take care of all the logistics. You're probably trying to do too much explicitly. Just use a pipe. Perl should be done before Jit completes.

That progress will last, for sure. We're about to see a resurgence of small developer web apps and games! Web 4.0 here we come.

One of my freshman classes was game theory. A prerequisite was trigonometry, and I only had pre-Calc. The best part about it was I was doing averages and which great which number is greater in my senior high school class after taking pre-Calc as a Sophomore. Of course I complained about this to both schools but that wasn't really their problem. I suppose they just didn't care.