Some time ago I found a plant on Depok Beach (Yogyakarta, Indonesia).
This is what it looks like:
It looks like spiky leaves that grow from its branches. The leaves are actually quite hard: you could hurt your finger if you touch the end point.
I know it's not aloe.
I'd like to know what it is called but I haven't found the answer, yet.