Re: [Plplot-devel] Is it time to remove some IPC cruft from our wxwidgets-related code?

2017-10-02 Thread p.d.rosenberg
Hi Alan I haven't really en through that code, but yes I have been using t and yes I'm happy for that cleanup to occur. The joy of git is that the code history is still here if needed. One question i did have though – I remember my code being set up like a ring buffer, and you saying yours

Re: [Plplot-devel] Install location logic substantially updated

2017-07-22 Thread p.d.rosenberg
Just to check Alan, the mention of grep and all th linux centric paths listed made me wonder how (if at all) this affects Windows builds? Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 22 July 2017 10:00 To: Ole Streicher; Orion Poplawski; PLplot development list Subject:

Re: [Plplot-devel] First proof-of-concept step requested to implement PLplot errorhandling

2017-07-15 Thread p.d.rosenberg
Hi Alan Proof of concept was a little more than 20 or so lines  I'll pull out the code I started and check where is stands. Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 15 July 2017 21:50 To: Phil Rosenberg; Ole Streicher Cc: Hazen Babcock; andrewr...@users.sourceforge.net;

Re: [Plplot-devel] The status of the wxwidgets IPC development

2017-02-26 Thread p.d.rosenberg
Hi Alan Sorry, I still haven't had chance to look at your code (poorly 4 year old over the weekend). But you are definitely correct to not use a sleep to avoid a race. I think particularly in situations where the system is under strain all bets are off regarding timings. And like you said, it's

Re: [Plplot-devel] The status of the wxwidgets IPC development

2017-02-25 Thread p.d.rosenberg
>But that failure (one or both semaphores are not blocked with zero >values) should be impossible because the fact is both semaphores are >initialized in that expected (blocked) state (that check succeeded for >the initial call to moveBytesReaderReversed on the wxPLViewer side), >and at the end

Re: [Plplot-devel] The status of the wxwidgets IPC development

2017-02-13 Thread p.d.rosenberg
I have absolutely no efficiency concerns. The cpu cycles will be totally negligible compared to the time to copy the memory. To be honest I rarely stress about efficiency. Premature optimisation is usually a bad thing – don't forget that the compiler has the ability to totally optimise away

Re: [Plplot-devel] Recent progress with wxwidgets IPC

2017-02-07 Thread p.d.rosenberg
Hi Alan It'll definitely be interesting to see the differences. I wasn't trying to put you off, just hoping you can get a boost from the things that i learnt as I went along. That was the first time I'd tried ipc locally, although I did some one way network stuff years ago. It did turn out to

Re: [Plplot-devel] Recent progress with wxwidgets IPC

2017-02-06 Thread p.d.rosenberg
Hi Alan Not exactly sure what you mean by complex? It is not always possible to send all data, as the shared memory is finite size and therefore the data to be sent may be bigger than the shared memory. The reading and writing is therefore set up as a ring buffer, so when the writing gets to

Re: [Plplot-devel] C++ help requested for step 1. (fwd)

2017-02-05 Thread p.d.rosenberg
Hi Alan I'm not sure how exactly the two classes interact, but if the parameters for the constructor will be the same every time you can pass them in as constant values. I.e, I presume the size will be the same each time and you could use a static member to hold a name that you increment after

Re: [Plplot-devel] PLplot-5.12.0 has been released so the push freeze isgone

2017-01-30 Thread p.d.rosenberg
Congratulations and well done for getting that out Alan. Here’s to continuing to push PLplot to be as good as it can be. Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 30 January 2017 01:22 To: PLplot development list Subject: [Plplot-devel] PLplot-5.12.0 has been released so the

Re: [Plplot-devel] I plan to release on Saturday unless a few more days delay would helpyou

2017-01-28 Thread p.d.rosenberg
Hi Alan Sorry for taking so long to reply. Feel free to go ahead and release. Earlier this week I had a bit more of a look at the replot issue and I think that in reality the current behaviour is fine for now, but can be sorted for next release. Everything works providing plreplot is called

