Jump to page: 1 2
Thread overview
Anyone done working internal IE with D?
Mar 22, 2005
bobef
Mar 22, 2005
Ben Hinkle
Mar 22, 2005
Dave
profiling D code
Mar 22, 2005
Walter
Mar 22, 2005
Dave
Mar 25, 2005
Walter
Mar 22, 2005
Andrew Fedoniouk
Mar 23, 2005
Andrew Fedoniouk
Mar 24, 2005
Charlie
Mar 25, 2005
Andrew Fedoniouk
Mar 25, 2005
bobef
Mar 26, 2005
Andrew Fedoniouk
March 22, 2005
This is my question- has anyone managed to successfuly create an internal browser in D with event notifications. My first try was with core32, but it was incomplete (no events), I had to write kilo bytes of code to get a single window and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll. This way I could get events with function pointers but this one worked even slower, fair to say unresponsive. The only thing I could do after displaying a web page is endtasking the program or click the close button and wait 3-4 minutes to close... Am I missing something? By the way it would be cool (I don't know is it possible, but would be very cool) to have internal browser and have access to it's javascript trough dmdscript.


March 22, 2005
"bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
> This is my question- has anyone managed to successfuly create an internal
> browser in D with event notifications. My first try was with core32, but
> it was
> incomplete (no events), I had to write kilo bytes of code to get a single
> window
> and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll.
> This way
> I could get events with function pointers but this one worked even slower,
> fair
> to say unresponsive. The only thing I could do after displaying a web page
> is
> endtasking the program or click the close button and wait 3-4 minutes to
> close... Am I missing something? By the way it would be cool (I don't know
> is it
> possible, but would be very cool) to have internal browser and have access
> to
> it's javascript trough dmdscript.

I recommend the Intel profiler VTune. You can also try the -gt flag to enable profiling http://www.digitalmars.com/ctg/trace.html. I haven't tried that flag myself but it looks very useful.

-Ben


March 22, 2005
Try HTMLayout.
http://terrainformatica.com/htmlayout/
There is a sample in SDK - /win32
it uses pure API calls for integration - no COM, etc.
To create a D wrapper is one day task I think.

Andrew Fedoniouk.
http://terrainformatica.com




"bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
> This is my question- has anyone managed to successfuly create an internal
> browser in D with event notifications. My first try was with core32, but
> it was
> incomplete (no events), I had to write kilo bytes of code to get a single
> window
> and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll.
> This way
> I could get events with function pointers but this one worked even slower,
> fair
> to say unresponsive. The only thing I could do after displaying a web page
> is
> endtasking the program or click the close button and wait 3-4 minutes to
> close... Am I missing something? By the way it would be cool (I don't know
> is it
> possible, but would be very cool) to have internal browser and have access
> to
> it's javascript trough dmdscript.
>
> 


March 22, 2005
"Ben Hinkle" <bhinkle@mathworks.com> wrote in message news:d1pevd$2tmd$1@digitaldaemon.com...
>
> "bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
>> This is my question- has anyone managed to successfuly create an internal
>> browser in D with event notifications. My first try was with core32, but
>> it was
>> incomplete (no events), I had to write kilo bytes of code to get a single
>> window
>> and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll.
>> This way
>> I could get events with function pointers but this one worked even
>> slower, fair
>> to say unresponsive. The only thing I could do after displaying a web
>> page is
>> endtasking the program or click the close button and wait 3-4 minutes to
>> close... Am I missing something? By the way it would be cool (I don't
>> know is it
>> possible, but would be very cool) to have internal browser and have
>> access to
>> it's javascript trough dmdscript.
>
> I recommend the Intel profiler VTune. You can also try the -gt flag to enable profiling http://www.digitalmars.com/ctg/trace.html. I haven't tried that flag myself but it looks very useful.
>
> -Ben

I think the -gt flag is useful. The primary feedback output ends up in the 'trace.log' file.

As far as the bad performance, I would guess it has mostly/all to do with memory management, like making lots and lots of allocations when perhaps you could allocate outside of loops and use array slicing inside the loops more. For example, load the entire page into a buffer, slice it into it's component parts and pass those to the API's.

- Dave


March 22, 2005
"Dave" <Dave_member@pathlink.com> wrote in message news:d1pl7d$4re$1@digitaldaemon.com...
> I think the -gt flag is useful. The primary feedback output ends up in the 'trace.log' file.

It's more than useful. Ever wonder why DMC++ has held the speed record for compilation speed for the last 15 years? Why DMDScript is twice as fast as jscript? If you want to make your app sing, -gt is the answer. <g>

P.S. I wrote -gt because existing profilers at the time were notoriously difficult to use. Most required one to slog through a 50 page manual to figure out how to use, and there was a lot of work involved in setting things up. As a consequence, nobody used profilers. I wanted one that was as simple as throwing a command line switch. -gt succeeds in that, but it's still rare for anyone to use it. I'm at a loss as to why. Sometimes I wonder if the reason is because people overlook it thinking "it can't be that easy" because they are still accustomed to profilers being a big fat pain to learn how to use and apply.

P.P.S. -gt is not a terribly sophisticated profiler, but I've used it extensively and it gets the job done.


March 22, 2005
In article <d1pma8$5sn$1@digitaldaemon.com>, Walter says...
>
>"Dave" <Dave_member@pathlink.com> wrote in message news:d1pl7d$4re$1@digitaldaemon.com...
>> I think the -gt flag is useful. The primary feedback output ends up in the 'trace.log' file.
>
>It's more than useful. Ever wonder why DMC++ has held the speed record for compilation speed for the last 15 years? Why DMDScript is twice as fast as jscript? If you want to make your app sing, -gt is the answer. <g>
>
>P.S. I wrote -gt because existing profilers at the time were notoriously difficult to use. Most required one to slog through a 50 page manual to figure out how to use, and there was a lot of work involved in setting things up. As a consequence, nobody used profilers. I wanted one that was as simple as throwing a command line switch. -gt succeeds in that, but it's still rare for anyone to use it. I'm at a loss as to why. Sometimes I wonder if the reason is because people overlook it thinking "it can't be that easy" because they are still accustomed to profilers being a big fat pain to learn how to use and apply.
>

You're right - it is more than just useful, and is a great tool.

I hadn't thought of it until you posted this, but up until -gt I didn't use profilers that much because they are generally more of a PITA than they are worth. Now I build anything time-critical with -gt during development because it is easy to use and gives good feedback, fast. Another upside is that it encourages better structured programming style to get the best feedback.

Thanks for this feature, Walter!

- Dave


March 22, 2005
Impressive.

Charlie
"Andrew Fedoniouk" <news@terrainformatica.com> wrote in message
news:d1pj8v$2ur$1@digitaldaemon.com...
> Try HTMLayout.
> http://terrainformatica.com/htmlayout/
> There is a sample in SDK - /win32
> it uses pure API calls for integration - no COM, etc.
> To create a D wrapper is one day task I think.
>
> Andrew Fedoniouk.
> http://terrainformatica.com
>
>
>
>
> "bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
> > This is my question- has anyone managed to successfuly create an
internal
> > browser in D with event notifications. My first try was with core32, but
> > it was
> > incomplete (no events), I had to write kilo bytes of code to get a
single
> > window
> > and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll.
> > This way
> > I could get events with function pointers but this one worked even
slower,
> > fair
> > to say unresponsive. The only thing I could do after displaying a web
page
> > is
> > endtasking the program or click the close button and wait 3-4 minutes to
> > close... Am I missing something? By the way it would be cool (I don't
know
> > is it
> > possible, but would be very cool) to have internal browser and have
access
> > to
> > it's javascript trough dmdscript.
> >
> >
>
>


March 23, 2005
Thanks, Charlie.

We are actively developing HTMLayout now. Various wrappers in particular. And I hope I'll have a chance to create a D wrapper.

There are couple of places where D will definitely win e.g. behaviors - custom drivers for HTML DOM elements.

Andrew.

"news.digitalmars.com" <charles@jwavro.com> wrote in message news:d1q3v0$kcb$1@digitaldaemon.com...
> Impressive.
>
> Charlie
> "Andrew Fedoniouk" <news@terrainformatica.com> wrote in message
> news:d1pj8v$2ur$1@digitaldaemon.com...
>> Try HTMLayout.
>> http://terrainformatica.com/htmlayout/
>> There is a sample in SDK - /win32
>> it uses pure API calls for integration - no COM, etc.
>> To create a D wrapper is one day task I think.
>>
>> Andrew Fedoniouk.
>> http://terrainformatica.com
>>
>>
>>
>>
>> "bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
>> > This is my question- has anyone managed to successfuly create an
> internal
>> > browser in D with event notifications. My first try was with core32,
>> > but
>> > it was
>> > incomplete (no events), I had to write kilo bytes of code to get a
> single
>> > window
>> > and it was VERY VERY VERY VERY slow. My second attemt was with MFC dll.
>> > This way
>> > I could get events with function pointers but this one worked even
> slower,
>> > fair
>> > to say unresponsive. The only thing I could do after displaying a web
> page
>> > is
>> > endtasking the program or click the close button and wait 3-4 minutes
>> > to
>> > close... Am I missing something? By the way it would be cool (I don't
> know
>> > is it
>> > possible, but would be very cool) to have internal browser and have
> access
>> > to
>> > it's javascript trough dmdscript.
>> >
>> >
>>
>>
>
> 


March 24, 2005
> We are actively developing HTMLayout now. Various wrappers in particular. And I hope I'll have a chance to create a D wrapper.
>

I hope so too :).  Don't shoot me for this ( Dng ) but it might be cool to
make an HTML based GUI for D.  Easy to use, cross-platform , might be fun !

