Hacker Newsnew | past | comments | ask | show | jobs | submit | xigoi's commentslogin

Technical terms need to be more precise about their definition than regular words.

This only works with kilobytes, not megabytes and gigabytes.

LLM services have pretty much flawless OCR for printed text.

The true penalty of Java is that product types have to be heap-allocated, as there is no mechanism for stack-allocated product types.

You're right that Java lacks inline types (although it's getting them really soon, now), but the main cost of that isn't because of stack allocation (because heap allocations in Java don't cost much more than stack allocations), but because cache misses due to objects not being inlined in arrays.

P.S.

Even for flattened types, the "abstraction penalty", or, more precisely, its converse, the "concreteness penalty", in Java will be low, as you don't directly pick when an object is flattened. Instead, you declare whether a class cares about identity or not, and if not, the compiler will transparently choose whether and when to flatten the object, depending on how it's used.


> product types have to be heap-allocated

Conceptually, that’s true, but a compiler is free to do things differently. For example, if escape analysis shows that an object allocated in a block never escapes the block, the optimizer can replace the object by local variables, one for each field in the object.

And that’s not theoretical. https://www.bettercodebytes.com/allocation-elimination-when-..., https://medium.com/@souvanik.saha/are-java-objects-always-cr... show that it (sometimes) does.


If you’re using an iPad, the implicit assumption is that Apple knows better than you what you want to do.

Maybe creating videos should be a hobby, not a job.

If someone generates sexually explicit images of non-existent children, who exactly does that harm?

It’s possible to write malware in C. Does that mean that C is designed to write malware?

Obviously there is more interest in generating images of naked women, since naked women look better than naked men. It’s not some kind of patriarchal conspiracy.

It is obvious, but again that's subjective (I'm a straight male so of course I find it to be true but I'm not sure straight women would agree). The person I was responding to was asking if evidence existed, so I was curious to see if evidence did indeed exist.

Not all pictures of naked people are porn.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: