[webkit-dev] Is WebKit suitable for a gaming platform?

2008-05-23 Thread Paul Pedriana
We are considering porting WebKit to work on gaming consoles (e.g. XBox 360, PlayStation 3). We want to have browsing functionality within our games. The primary issue with this is likely to be one of memory. When running within a game, a web browser has little more than a few megabytes of RAM

[webkit-dev] WebCore.vcproj Debug_Cairo config appears to be broken...

2008-05-24 Thread Paul Pedriana
Upon sync-ing WebKit on Windows/Cygwin, I get this build error for WebCore.vcproj: ..\loader\CachedImage.cpp(38) : fatal error C1083: Cannot open include file: 'PDFDocumentImage.h': No such file or directory This appears to be due to a bug in WebCore.vcproj or a mistake in the source

[webkit-dev] Safari won't run for me.

2008-05-25 Thread Paul Pedriana
I followed the instructions at http://webkit.org on how to sync, build and run WebKit. However, the last step (run-safari) fails due to inability to find the CLSID for WebKit.WebView. It appears that some kind of COM object installation needs to be done in order for this to succeed. But I can

Re: [webkit-dev] Safari won't run for me.

2008-05-25 Thread Paul Pedriana
Thanks, but that fails the same way. Perhaps I'm missing something, but I don't see how --debug in the scripts solves the problem of a non-registered CLSID. $ /cygdrive/d/WebKit/WebKitTools/Scripts/run-safari --debug 1 file(s) copied. WARNING: Failed to get CLSID for WebKit.WebView

Re: [webkit-dev] Safari won't run for me.

2008-05-25 Thread Paul Pedriana
isn't to run Safari but to port WebKit to alternative platforms. Thanks. Might be a stupid questuin but is safari installed? Sent via BlackBerry from T-Mobile -Original Message- From: Paul Pedriana [EMAIL PROTECTED] Date: Sun, 25 May 2008 04:55:19 To:Michelangelo De Simone [EMAIL

[webkit-dev] Has anybody ported WebKit to a platform other than Windows or Unix?

2008-06-02 Thread Paul Pedriana
I'm wondering if anybody has successfully ported WebKit to a platform other than Windows or Unix. I ask because I am looking into this possibility myself. I've looked at Mozilla and WebKit and at first leaned towards WebKit, as it seems to be easier to grok. But in looking at the WebKit source

Re: [webkit-dev] WebKit memory management?

2008-06-04 Thread Paul Pedriana
(s); } inline void operator delete(void* p) { free(p); } inline void* operator new[](size_t s) { return malloc(s); } inline void operator delete[](void* p) { free(p); } void DoSomething(){ void* p = malloc(10); free(p); } Thanks. On 03/06/2008, at 21:13, Paul Pedriana w

Re: [webkit-dev] WebKit memory management?

2008-06-04 Thread Paul Pedriana
. Thanks. Paul On Jun 4, 2008, at 9:58 AM, Paul Pedriana wrote: Thanks for the response. I'm sorry, and perhaps I misunderstand, but I believe your statement about inline operator new is incorrect. Unless I misunderstand you, what you say is not supported by any existing compiler nor

Re: [webkit-dev] WebKit memory management?

2008-06-04 Thread Paul Pedriana
(pObjectArray); wk_delete_array(pObjectArray); assert((Object::ctorCount == 38) (Object::dtorCount == 38)); } On Jun 3, 2008, at 10:58 PM, Paul Pedriana wrote: Thanks for the response. I'm sorry, and perhaps I

[webkit-dev] Update on memory allocation control proposal...

2008-06-18 Thread Paul Pedriana
I've created a working wtf/New.h file and a basic unit test for it. It implements both of Maciej's recent proposals, which were essentially 1: provide an allocation base class and 2: provide a global allocator. I've done basic testing of this within my WebKit build but haven't converted every

[webkit-dev] JSImmediate.h 64 bit compatibility problem?

2008-06-30 Thread Paul Pedriana
I see the following code, which works for 32 bit but not 64 bit. Is there another file or function somewhere that's for 64 bit? static bool isNegative(const JSValue* v) { ASSERT(isNumber(v)); return reinterpret_castuintptr_t(v) 0x8000; }

Re: [webkit-dev] Building Webkit with cygwin failed

