How wonderful is this bookshelf? First of all, you're saving a ton of shelf real estate; second of all, you don't need to buy or make room for bookends; third, it's just plain magic!
If you don't already have floating shelves, NBD. Just stain or paint a wood plank and let it dry. Then, take a long piece of elastic and staple the end a few inches from the edge, leaving a bit of room for the brackets. Take a book and measure the elastic around the book and staple on the other side. Do this until you've covered most of the plank. Attach two l-brackets to the shelf, drill anchor screws into the wall, and then hang your shelf.