Bartering is based on a simple concept: Two individuals negotiate to determine the relative value of their goods and services and offer them to one another in an even exchange. It is the oldest form of commerce, dating back to at time before hard currency even existed. (Learn more about how bartering evolved, read The History of Money: From Barter To Banknotes.)
Other countries though do not have the reporting requirement that the U.S. does concerning proceeds from barter transactions, but taxation is handled the same way as a cash transaction. If one barters for a profit, one pays the appropriate tax; if one generates a loss in the transaction, they have a loss. Bartering for business is also taxed accordingly as business income or business expense. Many barter exchanges require that one register as a business.
Although, as a general case, a ship unlucky in falling in with whales continues to cruise after them until she has barely sufficient provisions remaining to take her home, turning round then quietly and making the best of her way to her friends, yet there are instances when even this natural obstacle to the further prosecution of the voyage is overcome by headstrong captains, who, bartering the fruits of their hard-earned toils for a new supply of provisions in some of the ports of Chili or Peru, begin the voyage afresh with unabated zeal and perseverance.