News for hackers. Stuff that matters.
Re:Show HN: ZFS Implementation in Python by twa927 on Saturday May 04, 2019 @06:24PM (#19829765)
I started doing it but yes, it's too much effort to get two full benchmarks, I'm sorry :). But I think it went down to the inefficiency of String.split(): https://stackoverflow.com/questions/37007189/string-split-te... and generally the Java's String built-in methods not being GC-friendly: https://stackoverflow.com/questions/20336459/garbage-friendl.... I'm guessing that when such parts can be coded in a non-VM environment (CPython/PyPy runtime) they can be made much faster, and Java to these days has the standard library coded in pure Java?
Re:Show HN: ZFS Implementation in Python by tigershark on Sunday May 05, 2019 @03:40AM (#19831666)
Yes, Java has nothing like C# Span to avoid these kind of problems, but I thought that also python would be affected in a similar way... Anyway, thanks for sharing.
Re:Show HN: ZFS Implementation in Python by auscompgeek on Saturday May 04, 2019 @11:39PM (#19830990)
CPython and PyPy are both VMs, similarly to the JVM.
Re:Show HN: ZFS Implementation in Python by twa927 on Sunday May 05, 2019 @03:38AM (#19831652)
I meant the inside of a VM (its implementation), which is coded in C/RPython. Java's VM is coded in C++, but I don't think C++ is used for any regular library functions, while C is used heavily for Python's stdlib.
Re:Show HN: ZFS Implementation in Python by pjmlp on Sunday May 05, 2019 @05:11AM (#19831877)
Not all JVMs are implemented in C++.

It is a specification with multiple implementations, some of them are even bootstrapped in Java.