Re: [Interest] memory fragmentation?

2012-08-22 Thread Lukas Geyer
Am 22.08.2012 05:45, schrieb Graeme Gill: Till Oliver Knoll wrote: Folks, I gave up checking for NULL pointers (C, malloc) or bad_alloc exceptions (new, C++) a long time ago. I remember a discussion several years ago (here on Qt interest?) about desktop memory managers actually never

Re: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-22 Thread Tony Rietwyk
Answering my own question... Yes QNAM handles receiving compressed responses no problem. Would still be nice to know how to enable it for sending compressed requests? Tony. -Original Message- From: interest-bounces+tony=rightsoft.com...@qt-project.org

Re: [Interest] memory fragmentation?

2012-08-22 Thread Graeme Gill
Lukas Geyer wrote: The address space is expanded immediately but physical memory pages are assigned at the moment the memory is accessed; either never, always or at kernels discretion, depending on the implemented overcommit strategy [1]. Right, but malloc will return NULL if the address

Re: [Interest] memory fragmentation?

2012-08-22 Thread Harri Pasanen
On 08/21/2012 01:27 AM, Alex Malyushytskyy wrote: For example one of our application on Windows ( this is the case when Windows is more flexible than Linux) - reserves the largest amount of continues memory we could afford for data (leaving enough for your widgets ) using VirtualAlloc with

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-22 Thread Bo Thorsen
Den 21-08-2012 20:55, Stephen Chu skrev: Is there a way to store a 64-bit internal ID in QModelIndex? The function QModelIndex::internalId() returns a 64-bit number but there's no way to put one in. The constructor takes only a 32-bit integer. Hi Stephen, Please forget all ideas of using the

Re: [Interest] Text editor's line numbers: misalignment

2012-08-22 Thread Diego Iastrubni
On Wed, Aug 22, 2012 at 10:55 AM, Sensei sense...@gmail.com wrote: If I change the font to Courier, or Times, or Andale Mono or Xcode's Menlo, everything is OK, I've tested alignment with 10K lines. When I use Monaco, the font I intended to use, lines numbers get misaligned almost

Re: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 16.53.26, Tony Rietwyk wrote: Would still be nice to know how to enable it for sending compressed requests? You need to compress yourself and set the appropriate Content-Transport- Encoding headers. -- Thiago Macieira - thiago.macieira (AT) intel.com

Re: [Interest] memory fragmentation?

2012-08-22 Thread Lukas Geyer
Am 22.08.2012 09:44, schrieb Graeme Gill: Lukas Geyer wrote: The address space is expanded immediately but physical memory pages are assigned at the moment the memory is accessed; either never, always or at kernels discretion, depending on the implemented overcommit strategy [1]. Right, but

Re: [Interest] memory fragmentation?

2012-08-22 Thread Marc Mutz
On Wednesday August 22 2012, Konrad Rosenbaum wrote: For category 1 (real time, small memory FP) I can only suggest: separate the processes. Have one that does the critical stuff in a deterministic manner with pre-allocated memory and another process for the display - if there is a memory

Re: [Interest] QString operator==

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote: Hmmm... Wouldn't it make sense to also check on the the d pointers actually being the same? Or is that in qMemEquals? Hint: please check before asking. Takes a couple of seconds... static bool qMemEquals(const quint16 *a,

Re: [Interest] QString operator==

2012-08-22 Thread André Somers
Op 22-8-2012 13:40, Thiago Macieira schreef: On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote: Hmmm... Wouldn't it make sense to also check on the the d pointers actually being the same? Or is that in qMemEquals? Hint: please check before asking. Takes a couple of seconds...

Re: [Interest] Qt5 alpha on windows

2012-08-22 Thread Vladimir Minenko
It looks like the current version of the ActivePerl (5.14.2 Build 1402 (64-bit)) has an outdated version of the GetOpt::Long module (2.35) which does not have GetOptionsFromArray yet. The required version is 2.38. I just discovered this myself while building Qt5 on a another PC… $ perl

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
This seems like it would be slow, especially when you started using haddrist swap space, unless you have that turned off. I think that it would be better to just check against a limit yourself as to avoid allocating items that would be swapped.* *I have no idea how your application uses the

Re: [Interest] memory fragmentation?

2012-08-22 Thread Graeme Gill
Jason H wrote: This seems like it would be slow, especially when you started using haddrist swap space, unless you have that turned off. I think that it would be better to just check against a limit yourself as to avoid allocating items that would be swapped.* Not at all, because the aim

