Jul. 31st, 2013

henry_flower: A melancholy wolf (Default)
Сон (https://plus.google.com/115290581164606462017/posts/Gh9kxkZSNxa) оказался вещий: понадобилось сражаться с cython :( Пол дня ушло на свои мейкфайлы для человеческой генерации и компиляции сгенерированных сайфоном файлов.

В аппликации, где сайфоном генерируется в т.ч. главный exe, подгружаются и обычные .py файлики-модули. Живет все в virtualenv--ихней пайфоновской пародией на rvm. Боже, какое оно все косое и кривое. После rubygems и ноудовского npm как будто попадаешь в прошлое на 10 лет назад.

Засовывать в git гору мусора, который ставит virtualenv, нет никакого желания, поэтому после .gitignore смирно пишу в readme как поставить все одним 'make virtualenv' после чистого git clone. Охохо:

  PYTHON_VIRTUALENV_LIB := lib/python2.7

  $(PYTHON_VIRTUALENV_LIB): requirements.txt
  # it will crash for existing virtualenv, so we ignore an error
      -virtualenv -p $(PYTHON_EXE) .

      source bin/activate; pip install -r requirements.txt
      touch $@

  .PHONY: virtualenv
  virtualenv: $(PYTHON_VIRTUALENV_LIB)

Да, ихний virtualenv даже неспособен сообразить, что environment уже присутствует.

Терпеть не могу пайфон.

Permalink: https://plus.google.com/115290581164606462017/posts/1XNfkQy4bYB

henry_flower: A melancholy wolf (Default)
Бугага.
По-моему, проще навсегда забить и забыть. Но нет, ведь новый язык учить придется, а на это пойти нельзя, поэтому будут мужественно страдать. Главное несколько раз в день снисходительно поучать, что руби это для девочек, хипстеров и глупых дизайнеров.
Attachments:

The Future of Python Packaging — Python Packaging User Guide documentation


Comments:
  1. Andrew Zubinski, 2013-07-31T06:58:07.961Z

    слышал от толстого потного программиста шикарное - "рубИ на рельсах", с ударением на "и"
    встреча Раскольникова с Анной Карениной, ггг

  2. Henry Flower, 2013-07-31T07:53:24.749Z

    +Andrew Zubinski ахаха, отлично!


Permalink: https://plus.google.com/115290581164606462017/posts/izUsaV1HUwx

henry_flower: A melancholy wolf (Default)
Из чудесной книжки Patterns Of Software Ричарда Гебриэля (я когда-то ее читал кусками, но теперь все забыл):

[Начало 80x, когда Гебриэля взяли лисповым хакером в Lawrence Livermore National Laboratories]

'The O Group was filled with tremendous young physicists who were convinced that all that stood between peace and war with the Soviet Union was their brains, which were locked in battle with their corresponding numbers in bomb labs in the USSR and China.

One of the guys at the Lab had two pictures—a geographic map of the Soviet Union and a geographic map of the moon, labeled “before” and “after”. Some of them carried arms in their cars for protection against the KGB and terrorists. One carried a .357 and once was up at Lowell’s giant log house showing it off—11,000 square feet on 100 acres on top of a hill above the Lab. A group was standing around in a quarter circle when he shouted, “look, a rabbit!” He pointed the gun, apparently at the rabbit, and tracked it as it ran behind the group, and it didn’t require a lot of thought to realize that the gun pointed at one knee followed by a thigh or a waist. When the rabbit emerged from behind the group and started to head down the hill, a shot ripped out—“damn it, I missed.”'

бггг

Permalink: https://plus.google.com/115290581164606462017/posts/3VYaWJJ4vNo