Live data from Hacker News

Show HN: ZFS Implementation in Python

github.com

11–20 of 97 posts

Re: Show HN: ZFS Implementation in Python

#12
post #7

What?! How?! Why?! This is the greatest thing ever. I wish I could just write code for the fun of it. Every time I wonder whether people will use it and give up before I even get started.

why not? writing code can fall into one of a few bucket. one of them is play.

Exactly! Write code that you find interesting and/or need for something and then share it. If someone uses your stuff, then great, if not, at least you've become a slightly better programmer! It's a win-win!

Re: Show HN: ZFS Implementation in Python

#14

Pierre Menard, author of The Filesystem. But I'm surprised this is possible without a specification - how can you test a filesystem through hexdumps? The effects of some operations are going to pretty far-reaching, surely?

Might be interesting/useful to aim for zfs send/receive compatibility :)

And thanks for the Borges callout.

Re: Show HN: ZFS Implementation in Python

#16
post #4

Earlier quoted context omitted.

So we port this python to something not slow, and all the kernel-people can shut up about ZFS being terrible ;)

Dont forget, pypy is fast.

PyPy is faster than Python, yes. But Go, C and many other (compiled) languages are way faster than PyPy. Plus, if you use a language like Go or Rust then you avoid Python's GIL and you'll have much more reasonable memory usage. Best of all, deploying is a matter of copying a binary, rather than having to deal with the absolute disaster that is Python packaging.

Re: Show HN: ZFS Implementation in Python

#18

Earlier quoted context omitted.

Would the CDDL matter for a python implementation that will never become part of the kernel?

You'd want a reverse-engineering lawyer, so be certain. But my (IANAL) guess is: If this is a proper reverse-engineered implementation, you could then convert _this_ implementation to C, and contribute _that_ into the kernel. Except, it seems this is BSD-licensed, so I'm not sure how that would work in the kernel (which is GPLv2).

BSD is a subset of GPL's restrictions, so you can include BSD-licensed code in a GPL work.

Re: Show HN: ZFS Implementation in Python

#19

Earlier quoted context omitted.

Would the CDDL matter for a python implementation that will never become part of the kernel?

You'd want a reverse-engineering lawyer, so be certain. But my (IANAL) guess is: If this is a proper reverse-engineered implementation, you could then convert _this_ implementation to C, and contribute _that_ into the kernel. Except, it seems this is BSD-licensed, so I'm not sure how that would work in the kernel (which is GPLv2).

BSDL code is fine in the GPLv2 kernel. E.g., most of the DRM drivers are dual BSD-GPL licensed.

Re: Show HN: ZFS Implementation in Python

#20

Earlier quoted context omitted.

You'd want a reverse-engineering lawyer, so be certain. But my (IANAL) guess is: If this is a proper reverse-engineered implementation, you could then convert _this_ implementation to C, and contribute _that_ into the kernel. Except, it seems this is BSD-licensed, so I'm not sure how that would work in the kernel (which is GPLv2).

BSD is a subset of GPL's restrictions, so you can include BSD-licensed code in a GPL work.

Subset isn't quite accurate, but "GPL compatible" might be a good way to describe it.
Post reply on HN