Re: [Interest] Qt5 alpha on windows

2012-08-22 Thread Ramakanthreddy_Kesireddy
Hi, Could you please let me know which of the below configure options would be good For building Qt5.0. 1.configure -developer-build -opensource -nomake examples -nomake tests 2. configure -prefix %CD%\qtbase -opensource -nomake tests Thanks and Regards, Ramakanth -Original Message-

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
C++ on .NET functions as it does now, however the compiler introduces the operator of ^ as a type modifier like * (pointer) ^ are handles to managed objects, as * are addresses of objects. The runtime then handles dereferencing the handles for you. jsut like your compiler uses the appropriate

[Interest] Proper way of updating a model?

2012-08-22 Thread Stephen Chu
Thanks to everyone who helped on the 64-bit internal ID question I posted. I end up maintaining a copy of index-and-id mapping to work around it. Now I have a question on how to properly update the model. My model is a read-only representation of a database. I am using a QTreeView to hold the

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Jason H
I'd probably be using something like libQxt's RPC's functionality to publish updates to you and incrementally adjust the model, a row at a time. http://libqxt.bitbucket.org/doc/tip/qxtxmlrpcclient.html From: Stephen Chu step...@ju-ju.com To:

[Interest] Scripting Debugger

2012-08-22 Thread Peter Kümmel
I'm looking for a scripting language with a debugger. Binding to C/C++ should be simple and the debugger should be embeddable. In times of Qt4 this would be QtScript and scripttools/debugging but this is all done. Is there such a combination in Qt5? AFAIK QML could be used also as a scripting

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Bo Thorsen
Den 22-08-2012 20:29, Stephen Chu skrev: Thanks to everyone who helped on the 64-bit internal ID question I posted. I end up maintaining a copy of index-and-id mapping to work around it. Now I have a question on how to properly update the model. My model is a read-only representation of a

Re: [Interest] memory fragmentation?

2012-08-22 Thread BRM
From: Jason H scorp...@yahoo.com C++ on .NET functions as it does now, however the compiler introduces the operator of ^ as a type modifier like * (pointer) ^ are handles to managed objects, as * are addresses of objects. The runtime then handles dereferencing the handles for you. jsut like

[Interest] Best Practices returning data from a dialog

2012-08-22 Thread JM
Hi all, What are the best practices to return from a common dialog window? At the moment I have already solved with a Slot connected to the closure of the dialog, that invokes methods to retreive data. But what are the best practices? What are the pros and cons of every solution? TIA, JM

Re: [Interest] Scripting Debugger

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 21.24.49, Peter Kümmel wrote: I'm looking for a scripting language with a debugger. Binding to C/C++ should be simple and the debugger should be embeddable. In times of Qt4 this would be QtScript and scripttools/debugging but this is all done. And why

Re: [Interest] memory fragmentation?

2012-08-22 Thread Alex Malyushytskyy
Harri Pasanen ha...@mpaja.com wrote: I wonder why you say Linux is less flexible? Couldn't you just write a custom allocator directly using sbrk()? Also, 32 bit linux process leaves more application space free, so you can easily reach 2Gb process size, while I recall windows XP having issues

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Charley Bay
JM spaketh: Hi all, What are the best practices to return from a common dialog window? At the moment I have already solved with a Slot connected to the closure of the dialog, that invokes methods to retreive data. But what are the best practices? What are the pros and cons of every

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Alex Malyushytskyy
It depends on functionality you need and type of your dialog (modal/modeless) In any case I do not think appropriate time is when dialog is closed. Check QDialog documentation for example at: http://doc.qt.nokia.com/4.7-snapshot/qdialog.html In general for modal dialog you might want to update

Re: [Interest] memory fragmentation?

2012-08-22 Thread Constantin Makshin
I doubt that implementing moveable private objects/pointers would be [really] useful. Firstly, Qt can't control the location of the memory block allocated by new/malloc, so the assumption that some [random] reallocations will improve the contiguity of allocated memory looks quite naive.

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
I'll take that as a compliment. I fully expected someone to raise the issues you did. And I will counter them with the following comments. Yes, Qt would be less predictable, but more predictable than .NET's allocator. If you want GC-like features, it'll come at a GC-like price. Next on when to

Re: [Interest] memory fragmentation?

2012-08-22 Thread Tony Rietwyk
Hi Jason, If there are 5 public objects whose d-pointers reference the same private object address, how are you going to update them when you relocate the private object? I don't think .Net stores addresses, just handles, so the relocate only needs to update the handle info. That's