2017-02-09

juan_gandhi: (Default)
2017-02-09 12:49 pm
Entry tags:

update on "FP performance"

Turned out all the delays were caused by two things:
- reading the files in parallel, as opposed to sequential (don't ask, will investigate)
- parallel output to stdout, instead of linearising the output. That was obviously my mistake, have to group the data, not mix them.

Now it's still 3 times faster than FP version. Got a suspicion that in JVM method dispatch is much heavier than plain if/else. It should be. But it's the staple of FP, never use booleans or ifs, but dispatch by the type. So, well... have to investigate.
juan_gandhi: (Default)
2017-02-09 01:32 pm
Entry tags:

полез в кишки хадупа

чтобы Ярн "пофиксить".
Нашел там JBoss. О бля. Старый добрый аппсервер в новой шкуре. Все тот же J2EE v 7.42.
juan_gandhi: (Default)
2017-02-09 01:34 pm
Entry tags:

talking about idiots

We use to call people that do bad stuff idiots if we cannot call them criminals, since they are not enemies (yet).

Well, that's wrong.

If your, well, relative supports tortures, or wife-beating, or adult sex with minors, or whatever, they are probably not idiots. They are not idiots when they play chess or listen to Bach or write code. Somehow they are only idiots when they commit or support crime... or other "idiots".

They are not idiots. They are just supporters of criminals. Or just criminals, depending.

Ok, one can make a mistake, this includes crime. One can commit a crime by mistake.

But if the person supports honor killing, or destruction of Israel (or all of the infidels), the person is not an idiot. The person is a dangerous potential (or not) criminal, and we should treat that person as such.

You may say, oh, they are victims of propaganda. Nobody is an involuntary victim of propaganda, except probably kids under, say, 14. Or something. Adults usually are pretty picky, which propaganda to become a victim of. That choice usually involves some kind of fear, for instance. I understand, it's hard not to be afraid if everybody around supports the lies. But at least some people are not. And if you commit a crime out of fear, of course it's kind of better than committing a crime out of one's free will; but the victims may not see the difference as clearly as the relatives and friends of the criminal.

juan_gandhi: (Default)
2017-02-09 03:04 pm
Entry tags:

история из жизни

habrahabr.ru/post/321446/ 

Программист на вольном выпасе. Может все.
Но каково все это дается... (Трактор нужен, конечно)
juan_gandhi: (Default)
2017-02-09 03:43 pm
Entry tags:

hadoop-yarn-jboss-wtf

...
      if (entityInfo.containsKey(ApplicationMetricsConstants.TYPE_ENTITY_INFO)) {
        type =
            entityInfo.get(ApplicationMetricsConstants.TYPE_ENTITY_INFO)
                .toString();
      }
      if (entityInfo.containsKey(ApplicationMetricsConstants.TYPE_ENTITY_INFO)) {
        type =
            entityInfo.get(ApplicationMetricsConstants.TYPE_ENTITY_INFO)
                .toString();
      }
///


Were they drunk, or something.