1 / 3
Jan 2007

What is qobi? Is it stalin?

Perhaps you should consider removing it - my Scheme solution for PALIN was accepted (7.47s) with Guile, which isn't the fastest interpreter around, but it actually TLEd on qobi, even though that's supposedly a compiler. I don't see anyone using qobi. It also takes forever to compile.

Thanks for the wonderful site!

-- Mauro

  • created

    Jan '07
  • last reply

    Jan '07
  • 2

    replies

  • 477

    views

  • 2

    users

Yes, it's stalin.

I guess I'll have to investigate (compare times of solutions compiled with stalin and guile). Thanks for pointing that out.

There's a difference between the entry I submitted for qobi and the one that got accepted with Guile: since qobi doesn't have read-line, I had to define a read-line function using read-char. I don't see how this should be an issue, though.

Guile's read-line seems to be written in C.

Here's the read-line I used:

(define read-line
  (lambda ()
    (let loop ((acc '()) (c (read-char)))
        (cond ((eof-object? c) (if (null? acc) c (list->string (reverse acc))))
              ((char=? c #\newline) (list->string (reverse acc)))
              (else (loop (cons c acc) (read-char)))))))

If you're going to test it, you can use submissions 622748 (the one that was accepted with Guile) and 627282 (same code as the other one, but with the read-line defined above - TLE with qobi).

Thanks!