Re: DWT+OpenGL crashing on Vista

2009-01-16 Thread Tim M
On Sat, 17 Jan 2009 12:51:46 +1300, Bill Baxter wrote: I'm going crazy here with a very odd bug. My DWT+OpenGL Win32 app is crashing *only* on Vista and *only* when I use client arrays for rendering (i.e. glEnableClientState(GL_VERTEX_ARRAY), glVertexPointer(...), glArrayElement()). The ex

Re: Accessing extern variable in Ruby DLL

2009-01-16 Thread Denis Koroskin
On Sat, 17 Jan 2009 06:30:35 +0300, Jordan Miner wrote: Hello, I recently wrote a binding to Ruby’s extension API , and today finished writing a simple extension using it. But I ran into something strange. (I also had a problem compiling the DLL since I use Tango, but searching the news

Re: DWT+OpenGL crashing on Vista

2009-01-16 Thread Denis Koroskin
On Sat, 17 Jan 2009 02:51:46 +0300, Bill Baxter wrote: I'm going crazy here with a very odd bug. My DWT+OpenGL Win32 app is crashing *only* on Vista and *only* when I use client arrays for rendering (i.e. glEnableClientState(GL_VERTEX_ARRAY), glVertexPointer(...), glArrayElement()). The ex

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread John Reimer
Hello Bill, On Sat, Jan 17, 2009 at 2:53 PM, John Reimer wrote: Hello Stewart, John Reimer wrote: Good question. I think the new dwt release just inherited (or hijacked) the title based on the release made by Shawn a couple of years ago which was Phobos compatible. So effectively, the

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread John Reimer
Hello jcc7, Other issues (such as whether DWT should be the standard, whether it should be noted so prominently on the wiki page, and whether there's any brainwashing occurring) are still up for debate. Our adoption of the original dwt newsgroup and project space was a move of convenience

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread Bill Baxter
On Sat, Jan 17, 2009 at 2:53 PM, John Reimer wrote: > Hello Stewart, > >> John Reimer wrote: >> >>> >>> Good question. I think the new dwt release just inherited (or >>> hijacked) the title based on the release made by Shawn a couple of >>> years ago which was Phobos compatible. >>> >> So effect

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread John Reimer
Hello Stewart, Alexander Pánek wrote: Stewart Gordon wrote: Really, while Tango DWT may have superseded Phobos DWT as being the DWT that's still actively maintained, Phobos DWT remains the SDGL. That’s a tremendously awesome idea. It’s at least as awesome as to keep the car with two blown

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread John Reimer
Hello Stewart, John Reimer wrote: Good question. I think the new dwt release just inherited (or hijacked) the title based on the release made by Shawn a couple of years ago which was Phobos compatible. So effectively, the Phobos-based DWT is what was passed off as the "standard D GUI librar

Getting All Instances of a Thread-Local

2009-01-16 Thread dsimcha
Using D2's builtin thread-local storage, is there a way to get all instances (one per thread) of a given thread-local variable? If not, can anyone recommend any workarounds, given that: 1. Each instance of this variable is not written to after initialization, i.e. not more than once during the e

Accessing extern variable in Ruby DLL

2009-01-16 Thread Jordan Miner
Hello, I recently wrote a binding to Ruby’s extension API , and today finished writing a simple extension using it. But I ran into something strange. (I also had a problem compiling the DLL since I use Tango, but searching the newsgroup yielded the solution.) Ruby’s API has rb_cObject, rb_cStr

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread Stewart Gordon
Alexander Pánek wrote: Stewart Gordon wrote: Really, while Tango DWT may have superseded Phobos DWT as being the DWT that's still actively maintained, Phobos DWT remains the SDGL. That’s a tremendously awesome idea. It’s at least as awesome as to keep the car with two blown tyres and no engin

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread Alexander Pánek
Stewart Gordon wrote: Really, while Tango DWT may have superseded Phobos DWT as being the DWT that's still actively maintained, Phobos DWT remains the SDGL. That’s a tremendously awesome idea. It’s at least as awesome as to keep the car with two blown tyres and no engine because it’s been dec

DWT+OpenGL crashing on Vista

2009-01-16 Thread Bill Baxter
I'm going crazy here with a very odd bug. My DWT+OpenGL Win32 app is crashing *only* on Vista and *only* when I use client arrays for rendering (i.e. glEnableClientState(GL_VERTEX_ARRAY), glVertexPointer(...), glArrayElement()). The exact same code works fine on XP. I have the Areo desktop com

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Daniel de Kok
On Fri, Jan 16, 2009 at 11:42 AM, Sergey Kovrov wrote: > That makes me think Qt might be using GDI (DrawEdge, DrawFocusRect, etc.) or > Themes API to draw widgets that looks native. But surely they use their own > "widget logic". Actually, you are right, they use the theme API. I was under the wr

Re: scope as template struct

2009-01-16 Thread Christian Kamm
Christian Kamm wrote: >> >> Unless there's a major difference to 'scope' I missed, I think that >> >> with the addition of a few generic features it should be possible to >> >> move it into a library entirely. Robert Fraser wrote: >> > Yes this would be possible. But what's the advantage of doing

Re: Profiler Speed

2009-01-16 Thread KlausO
Tom S schrieb: You could try using an external non-intrusive profiler. If you compile your stuff with GCC on *nix, I've been hearing that kcachegrind is pretty awesome: http://kcachegrind.sourceforge.net/html/Home.html If you'd like to profile a DMD-Win-compiled executable, I've written a simpl

Re: Profiler Speed

2009-01-16 Thread J Duncan
dsimcha wrote: I'm working on optimizing some code now, and a nagging issue that I've been meaning to bring up is how slow stuff runs when profiling is turned on. It seems that, given any code that's slow enough to be worth profiling/optimizing, the DMD profiler slows it down further, to the poi

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread Stewart Gordon
John Reimer wrote: Good question. I think the new dwt release just inherited (or hijacked) the title based on the release made by Shawn a couple of years ago which was Phobos compatible. So effectively, the Phobos-based DWT is what was passed off as the "standard D GUI library", and when th

Re: Profiler Speed

2009-01-16 Thread BCS
Reply to dsimcha, Is the profiler supposed to take a while after the program is done running to output the results? I think that would be DMD running some stats (fan-in/fan-out, sums, sorts, etc.) just lest it run for a while.

Re: Profiler Speed

2009-01-16 Thread BCS
Reply to Denis, On Fri, 16 Jan 2009 22:47:26 +0300, BCS wrote: A better way to go could be to have a config file passed to DMD that has a long list of "codefile.d: -flags" and let DMD pick the correct flags to append to the command line You can't set version (and some other options) on pe

Re: Profiler Speed

2009-01-16 Thread dsimcha
== Quote from BCS (n...@anon.com)'s article > Hello dsimcha, > > I'm working on optimizing some code now, and a nagging issue that I've > > been meaning to bring up is how slow stuff runs when profiling is > > turned on. It seems that, given any code that's slow enough to be > > worth profiling/op

Re: Profiler Speed

2009-01-16 Thread Denis Koroskin
On Fri, 16 Jan 2009 22:47:26 +0300, BCS wrote: Reply to bearophile, Bill Baxter: That's a good point. I never think of stuff like that because I use dsss most of the time. You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that appl

Re: Profiler Speed

2009-01-16 Thread BCS
Reply to bearophile, Bill Baxter: That's a good point. I never think of stuff like that because I use dsss most of the time. You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that applies the same thing to all modules. I presume as ds

Re: Profiler Speed

2009-01-16 Thread Walter Bright
bearophile wrote: Bill Baxter: That's a good point. I never think of stuff like that because I use dsss most of the time. You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that applies the same thing to all modules. I presume as dsss.

Re: Profiler Speed

2009-01-16 Thread BCS
Reply to Tom, Then it pauses the target thread a few thousand times a second, checking its register states and finding the currently executed function. The stats are gathered and when you hit Enter, you're provided with some info. A neat trick. I've done the same thing by hand with the VS debu

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Walter Bright
Katrina Niolet wrote: This is exactly correct. Even D2 currently lacks the introspection capabilities provided by moc. In addition to providing the code for signals/solts moc also provides for things like getting a list of enums in a class, converting enum values to and from string (technically m

Re: Profiler Speed

2009-01-16 Thread Tom S
dsimcha wrote: I'm working on optimizing some code now, and a nagging issue that I've been meaning to bring up is how slow stuff runs when profiling is turned on. It seems that, given any code that's slow enough to be worth profiling/optimizing, the DMD profiler slows it down further, to the poi

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-16 Thread Mike Wey
Piotrek wrote: Tim M wrote: It's brainwashing people into think that dwt is the best thing around. IMHO, It's better then anything around. It works on Linux/Windows and is easy to use. There's only one competitor named gtkD, but... the button usage example from the project site with such a n

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Bill Baxter
On Sat, Jan 17, 2009 at 1:50 AM, Yigal Chripun wrote: >>> Question: since D2 now uses the same runtime as tango and that >>> includes the (same) GC, do we still need the wrapper, for D2 code? >> >> What do you mean by wrapper? Or you mean extern C++ capabilites of >> D2? I tried them, and they se

Re: Profiler Speed

2009-01-16 Thread BCS
Hello dsimcha, I'm working on optimizing some code now, and a nagging issue that I've been meaning to bring up is how slow stuff runs when profiling is turned on. It seems that, given any code that's slow enough to be worth profiling/optimizing, the DMD profiler slows it down further, to the po

Re: Qt 4.5 to be LGPL

2009-01-16 Thread J Duncan
Sergey Kovrov wrote: On 1/16/2009 10:34 AM, Daniel de Kok wrote: I use Qt daily, and it uses native widgets in recent versions. Of course, with the exception of X11, because there is no such thing as native widgets (arguably, Qt is one of the major two native toolkits for X11). E.g. in OS X Qt u

Re: Qt 4.5 to be LGPL

2009-01-16 Thread J Duncan
Yigal Chripun wrote: BLS wrote: Nick Sabalausky wrote: "BLS" wrote in message news:gkodf2$1ah...@digitalmars.com... Bill Baxter wrote: On Thu, Jan 15, 2009 at 4:42 AM, naryl wrote: On Wed, 14 Jan 2009 18:40:19 +0300, Bill Baxter wrote: Qt 4.5 to be LGPL http://tech.slashdot.org/article.

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Yigal Chripun
Eldar Insafutdinov wrote: Yigal Chripun Wrote: Bill Baxter wrote: On Fri, Jan 16, 2009 at 10:22 AM, Walter Bright wrote: Bill Baxter wrote: On Fri, Jan 16, 2009 at 9:00 AM, Yigal Chripun wrote: 2. there's more to S&S than just an array of delegates - they are weak refs so that destruc

Re: scope as template struct

2009-01-16 Thread Eldar Insafutdinov
Christian Kamm Wrote: > Christian Kamm wrote: > >> Unless there's a major difference to 'scope' I missed, I think that with > >> the addition of a few generic features it should be possible to move it > >> into a library entirely. > > Robert Fraser wrote: > > Yes this would be possible. But what'

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Eldar Insafutdinov
Yigal Chripun Wrote: > Bill Baxter wrote: > > On Fri, Jan 16, 2009 at 10:22 AM, Walter Bright > > wrote: > >> Bill Baxter wrote: > >>> On Fri, Jan 16, 2009 at 9:00 AM, Yigal Chripun wrote: > >>> > 2. there's more to S&S than just an array of delegates - they are weak > refs > so

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Bill Baxter
On Fri, Jan 16, 2009 at 7:42 PM, Sergey Kovrov wrote: > On 1/16/2009 10:34 AM, Daniel de Kok wrote: >> >> I use Qt daily, and it uses native widgets in recent versions. Of >> course, with the exception of X11, because there is no such thing as >> native widgets (arguably, Qt is one of the major tw

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Sergey Kovrov
On 1/16/2009 10:34 AM, Daniel de Kok wrote: I use Qt daily, and it uses native widgets in recent versions. Of course, with the exception of X11, because there is no such thing as native widgets (arguably, Qt is one of the major two native toolkits for X11). E.g. in OS X Qt uses Carbon (or Cocoa f

Top 25 Programming Errors

2009-01-16 Thread Kagamin
http://cwe.mitre.org/top25/ The 2009 CWE/SANS Top 25 Most Dangerous Programming Errors is a list of the most significant programming errors that can lead to serious software vulnerabilities.

Re: Profiler Speed

2009-01-16 Thread Tim M
On Fri, 16 Jan 2009 21:18:46 +1300, bearophile wrote: Bill Baxter: That's a good point. I never think of stuff like that because I use dsss most of the time. You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that applies the same t

Re: Profiler Speed

2009-01-16 Thread Robert Fraser
bearophile wrote: Bill Baxter: That's a good point. I never think of stuff like that because I use dsss most of the time. You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that applies the same thing to all modules. I presume as dsss.

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Daniel de Kok
On Fri, Jan 16, 2009 at 12:52 AM, Sergey Kovrov wrote: > Well, from what I've read and observe now, Qt just mimics native look (but > not really feel). In fact since relaese of 4.4 it uses "windowless UI" by > default. I use Qt daily, and it uses native widgets in recent versions. Of course, with

Re: Profiler Speed

2009-01-16 Thread bearophile
Bill Baxter: > That's a good point. I never think of stuff like that because I use > dsss most of the time. > You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-( I usually compile programs with bud, that applies the same thing to all modules. I presume as dsss. As soon as Walt

Re: Qt 4.5 to be LGPL

2009-01-16 Thread Yigal Chripun
Bill Baxter wrote: On Fri, Jan 16, 2009 at 10:22 AM, Walter Bright wrote: Bill Baxter wrote: On Fri, Jan 16, 2009 at 9:00 AM, Yigal Chripun wrote: 2. there's more to S&S than just an array of delegates - they are weak refs so that destruction of an object disconnects automatically the apro