HNHacker News
TopNewBestAskShowJobs

lederhosen

46 karma · joined January 13, 2017

submissionscomments
lederhosen··on Why Paul Romer Won the Nobel Prize in Economics
The "evidence" is that it was not in his will. Where do you think we should draw the line on what could be called a Nobel price? It is not like Alfred Nobel did not understand economics, he just (highly probably) did not want such a price (or he would have created it).

If someone created a price for pedophile arts, brain studies of humans of lesser value, or other questionable "sciences" in the memory of Alfred Nobel, do you think we should call it a Nobel price? Do we have evidence that Nobel would disagree with such a price?

I would say we have no evidence, but it is highly unlikely that Alfred Nobel would like that. I think the question that should be asked is: do we have any evidence (or even any sign at all) that Alfred Nobel wanted a Nobel price in economics???

lederhosen··on Apple's best product is now privacy
Google left China, Apple crashes your phone when you get a Taiwanese flag (in China), who cares about privacy? Never Apple. Apple only cares about your money. If you care about privacy (I mean really care) use Replicant.

(updated spelling)

lederhosen··on Go 1.11 and Beyond
Generics are useful all the time. That is why Go has generic Maps and slices. The question is why I am not allowed to use other generic collections.
lederhosen··on Go 1.11 and Beyond
I can not create a really mean example because Go is Turing complete. That means that everything can (with a few extra lines) be expressed in Go.

The problem with your mutex solution is at least two:

1) it is more complex

* more lines to type and read and check and thus harder to understand

* you can forget the mutex

* if you have data structures of hastables, you will have to pass mutexes around or store them together with the tables.

2) it is not nearly as performent as a lock free hash table

(edit indentation)

lederhosen··on Go 1.11 and Beyond
If you value compile times (and you actually think generics make a difference, I do not) you would not make slices and hash tables generic like in Go, would you?

If you wanted a simpler language, you would not make slices and hash tables generic, would you?

If you wanted lower learning curve, you would not make special case generics would you?

If you wanted to wait, to get the perfect generic solution because a sub-optimal one is not good enough, you would not create a sub-optimal non-perfect temporal solution with special-cased generics for certain data types would you?

If you argue that I am loyal and not honest, and therefore like generics because it is used in my favorite language, I think you are wrong.

The languages I use most of the time have a huge design flaw. It is called null. But when they created Go they chose to (except in special cases) get rid of (useful) generics instead of the disaster that is null.

The problem is that Go has not learnt from other languages. It is too imperative, not expressive enough, lacking in static typing and horrible at fault handling.

lederhosen··on Go 1.11 and Beyond
You can not have a custom collection class containing objects _only_ of a certain type. For example ConcurrentHashTable<Int, String>. That is something that is used every single day. It is used so frequently that Go has generic slice and map built into the language. That is, they created a language with lots of special datatypes that can not be created in normal Go because of its lack of generics instead of creating generics.

It is a bit like asking a Java-programmer to use Java 1.4.

When you ask a Java programmer, or C# programmer or Haskell programmer or Swift programmer or... what they would change in the language you do not get the answer: remove generics.

lederhosen··on What Happens to #MeToo When a Feminist Is the Accused?
I think it is quite easy. If you have a relationship with someone and having a "position of authority", the simple solution is to get rid of the "position of authority", let your lover have another boss. That responsibility is of course on the one with power.

I say "the simple solution" as it is the company policy of all companies I have been working for. I _guess_ it is the same for all universities.

I can _only_ guess that _maybe_ youngster is under pressure having sex with oldster with position of authority.

I need not guess that all these complexities could have been handled easily by assigning another professor to the student. And there is no question who's fault that is.

You do not need a contract, but do not fuck people that you have direct power over.

lederhosen··on AMD EPYC Performance Testing with systemd
not hot pages, just cache lines
lederhosen··on I switched from iPhone to the Pixel 2: One-week report
They sold your data to Google.

https://www.cnbc.com/2017/08/14/google-paying-apple-3-billio...

lederhosen··on Apple, in Sign of Health Ambitions, Adds Medical Records Feature for iPhone
If the hardware is done correctly, and used correctly. Previous Secure Enclave on iphones did not work even though Apple and its user said it was secure. Why trust them now?
lederhosen··on Apple, in Sign of Health Ambitions, Adds Medical Records Feature for iPhone
But we do not know if it works, do we?

Previous implementations have been crippled in ways that suggests that it could have been done on purpose. Limit the password to few characters and permit unlimited tries on the "secure" hardware. Data recovered in subseconds.

I suggest it was either done on purpose or they are incredibly incompetent. Which alternative do you believe to be true? Either way, why trust them?

lederhosen··on Books I read this year
The single party government.

Google "democracy Poland".

lederhosen··on Books I read this year
I am not defensive, even though it might sound so, you see I am not German, in fact, my grandfather did flee Nazi Germany. I believe they deserve credit for how they are handling their history.
lederhosen··on Books I read this year
Japan lost the war, yet they still can not educate their population about the horrors performed in Korea and China. They pretend nothing happened. That kind of response does not foster forgiveness. Germany on the other hand _really_ have taken a responsible path after the war, and I also believe there is an understanding (at least in northern and western Europe) that a big part of the blame that Hitler could take power was on the victors of the first world war (England and maybe more France).

I guess better forgiveness for German aggression are due to good behaviour from post-war Germany, okay education in north and western Europe, and also that Germany behaved _relatively_ good on the western front. Of course it will take longer for eastern Europe mostly due to the extreme ugliness of the eastern front, and the huge economic differences.

