Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » v8 JavaScript: Hello World
v8 JavaScript: Hello World [message #27326] Mon, 12 July 2010 16:01 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello All,

I made a simple test how to use v8 in U++.

Steps (Already did in the attached example):
1. Build v8 sourcecode in release mode as shared library
2. copy v8.lib in the uploaded package lib/bin
2. Copy the latest headers from include v8 folder to uploaded folder lib/include
3. build simple code in u++
4. copy the file v8.dll in the executable folder and run the executable.

All steps (except 4) already made and uploaded in the attached example with v8 svn revision 5044 (http://code.google.com/p/v8/source/list)

For test the attached example just download, build and copy the file v8.dll (from lib/bin) in the executable folder and run the executable.

This test works only for win32 and did not tested with u++ packages (e.g. Core, CtrLib, ...).


In future I will try to test and integrate with U++ Core Package for make converters to/from v8 values.

Any ideas are welcome!

Best regards, Ion Lupascu (tojocky)
Re: v8 JavaScript: Hello World [message #27328 is a reply to message #27326] Mon, 12 July 2010 16:35 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Ion,

Nice! One thing I like on V8 is the simpler interface (compared to JavaScriptCore).

Did you/Do you plan to try compiling statically?

Regards,
Honza
Re: v8 JavaScript: Hello World [message #27329 is a reply to message #27328] Mon, 12 July 2010 16:50 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

dolik.rce wrote on Mon, 12 July 2010 17:35

Hi Ion,

Nice! One thing I like on V8 is the simpler interface (compared to JavaScriptCore).

Did you/Do you plan to try compiling statically?

Regards,
Honza


Hello Honza,

Thank you for test!

I tested and works fine! Just replace v8.lib with the static library. I didn't upload here because the 7z compressed version have size 6Mb but decompressed size is 130Mb.

The Hello world size in static mode have 1.8Mb


Add:

You can download the static library by address: http://www.2shared.com/file/p1lTThD7/v8_online.html

Before build please remove the flag "SHARED".

Tell me if all is OK or not!

[Updated on: Mon, 12 July 2010 17:30]

Report message to a moderator

Previous Topic: serial communication protocol
Next Topic: HttpClient and File Upload?
Goto Forum:
  


Current Time: Thu Apr 18 09:45:51 CEST 2024

Total time taken to generate the page: 0.01051 seconds