Sep. 18th, 2010

sbt

Sep. 18th, 2010 03:43 pm
juan_gandhi: (Default)
Если есть sbt, нужен ли ide?
juan_gandhi: (Default)
After 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.
juan_gandhi: (Default)
(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)
  }
juan_gandhi: (Default)
Зашел в империю зла. Напоили хорошим вином, накормили так себе ужином. Потом была лекция-концерт, где представители гнали всякую пургу.

Евангелист F# объяснил урби эт орби, что в F# имеется вот "хвостовая рекурсия", и в JVM оная физически не может быть имплементирована. Народ аплодировал.

Мой lightning talk, про скалу и джаву, кстати, не включили в расписание. Ну-ну.

Но всё фигня; зато меня научили пользоваться sbt; и ещё я посмотрел, как на Luа пишут, и ещё видел робота, сделанного из основе айфона: общается айфон с ногами по звуковым проводочкам.
juan_gandhi: (Default)
  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))
  }

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 2345 6
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 8th, 2025 12:03 am
Powered by Dreamwidth Studios