2008-06-30 Thread Paul Pedriana
teng\WebKit\WebKitBuild\obj\testapi\Debug\BAT4532601072.bat" with contents [ @echo off set PATH=%SystemDrive%\cygwin\bin;%PATH% if exist "C:\cygwin\home\teng\WebKit\WebKitBuild\buildfailed" grep XXtestapiXX "C:\cygwin\home\teng\WebKit\WebKitBuild\buildfailed" if

Re: [webkit-dev] memory consumption

2008-07-02 Thread Paul Pedriana
For our uses and a lot of other non-PC uses, memory is more important than speed. The memory budget we are targeting is = 10 MB for code+data to display a small blank visual page that executes a 'hello world' type JavaScript function. So 8MB is a lot. I'm wondering if there is a way to control

Re: [webkit-dev] Building WebKit on Visual Studio 2005 is failed!

2008-07-18 Thread Paul Pedriana
This doesn't seem to be something that's specific to Visual Studio 2005, though it could be something specific to Windows. The error is of course coming from the following line: if sort CSSValueKeywords.in | uniq -d | grep -E '^[^#]'; then echo 'Duplicate value!'; exit 1; fi That line is

Re: [webkit-dev] [webkit-changes] [35474] trunk/JavaScriptCore

2008-07-31 Thread Paul Pedriana
I would hope that if any dependency is made on pthreads that the dependency be as minimal as possible and depend on the most universal parts of pthreads as possible. The platforms I work on do not have pthreads, and so pthreads would need to be emulated. Also, these platforms don't have some

Re: [webkit-dev] Windows desktop application powered by webkit

2008-07-31 Thread Paul Pedriana
I've got a more or less automatic Windows build working with the OWB build of WebKit. OWB is CMake-based and uses alternatives to Core* such as cURL, libJpeg, etc. I had to do somewhat extensive changes to the CMake scripts to make them portable to Windows, but with those changes the Windows

Re: [webkit-dev] [webkit-changes] [35474] trunk/JavaScriptCore

