Re: Posix vs. Windows

2012-05-21 Thread Paulo Pinto
On Sunday, 20 May 2012 at 14:57:21 UTC, H. S. Teoh wrote: On Sun, May 20, 2012 at 07:59:49AM +0200, Paulo Pinto wrote: [...] One thing I hate is visiting customers which have UNIX installations configured with their default installs. Depending on the operating system version, sometimes I feel

Re: Posix vs. Windows

2012-05-20 Thread Paulo Pinto
Am 20.05.2012 07:43, schrieb H. S. Teoh: [...] That said, some editors, like Sublime Text 2 (my current favorite) have a vi mode that functions pretty closely to how vi does. It's another way to ease your way into the vi mindset, as it were. Personally, I know enough vi to get around but not

Re: Posix vs. Windows

2012-05-20 Thread H. S. Teoh
On Sun, May 20, 2012 at 07:59:49AM +0200, Paulo Pinto wrote: [...] One thing I hate is visiting customers which have UNIX installations configured with their default installs. Depending on the operating system version, sometimes I feel like I am back in 197x, with the original versions of

Re: Posix vs. Windows

2012-05-19 Thread H. S. Teoh
On Sat, May 19, 2012 at 04:10:29AM +0200, Mehrdad wrote: On Saturday, 19 May 2012 at 01:28:32 UTC, H. S. Teoh wrote: You must be using Emacs with a GUI. No, I told you I hate Emacs. :P I've seen *other* people do it, and it's horribly slow. Well, let's just say that Emacs and gui in a

Re: Posix vs. Windows

2012-05-19 Thread Paulo Pinto
Am 19.05.2012 04:15, schrieb Mehrdad: On Saturday, 19 May 2012 at 02:10:31 UTC, Mehrdad wrote: Worse yet, no way in hell that a command-line tool would tell you your documentation is messed up. :P I should submit a correction: Nothing wrong with the command-line-ness per se -- it's just

Re: Posix vs. Windows

