I used to have a hammock when working in the bush, lying diagonally as Zipwow mentions.
However for long term living on a boat
i think you will find a proper bed
Because only sailors had hammocks, the officers had bunks. Hammocks were a space saving device not a comfort feature comparable with a nice soft bed
with stuffed bunny rabbit pillows.