2008-08-01 Thread Paul Pedriana
Well we already have a cross-platform threading interface/implementation. It is conceptually similar to pthreads (but also includes things like portable atomics) but is C++ and is tailored to functionality useful to us and which exists on our target platforms (primarily XBox 360, PS3, PS2,

Re: [webkit-dev] Errors on building with arm compiler

2008-08-12 Thread Paul Pedriana
It looks like you are compiling with and EDG-based compiler front end. EDG can indeed be more strict than other compilers in some cases. My experience is typically (though not certainly) that when EDG gives you an error like below then it is correct. So you probably have a case of code that in

[webkit-dev] Fix for Vector::m_inlineBuffer alignment?

2008-09-03 Thread Paul Pedriana
I see that JavaScriptCore/wtf/Vector.h has this: // FIXME: Nothing guarantees this buffer is appropriately aligned to hold objects of type T. char m_inlineBuffer[m_inlineBufferSize]; And I've heard reports about people having alignment crashes on some hardware. Something like the code

Re: [webkit-dev] Fix for Vector::m_inlineBuffer alignment?

2008-09-04 Thread Paul Pedriana
?id=16925, if that's OK. Paul On Sep 4, 2008, at 2:05 AM, Paul Pedriana wrote: I see that JavaScriptCore/wtf/Vector.h has this: // FIXME: Nothing guarantees this buffer is appropriately aligned to hold objects of type T. char m_inlineBuffer[m_inlineBufferSize]; We have a bug

Re: [webkit-dev] Fix for Vector::m_inlineBuffer alignment?

2008-09-04 Thread Paul Pedriana
hardware like x86. On Sep 4, 2008, at 12:20 PM, Paul Pedriana wrote: I'll make a patch and attach it to https://bugs.webkit.org/show_bug.cgi?id=16925, if that's OK. That would be great! One thing I'm not sure about is whether we want to enforce alignment on platforms that don't require

Re: [webkit-dev] Compilation errors with ARM RVCT Compiler

2008-09-04 Thread Paul Pedriana
It looks to me like the problem is due to a template implementation not being visible to the code being compiled. GCC and VC++ don't enforce the C++ standard strictly here, and the CodeWarrior and EDG-based compilers correctly flag this as invalid code. VC++ compiles templates by essentially

Re: [webkit-dev] Wrapping XML parser API

2008-09-13 Thread Paul Pedriana
An abstracted XML parser API would be useful to embedded and gaming platforms. Libxml is a fine library, but memory-constrained applications will usually have their own lean xml implementation and would like to avoid redundancy. Regarding stream-based XML as opposed to SAX-based XML, we too

Re: [webkit-dev] WebKit memory management?

2008-09-16 Thread Paul Pedriana
I'm curious to see the patch (just to give an idea how big the changes would be). Do you have it somewhere? The patch is at: https://bugs.webkit.org/show_bug.cgi?id=20422. I don't think this is a terribly difficult thing to implement (though I don't mean to imply that it's trivial

Re: [webkit-dev] WebKit memory management?

2008-09-16 Thread Paul Pedriana
your patch, I don't think this testcase will work... will it? Fred Le Tuesday 16 September 2008 20:28, Paul Pedriana a crit: I'm curious to see the patch (just to give an idea how big the changes would be). Do you have it somewhere? The patch is at: https://bugs.webkit.org

Re: [webkit-dev] Tweaking cache size for embedded browser

2008-09-17 Thread Paul Pedriana
That was discussed last month. See the thread at: https://lists.webkit.org/pipermail/webkit-dev/2008-August/004719.html I am currently running my copy like this: enum { DefaultCapacity = 2 * 256 * 1024 / sizeof(Register)}; // Originally (2 * 1024 * 1024 / sizeof(Register)) enum {

Re: [webkit-dev] Tweaking cache size for embedded browser

2008-09-17 Thread Paul Pedriana
. That is unless I'm missing something. Paul i think the below is related to JS engine. i was referring to the cached resources(css, js, images etc) - WebCore/loader/Cache.cpp:44 static const int cDefaultCacheCapacity = 8192 * 1024; regards, Zaheer On Wed, Sep 17, 2008 at 1:23 PM, Paul

[webkit-dev] Regarding SquirrelFish Extreme JIT portability...

2008-09-21 Thread Paul Pedriana
In reading Maciej Stachowiak's page at http://webkit.org/blog/214/introducing-squirrelfish-extreme/, it talks about native code generation and platform support. I would like to point out that some platforms do not allow runtime native code generation, either due to hardware restrictions or due

[webkit-dev] Safari and complex script rendering

2008-09-28 Thread Paul Pedriana
... this is not a WebCore issue, so there is nothing you can do in WebCore to fix it. When I look at WebCore's WidthIterator::advance function, it doesn't seem to me to be savvy to complex script. It looks to me like it walks through a Unicode string and replaces character clusters with

Re: [webkit-dev] Minor sdl_gfx flaw that may affect security of some WebKit distributions...

2008-09-30 Thread Paul Pedriana
Thanks, though this bug isn't a bug in WebKit. It's a bug in a layer of a common WebKit port. (Please feel free to correct me if there is a better place to report things like this) http://bugs.webkit.org For details: http://webkit.org/quality/reporting.html

Re: [webkit-dev] Enum naming style?

2008-10-01 Thread Paul Pedriana
One can use Color::Brown to solve ambiguities if necessary That would be invalid C++. If a given compiler accepts it then the compiler is not strictly conforming. See the C++ Standard section 7.2 and section 9.2 p1. A scoping operator prefixed to an enumerand refers to the enclosing scope

Re: [webkit-dev] webkit core need to be cleanly separated from ports, behind a vector table

2008-10-20 Thread Paul Pedriana
While a COM or similar interface may result in a library which makes porting easiest for new platforms, it sometimes can be harder to develop and maintain. We've been there and I can say that in some cases a COM-like interface really is nice to work with; and in other cases it is perhaps too

Re: [webkit-dev] WebKit partial rendering issue

2008-11-28 Thread Paul Pedriana
The ScrollView::paint function seems wrong to me too. The function source is shown below. I don't understand why it uses context-clip(visibleContentRect()) without accounting for documentDirtyRect. Shouldn't it make a union of visibleContentRect and documentDirtyRect? I am writing my own

Re: [webkit-dev] winLauncher

2008-12-10 Thread Paul Pedriana
Ditto for me. I also have problems with crashes in CF, which cannot be debugged and so I can't diagnose them. On Dec 10, 2008, at 6:37 AM, Aman wrote: I got WebKit to build properly on windows, and i got the winLauncher too. But now the problem is : i type any

[webkit-dev] WebKit runtime image compression

2008-12-13 Thread Paul Pedriana
For a lot of web pages, images are the primary source of memory usage. These images seem to be typically stored as RGB or ARGB data in the BitmapImage class. It seems to me that applications that wish or need to save runtime memory could benefit from runtime image compression whereby images

Re: [webkit-dev] WebKit runtime image compression

2008-12-15 Thread Paul Pedriana
can report back on my results and possibly donate to ports that might be interested in this, such as OWB. Thanks. Paul On Dec 14, 2008, at 1:12 AM, Paul Pedriana wrote: For a lot of web pages, images are the primary source of memory usage. These images seem to be typically stored as RGB

Re: [webkit-dev] WebKitGtk network backend

2008-12-28 Thread Paul Pedriana
FWIW, I rewrote our version of the networking back-end support to use a generic pure-virtual interface. That way all those #ifdefs in the code went away and the back-end requirements became clearer and easier to provide. We are using our own http/ftp/file support that is different from

[webkit-dev] about cookie

2009-01-07 Thread Paul Pedriana
We are currently implementing cookie support in our port. In order to do so I had to figure out how WebKit expects cookies support to be handled. In my copy of CookieJar.cpp I wrote the notes below, which I think are close to being correct. If you are using something like Curl then Curl

[webkit-dev] OCSP vs. CRL

2009-02-01 Thread Paul Pedriana
We are looking at adding revocation support to our TLS/SSL implementation. OCSP seems like it might be a lower overhead system for us to support. I'd like to avoid supporting both OCSP and CRL if possible. I'm wondering how well OCSP works in practice. Towards the bottom of the OCSP Wikipedia

Re: [webkit-dev] Cygwin appears missing gperf file when I build webkit

2009-02-10 Thread Paul Pedriana
gperf (http://www.gnu.org/software/gperf/) is a utility app that generates perfect hash functions. By perfect we mean that there are no hash collisions in the lookup and thus some runtime performance improvements can be had. Your cygwin/bin directory is supposed to have a gperf.exe app in it.

[webkit-dev] Why is HTTPHeaderMap a map instead of multi-map?

2009-02-14 Thread Paul Pedriana
Given that HTTP header fields can have the same header represented more than once, why is it that HTTPHeaderMap is a map and not a multi-map? How would you send a ResourceRequest that has two headers of the same name to an HTTP server? Am I missing something? namespace WebCore { typedef

Re: [webkit-dev] Xcopy: Cannot perform a cyclic copy

2009-02-22 Thread Paul Pedriana
I believe that output is not indicating a build failure and that it can be ignored. The WebKit Windows build produces a number of "red herring" outputs (output that looks like an error but isn't), and the traffic on this mailing list would likely be reduced if this was documented. Ditto for

Re: [webkit-dev] ISO C++ forbids casting between pointer-to-function and pointer-to-object

2009-03-08 Thread Paul Pedriana
Here's the story: Your GCC 3.4 is compliant to the existing ISO C++ standard, but the proposed C++0x standard allows compilers to optionally support the reinterpret_cast in question. The C++98 and C++03 Standards (see section 5.2.10) do not allow reinterpret_castvoid*(functionPointer). But

Re: [webkit-dev] Check for NaN value

2009-03-16 Thread Paul Pedriana
More generally, all NaN comparisons return false, even with binary-identical NaNs. So if x is a NaN, then (x == x) is false, as long as the compiler doesn't try to eliminate the expression, and I don't think it's allowed to for floating point (I don't have a reference handy, though). bool

Re: [webkit-dev] get web content by clicking with editing feature?

2009-03-20 Thread Paul Pedriana
Are Web Slices a vetted Internet standard? Was there any formal discussion about it? Closed design results in poor design. Remember the blink tag? There's also this to consider: http://ajaxian.com/archives/not-possible-to-use-web-slice-icon-in-other-browsers Hi guys, did you notice

Re: [webkit-dev] Customization of WebKit.

2009-04-02 Thread Paul Pedriana
I have done the same thing and it worked mostly automatically. There were only a few mistakes in the code whereby disabling one of them caused something to break, but this was manually fixable. But the build file set didn't need to be modified. If you are using the OWB port you will find that

Re: [webkit-dev] OpenCL

2009-04-06 Thread Paul Pedriana
IMO the biggest benefits that OpenCL (or some other vector-savvy multiprocessing interface) could bring to WebKit would be in the following areas: Reading graphics files (e.g. jpg) Encryption/Decryption (TLS, SSL) Compositing graphics in software (e.g. alpha blends) Implementing