пятница, 27 декабря 2013 г.

Алфавит Азалундского Пса

"Алфавит" Линча - хороший фильм, но дурно влияет на реальность. Когда ехал после просмотра в метро, вокруг зашкалило количество сумасшедших.

Тот же "Азалундский Пёс" сегодня не более непонятен, чем любой немой фильм той эпохи. (если с середины смотреть).

воскресенье, 15 декабря 2013 г.

Поколение Next().Next()

Дикобраза (от B2) - что знают те, кому сейчас 16-18.

Они росли при вечном Путине, для них политическая и стория страны стабильна. Слышали про Хрущёва и Брежнева, но обычно не помнят их очерёдности.

Ленин - правитель, правил после царей, к власти пришёл, кажется, через госудерственный переворот вроде тех, что в новостях показывают.

Похоже, это успех ещё ельцинского (да и доельцинского) стремления к всяческому закремлению преемственности. В инагурация-1996 была заявлена как "соответствующая русским традициям" - хотя до Ельцина и России в текущих границах не было, и правили государством не совсем президенты (Горбачёв, когда стал в 1990-м президентом СССР, ограничился присягой).

пятница, 13 декабря 2013 г.

Z-виртуоз

B2: Z тратит много сил, времени и денег на то, чтоб быть, как он думает, музыкантом. То, что он играет и поёт скучную хрень, а его прожекты закрываются после пары концертов его вообще не волнует.

Как и подобает подростку, он целиком и полностью живёт внешним - то, что результат в никуда не годится, его вообще не парит.

вторник, 10 декабря 2013 г.

воскресенье, 1 декабря 2013 г.

Братья наши соломенные

Если у X есть недостатки, это не всегда значит, что X - плохо. Например, у легендарных Соломенных Енотов львиная (даже не енотная!) доля песен написаны 7-стопным ямбом и поэтому кажутся одной и той же песней.

Но это не значит, что Соломенные Еноты - плохая группа. Они хорошие. Особенно поздние.

вторник, 12 ноября 2013 г.

Украсть миллион

(Андрей рассказывал)

Очень любимая нищебродами тема - украсть миллион и сбежать далеко-далеко. А основной сложностью они считают добраться до этого миллиона.

Добраться до миллиона и правда непросто. Но для завершения квеста этого, увы, недостаточно. Потому что миллион будут искать. И потому что его мало заполучить - его ещё легализовать надо.

Так что счастливому подпольному миллионеру предстоит до конца своих дней (в лучшем случае - ведь если найдут, то убьют не сразу) скрываться в какой-нибудь жопе мира. Без шансов её когда-то покинуть и без шанса потратить эти деньги на что-то интересное.

Не говоря о том, что в одиночку ты деньги никогда не отмоешь.

вторник, 20 августа 2013 г.

Ads and Reality of Functional Programming

There’re a lot of rumors about functional programming now. For example, a lot of people say (mostly on forums) that only really smart guys can learn a functional language and in the short time a Java/C#/C++ programmer will look like a pure C programmer in our age.

Why will functional languages win? Because “they are languages of future” and “I like them”. One more thing: a Haskell program looks really difficult. How can you beat such a difficult thing?

But I don’t think so. Functional languages are very active now, they give great influence to Object Oriented ones, Ruby, Python, PHP, Java, C#, even C++ are implementing lambdas and mapping. But “being futuristic and unusual” and “look difficult” aren’t features. It isn’t even the truth.

Firstly, functional languages are much older then Object Oriented ones. LISP was released in 1958, and became popular in Algol time. They had really plenty of time to beat Fortran or Pascal, but they didn’t. Even today there’re plenty of languages with functional influence, there’re plenty of languages where functional style is possible, but the pure functional family is very little: LISP relatives (they are surviving in Closure, Emacs and SICP, but even SICP course is studied  today with examples on Python), Haskell (more studied then used), Erlang (needed only if you work for Sony Ericsson) and ML languages (OCaml/F# and Scala). All of them look unusual. if you were teached programming on Pascal/C++/Java/Python and are very usual for stufent who studied SICP. LISP was used even in Soviet Union (there’re some translations of handbooks made in 1988-1990).

Even Google uses C++/Python/Java, not Scheme or Haskell.

Secondly, if you need really unusual and different things, try quantum mechanics. The simpler code is, the cheaper will be support. If you aren’t sure, do you need the easy supported code, ask your vendor.

But what’s the thing that make functional languages useful? Let’s look to very ancient (1984, last edition at 1990) paper by a guru:


  1. Glueing Functions Together – you can glue functions and objects they generate as easy as you glue modules of your application.
  2. Glueing Programs Together – any program on a functional language is a function and can be used this way easily
  3. Lazy evaluation makes functional language a good choice to write AI (this was even in Soviet-time books on computer science from 1990!). Because of it, you can avoid storing in memory all of the wrong variants during position analysis.

Have you met this pros in any of functional languages polemics? Or they aren’t important anymore?

If you didn’t, there aren’t any gurus in this thread. There’re just people who show you rare things that are fashionable only because they are rare. Such a people will never make functional languages popular: when something can be used my everyone, it isn’t cool and fashionable anymore.

Studying and using the ideas from functional programming is the business of “simple” programmers on C++-like languages. Because we are only ones who can find place for all of pretty lambdas, closures and monads.