Settings

Theme

C# vs. Java int: Primitive type semantics, runtime behavior and tribal knowledge

msiyer.com

12 points by msiyer 4 months ago · 5 comments

Reader

msiyerOP 4 months ago

A Reddit debate over C# vs. Java int, sparked by a Microsoft engineer’s claim that C#’s int is a primitive, revealed confusion amplified by `Type.IsPrimitive`. This led to the Lₐₓ/Lₐₜ/R (LAX/LAT/R) taxonomy: a framework to classify types by their language-level, atomic, and runtime properties, resolving disputes rooted in specs and tribal knowledge.

  • pragmatic 4 months ago

    Wow very indepth.

    This used to be (and still is in some circles) a hot topic.

    .net had the benefit of coning second and fixed a lot of java's design issues. It really use a better java.

    Of course in the days of JavaScript desktop apps and python, people just don't need to pay attention to perf as much for better or worse.

    • msiyerOP 4 months ago

      Thank you! Happy to see a positive comment. Took a lot of effort.

      I like long-form writing. However, it takes a lot of effort. So, I end up not writing often.

      It is a hot topic especially among polyglots who have to deal with the same word meaning different in different languages.

mwkaufma 4 months ago

GenAI red flags.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection