Noncommutative compactifications and elliptic curves