1. An electronic device, comprising: a hardware system comprising a central processing unit (CPU), a storage and a bus system connecting said central processing unit and said storage; a virtual machine instruction set implemented in said hardware system, said virtual machine instruction set configured to provide a virtual machine for interpreting application specific instructions into virtual machine specific byte code and executing said virtual machine specific byte code; and an application file containing a set of application specific instructions to be interpreted into said virtual machine specific byte code and containing a request for a native method, said application file further containing an embedded native code segment used for servicing said request upon executing said application file in said virtual machine.