Hacker News Re-Imagined

Python Communist Revolution

  • 192 points
  • 6 days ago

  • @weatherlight
  • Created a post

Python Communist Revolution


@cptnapalm 6 days

Replying to @weatherlight 🎙

So, no rich text?

Reply


@ngcc_hk 6 days

Classless in a communist country you are joking …

Read Animal farm. Told us abolishment of class is fake new and pr spin in the communist revolution. Actually the communist keep themselves as the superclass. Pig … strangely there are even upper class called human there.

—- divided line we call this —-

For IT, practically javascript is really classless as its class is just protocol in disguise…

Reply


@tehjoker 6 days

Technically a single class is the same as classless society. The single class denotes the resolution of class conflict with the dissolution of the concepts of upper and lower classes. I think it's fine.

Reply


@rplayxr 6 days

Why has the truth about communism been censored in a thread about a communism-critical, satirical repo. Discussion is allowed, as long as the ugly parts aren't mentioned.

Reply


@sbassi 6 days

Equal to which class? If I have MyClass1 and MyClass2 with different body, after revolution, MyClass1 will be like MyClass2 or MyClass2 like MyClass1?

Reply


@yakshaving_jgt 6 days

Hilarious. Now do one about the Holocaust.

Reply


@danielodievich 6 days

Are some classes more equal than others?

Reply


@323 6 days


@smitty1e 6 days

Paraphrasing Trotsky: "You may not be interested in the dunderlectic, but the dunderlectic is interested in you."

Reply


@betwixthewires 6 days

Those notes... I love it.

Reply


@jjk166 6 days

2008: cool you can import antigravity

2022: cool you can import communism

Reply


@xpressvideoz 6 days

After reading the initial section I thought this would hook up `isinstance` or something and make all class comparisons equal. But it turned out to be equalizing the instances of the classes. But still, I enjoyed the joke.

Reply


@Gentil 6 days

> Clone this git, pip install . where the git has been cloned, and you will have access to communism.

This cracked me up. If only it was this easy, lol!

Reply


@jakobov 6 days

Hilarious

Reply


@yellowapple 6 days

Communism is not just classless, but also stateless. Therefore, Python cannot be communist, because it is not a purely functional language.

Reply


@robertlagrant 6 days

This is the first software implementation I would describe as "not doing enough to promote resource starvation".

Reply


@germandiago 6 days

lol!

Reply


@js8 6 days

When I was younger, I became a communist - I rejected the notion of a class, in favor of everything having a type. People often misunderstand communism, they think that abolishing classes means that all objects have to have equal value, and this gives programmer very little freedom. This is wrong; communism just means that we treat the types equally.

However, we failed to build a truly classless programming language. There seem to be, quite naturally, different kinds of types.

And even some of the most ambitious communist languages, like Haskell, have also embraced type classes! Although this compromise is not an entirely bad thing, since a type can select what type class it belongs to, instead of being assigned one at birth.

I also admit that capitalist languages (the ones with classes) have been hugely successful. But communist (classless) programming language proponents claim that lot of the proclaimed productivity of capitalist languages is just an illusion, and also that many programmers lack the awareness that they, in fact, do not need classes. Often, there is nothing to lose than the call chains!

On the other hand, one cannot easily dismiss arguments about totalitarian nature of communist languages - they openly embrace total functions, and they try to very strictly control input and output. Some claim that lazy evaluation by default might be another reason for their low productivity.

Reply


@pdonis 6 days

Is it just me, or does this not even install correctly with pip install .?

Reply


@jaza 6 days

We pretend to run, and they pretend to allocate us CPU and memory.

Reply


@einpoklum 6 days

I like how the author recognizes the significance of Unions to fomenting the Communist Revolution:

https://github.com/jokteur/python_communism/blob/main/src/co...

Reply


@vmception 6 days

> # We must protect the builtin elite to not be affected by the revolution

> if inspect.isclass(c) and c.__name__ not in dir(__builtins__):

A true comrade that safeguards the unity and sanctity of the state!

Reply


About Us

site design / logo © 2022 Box Piper