I wouldn't put either in a machine. YMMV - but here's what I do -
For the tarp, string it up tautly and hand wash it with a rag and some soapy water. You may have to use your hand to support it from behind, if any scrubbing motion is needed. Spray with a hose to rinse it.
For the hammock, hand wash in either the sink or tub, using just a little laundry detergent. Hang outside to dry.
“I think that when the lies are all told and forgot the truth will be there yet. It dont move about from place to place and it dont change from time to time. You cant corrupt it any more than you can salt salt.” - Cormac McCarthy