Live data from Hacker News

Show HN: ZFS Implementation in Python

github.com

31–40 of 97 posts

Re: Show HN: ZFS Implementation in Python

#32
post #4

Note: this was implemented without referencing any ZFS source code and should not be subject to the CDDL.

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

I can Port from Python -> Common Lisp at a rate of ~100 LoC per hour, and that's a pretty friendly port (the yield expression is the only thing that can't be just done line-by-line; truthyness is the only real "gotcha" as there are a lot of "false" values in Python, but only 1.5 in Lisp[1]).

1: I say 1.5 because there is only one false value, but it has 2 idiomatic meanings: nil (equivalent to python's None) and the empty list.

Re: Show HN: ZFS Implementation in Python

#36

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.

I wrote this to scratch my own itch but mostly just for the fun of it and some people ended up using it.

https://github.com/jaysoffian/eap_proxy

This was a really simple project but tickled all my fancies: Python, low-level, networking, reverse engineering, system administration.

Just do it! Who cares if people use it?

Alternatively, contribute something to some open source project you use. I’ve done that too. Just small stuff here and there but that’ll guarantee someone uses your code if that’s what’s important to you. It only takes 39 commits to get on this page:

https://github.com/git/git/graphs/contributors

:-)

Re: Show HN: ZFS Implementation in Python

#37
Simultaneously fucking awesome (that you pulled it off at all), and fucking useless (performance...).

Thanks for sharing though. Maybe could be useful in making a suite of zfs inspection tools?

Is the OP here? How difficult would it be creat a zfs reshaping tool, allowing for the offline expansion of a vdev?

Re: Show HN: ZFS Implementation in Python

#38

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?

One of my favorite short stories, and nobody else has ever read it. So glad to see someone else reference it.

Re: Show HN: ZFS Implementation in Python

#39

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.

> What?! How?! Why?!

The readme literally answers this..

Re: Show HN: ZFS Implementation in Python

#40
post #25
post #17

Hey alcari! I know you from ICV - we used to hang out online on the forums and IRC. Nice work on this project, I'm looking forward to diving into the codebase!

Just curious, what is / was ICV?

It was / is an community of people who formed around a book called 1337 h4x0r h4ndb00k by tapeworm.

ICV was the name of the forum for the book, now defunct (icodeviruses.com)

https://www.amazon.com/1337-h4x0r-h4ndb00k-tapeworm/dp/06723...

Post reply on HN