Reputation
5,787
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
4 27 52
Impact
~311k people reached

2d
comment Why is object-level privacy difficult to use as a paradigm, and why is it desirable?
@supercat: I guess that while that'd be interesting from a theoretical prospective, I think in practice it would lead to less encapsulated systems, because the underlying data behind a structure could no longer be hidden.
Jul
27
comment Why is object-level privacy difficult to use as a paradigm, and why is it desirable?
@supercat: what does that have to do with type vs. object level private? Interfaces cannot have private anything.
Jul
25
comment Why is object-level privacy difficult to use as a paradigm, and why is it desirable?
@supercat: That still exposes that an ostream is in use to clients which is the undesirable encapsulation loss here.
Jun
17
awarded  Favorite Question
Jun
7
awarded  Good Answer
May
8
comment Why should I use an MVC pattern?
( did not downvote) Well, it's been a buzzword going on 40+ years now if it is.
Jan
28
awarded  Great Answer
Nov
25
answered Why Do B+ Trees Have a Minimum Occupancy of 50%?
Nov
18
revised What's wrong with circular references?
added 133 characters in body
Oct
6
answered Why is object-level privacy difficult to use as a paradigm, and why is it desirable?
Sep
30
awarded  Explainer
Sep
9
awarded  Yearling
Aug
24
awarded  Good Question
Jun
24
comment C# server side application 100 GB dataset + Garbage Collection
Don't forget that as a hash table based structure, dictionaries have a reasonable amount of overhead; even an empty dictionary occupies 16 bytes. Depends on what the load factor is.
Jun
24
comment C# server side application 100 GB dataset + Garbage Collection
Please use a database. Please. They spend years optimizing for data sets like this.
Jun
11
comment Why do VMs need to be “stack machines” or “register machines” etc.?
Yes. "Native code optimizer" == JIT compilation. There is an interpreter phase for code which doesn't appear to be "hot" to avoid JITing rarely used things. But that doesn't mean no JITing is done at all.
Jun
11
comment Why do VMs need to be “stack machines” or “register machines” etc.?
@Prog: Yep, that's correct.
Jun
9
comment Why do VMs need to be “stack machines” or “register machines” etc.?
Of course, most Javascript VMs aren't stack machines or register machines -- V8 / IonMonkey / Chakra / etc. are VMs that implement Javascript. A "VM" is just an interpreter or JIT compiler which can implement any language the designer so desires.
Jun
9
comment Why do VMs need to be “stack machines” or “register machines” etc.?
Of course, anything that can be implemented in software can be implemented in hardware. Also, the JVM currently (hotspot) is a JIT compiler -- it does not execute the statements in the language the JVM was written in. If it did, Java would perform terribly and would be nowhere near as viable a platform as it is today. (Hell, most Javascript implementations would be faster)
Jun
5
comment Why aren't more desktop apps written with Qt?
@Violet: When you're adding a simple GUI for an existing 500Kb uncompressed console app, growing 8x in size for that simple GUI is unreasonable. There are still a lot of users on dial-up out there.