jckarter

everyone already knows i'm a dog

the swift programming language is my fault to some degree. mostly here to see dogs, shitpost, fix old computers, and/or talk about math and weird computer programming things. for effortposts check the #longpost pinned tag. asks are open.


email
mailto:joe@duriansoftware.com
discord
jckarter

jckarter
@jckarter

yes, we are putting floats in the type system, and Foo<NaN> is a different type from Foo<NaN>


niss
@niss
unsafeCoerce : a -> b
unsafeCoerce x = rewrite owo in x
where
  0 T : Double -> Type
  T x = if x < 0 then b else a

  Infty = 1.0 / 0.0

  uwu : -Infty === Infty
  uwu = let zz : -0.0 === 0.0 := Refl in cong (1 /) zz

  owo : b === a
  owo = cong T uwu

You must log in to comment.

in reply to @jckarter's post: