<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So does this mean mod_spidermonkey will be commented out by default (and hopefully removed from master) eventually?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Peter Olsson<br><b>Sent:</b> Tuesday, January 14, 2014 09:27<br><b>To:</b> FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org<br><b>Subject:</b> [Freeswitch-users] mod_v8 pushed to git master!<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hello everyone!<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I've finally pushed the new JavaScript module that uses Google's V8 library to git master. The current state should be that it builds on Linux and Windows. The Windows version only has VS2012 project files so far though. I will try to fix a VS2010 version as well, but I don't have that version, so I'd appreciate some help if possible.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I've enabled mod_v8 in build/<a href="http://modules.conf.in" target="_blank">modules.conf.in</a>, so for a new git clone it should be built by default. I'm not sure if the core devs want it enabled instantly, so please change this if needed. In Visual Studio 2012 mod_v8 is enabled to be built by default also.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The first time mod_v8 is built it will download a tarball for V8, and build the library. It will take some extra time, but when the lib is built it will be reused as most other libs inside FS. In Windows one more tarball will be downloaded as well, holding support files for making Windows build possible (python and cygwin).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So far I've not tested all features in mod_v8 - but I have done some basic testing on maybe 90% of the features. If any problem occur, please file a Jira, and if possible, attach the script that causes the problem. I will make sure to take care of these issues as soon as possible. If some Linux build related issues occur, file to Jira as well - but I might ask for help, since I'm not really a pro on the Makefile stuff :)<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The features of mod_v8 should be exactly the same as mod_spidermonkey. Though the built-in support for XML and File JS classes doesn't exist in V8 (as in Spidermonkey). I've created a new XML implementation class built upon the XML parser inside FS (I will upload some docs on the wiki for that one in a near future), and I've created the basic structure for a File class, but it's not yet implemented. The FS specific FileIO class does exist as before though.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I'd really appreciate if as many as possible of you test the new module. I have only one lab phone at home, so performance testing is quite hard for me to do :) The things I feel I've not tested enough is the Session object (when executed from dialplan for some IVR), and performance plus memory management. Regarding memory management there might be some tweaks that must be added, so V8 doesn't wait too long to execute its GC.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>/Peter<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></body></html>