Live data from Hacker News

65535 interfaces ought to be enough for anybody

aakinshin.net

1–10 of 82 posts

Re: 65535 interfaces ought to be enough for anybody

#3
> A short fact about .NET: if you have an interface IFoo, the runtime generates a separate method table per each IFoo, IFoo, IFoo, and so on.

In Java you have to do the same manually: https://docs.oracle.com/javase/8/docs/api/java/util/stream/S... wow such polymorphism much ad-hoc

Re: 65535 interfaces ought to be enough for anybody

#6
This sounds familiar. Mono worked for me until it didn't. And it would be some corner case like timing and sockes, or HTTP connection issues. By that time we already bought into it and so I was running around opening a huge black box trying to figure out the internals.

Re: 65535 interfaces ought to be enough for anybody

#8
post #5

After yesterdays posting of the list of incorrect assumptions programmers make about the world I put it into my daily web routine to visit the page and read one list per day till done.

Do you have a link to this? I missed it and would like to read it.

EDIT: Think I found it? https://news.ycombinator.com/item?id=13640409

Re: 65535 interfaces ought to be enough for anybody

#9
post #8
post #5

After yesterdays posting of the list of incorrect assumptions programmers make about the world I put it into my daily web routine to visit the page and read one list per day till done.

Do you have a link to this? I missed it and would like to read it. EDIT : Think I found it? https://news.ycombinator.com/item?id=13640409

https://github.com/kdeldycke/awesome-falsehood

Re: 65535 interfaces ought to be enough for anybody

#10
post #7

Remember how we laughed about visual basic which supports just 65536 different variable names?

How many of these would fit into 640 kB of RAM, anyway?

you need 16 bits per name, so 2^20 bits. That fits nicely into about 20% of your 640kB of RAM.
Post reply on HN