lederhosen··on Books I read this year
Poland, Greece and other states that have _huge_ internal problems does use the Nazi trick---not that surprising. Its a clear sign that something is not working correctly in their own countries.

The Nazi-similes from brexit politicians is also a clear sign that someone has run out of _good_ arguments. Promise too much, and then when it is obvious that you can not deliver, the other part is Nazis.

lederhosen··on Password Algorithms
Nah, that is only the character position sets to change, you also have to permutate the characters (which would be 2^(4*8) if we consider byte characters)

Or did I misunderstand you?

lederhosen··on Password Algorithms
You can permutate all possible character positions for combinations of four changed characters, and for _each_ permutation permutate all four characters and then compare the hash, and if the hash is the same you do not accept the password (even though of course you could have false positives with hashes). It is of course much slower than the change of one character which is only 256 iterations if you mutate the underlying bytes and not Unicode characters.

But I would guess they use plain text :-(

lederhosen··on Functional calisthenics
A static method can of course mutate an object of the same class (give the object as an argument (direct or indirect) or use a static variable of the class)

I can not see how they could be used to help escape analysis more than that you have one less reference (this).

lederhosen··on U.S. Stood by as Indonesia Killed a Half-Million People, Papers Show
If you read your own link you will realize that the highest rate of sterilization for eugenic reasons where during the second world war.

This point is _unusual_ in Swedish 20th century history as a time when the socialists where _not_ ruling by them self but instead ruled in coalition with the right wing. The minister of justice was for example _not_ socialist.

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

And the peak, some where around 1500 sterilizations a year, for eugenic reasons (if I read your diagram correctly) is _damn ugly_, but it is not extermination. It does not compare to Soviet, Chinese or American killing of their own populations (which is hard to call exterminations either even if we are talking about millions; genocide I guess is better term).

Ugly things happens in socialist democratic countries like Sweden. In general they get much uglier in powerful communist (Soviet, China) or powerful right wing countries (USA). The killing of native Indians in America by non-socialists is strikingly bad for your argument.

lederhosen··on If macOS High Sierra shows your password instead of the password hint
At work PCs just work. Macs can not print and a colleague of mine is a forced email printer for the UX people that _think_ they must use hardware they do not know how to use. All the time they complain about PC and how wonderful the macs are, but they can not even attach the computer to an external screen or projector.

So experiences do differ...

lederhosen··on If macOS High Sierra shows your password instead of the password hint
I would pay _more_ for a Linux laptop than a Mac if I _had_ to. It is a matter of taste and also what you are used to. I have the choice not to use KDE and Gnome and choose xmonad instead. Macs are horrible for many of those that are not used to them.
lederhosen··on If macOS High Sierra shows your password instead of the password hint
G2 seems to still get updates if you install LineageOS. My Note2 works beautifully. It is a pity that you have to install it yourself though. On Apple you get updates for as little as 2 years (5s). Neither is good. I would so much prefer buying a phone with vanilla Android and open drivers. But I can still buy an Android phone that I can change batteries and SD-card. One that is not planned to be obsolete.
lederhosen··on Science saved me from pretending to love wine
Interesting, I have disliked celery during my childhood, but I like it now :-) Though, I have always thought (and still think) celery has a peculiar and quite strong taste. Lettuce I can agree does not taste that much.
lederhosen··on How the Catalan government uses IPFS to sidestep Spain's legal block
Where does the recursion end?

Should Catalonia accept independence from pockets where the majority wants to be Spanish?

lederhosen··on How the Catalan government uses IPFS to sidestep Spain's legal block
So if they succeed to split would you call it tyranny not to let pockets of Castilian speaking minority areas in Catalonia claim independence? Maybe joining Spain? Where would this end (maybe there are pockets within the pockets within the pockets)? It is a practical shitty situation. Do not make it sound SIMPLE. Do not use the word tyranny when it does not apply.

And the rich leaving the poor seems like a right wing thing to do. Maybe Franco would agree that the smaller "upper class" need protection from the tyranny of the poor. Or maybe money is not the biggest part of the equation, maybe it is just a nationalistic disgrace of the same kind that forced Castilian as language onto Basques and Catalans during Franco. Maybe we will get a Franco like situation in Catalonia where minorities are not allowed to teach/speak Castilian. I think that would be a disgrace for every decent person killed by the butchers of Franco and other "nationalists".

And what is the lesson to learn from all this, should all nations start to force minorities to speak the national language just because if we give minorities relative freedom and power they will claim independence? And possibly treat our minorities left bad?

lederhosen··on Time for Makefiles to Make a Comeback
GNU Make has built in support for scheme
lederhosen··on Time for Makefiles to Make a Comeback
Shake is similar to Make with some improvements (it is a Haskell DSL), I have not used it, but it looks good.

http://shakebuild.com/

lederhosen··on Announcing Rust 1.20
If you see data structures as cyclic, it is not "in large part due to laziness", but _only_ due to laziness. If you look at the memory representation I think (but I am not sure) there will be no cycles between allocated objects. Only a thunk.

Using strict data types, I think you agree that cycles can not be created. Non strict data structures I agree can be seen as cyclic, but I prefer seeing them as infinite.

lederhosen··on Announcing Rust 1.20
In Haskell it is easy, you can not create cyclic data structures ;-)
lederhosen··on Bubble Sort: An Archaeological Algorithmic Analysis
qsort(3) is quite slow because it can not inline the compare function. If you created a 'generic' bubble sort that take a compare function pointer and no LTO optimization (or use an inlined c++ sort), the quick sort algorithm might be faster even on 50 elements.
Page 1 of 2Next →