logoalt Hacker News

Nevermarktoday at 11:26 AM1 replyview on HN

Yes, most languages allow C type code, if that’s what you are trying to do.

Java with only primitive values, arrays, and classes only with fields and static methods.

But that wouldn’t be idiomatic Java, so typically non-explicit abstractions such as polymorphism have code generated for them that you don’t have explicit control over.

C is consistently low level because that’s all you get. Down to direct access to addressing and RAM, the stack frame, etc. as with assembly.


Replies

pjmlptoday at 1:06 PM

How do you do direct accessing to CPU registers in C as with Assembly?

Being idiomatic or not doesn't matter, what counts are what language features are available.

show 1 reply