2012-05-19 Thread Mehrdad
On Saturday, 19 May 2012 at 06:47:48 UTC, H. S. Teoh wrote: One day it's bound to happen, though. Yeah I'd heard about some similar stuff too, waiting to hear about it. Substitute length( with size( instead of just length with size. Problem solved. :-) Er, you missed the entire point

Re: Posix vs. Windows

2012-05-19 Thread Dmitry Olshansky
On 19.05.2012 3:03, H. S. Teoh wrote: On Fri, May 18, 2012 at 11:08:26PM +0200, Mehrdad wrote: On Friday, 18 May 2012 at 19:40:35 UTC, H. S. Teoh wrote: This is one of those things that makes Windows (l)users wonder how we Unix people can stand using the shell all day -- their idea of shell is

Re: Posix vs. Windows

2012-05-19 Thread Stewart Gordon
On 19/05/2012 00:51, H. S. Teoh wrote: On Sat, May 19, 2012 at 01:21:56AM +0200, Mehrdad wrote: On Friday, 18 May 2012 at 23:02:18 UTC, H. S. Teoh wrote: I find IDEs more painful to use than scratching your nails on a chalkboard. The inability of running an IDE over a remote SSH session

Re: Posix vs. Windows

2012-05-19 Thread Sean Kelly
On May 18, 2012, at 5:39 PM, Mehrdad wfunct...@hotmail.com wrote: Yeah, imagine trying to name a method named getValue() to something else (probably because you realized that's not a great name :P). A HUGE time waster without refactoring tools, and last time I checked, no text-based tool

Re: Posix vs. Windows

2012-05-19 Thread Sean Kelly
On May 18, 2012, at 7:10 PM, Mehrdad wfunct...@hotmail.com wrote: 2. Okay, so that's clever. :P Now tell me what you do when you have dozens of lines in your source file like @property auto length() { return _range.length; } and you want to rename the field 'length'? How do you

Re: Posix vs. Windows

2012-05-19 Thread Paulo Pinto
On Saturday, 19 May 2012 at 13:49:28 UTC, Sean Kelly wrote: On May 18, 2012, at 7:10 PM, Mehrdad wfunct...@hotmail.com wrote: 2. Okay, so that's clever. :P Now tell me what you do when you have dozens of lines in your source file like @property auto length() { return _range.length; }

Re: Posix vs. Windows

2012-05-19 Thread Sean Kelly
On May 19, 2012, at 7:00 AM, Paulo Pinto pj...@progtools.org wrote: On Saturday, 19 May 2012 at 13:49:28 UTC, Sean Kelly wrote: On May 18, 2012, at 7:10 PM, Mehrdad wfunct...@hotmail.com wrote: 2. Okay, so that's clever. :P Now tell me what you do when you have dozens of lines in your source

Re: Posix vs. Windows

2012-05-19 Thread Paulo Pinto
Am 19.05.2012 15:35, schrieb Sean Kelly: On May 18, 2012, at 5:39 PM, Mehrdadwfunct...@hotmail.com wrote: Yeah, imagine trying to name a method named getValue() to something else (probably because you realized that's not a great name :P). A HUGE time waster without refactoring tools, and

Re: Posix vs. Windows

2012-05-19 Thread David Nadlinger
On Saturday, 19 May 2012 at 19:28:44 UTC, Paulo Pinto wrote: I like UNIX and the command line is invaluable for certain tasks regardless of the operating system, but sometimes I wonder if people realized that it is no longer 1970 and better ways to develop software do exist. …especially

Re: Posix vs. Windows

2012-05-19 Thread H. S. Teoh
On Sat, May 19, 2012 at 09:45:20AM +0200, Mehrdad wrote: On Saturday, 19 May 2012 at 06:47:48 UTC, H. S. Teoh wrote: [...] Substitute length( with size( instead of just length with size. Problem solved. :-) Er, you missed the entire point of my example. :\ Those were PROPERTIES. They

Re: Posix vs. Windows

2012-05-19 Thread H. S. Teoh
On Sat, May 19, 2012 at 09:43:13PM +0200, David Nadlinger wrote: On Saturday, 19 May 2012 at 19:28:44 UTC, Paulo Pinto wrote: I like UNIX and the command line is invaluable for certain tasks regardless of the operating system, but sometimes I wonder if people realized that it is no longer 1970

Re: Posix vs. Windows

2012-05-19 Thread Mehrdad
On Saturday, 19 May 2012 at 20:00:03 UTC, H. S. Teoh wrote: Now that _is_ pretty cool. :D yes! See, the thing is, one of the reasons I like vim in spite of its warts (yes it has warts, including what we're discussing here about syntax trees transformations) is that it gives me a _unified_

Re: Posix vs. Windows

2012-05-19 Thread Jérôme M. Berger
H. S. Teoh wrote: But this unification is also its downfall: plain text, as the lowest common denominator, also suffers from not being able to deal with syntax trees in a meaningful way. So what is needed is a way of plugging in arbitrary syntax tree parsers, such that you can have a

Re: Posix vs. Windows

2012-05-19 Thread Mehrdad
On Saturday, 19 May 2012 at 20:58:40 UTC, Jérôme M. Berger wrote: You mean like Emacs' Semantic mode? https://www.gnu.org/software/emacs/manual/html_node/emacs/Semantic.html O_O

Re: Posix vs. Windows

2012-05-19 Thread Sean Kelly
On May 19, 2012, at 1:35 PM, Mehrdad wfunct...@hotmail.com wrote: On Saturday, 19 May 2012 at 20:00:03 UTC, H. S. Teoh wrote: Yikes! I highly recommend using plain vanilla vim, no GUI Oh geez, that'll take a while lol. At least with GVim, I can discover the command names through the

Re: Posix vs. Windows

2012-05-19 Thread H. S. Teoh
On Sat, May 19, 2012 at 04:53:32PM -0700, Sean Kelly wrote: On May 19, 2012, at 1:35 PM, Mehrdad wfunct...@hotmail.com wrote: On Saturday, 19 May 2012 at 20:00:03 UTC, H. S. Teoh wrote: Yikes! I highly recommend using plain vanilla vim, no GUI Oh geez, that'll take a while lol. At

Re: Posix vs. Windows

2012-05-18 Thread Sean Kelly
On May 17, 2012, at 1:01 PM, Mehrdad wrote: From looking at Phobos, I'm understanding that the main difference between the implementation of various features for Posix systems as compared to Windows systems (aside from the API, etc.) is that Windows tends to do a lot of stuff *before* the

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really pretty terrible and Druntime doesn't have declarations for the Posix Windows interface anyway. Does

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 16:37:31 UTC, Sean Kelly wrote: I'd say that Windows tends to do more for you, while Posix provides lower-level APIs to accomplish the same thing. So Posix offers more control and is typically more robust as a result. There are a few exceptions however, like SEH has

Re: Posix vs. Windows

2012-05-18 Thread Alex Rønne Petersen
On 18-05-2012 18:42, H. S. Teoh wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really pretty terrible and Druntime doesn't have declarations for the

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 16:53:54 UTC, Alex Rønne Petersen wrote: On 18-05-2012 18:42, H. S. Teoh wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really

Re: Posix vs. Windows

2012-05-18 Thread Paulo Pinto
Am 18.05.2012 18:53, schrieb Alex Rønne Petersen: On 18-05-2012 18:42, H. S. Teoh wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really pretty terrible

Re: Posix vs. Windows

2012-05-18 Thread Adam Wilson
On Fri, 18 May 2012 09:42:54 -0700, H. S. Teoh hst...@quickfur.ath.cx wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really pretty terrible and

Re: Posix vs. Windows

2012-05-18 Thread Alex Rønne Petersen
On 18-05-2012 20:53, Paulo Pinto wrote: Am 18.05.2012 18:53, schrieb Alex Rønne Petersen: On 18-05-2012 18:42, H. S. Teoh wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix

Re: Posix vs. Windows

2012-05-18 Thread Sean Kelly
On May 18, 2012, at 9:42 AM, H. S. Teoh hst...@quickfur.ath.cx wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's really pretty terrible and Druntime

Re: Posix vs. Windows

2012-05-18 Thread Paulo Pinto
Am 18.05.2012 20:59, schrieb Alex Rønne Petersen: On 18-05-2012 20:53, Paulo Pinto wrote: Am 18.05.2012 18:53, schrieb Alex Rønne Petersen: On 18-05-2012 18:42, H. S. Teoh wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Fri, May 18, 2012 at 12:11:33PM -0700, Sean Kelly wrote: On May 18, 2012, at 9:42 AM, H. S. Teoh hst...@quickfur.ath.cx wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim

Re: Posix vs. Windows

2012-05-18 Thread Paulo Pinto
Am 18.05.2012 21:03, schrieb Adam Wilson: On Fri, 18 May 2012 09:42:54 -0700, H. S. Teoh hst...@quickfur.ath.cx wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support,

Re: Posix vs. Windows

2012-05-18 Thread Paulo Pinto
Am 18.05.2012 21:11, schrieb Sean Kelly: On May 18, 2012, at 9:42 AM, H. S. Teohhst...@quickfur.ath.cx wrote: On Fri, May 18, 2012 at 09:37:23AM -0700, Sean Kelly wrote: [...] If you're targeting Windows then use Windows APIs, if Posix then Posix. Windows does claim Posix support, but it's

Re: Posix vs. Windows

2012-05-18 Thread Simon
On 18/05/2012 20:41, H. S. Teoh wrote: Command shells have always been a train wreck on Windows, as far as I can remember. I haven't used Windows in any serious way for more than a decade now, so I can't speak for later versions of Windows, but I suspect things haven't changed much. This is one

Re: Posix vs. Windows

2012-05-18 Thread Sean Kelly
On May 18, 2012, at 9:50 AM, Mehrdad wfunct...@hotmail.com wrote: On Friday, 18 May 2012 at 16:37:31 UTC, Sean Kelly wrote: I'd say that Windows tends to do more for you, while Posix provides lower-level APIs to accomplish the same thing. So Posix offers more control and is typically more

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 21:08:28 UTC, Mehrdad wrote: On the other hand, I *do* wonder how CLI users get any work done without the ability to do GUI-related tasks (e.g. refactoring in Visual Studio/Eclipse/whatever?). :P Er, I should have said GUI-aided instead of GUI-related... It's just

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 19:40:35 UTC, H. S. Teoh wrote: This is one of those things that makes Windows (l)users wonder how we Unix people can stand using the shell all day -- their idea of shell is the DOS prompt (a veritable train wreck of train wrecks). If only they knew what a *real*

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Fri, May 18, 2012 at 11:08:26PM +0200, Mehrdad wrote: On Friday, 18 May 2012 at 19:40:35 UTC, H. S. Teoh wrote: This is one of those things that makes Windows (l)users wonder how we Unix people can stand using the shell all day -- their idea of shell is the DOS prompt (a veritable train

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 23:02:18 UTC, H. S. Teoh wrote: I find IDEs more painful to use than scratching your nails on a chalkboard. The inability of running an IDE over a remote SSH session without everything slowing down to a snail crawl makes it completely unusable for me. Have you

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Sat, May 19, 2012 at 01:21:56AM +0200, Mehrdad wrote: On Friday, 18 May 2012 at 23:02:18 UTC, H. S. Teoh wrote: I find IDEs more painful to use than scratching your nails on a chalkboard. The inability of running an IDE over a remote SSH session without everything slowing down to a snail

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Friday, 18 May 2012 at 23:50:18 UTC, H. S. Teoh wrote: Was it actually that slow? Anything that has a GUI is unacceptably slow over a remote connection, last time I checked. I'm not talking about connecting over a local network, which doesn't really count, but a connection over the

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Saturday, 19 May 2012 at 00:39:22 UTC, Mehrdad wrote: If you were to do this with some text-based tool, it'd be next to impossible IMO, since you'd have to edit XML settings, and keep track of all the repetitions (e.g. something might appear under a Debug node but not a Release node, etc.).

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Sat, May 19, 2012 at 02:39:20AM +0200, Mehrdad wrote: On Friday, 18 May 2012 at 23:50:18 UTC, H. S. Teoh wrote: Was it actually that slow? Anything that has a GUI is unacceptably slow over a remote connection, last time I checked. I'm not talking about connecting over a local network,

Re: Posix vs. Windows

2012-05-18 Thread H. S. Teoh
On Sat, May 19, 2012 at 02:45:00AM +0200, Mehrdad wrote: On Saturday, 19 May 2012 at 00:39:22 UTC, Mehrdad wrote: If you were to do this with some text-based tool, it'd be next to impossible IMO, since you'd have to edit XML settings, and keep track of all the repetitions (e.g. something might

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Saturday, 19 May 2012 at 01:28:32 UTC, H. S. Teoh wrote: You must be using Emacs with a GUI. No, I told you I hate Emacs. :P I've seen *other* people do it, and it's horribly slow. GUI-intensive apps aren't even on my radar. I don't do GUI. okay... maybe National Instruments's LabView

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Saturday, 19 May 2012 at 02:10:31 UTC, Mehrdad wrote: Worse yet, no way in hell that a command-line tool would tell you your documentation is messed up. :P I should submit a correction: Nothing wrong with the command-line-ness per se -- it's just that command-line tools happen to be

Re: Posix vs. Windows

2012-05-18 Thread Mehrdad
On Saturday, 19 May 2012 at 01:33:34 UTC, H. S. Teoh wrote: [...] That just went way over my head. Why do you need to use some fancy feature with some fancy name just for changing some settings? But over the years, I've become convinced that anything worth doing can always be done at the

Posix vs. Windows

2012-05-17 Thread Mehrdad
From looking at Phobos, I'm understanding that the main difference between the implementation of various features for Posix systems as compared to Windows systems (aside from the API, etc.) is that Windows tends to do a lot of stuff *before* the program is loaded (and hence requires special