Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 12:34:22 Mark via Digitalmars-d wrote: > On Friday, 3 November 2017 at 02:32:41 UTC, Jonathan M Davis > > wrote: > > Pretty much the only case where out contracts work well is when > > you have a very specific, testable condition that all results > > must have and which

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Saturday, 4 November 2017 at 03:19:00 UTC, Jonathan M Davis wrote: maybe you did something previously with dmd that resulted in a borked install that has precedence in the path over the properly installed one - though I wouldn't think that you'd manage that on multiple systems like that. So,

Re: [OT] Windows dying

2017-11-03 Thread codephantom via Digitalmars-d
On Saturday, 4 November 2017 at 02:33:35 UTC, Computermatronic wrote: Can we please get back on topic please? Umm... we haven't been 'on topic' since about 210 threads ago ;-) When...Adam decided to claim that "..the few that don't will have little trouble understanding why they need it [VS+W

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 01:28:24 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 19:36:51 UTC, Jonathan M Davis > > wrote: > > What version of dmd are you running? > > > > - Jonathan M Davis > > > DMD (installed on

Re: [OT] Windows dying

2017-11-03 Thread Computermatronic via Digitalmars-d
On Friday, 3 November 2017 at 18:26:54 UTC, Joakim wrote: On Friday, 3 November 2017 at 18:08:54 UTC, 12345swordy wrote: On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote: Most programmers will one day be coding on mobile devices, though I admit I'm in a small, early-adopting minority

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Friday, 3 November 2017 at 19:36:51 UTC, Jonathan M Davis wrote: What version of dmd are you running? - Jonathan M Davis DMD (installed on..) FreeBSD: DMD64 D Compiler v2.076.1 Debian: dmd_2.076.1-0_amd64.deb Centos: 2.076.1/dmd-

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Friday, 3 November 2017 at 19:36:51 UTC, Jonathan M Davis wrote: Well, I won't deny that most of the core devs don't use FreeBSD, and the auto-tester situation with FreeBSD needs to be improved, but that code compiles just fine on my TrueOS system with dmd master, and that code is not the so

Re: [OT] Windows dying

2017-11-03 Thread jmh530 via Digitalmars-d
On Friday, 3 November 2017 at 21:33:19 UTC, Joakim wrote: Sure you can, with the right adapter: https://www.lifewire.com/how-to-connect-usb-devices-to-ipad-1999862 I routinely transfer HD video from my Android devices to a couple TB external slim HDs. I'm not disputing Android. Just saying

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Friday, 3 November 2017 at 20:36:57 UTC, jmh530 wrote: On Friday, 3 November 2017 at 20:05:52 UTC, Joakim wrote: 5) I can easily move my data, etc. to another device if I decide to. Check, mobile devices usually support such transfer better than PCs. "mobile devices" meaning Android

Re: Anticipate the usage of Visual Studio 2017 Developer Command Prompt?

2017-11-03 Thread Andre Pany via Digitalmars-d
On Friday, 3 November 2017 at 11:52:10 UTC, Andre Pany wrote: Hi, Visual Studio has a batch file which sets all needed environment variables for the Microsoft linker (LIB environment variables points to all necessary folders). Even the folder containing the link.exe for the specified architec

Re: [OT] Windows dying

2017-11-03 Thread jmh530 via Digitalmars-d
On Friday, 3 November 2017 at 20:05:52 UTC, Joakim wrote: 5) I can easily move my data, etc. to another device if I decide to. Check, mobile devices usually support such transfer better than PCs. "mobile devices" meaning Android devices. I can't stick a USB flash drive in a iPad.

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Friday, 3 November 2017 at 19:23:51 UTC, Craig Dillabaugh wrote: On Friday, 3 November 2017 at 18:26:54 UTC, Joakim wrote: On Friday, 3 November 2017 at 18:08:54 UTC, 12345swordy wrote: On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote: Most programmers will one day be coding on mob

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 11:04:12 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 10:26:42 UTC, Jonathan M Davis > > wrote: > > I think that there's a decent chance that some of Phobos won't > > work with XP though > > Same for FreeBSD ;-) > > e.g: below compile fine on

Re: [OT] Windows dying

