News for hackers. Stuff that matters.
Re:Is WebP really better than JPEG? by zspitzer on Tuesday June 23, 2020 @11:53AM (#23615603)
One of the biggest barriers against adoption of these newer formats is the lack of pure java implementations for use server side.

The Java wrappers around a native binary are helpful, but for many projects not very useful and this hinders adoption.

https://github.com/haraldk/TwelveMonkeys/issues?q=is%3Aissue...

Re:Is WebP really better than JPEG? by grishka on Tuesday June 23, 2020 @01:04PM (#23616812)
Using Java code for things that are this performance critical doesn't feel like a good idea. It will work of course, but it will probably GC a lot, and while modern JVMs do JIT, the code they generate can't be as optimal as something that has manual SIMD optimizations.
Re:Is WebP really better than JPEG? by lmm on Wednesday June 24, 2020 @12:41AM (#23624167)
Using C code is how you get the next cloudbleed. I'm happy to pay a performance cost for the sake of memory safety.
Re:Is WebP really better than JPEG? by iomcr on Wednesday July 01, 2020 @09:59AM (#23701377)
Fix this easily by abstracting the manipulation of user uploaded files to chroot/serverless.
Re:Is WebP really better than JPEG? by lmm on Thursday July 09, 2020 @10:04PM (#23787424)
That doesn't fix the problem. The process can still fix any data that it has access to, which includes other users' confidential uploaded files.
Re:Is WebP really better than JPEG? by mbStavola on Tuesday June 23, 2020 @01:22PM (#23617105)
Honestly, you'd benefit more from idiomatic bindings rather than a pure Java implementation. There are quite a few high quality Java libraries that wrap C/C++ code but maintain a nearly 1:1 API, which is what ends up making them difficult to work with. OpenCV is a good example of this.
Re:Is WebP really better than JPEG? by adityapatadia on Tuesday June 23, 2020 @12:31PM (#23616242)
Is JAVA still a thing?