[chromium-dev] Re: novel use of v8 - CSS Scripting Layout

2009-07-24 Thread darrel karisch

when I use V8IsolatedWorld I cannot access the window from script, the
value is undefined.  I don't know what more security may be required
beyond this.

thanks for your analysis.

Darrel
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: novel use of v8 - CSS Scripting Layout

2009-07-20 Thread darrel karisch

I notice that Greg Badros, www.badros.com/greg/doc/resume.html, is at
Google now since March.  I'd love to see him implement Constraint CSS
(CCSS) in chrome, www.badros.com/greg/papers/css-uist99.pdf, and get
the support and recognition it deserves.

what is he working on?
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: novel use of v8 - CSS Scripting Layout

2009-07-20 Thread darrel karisch

that's unfortunate.  it's lamentable that CCSS can't find a home.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: novel use of v8 - CSS Scripting Layout

2009-07-20 Thread darrel karisch

 The next step for your specification is to go to the W3C.
yes, I've submitted a request to webkit.org a few days ago.

I'm not advocating that anybody adopt the code.  I merely wanted a POC
for my own benefit and analysis before publicizing the proposal.

I'd rather prefer to see some form of CCSS adopted by W3C, but after
ten years it does not seem realistic.

currently, it is difficult to manipulate absolutely positioned
elements in CSS.  they are virtual pariahs exiled to client-side JS.
I think something like what I propose here is a start to assimilate
what is currently done in CS JS into CSS with the added benefit of
support for more powerful layout specific objects.

 Finally, features at this layer should go into WebKit directly, not
 into Chromium.  Once your spec has been approved by W3C, you should
 take your feature request to webkit.org.

I did make all mods in WebKit directly, the goal being to be as
minimally invasive as possible.  code extensions/modifications are
enclosed in and isolated by appropriate preprocessor statements.

 CSS expressions have be a huge pain point for Internet Explorer, both
 in terms of security and in terms of performance.  We'll want to be
 extremely careful before implementing a similar feature.

using the parallel universe V8IsolatedWorld addresses the security
concerns for the most part.

performance is always an issue with javascript.  that's why I chose
v8.  whether JS is executed in CSS or in js tags or includes, the
performance issue remains.  with absolutely positioned elements there
is not much choice in our current state.

having said that, the POC does push v8 to the limit as far as
reentrancy is concerned.  some analysis may reveal room for v8
improvements. perhaps reusable Scripts across contexts, although
perhaps not simultaneously.

thanks for your thoughtful replies.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: novel use of v8 - CSS Scripting Layout

2009-07-17 Thread darrel karisch

security is an issue no matter where javascript is executed.
it is addressed here...

http://groups.google.com/group/chromium-dev/browse_thread/thread/118689ceda861163

I'm using this execution in a parallel universe technique in my
implementation.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] novel use of v8 - CSS Scripting Layout

2009-07-16 Thread darrel karisch

I've produced a proposal for a CSS Scripting Layout specification.
I've extended Chrome as a sample implementation.  Of course, it relies
heavily on v8 and I have gleaned a lot of useful knowledge from this
group over the course of its development.

I think it is a novel use of v8 and may be of interest to v8
developers.  at the core is a constraint satisfaction system that
requires a high degree of v8 reentrancy.

I'd like to hear feedback from this community.

TIA

http://blogs.eforceglobal.com/dkarisch/archive/2009/07/16/536.aspx

CSS Scripting Layout... a new set of CSS properties and object
specifications that together compose a powerful declarative means to
describe complex arbitrary layout criteria that are both reusable and
extensible.  The new properties are Javascript expressions that are
woven together in a constraint resolving system to perform a specified
layout.  Additionally, a set of global objects defined in the
constraint resolution Javascript execution environment enable powerful
operations to be expressed succinctly resulting in more readable and
compact layout specifications.


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---