Better HN
topnewbestaskshowjobs
Log inSign up

java-man

1,596 karma · joined Feb 17, 2014 (12y ago) · 1,672 submissions

1314F8B8382A325318F60A61644FF24E
Submissions

comment 7y ago · link · parent

Thank you.

It appears to be a leitmotif with the apple ecosystem: they try to lure you in and then keep you in by limiting your choices of interoperability.

At some point, this should have a negative overall: the number of users gained vs. the number of users not joining due to fears of being locked in.

comment 7y ago · link · parent

just curious, is it easy to export all the notes to a file, or migrate notes to a different machine without using iCloud?

comment 7y ago · link · parent

you obviously never refactored/debugged an old and massive code base written by people of various competency level...

comment 7y ago · link · parent

not wittingly.

comment 7y ago · link · parent

It's only going to get worse, I am afraid.

comment 7y ago · link · parent

Yes, they surely did. I've seen google return a few results to common programming topics. I've seen google return results where the first page contains not a single relevant link. I've seen google return results which contains none of the query keywords.

Get what you paid for, I suppose.

comment 7y ago · link · parent

how nice

comment 7y ago · link · parent

This is interesting. Could you explain this please?

comment 7y ago · link · parent

Thank you. I was hoping for a more definitive answer, may be a reference to an explicit test involving memory dump analysis.

comment 7y ago · link · parent

What I mean was: do you know this to be the case for JVM 8 later? This is an interesting subject. Was there a study or a paper you can refer me to?

comment 7y ago · link · parent

Direct ByteBuffer?

comment 7y ago · link · parent

Would you elaborate please?

comment 7y ago · link · parent

So what you are saying is that JVM copying surviving object between generational pools might expose secrets in memory?

A very good point, thank you.

What could be done to mitigate this? Direct ByteBuffer per

https://stackoverflow.com/questions/5670862/bytebuffer-alloc...

?

comment 7y ago · link · parent

by explicitly clearing it when an operation is finished.

example:

https://github.com/andy-goryachev/PasswordSafe/blob/master/s...

byte[] key = generateKey(); try { // sensitive operation } finally { Crypto.zero(key); }

once the operation finishes, the memory is cleared (and possibly subject to gc)

the problem is that some java classes, for instance BigInteger, are not designed for cryptographic operations - it's underlying arrays are not easily accessible (save for reflection).

comment 7y ago · link · parent

RAM encryption is a feature in my password manager (java):

https://github.com/andy-goryachev/PasswordSafe/blob/master/s...

Curiously, RAM encryption, and its relative - clearing secrets from memory when not in use - cannot be added to the Bouncycastle library because they use java BigInteger (unless reflection is used of course).

comment 7y ago · link · parent

Thank you for noticing. What I actually meant is redenomination:

https://en.wikipedia.org/wiki/Redenomination

comment 7y ago · link · parent

This is inevitable: I think there are only two sustained models for free internet content: productizing the user data and/or advertizing. Google or Facebook.

Philanthropy is certainly possible, but not sustainable.

comment 7y ago · link · parent

Environmental Pollution Agency

comment 7y ago · link · parent

unless there is a denomination...

comment 7y ago · link · parent

It's an upgrade!

comment 7y ago · link · parent

fnord123, you are confusing Instant with ZonedDateTime (to use java classes as an example).

An instant is a moment in time, expressed in java as milliseconds in UTC.

A ZonedDateTime (if we ignore time portion of it for the sake of brevity) is a LocalDate (year-month-day) with a time zone. One can convert an instant to LocalDate given the time zone, or vice versa. But one cannot convert between the two if the time zone is missing.

So, time zone is not a presentation format, it's an essential part of the data. One can, of course, store a LocalDate in a database, iff the timezone is somehow assumed (and hit the land mine when the assumption is violated by a recent change).

comment 7y ago · link · parent

related: https://news.ycombinator.com/item?id=20205131

comment 7y ago · link · parent

(cry)

comment 7y ago · link · parent

I remember when Jon Stewart ran a piece on Jim Cramer, exposing him as basically a fraud. How is this guy still on TV?

comment 7y ago · link · parent

Thank you for providing a valuable insight on a subset of the types currently used.

In Moscow (Russia) alone, there are nearly a dozen of research reactors, of various designs.

comment 7y ago · link · parent

yes.

comment 7y ago · link · parent

This map lists "nuclear power plants" and therefore is missing research reactors.

Any research reactor contains a critical mass of fuel, and therefore is fully capable of meltdown.

comment 7y ago · link · parent

The article does contain very nice illustrations of the cuneiform text, which, in my opinion, are of greater value.

comment 7y ago · link · parent

"The downsides of dynamic languages are real, expensive, and permanent."

Quite elucidating article. I would add one more aspect to this - try refactoring a large, poorly documented code base written by generations of developers with different competency levels. When all the original developers have left the company long time ago.

I would say it's difficult in java, but try doing it in a dynamic language. GOOD LUCK!

comment 7y ago · link · parent

"mishandling"
1
394041
56