Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why it is called Marshalling? [duplicate]

Possible Duplicate:
Why is the concept of Marshalling called as such?

Why the conversion between two types is called Marshalling! What is the meaning behind Marshal, why we don't just use the word convert, is there any difference. Please try to keep a simple english as possible as you can.

like image 688
Aan Avatar asked May 29 '11 15:05

Aan


People also ask

Why is it called marshalling?

Originally, to marshall was to tend horses or to arrange things in preparation for a feast. In heraldry, marshalling is the arrangement of several coats of arms to form a single composition. In the military, marshalling is the gathering and ordering of military forces in preparation for battle.

What is called marshalling?

In computer science, marshalling or marshaling (US spelling) is the process of transforming the memory representation of an object into a data format suitable for storage or transmission. It is typically used when data must be moved between different parts of a computer program or from one program to another.

What is marshalling and why do we need it?

Marshalling is a "medium" for want of a better word or a gateway, to communicate with the unmanaged world's data types and vice versa, by using the pinvoke, and ensures the data is returned back in a safe manner.

Is it marshaling marshalling?

Marshal (one l) is correct in English. However, both Marshalling or Marshaling are correct. Marshalling (with two lls) "seems to make more sense" in my American-English mind as it softens the "a" explicitly. So it's a po-tay-toh, po-tah-toh kind of thing.


2 Answers

Because it's not the same thing.

From Wikipedia:

In computer science, marshalling (sometimes spelled marshaling, similar to serialization) is the process of transforming the memory representation of an object to a data format suitable for storage or transmission. It is typically used when data must be moved between different parts of a computer program or from one program to another.

like image 129
Etienne de Martel Avatar answered Oct 12 '22 13:10

Etienne de Martel


The word Marshal comes from Millitary terms. Such as to Marshal ones troops and move them somewhere else. From the dictionary:

to arrange in proper order; set out in an orderly manner; arrange clearly:

  • to marshal facts; to marshal one's arguments.
  • to array, as for battle.
  • to usher or lead ceremoniously: Their host marshaled them into the room.
like image 23
Erik Funkenbusch Avatar answered Oct 12 '22 11:10

Erik Funkenbusch