[asterisk-dev] "Digium development team" - not Asterisk dev team - Java

Nick Lewis Nick.Lewis at atltelecom.com
Wed Apr 21 03:30:26 CDT 2010


>java is great for cross platform code, but is inherently not a 
>real time language. you can't even control garbage collection 
>yourself so the interpreter could pick the worst possible time 
>to do it. application maybe, channel asking for trouble.

I don't think we should get too hung up on the real-time nature of
asterisk. A typical example of the real-time aspects is that rtp packets
need to go out every 20ms with less than say 10% jitter. With modern
processors handling billions of lines of machine code a second this is
not a very onerous real time requirement. Furthermore asterisk runs on
non real-time operating systems what can switch away from asterisk tasks
at any inopportune moment so it is unlikely that a bit of gargage
collection is going to be significant.

I am not convinced that using java for channels is asking for trouble.
These predominantly deal with signalling rather than media and
signalling protocols are very resistant to delays with timeouts
typically measured in seconds.

I think there are two types of developer in open source - firstly, those
that want to develop code to do cool things, to contribute, to improve
their skills and to gain kudos and secondly those that have to develop
code to maintain their business. Only the latter will bother with c. The
bright young things in the former category are put off by it.

Let me draw a historical comparison. In a former generation the bright
young things were put off by 8051 assembler even though many realtime
applications were written in it at that time. They lazily wanted instead
to use c and to offload task switching to an operating system. The
hardware soon became capable and cheap enough to make this possible. The
same has now happened to java.

-- N_L

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.
_____________________________________________________________________
Disclaimer of Liability
ATL Telecom Ltd shall not be held liable for any improper or incorrect use of the  information described and/or contained herein and assumes no responsibility for anyones use  of the information. In no event shall ATL Telecom Ltd be liable for any direct, indirect,  incidental, special, exemplary, or consequential damages (including, but not limited to,  procurement or substitute goods or services; loss of use, data, or profits; or business  interruption) however caused and on any theory of liability, whether in contract, strict  liability, or tort (including negligence or otherwise) arising in any way out of the use of  this system, even if advised of the possibility of such damage.

Registered Office: ATL Telecom Ltd, Fountain Lane, St. Mellons Cardiff, CF3 0FB
Registered in Wales Number 4335781

All goods and services supplied by ATL Telecom Ltd are supplied subject to ATL Telecom Ltd standard terms and conditions, available upon request.



More information about the asterisk-dev mailing list