Re: [Plplot-devel] plreplot and clearing the page (jim please read ifyou'e around)

2017-01-13 Thread p.d.rosenberg
Thanks Alan, I'll review those emails. I will check if the issue is related, but it shouldn't be a keypress issue as I'm not using it in that way. PS, I wasn't suggesting the commit was wrong. Just that I couldn't remember why it was as it was. Perhaps also, I could be using plreplot wrong. I

Re: [Plplot-devel] The wxwidgets-related components of PLplot and the 5.12.0 release

2017-01-06 Thread p.d.rosenberg
Hi Alan I should be able to look at the plclear buffer issue over the weekend. Then I'll start sorting the wxWidgets documentation. Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 05 January 2017 21:51 To: Phil Rosenberg; Pedro Vicente; PLplot development list Subject: The

Re: [Plplot-devel] Linux OnCreate delay bug -- solution

2017-01-04 Thread p.d.rosenberg
That looks promising  To answer your questions Alan (sorry for top posting, but I'm on my phone) 1. Yes that is the expected output, although the window titles should be different. But actually it may be nicer to at least use 2 different curves. An easy change. What do you think? 2. Will do,

[Plplot-devel] A pre release buffer bug

2017-01-04 Thread p.d.rosenberg
Hi All, but mostly aimed at Alan I guess I found a bug today based on some of my code. I have some code that uses wxWidgets then I was attempting to use plreplot to write to a file. But I was getting just a black screen. After a first look I think the problem is the plclear calls are not being

Re: [Plplot-devel] legend and label using wxWidgets

2017-01-04 Thread p.d.rosenberg
Hi Alan I agree it would be good to look at this pre release. It's on my to do list for asap. Sent from my Windows 10 phone From: Alan W. Irwin Sent: 04 January 2017 20:37 To: Phil Rosenberg; Pedro Vicente; Laurent Berger; PLplot development list Subject: Re: [Plplot-devel] legend and label

Re: [Plplot-devel] wxwidgets-related dependencies

2016-12-29 Thread p.d.rosenberg
Hi Alan I don't know enough about cmake and how it creates visual studio projects/solutions to know what will work. All I know is that cmake generates a visual studio solution, which when opened in visual studio contains multiple projects, one for each target (library and executable) and some

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-29 Thread p.d.rosenberg
Hi Alan Theose are wxWidgets commits from the wxWidgets repo. WxWidgets have made a change which I presume has exposed a bug in our code (or maybe there is a bug in their code, but I think that's less likely). Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 29 December 2016 00:48

Re: [Plplot-devel] wxwidgets-related dependencies

2016-12-29 Thread p.d.rosenberg
Hi Alan I'm not sure if that would work. If I execute (I.e. Run or debug) that project, would it run the example? Sent from my Windows 10 phone From: Alan W. Irwin Sent: 29 December 2016 00:26 To: Phil Rosenberg; Pedro Vicente; Laurent Berger; PLplot development list Subject: RE:

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-28 Thread p.d.rosenberg
Hi Laurent Thanks for this incite. It is good that they have included this functionality as it will mean in the future I can simplify a lot of code in the driver. I have a suspicion that I’m mistakenly switching from plplot y upwards coordinates to wxWidgets y downwards coordinates twice, but

Re: [Plplot-devel] wxwidgets-related dependencies

2016-12-28 Thread p.d.rosenberg
Hi Alan The problem with building all is that it rebuilds all the examples. When using static libs this means relinking them as well and the whole process takes a few minutes, rather than the few seconds to build one example. Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 28

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-28 Thread p.d.rosenberg
Thanks Laurent You are a few commits ahead of me I think so I'll update, just in case it makes a difference. I use 64 bit, which I think is the same as you. Are you using wxWidgets 3.1? I am using 3.0 I think, but I'll check. Phil Sent from my Windows 10 phone From: Laurent Berger Sent: 28

Re: [Plplot-devel] wxwidgets-related dependencies

2016-12-28 Thread p.d.rosenberg
Hi Alan Sorry for top posting, but I’m on my phone which doesn't seem to indent older text so I think this is simpler. A common scenario for me (I thought this may have been Laurent’s issue, but it seems not) is that I make a change in the wxWidgets part of plplot, then in visual studio I

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-27 Thread p.d.rosenberg
Hi Laurent I know you have said you have cleaned and you have rebuilt. However, there may be a build tree dependency issue catching us out. Can you ensure you specifically rebuild the wxPlviewer project by right clicking it and selecting build in visual studio? If you just right click an

Re: [Plplot-devel] Infinite Yielding issue

2016-12-27 Thread p.d.rosenberg
This is really brief, I think we are all getting a little overexcited here very close to the release date. This is a functionality reducing, backwards incompatible API change. I know for one that it will not only cause build errors in some of my code, but because I use wxPLplotwindow classes

Re: [Plplot-devel] Uusing wxWidgets

2016-12-27 Thread p.d.rosenberg
What? I haven't been able to keep up with all the emails as I have had family commitments over the holiday period, but that's a very large change of the API that needs some careful consideration. I can't grab the latest source right now. But what has it changed to if it's no longer templated?

Re: [Plplot-devel] Linux testing

2016-12-24 Thread p.d.rosenberg
Hi Pedro I hadn't realised you were accessing your machines remotely. I assumed that the VMs were local. Although I was accessing mu ubuntu remotely to, but using the cygwin x server. I'm not sure if the ubuntu bash on windows using xming counts as remote. Maybe this is the cause of the

Re: [Plplot-devel] Significant improvement in our overall -dev wxwidgets speed on Linux

2016-12-24 Thread p.d.rosenberg
Hi Alan It's great that these improvements have borne fruit. Regarding the two slower examples, I don't think it is cut and dry that it is the semaphores are the cause. It may be that for these cases where there are a large number of elements the ring buffer is filling up so the main

Re: [Plplot-devel] Infinite Yielding issue

2016-12-22 Thread p.d.rosenberg
Hi Pedro It's great that you set that up. I would suggest that you post it to the wxWidgets trac system too. The forum is great for advice on how we can change things, and doublemax really knows what he’s talking about, but the wxWidgets devs only use trac for dealing with bug reports. If it is

Re: [Plplot-devel] Infinite Yielding issue

2016-12-21 Thread p.d.rosenberg
Sorry I have not been able to look at this today. I have had family things on. Thanks for looking into that. I half suspected that might be the case. So after everything I said about contracts with the Show function, it seems it is already broken ☹ I suspect that actually this is a wxWidgets

Re: [Plplot-devel] Subscribing to our git feed

2016-12-20 Thread p.d.rosenberg
Hi Pedro The fact that the solution is currently broken does not help my argument here. However, here is the reasoning. With the show solution this works MyFrame *frame = new Frame(); frame->Show(); Plot(frame); But the user may not want to show the frame immediately or may want to show and

Re: [Plplot-devel] Infinite Yielding issue

2016-12-20 Thread p.d.rosenberg
Hi Pedro, Alan Sorry. I guess I made a mistake in the new commit. It worked fine on my system but I never saw the same problem you did in the first place. I will check for obvious mistakes and if I can't see the cause then I'll revert the last commit. Although this will have to wait until the

Re: [Plplot-devel] New way to generate wxwidgets debug output

2016-12-20 Thread p.d.rosenberg
That's fine. I will leave things alone for now Sent from my Windows 10 phone From: Alan W. Irwin Sent: 20 December 2016 10:19 To: Phil Rosenberg; Pedro Vicente; PLplot development list Subject: RE: [Plplot-devel] New way to generate wxwidgets debug output On 2016-12-20 08:55-

Re: [Plplot-devel] Subscribing to our git feed

2016-12-20 Thread p.d.rosenberg
Just to concur with Alan to say thank you very much Pedro for your initial bug report and your help with debugging and suggested fixes. I couldn't have sorted it without your help. And Alan the same to you. Thanks for all the help tracking down the delay issue. I'm glad that between the three

Re: [Plplot-devel] New way to generate wxwidgets debug output

2016-12-20 Thread p.d.rosenberg
I made and pushed the change last night to use urandom over random, but Pedro is probably correct, the getrandom() function may be the best solution. I can make that change later today. Sent from my Windows 10 phone From: Pedro Vicente Sent: 20 December 2016 02:04 To: Alan W. Irwin; Phil

Re: [Plplot-devel] New way to generate wxwidgets debug output

2016-12-19 Thread p.d.rosenberg
Hi Alan I am on my commute home right now. But if you want to test if the random number generator is the cause then find the Rand constructor – Rand::Rand() and comment out everything, replacing it with a single line that sets the seed (probably m_seed or something) to a fixed value, like 0.

Re: [Plplot-devel] wxPLplotDemo.cpp -- linux build error

2016-12-18 Thread p.d.rosenberg
Hi Alan, Pedro Yes Alan, that is what I intended. Sorry, that doesn't compile. I was on my way to bed when I sent the email and was doing it from memory. I will try to find a moment today to fix this. I'm not sure what your one line fix is. Feel free to elaborate. wxYield() basically exits the

Re: [Plplot-devel] plbuffer bug

2016-12-15 Thread p.d.rosenberg
Hi Alan, Jim I don't think the size impact of storing everything as a ucs4 string is a big deal. Most text stored will be single character points. But we already have overheads for storing the position, rotation, style, font, etc. So for a 1 byte ascii character we probably already store 20 or

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles onwindows 10

2016-12-10 Thread p.d.rosenberg
Hi Laurent So those errors seem to be caused by unicode issues. The native windows functions have ansi versions which accept 8bit strings and unicode versions which accept 16 bit wide strings. There is also a generic form of each which uses #ifdefs which call the ansi or unicode versions

Re: [Plplot-devel] More on IPC

2016-12-10 Thread p.d.rosenberg
Many thanks Alan for pushing this and getting the debug statements into the code. You have confirmed that i was looking in the wrong place for the problem. I was mulling things over this morning and wondered about the same thing as you, some sort of memory leak with the shared memory. You have

Re: [Plplot-devel] [Bug] Plmap omits lines at the left hand side of themap

2016-11-18 Thread p.d.rosenberg
Hi Mark Thanks for the report. I'll have a look at your example over the weekend and see if I can fix the issue. Phil Sent from my Windows 10 phone From: Mark de Wever Sent: 18 November 2016 11:06 To: plplot-dev Subject: [Plplot-devel] [Bug] Plmap omits lines at the left hand side of themap

Re: [Plplot-devel] The wxwidgets device driver speed/idle time

2016-11-15 Thread p.d.rosenberg
Hi Alan, Laurent I can't say I have much to add. It wasn't obvious to me where the lag was last time i looked, but I agree it is an issue I haven't done much plplot work for some time, but when I can i will look at this. If anyone has any suggestions I would be keen to hear. Phil Sent from

Re: [Plplot-devel] Finding wxWidgets

2016-10-19 Thread p.d.rosenberg
I was never very good with cmake, but the old findwxwidgets cmake module never worked on windows for me, which is why we had our own. I thought I'd checked things since we went back to the built in module, but perhaps it wasn't a clean build tree. I'll check again tomorrow. Phil Sent from my