Charlie


"Andrew Fedoniouk" <news@terrainformatica.com> wrote in message news:d1qenj$v3b$1@digitaldaemon.com...
> Thanks, Charlie.
>
> We are actively developing HTMLayout now. Various wrappers in particular. And I hope I'll have a chance to create a D wrapper.
>
> There are couple of places where D will definitely win e.g. behaviors - custom drivers for HTML DOM elements.
>
> Andrew.
>
> "news.digitalmars.com" <charles@jwavro.com> wrote in message news:d1q3v0$kcb$1@digitaldaemon.com...
> > Impressive.
> >
> > Charlie
> > "Andrew Fedoniouk" <news@terrainformatica.com> wrote in message
> > news:d1pj8v$2ur$1@digitaldaemon.com...
> >> Try HTMLayout.
> >> http://terrainformatica.com/htmlayout/
> >> There is a sample in SDK - /win32
> >> it uses pure API calls for integration - no COM, etc.
> >> To create a D wrapper is one day task I think.
> >>
> >> Andrew Fedoniouk.
> >> http://terrainformatica.com
> >>
> >>
> >>
> >>
> >> "bobef" <bobef_member@pathlink.com> wrote in message news:d1pbtk$2q51$1@digitaldaemon.com...
> >> > This is my question- has anyone managed to successfuly create an
> > internal
> >> > browser in D with event notifications. My first try was with core32,
> >> > but
> >> > it was
> >> > incomplete (no events), I had to write kilo bytes of code to get a
> > single
> >> > window
> >> > and it was VERY VERY VERY VERY slow. My second attemt was with MFC
dll.
> >> > This way
> >> > I could get events with function pointers but this one worked even
> > slower,
> >> > fair
> >> > to say unresponsive. The only thing I could do after displaying a web
> > page
> >> > is
> >> > endtasking the program or click the close button and wait 3-4 minutes
> >> > to
> >> > close... Am I missing something? By the way it would be cool (I don't
> > know
> >> > is it
> >> > possible, but would be very cool) to have internal browser and have
> > access
> >> > to
> >> > it's javascript trough dmdscript.
> >> >
> >> >
> >>
> >>
> >
> >
>
>


March 25, 2005
"Dave" <Dave_member@pathlink.com> wrote in message news:d1pv08$fmh$1@digitaldaemon.com...
> Thanks for this feature, Walter!

You're welcome! Though of course, it's paid back to me personally far more than it ever cost to write. That anyone else can get some use out of it too is just gravy.


« First   ‹ Prev
1 2