<div dir="ltr"><span style="font-size:12.800000190734863px">Why is the PAL namespace inside the WebCore namespace? Couldn't it just be a top-level namespace (even if it currently happens to live in the WebCore project)?</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">#include <pal/Foo.h> would be more consistent with existing headers than <PAL/Foo.h>.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"> antti</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 7:24 AM, Myles C. Maxfield <span dir="ltr"><<a href="mailto:mmaxfield@apple.com" target="_blank">mmaxfield@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="word-wrap:break-word"><div style="word-wrap:break-word"><div>After 18 months of no progress, Don Olmstead and I are getting the band back together!</div><div><br></div><div>We’ve uploaded a patch to <a href="https://bugs.webkit.org/show_bug.cgi?id=143358" target="_blank">https://bugs.webkit.org/<wbr>show_bug.cgi?id=143358</a> which incorporates feedback from many different stakeholders (and as such, the direction is a little different than where I was going with this in the beginning).</div><div><br></div><div>First of all, this isn’t a new project; instead, it’s a new target inside the WebCore project. The target creates a static library which gets linked into WebCore, which means that the enforcement mechanism can’t be done by the linker. Instead, the layering will be enforced by a Python script, triggered as an extra build step, which checks the symbol names inside the .a file as well as #include directives in source code.</div><div><br></div><div>We opted for WebCore to include files using “#include <PAL/Foo.h>” instead of just including Foo.h. Similarly, we are putting symbols inside the PAL namespace, which is a child of the WebCore namespace. Therefore, inside WebCore, you use PAL things by specifying “PAL::Foo”.</div><div><br></div><div>The first thing to move into PAL is the “crypto” subfolder, which is a good candidate because it’s small, simple, yet also has platform-dependent implementations.</div><div><br></div><div>We would love your feedback on this approach to help make the dream a reality!</div><div><br></div><div>Thanks,</div><div>Myles and Don</div><div><br></div><div><div><blockquote type="cite"><div><div class="h5"><div>On Mar 22, 2015, at 4:40 PM, Gavin Barraclough <<a href="mailto:barraclough@apple.com" target="_blank">barraclough@apple.com</a>> wrote:</div><br class="m_-1345847183893534711Apple-interchange-newline"></div></div><div><div><div class="h5"><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Mar 22, 2015, at 4:35 AM, Maciej Stachowiak <<a href="mailto:mjs@apple.com" target="_blank">mjs@apple.com</a>> wrote:</div><br class="m_-1345847183893534711Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Web Abstraction Toolbox (it’s hard to tell the difference between wat and WTF sometimes…)</span></div></blockquote></div><br><div>+1</div><div><br></div><div><br></div></div></div></div><span class="">______________________________<wbr>_________________<br>webkit-dev mailing list<br><a href="mailto:webkit-dev@lists.webkit.org" target="_blank">webkit-dev@lists.webkit.org</a><br><a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" target="_blank">https://lists.webkit.org/<wbr>mailman/listinfo/webkit-dev</a><br></span></div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" rel="noreferrer" target="_blank">https://lists.webkit.org/<wbr>mailman/listinfo/webkit-dev</a><br>
<br></blockquote></div><br></div>