AMD Support (require.js)

64 views
Skip to first unread message

Roy Velich

unread,
Nov 17, 2014, 5:41:27 PM11/17/14
to nume...@googlegroups.com
Is there any plan to add AMD support for the library?
I can add the support if you wish :-)

Owen Densmore

unread,
Nov 17, 2014, 7:35:54 PM11/17/14
to nume...@googlegroups.com
Wouldn't import/export be better? Traceur can do just that one thing by setting its options.  May require a SystemJS polyfill.

On Mon, Nov 17, 2014 at 3:41 PM, Roy Velich <xeno...@gmail.com> wrote:
Is there any plan to add AMD support for the library?
I can add the support if you wish :-)

--
You received this message because you are subscribed to the Google Groups "numericjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numericjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sébastien Loisel

unread,
Nov 18, 2014, 5:20:58 AM11/18/14
to nume...@googlegroups.com
Hi guys,

I'm not sure what AMD is.

When I last looked at this, there was some performance overhead related to some of the module stuff. For instance, wrapping a whole file in a function had some performance costs. The reason why numeric.js is done as it is (no scope wrapping all the functions) is to get the best possible performance for most browsers.

Thanks,
--
Sébastien Loisel
Assistant Professor
Department of Mathematics, Heriot-Watt University
Riccarton, EH14 4AS, United Kingdom
web: http://www.ma.hw.ac.uk/~loisel/
email: S.Loisel at hw.ac.uk
phone: +44 131 451 3234
fax: +44 131 451 3249

Reply all
Reply to author
Forward
0 new messages