I am getting the sense that there are several projects out there
looking at achieving some sort of standard library for v8: llv8call,
k7, some of the new wrappers from various sources. I think it would be
great if all of these resources could be pooled together into a single
project with specific design guidelines (macros, wrappers, etc) which
could benefit the whole community. I am very interested in v8 and
javascript as embeddable scripting capability, but without a standard
library with file I/O, imports, network, and other wrappers, it
doesn't quite fit the bill yet. Is anyone else interested in this idea
or am I completely off my rocker? :-) I come from a .NET background
and like much of the organization of the standard libraries that ship
(System.IO, System.Security, etc) and I think that something along
these lines would be great, but I'm sure there are some better ideas
out there. My idea would be to have many of these standard libraries
as loadable modules then you could import and use them like this:

import("system.io");
import("system.security");

file = new system.io.File("/path/to/some/file.txt", "w");
file.write("Hello, world");
file.close();

md5 = new system.security.MD5();
hash = md5.hash("some text to hash");

Thanks,

slide

-- 
slide-o-blog
http://slide-o-blog.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to