2017-11-03 Thread Craig Dillabaugh via Digitalmars-d
On Friday, 3 November 2017 at 18:26:54 UTC, Joakim wrote: On Friday, 3 November 2017 at 18:08:54 UTC, 12345swordy wrote: On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote: Most programmers will one day be coding on mobile devices, though I admit I'm in a small, early-adopting minority

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-11-03 Thread CRAIG DILLABAUGH via Digitalmars-d
On Friday, 3 November 2017 at 18:44:30 UTC, Arun Chandrasekaran wrote: On Monday, 30 October 2017 at 17:23:02 UTC, Daniel Kozak wrote: Maybe this one: clip vibedtest ~master: building configuration "dmd"... Linking... /usr/bin/ld: cannot find -levent /usr/bin/ld: cannot find -levent_pthrea

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-11-03 Thread Neia Neutuladh via Digitalmars-d
On Friday, 3 November 2017 at 18:44:30 UTC, Arun Chandrasekaran wrote: I tried to run the example, and I'm struck with a linker error DMD v2.076.1 and LDC 1.4.0. /usr/bin/ld: cannot find -levent /usr/bin/ld: cannot find -levent_pthreads Did you try installing libevent and libevent-pthreads?

Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-11-03 Thread Arun Chandrasekaran via Digitalmars-d
On Monday, 30 October 2017 at 17:23:02 UTC, Daniel Kozak wrote: Maybe this one: import vibe.d; import std.regex; import std.array : appender; static reg = ctRegex!"^/greeting/([a-z]+)$"; void main() { setupWorkerThreads(logicalProcessorCount); runWorkerTaskDist(&runServer); runAppl

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Friday, 3 November 2017 at 18:08:54 UTC, 12345swordy wrote: On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote: Most programmers will one day be coding on mobile devices, though I admit I'm in a small, early-adopting minority now: http://bergie.iki.fi/blog/six-weeks-working-android/

Re: [OT] Windows dying

2017-11-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 3 November 2017 at 14:29:27 UTC, jmh530 wrote: You want to be able to compile D programs that go on a smart phone because that's where the growth of computer users is coming from. That's not all that obvious. I think a lot of the adults who got computers in the mid 90s did so to be

Re: [OT] Windows dying

2017-11-03 Thread 12345swordy via Digitalmars-d
On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote: Most programmers will one day be coding on mobile devices, though I admit I'm in a small, early-adopting minority now: http://bergie.iki.fi/blog/six-weeks-working-android/ A blog post is not evidence that the majority of programmers

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-03 Thread Nick Treleaven via Digitalmars-d
On Friday, 3 November 2017 at 02:32:41 UTC, Jonathan M Davis wrote: Personally, I hate how verbose they are, but my solution is just not to use them. And IMHO, the only place that they add real value is in classes, where their success or failure can be &&ed or ||ed based on how that should work

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Friday, 3 November 2017 at 14:29:27 UTC, jmh530 wrote: On Friday, 3 November 2017 at 14:12:56 UTC, Joakim wrote: [snip] But that established PC userbase shrinking is not what you should be worried about. I've talked to multiple middle-class consumers in developing markets- they would be c

Re: [OT] Windows dying

2017-11-03 Thread jmh530 via Digitalmars-d
On Friday, 3 November 2017 at 14:12:56 UTC, Joakim wrote: [snip] But that established PC userbase shrinking is not what you should be worried about. I've talked to multiple middle-class consumers in developing markets- they would be considered poor in the US if you converted their income to

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Friday, 3 November 2017 at 11:57:58 UTC, Tony wrote: On Friday, 3 November 2017 at 09:16:42 UTC, Joakim wrote: Why do predictions about the future matter when at the present Windows dominates the desktop and is also strong in the server space? Because that desktop market matters much les

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-03 Thread Mark via Digitalmars-d
On Friday, 3 November 2017 at 02:32:41 UTC, Jonathan M Davis wrote: Pretty much the only case where out contracts work well is when you have a very specific, testable condition that all results must have and which does not depend on the input, and most functions simply don't work that way. - J

Re: What is the FreeBSD situation?

2017-11-03 Thread Rainer Schuetze via Digitalmars-d
On 03.11.2017 10:40, Walter Bright wrote: On 11/2/2017 7:43 PM, Jonathan M Davis wrote: I thought that that was just when explicitly loading a .dll or .so file via something like dlopen or LoadLibrary instead of linking against it, That's right. But given our resource limitations, I sugges

Re: [OT] Windows dying

2017-11-03 Thread Tony via Digitalmars-d
On Friday, 3 November 2017 at 09:16:42 UTC, Joakim wrote: Why do predictions about the future matter when at the present Windows dominates the desktop and is also strong in the server space? Because that desktop market matters much less than it did before, see the current mobile dominance,

Anticipate the usage of Visual Studio 2017 Developer Command Prompt?

2017-11-03 Thread Andre Pany via Digitalmars-d
Hi, Visual Studio has a batch file which sets all needed environment variables for the Microsoft linker (LIB environment variables points to all necessary folders). Even the folder containing the link.exe for the specified architecture (x86, amd64) is added to the path variable as first path.

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Friday, 3 November 2017 at 10:26:42 UTC, Jonathan M Davis wrote: I think that there's a decent chance that some of Phobos won't work with XP though Same for FreeBSD ;-) e.g: below compile fine on Windows, but on FreeBSD (11 and 12), I get a compile time error: Error: template instance

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Friday, 3 November 2017 at 10:26:42 UTC, Jonathan M Davis wrote: So, feel free to use XP if you want to, but you're using it at your own risk, and if something doesn't work, then you're just going to be out of luck. that's ok, if it works great, if not, oh well. at least it executes ;-) e.

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 09:50:37 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 09:40:01 UTC, Walter Bright wrote: > > Note that dmd still runs on Windows XP, though it is not > > officially supported. You just need to be careful about using > > TLS variables on it :-( >

Re: What is the FreeBSD situation?

2017-11-03 Thread codephantom via Digitalmars-d
On Friday, 3 November 2017 at 09:40:01 UTC, Walter Bright wrote: Note that dmd still runs on Windows XP, though it is not officially supported. You just need to be careful about using TLS variables on it :-( Please keep it that way ;-) btw. dmd runs just fine on FreeBSD 12 too, as I just test

Re: What is the FreeBSD situation?

2017-11-03 Thread Walter Bright via Digitalmars-d
On 11/2/2017 7:43 PM, Jonathan M Davis wrote: I thought that that was just when explicitly loading a .dll or .so file via something like dlopen or LoadLibrary instead of linking against it, That's right. But given our resource limitations, I suggest the most pragmatic thing to do is support t

Re: [OT] Windows dying

2017-11-03 Thread Joakim via Digitalmars-d
On Thursday, 2 November 2017 at 05:13:42 UTC, H. S. Teoh wrote: One thing is clear, though: claiming that Windows is "dead" is, frankly, ridiculous. Even a non-Windows person like me who rarely has any reason to notice things Windows-related, can see enough circumstantial evidence around me th

Re: What is the FreeBSD situation?

2017-11-03 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-03 03:43, Jonathan M Davis wrote: So, I fully expect that there are times when being able to version the source code based on the OS version (or the libc version if you're talking about Linux) would be needed. However, I don't know if it's needed often enough for the compiler to direc