Middle English: from Old French lunatique, from late Latin lunaticus, from Latin luna ‘moon’ (from the belief that changes of the moon caused intermittent insanity).
And now the title on HN has been edited down to remove this most exquisite pun :'(