Package: dftserialize
DFTSerialize™DFTSerialize™ is a next-generation data encoding and serialization system
designed for Python 3.0 and aboveDFTSerialize™ uses a highly-customized
algorithm that encodes any and all (most) Python data structures as bytes, and can
even function on RAW BYTES.FeaturesSnappy and efficient encoding of most Python objects and raw binary dataEqually efficient decoding of the output to recover original Python objects or binary dataUses aBUNCHof fancy math and has its own reimplementation of many standard library functions
for maximum effectivenessHas a really cool logoWhyCurrent serialization systems are stagnant and obsolete. Underutilization of the
advantages of floating point processing and mathematical techniques like curve-fitting
and function transforms. DFTSerialize™ aims to fix all this.We noticed that in quantum mechanics, which has many applications in faster computing,
there are a lot of these things called"waveforms". So we did some digging and
discovered that these were actually wavy functions, and that the parameters of
these functions could even be used to reconstruct data! Additionally, these waveforms
are probably easier to compute on quantum computers because of the fact that they're
both wavy and stuff.Upon further research, we discovered that JPEG images already use a wavy-function based
compression algorithm called the "discrete cosine transform", but when we looked that up
it seemed pretty hard so we had our accountants make us another one called the "discrete
Fourier transform." We think it's way more marketable since it has a French guy's name in
it.UsageTo use DFTSerialize™, simply install it to your Python version 3.5 or higher using the PIP
package manager, like so:pip install dftserializeThen, import it in your project. It contains four functions, two for serialization, two for
deserialization, of both Python objects and binary data.Example:fromdftserializeimport*foriinrange(30):# data = b'x\xda\xe3e@\x02K&:\xc0\x987>$\xcev\xad7w8e\xd6k\xa1ef\xe6\x10U\x91\xa0\xa4...data=dft_serialize_data(b"Hello, World!")# b"Hello, World!"print(dft_deserialize_data(data))# trueassert{1:2,3:4}==dft_deserialize_object(dft_serialize_object({1:2,3:4}))SpeedDFTSerialize™ is extremely fast and robust! For testing, I took a 7 MB image file and
attempted to run it directly through a raw serialization. It didn't finish since I eventually
had to shut my computer off, but the point is that it was working.Reducing the data size down to a 2kb file allowed DFTSerialize™ to completely encode the file
in just under 10 minutes, a milestone achievement.DFTSerialize™ AlgorithmDFTSerialize™ uses a patented[citation needed]algorithm utilizing a
near-magical combination of the discrete Fourier transform, floating point math,
and even on-the-fly calculation of mathematical constants like pi.DFTSerialize™ serialization follows a simple set of stepsPass raw bytes into an FFTPack DFT coefficientsWait around for a second or two so it seems like we have something to doDFTSerialize™ deserialization follows a similar set of steps, in inverse:Unpack DFT coefficientsPerform an Inverse DFTAre we done? Maybe? Anybody?Wipe all drives if the user isn't satisfied by nowCreditsThe idea for the DFTSerialize™ library came in the form of an escalating series of
Reddit posts eventually culminating in the use of an inverse DFT to decode text from
a series of complex coefficients.LicenseDFTSerialize™ is released under the GNU GPL v3 License. Please refer to the LICENSE file that
accompanies this project for more information including complete terms and conditions.Serious NoteThis project is a complete and utter joke and should never, ever be used for anything.
In fact, Ichallengeyou to find an actual use for this software. Actually, Idouble challengeyou to also push this to production right before you quit your job, and then send me the results.