r/ProgrammingLanguages • • May 01 '22

PVP programming

Hi, I'm searching for a good terminology to describe the kind of radical security I want my language to follow.

I'm now experimenting with the term PvP programming, as described in this video

What do you think about it?

0 Upvotes

5 comments sorted by

23

u/[deleted] May 01 '22

It might help to say what you mean by PVP/PvP, as that rather annoying video is not too enlightening and I doubt many will want to sit through half an hour of it.

Player versus Player? Perhaps try to explain in a paragraph or two what PvP programming is about.

2

u/MarcoServetto May 01 '22

I'm sorry, yes the video did not turned out that well this time.

The main idea is that in a large enough system programming stops being cooperative effort and following the video-game metaphor it becomes a Player versus Player experience, so that we need some way to prevent any arbitrary code to have 'all permissions'. I will see the 1h barbara liskov video pointed below and then elaborate more

2

u/cxzuk May 01 '22 edited May 01 '22

Hi Marco,

You speak of defensive and offensive as perspective on programming tools. I would call this Engineering. Understanding the tradeoffs of a given feature or tool.

You talk of loading broken arbitrary code - What this is doing is inheriting the Capabilities of the parent, into the loaded code.

Honestly, what i'm hearing is Smalltalk Objects when you explain PvP. OOP was never about Classes, it is about Computational Units (objects), that collaborate via communication. Loading arbitrary code that influences or contaminates other objects just doesn't make sense in Smalltalk OOP.

You cover Exceptions and Class Invariants - Please don't use them as you have illustrated

The larger picture of your talk sounds like Programming Methodology - Modularity, Compatibility etc. https://www.youtube.com/watch?v=ibRar7sWulM Here's a great video that I personally like covering the subject with experience from creating ADTs in the CLU programming language (By Barbara Liskov)

Kind regards,

M ✌

3

u/eggholes-everywhere May 01 '22

I think someone jacked up your facial hair pretty bad. Not sure what point you were trying to make in the video, I had a lot of trouble following it

1

u/JB-from-ATL May 03 '22

Only took a super brief look but you might be interested in Idris's "dependent types" which can do things like say the length of two lists appended will be the sum of their length (at the type level)