Better HN
topnewbestaskshowjobs
Log inSign up

chrra

2 karma · joined Oct 19, 2012 (14y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

There's install instruction under “How to Use” and example code in the .ipynb files. It's mostly geared towards TTS, but it seems to work with voice recordings too.

comment 12y ago · link · parent

  newtype X = X (IORef Int)
  instance Num X where
    fromInteger = X . unsafePerformIO . newIORef . fromInteger
  instance Eq X where
    (X a) == (X b) = unsafePerformIO $ do
                       x <- readIORef a
                       y <- readIORef b
                       writeIORef a $ x+1
                       return $ x == y

  ghci> a <- fmap X $ newIORef 1
  ghci> a == 1 && a == 2
  True
Edit: formatting.

comment 13y ago · link · parent

So it goes.