Oct. 9th, 2016

juan_gandhi: (VP)
Идея, что нужно жить в аду ради возможности время от времени посещать рай, или ради возможности потом, когда-нибудь, заявиться в рай, она же универсальна.

Это я, поездив по окраинам Лос Анджелеса, впечатлился. Пыльная пустыня. Люди там живут. И они думают, что раз они за час могут доехать до океана, или до лыжных подъемников, или до Беверли Хилз, то они как бы почти в раю. Ну или жители больших вонючих городов (типа Сан Франциско или Москвы), они же счастливы, что могут позволить себе раз-два в год поехать куда-нибудь, где им хорошо, на Гаваи, или в Париж, всякое такое. Тем более, что позволить могут не все.

Ну и так далее.

Вот этот самообман, поразительное же явление. Считается за признак интеллекта и рациональности.

Это как собака по сравнению с кошкой. Собака будет страдать ради поощрения. Кошке страдания не нужны, она найдет и хавчик, и где разлечься красиво.

Социум почему-то поощряет собак; мне кажется, я даже знаю, почему, собственно.
juan_gandhi: (VP)
Jerry Brown called Meg Whitman a whore, and it was okay those old days...
juan_gandhi: (VP)
Вот эта вот фигня с преступностью, типа откуда она берется.
Так ниша создается. В определенной структуре просто возникает ниша, которая может быть заполнена преступниками. Свойство системы. [livejournal.com profile] timelets может это научнее объяснить.

Это как с бизнесом, если есть ниша, то бизнес возникает. А дальше уже он может расти, и изменять среду под себя. Но вакуума не будет. Ну или если и будет, то в качестве флюктуации, а потом этот вакуум сам собой пробьется.
juan_gandhi: (VP)
So, two minorities are demanding diversity in software development.

Why only software? Why not heart surgery? Why not agriculture? Why not restaurants? Why not road works?

Ok, road works are more or less diverse, I mean, there are a lot of women there. But where are the blacks? I have not seen any black guy fixing roads.

And how about agriculture? How come you have to be a Hispanic to gather strawberries? Do they require Spanish tests? Okay, so, where are females, and where are blacks, and where are whites, and where are Asians? I have not seen one Indian gathering strawberries. Any Jews doing it? Any Chinese? Not fair. Don't they all want a job in the fields? They want a job in a software company? How about Hispanic men, don't they?

Something's deeply unfair, but I can't figure out what. Don't tell me about slavery, my ancestors were slaves in Russia... and well, arguably, I was a Soviet slave, too.

Or something is just plain stupid.
juan_gandhi: (VP)
  @Test public void testFunctionOfTwoArgs() throws IOException {
      Vec sines   = fill(1 << 24, new Function<Long, Double>() {
        public Double apply(Long x) { return Math.sin(0.0001 * x); }
      });
      Vec cosines = fill(1 << 24, new Function<Long, Double>() {
        public Double apply(Long x) { return Math.cos(0.0001 * x); }
      });

      Function<Double[], Double> sq = new Function<Double[], Double>() {
        public Double apply(Double[] x) { return x[0]*x[0] + x[1]*x[1];}
      };

      Vec iv = register(new FunVec(sq, sines, cosines));

      new MRTask() {
        @Override public void map(Chunk c) {
          for (int i = 0; i < c._len; ++i) {
            double x = c.atd(i);
            if (Math.abs(x - 1.0) > 0.0001) throw new RuntimeException("moo @" + c._cidx + "/" + i + " x=" + x + "; expected=1.0");
          }
        }
      }.doAll(iv);
  }


Questions? Suggestions? I know, performance kind of sucks, no arity-awareness, no specialization. But that's ok so far.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 22nd, 2025 08:37 am
Powered by Dreamwidth Studios