Sep. 18th, 2010
I hate everything!
Sep. 18th, 2010 05:18 pmAfter a certain amount of lj and tv browsing, I come to the following conclusion(s):
- the main motive of web posting or tv talk is hate;
- hate should resonate with the reader/viewer;
- the reader/viewer is the person that does not always know what to hate, but is looking for an object.
So there.
And so it goes.
P.S. Actually, there are not many things in this world that I hate, but you'd be surprised.
- the main motive of web posting or tv talk is hate;
- hate should resonate with the reader/viewer;
- the reader/viewer is the person that does not always know what to hate, but is looking for an object.
So there.
And so it goes.
P.S. Actually, there are not many things in this world that I hate, but you'd be surprised.
implicit: Int -> Category
Sep. 18th, 2010 07:27 pm(that's scala)
/** * Builds a category out of a segment of integers between 0 and n (not included). * * @param n number of elements * @return a new category */ implicit def segment(n:Int) : Category[Int, (Int, Int)] = Category(PoSet.range(0, n, 1)) //... def testImplicitSegment { def sut: Category[Int, (Int, Int)] = 3 assertEquals(_3_, sut) }
из империи зла
Sep. 18th, 2010 08:47 pmЗашел в империю зла. Напоили хорошим вином, накормили так себе ужином. Потом была лекция-концерт, где представители гнали всякую пургу.
Евангелист F# объяснил урби эт орби, что в F# имеется вот "хвостовая рекурсия", и в JVM оная физически не может быть имплементирована. Народ аплодировал.
Мой lightning talk, про скалу и джаву, кстати, не включили в расписание. Ну-ну.
Но всё фигня; зато меня научили пользоваться sbt; и ещё я посмотрел, как на Luа пишут, и ещё видел робота, сделанного из основе айфона: общается айфон с ногами по звуковым проводочкам.
Евангелист F# объяснил урби эт орби, что в F# имеется вот "хвостовая рекурсия", и в JVM оная физически не может быть имплементирована. Народ аплодировал.
Мой lightning talk, про скалу и джаву, кстати, не включили в расписание. Ну-ну.
Но всё фигня; зато меня научили пользоваться sbt; и ещё я посмотрел, как на Luа пишут, и ещё видел робота, сделанного из основе айфона: общается айфон с ногами по звуковым проводочкам.
val FINITE_SETS: BigSet = bigset((o: Set[_]) => o.size < Integer.MAX_VALUE) ... test("Setf should not not contain NNO") { assert(!(FINITE_SETS contains N)) } test("Setf should not contain itself") { assert(!(FINITE_SETS contains FINITE_SETS)) } test("Setf should contain various finite sets") { assert(FINITE_SETS contains Set[String]()) assert(FINITE_SETS contains Set("infinity")) assert(FINITE_SETS contains Set(1,2,3,42)) }