HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lessbergstein

no profile record

comments

lessbergstein
·2 years ago·discuss
[dead]
lessbergstein
·3 years ago·discuss
[dead]
lessbergstein
·3 years ago·discuss
The best way to develop GMO technologies is to regulate it after it injures millions of people. And that regulation is... declaring anyone who questions the science a terrorist.
lessbergstein
·3 years ago·discuss
Just a few Gb of ram and the feds can audit your state when their zeroday crashes your machine, what a deel.
lessbergstein
·3 years ago·discuss
No, and yes. Systemd is needed to put linux under the thumbs of glowies. The people defending it are paid by your tax dollars
lessbergstein
·3 years ago·discuss
Just stick to Java
lessbergstein
·3 years ago·discuss
[flagged]
lessbergstein
·3 years ago·discuss
Then maybe porn shouldn't be available on the Internet
lessbergstein
·3 years ago·discuss
Well, they can't be that bad if the FAA will to listen to them. I can recall another transportation company who is able to have legislation passed for their soul benefit.
lessbergstein
·3 years ago·discuss
[flagged]
lessbergstein
·3 years ago·discuss
Reddit?
lessbergstein
·3 years ago·discuss
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.
lessbergstein
·3 years ago·discuss
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.
lessbergstein
·3 years ago·discuss
Why are you using cat at all? Use a pipe. This isn't hard stuff. Don't use <>, feed the file into a scalar or array. it should only take a few seconds to process a billion lines.

https://www.perl.com/pub/2003/11/21/slurp.html/#:~:text=Anot....
lessbergstein
·3 years ago·discuss
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.
lessbergstein
·3 years ago·discuss
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.
lessbergstein
·3 years ago·discuss
Perl would do it quite fast and it has the benefit of accessing posix primitives directly.
lessbergstein
·3 years ago·discuss
I don't understand, it should be pretty easy. A rolling average with BigDecimal would probably be sufficient but a scientific lib might be better for a rolling average or more than a hundred million numbers.

https://stackoverflow.com/questions/277309/java-floating-poi...
lessbergstein
·3 years ago·discuss
Ha ha that's pretty funny but the article specifically states that there's no regulation around these types of rf emissions and that maybe there should be
lessbergstein
·3 years ago·discuss
[flagged]