Re: stdx.data.json needs a layer on top

2015-06-25 Thread Sönke Ludwig via Digitalmars-d
Am 25.06.2015 um 07:52 schrieb Sönke Ludwig: (...) auto j = parseJSONValue(q{ Should have been toJSONValue.

Re: function default parameters lost

2015-06-25 Thread tcak via Digitalmars-d-learn
On Thursday, 25 June 2015 at 04:43:51 UTC, Paul D Anderson wrote: I'm trying to pass a function pointer while keeping the default parameter values intact. Given the following: [...] I filed a bug about 2-3 months ago about default parameters similar to yours. My guess is that it hasn't been

Re: stdx.data.json needs a layer on top

2015-06-25 Thread Sönke Ludwig via Digitalmars-d
Am 24.06.2015 um 23:50 schrieb Martin Nowak: On 06/23/2015 04:06 PM, Sönke Ludwig wrote: Do you, or anyone else, have further ideas for higher level functionality, or any concrete examples in other standard libraries? Allowing to lazily foreach over elements would be nice. foreach (elem;

Re: auto ref is on the docket

2015-06-25 Thread kink via Digitalmars-d
On Wednesday, 24 June 2015 at 23:30:53 UTC, Jonathan M Davis wrote: But this has _nothing_ to do with scope, and scope ref was already rejected. The whole point of this is support having a function accept both rvalues and lvalues, not to do anything with scope. And given that what scope does

[Issue 14713] dmd -ofpath/to/bar calls mkdir -p to create a file anywhere

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14713 Timothee Cour timothee.co...@gmail.com changed: What|Removed |Added CC|

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/24/15 11:12 PM, Steven Schveighoffer wrote: So I actually implemented this. I made it a std.internal type so it can be used wherever you need to port string concatenation to a chain. Seems like Andrei has nixed this idea: Please no breakages and no clever schemes and no overengineering.

Re: Abstract sockets (linux)

2015-06-25 Thread freeman via Digitalmars-d-learn
On Thursday, 25 June 2015 at 18:50:29 UTC, Daniel Kozak wrote: Any pointers? instead of: string socket_name = \0/var/run/ptmd.socket; try: string socket_name = /var/run/ptmd.socket; works for me It is the null character that makes it an abstract socket (see man unix). There is no file

Re: Abstract sockets (linux)

2015-06-25 Thread Ali Çehreli via Digitalmars-d-learn
On 06/25/2015 08:56 AM, freeman wrote: I am having trouble using abstract sockets on Linux. Here is sample python code that works, which works: ptm_sockname = \0/var/run/ptmd.socket sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(ptm_sockname)

Re: New names - 2.068 roundup

2015-06-25 Thread Mathias Lang via Digitalmars-d
2015-06-25 21:28 GMT+02:00 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com: On 6/24/15 11:12 PM, Steven Schveighoffer wrote: So I actually implemented this. I made it a std.internal type so it can be used wherever you need to port string concatenation to a chain. Seems

Re: Building DMD on SmartOS

2015-06-25 Thread Jason King via Digitalmars-d
The first thing I would suggest running the program via truss and see if any calls to write() are returning EBADF.. If so, see what fd# is being passed (or if something is calling close() on fd1). On Thu, Jun 25, 2015 at 2:57 PM, flamencofantasy via Digitalmars-d digitalmars-d@puremagic.com

Re: std.path.toAbsolutePath / toNormalizedPath / toRelativePath

2015-06-25 Thread Timon Gehr via Digitalmars-d
On 06/25/2015 04:24 PM, Jonathan M Davis wrote: On Thursday, 25 June 2015 at 13:35:30 UTC, Vladimir Panteleev wrote: On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff Rationale: - The eager

Re: Using C library libsndfile with D

2015-06-25 Thread bachmeier via Digitalmars-d-learn
On Thursday, 25 June 2015 at 18:29:23 UTC, Ali Çehreli wrote: D has the pragma(lib) feature where you can tell the compiler to link with a specific library as well. For example: pragma(lib, curl); You would probably use sndfile in your case (not sure): pragma(lib, sndfile); This is

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/25/15 3:48 PM, Mathias Lang via Digitalmars-d wrote: 2015-06-25 21:28 GMT+02:00 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com mailto:digitalmars-d@puremagic.com: On 6/24/15 11:12 PM, Steven Schveighoffer wrote: So I actually implemented this. I made it a

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Jacob Carlborg via Digitalmars-d
On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher adaption rate. -- /Jacob Carlborg

Re: Using C library libsndfile with D

2015-06-25 Thread Adam D. Ruppe via Digitalmars-d-learn
You probably need to make a .lib file from the dll too. The implib program does that. If you don't have it, if you wanna email me the libsoundfile.dll program, I'll run it and make the .lib for you.

Re: New names - 2.068 roundup

2015-06-25 Thread Walter Bright via Digitalmars-d
Please, no code breakage because of renaming.

Re: I released my first library!

2015-06-25 Thread Rikki Cattermole via Digitalmars-d
On 26/06/2015 12:45 p.m., Kelet wrote: On Thursday, 25 June 2015 at 14:56:34 UTC, Vladde Nordholm wrote: For the past week I've been working on my first small cross-platform gamedev-ish console rendering library for d, and I call it clayers. It has been a fun learning process, as I've used many

[Issue 14737] New: [2.068 beta] Array concatenation fails in enum declaration

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14737 Issue ID: 14737 Summary: [2.068 beta] Array concatenation fails in enum declaration Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: I released my first library!

2015-06-25 Thread data man via Digitalmars-d
On Thursday, 25 June 2015 at 14:56:34 UTC, Vladde Nordholm wrote: For the past week I've been working on my first small cross-platform gamedev-ish console rendering library for d, and I call it clayers. It has been a fun learning process, as I've used many new programs and features. [...]

[Issue 14735] [REG2.068-b1] std.string.indexOf cannot deduce function for char argument

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14735 Mike slavo5...@yahoo.com changed: What|Removed |Added CC||slavo5...@yahoo.com --- Comment

Re: Presentation Intro to D: What works?

2015-06-25 Thread Rikki Cattermole via Digitalmars-d
On 26/06/2015 1:46 p.m., rsw0x wrote: On Thursday, 25 June 2015 at 12:39:11 UTC, qznc wrote: Looks like I will give a talk about D to our local Functional Programming User Group in August. Feel free to join, if you can be in Karlsruhe, Germany:

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Mike Parker via Digitalmars-d
On 6/26/2015 5:04 AM, Tofu Ninja wrote: On Thursday, 25 June 2015 at 13:04:12 UTC, Vladimir Panteleev wrote: So, one option is to stay consistent with these additions, and go with upperCaser and lowerCaser, even if those sound a bit odd. Why not upperCaseSetter/lowerCaseSetter? Bit longer but

[Issue 14737] [2.068 beta] Array concatenation fails in enum declaration

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14737 --- Comment #1 from briancsch...@gmail.com --- Digger has traced this back to DMD commit 0b3641ad960ba7f4d8d5f5a23fec52e506017bd6 --

Range code and inference errors

2015-06-25 Thread Mathias Lang via Digitalmars-d
Hi everyone, I've been doing quite a lot of range-based code lately and I've been bugged with an UX problem that's IMHO a real bummer for range usage to new users. Take the example code: ``` import std.algorithm; void main() { auto foo = [ foo: foo, bar: bar, foobar: foobar ];

Re: Beta D 2.068.0-b1

2015-06-25 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 25 June 2015 at 04:06:15 UTC, Ilya Yaroshenko wrote: Would Summator be merged? That sure looks useful, but I lack the time for a review and if it wasn't in master when we merged master into stable it won't be part of the release.

Re: Beta D 2.068.0-b1

2015-06-25 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 24 June 2015 at 23:59:43 UTC, Mike wrote: * If you do wish to pursue it please polish it up and rebase it so it has a chance Which doesn't increase our review capacity, it would make more sense to only spent more effort on a pull on request. * If you see a pull request that

Re: hello world executable size

2015-06-25 Thread Joakim via Digitalmars-d
On Thursday, 25 June 2015 at 11:07:11 UTC, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 11:05:00 UTC, Joakim wrote: I was curious if binary sizes had decreased because of the changes Ilya had been making to try and scope imports better and make them more selective:

Re: Phobos addition formal review: std.experimental.allocator

2015-06-25 Thread Dicebot via Digitalmars-d
1 day remaining

std.path.toAbsolutePath / toNormalizedPath / toRelativePath

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff Rationale: - The eager versions are called absolutePath, normalizedPath, relativePath. If anything, the current naming scheme is opposite to some

Book announcements! Twp-d and Developing with compile time in mind updates!

2015-06-25 Thread Rikki Cattermole via Digitalmars-d-announce
Hey everyone! TWP-D: So back in February I started streaming on livecoding.tv. For 4-5 months I spent it writing The way to program - Let's think like a D(eveloper). I had great turn out (especially since I started when it was in closed beta). Also got lots of people interested in D. Anyway

std.algorithm.sorting.ordered, strictlyOrdered

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff Rationale: - The function is very closely related to isSorted. - The is prefix strongly indicates that the return value is a bool, and removes

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/24/15 11:40 PM, Adam D. Ruppe wrote: On Thursday, 25 June 2015 at 03:12:47 UTC, Steven Schveighoffer wrote: A curious thing though. All the tests for things like: assert(setExtension(file, ext) == file.ext); do not trigger a call to eager. But it passes? That's bizarre. (My dmd is

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/24/15 12:10 PM, Iain Buclaw wrote: http://www.microsoft.com/en-us/server-cloud/products/windows-server-2003/ Which means that (strictly speaking), in 3 weeks time, there will be *no* operating system that supports CodeView debugging. This is an elongated way of asking Can I remove -gc

Re: hello world executable size

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 11:05:00 UTC, Joakim wrote: I was curious if binary sizes had decreased because of the changes Ilya had been making to try and scope imports better and make them more selective: http://digger.k3.1azy.net/trend/ I used nm to try and find some of the symbols using

Re: New names - 2.068 roundup

2015-06-25 Thread via Digitalmars-d
On Wednesday, 24 June 2015 at 22:12:10 UTC, Brad Anderson wrote: On Wednesday, 24 June 2015 at 22:11:03 UTC, Brad Anderson wrote: On Wednesday, 24 June 2015 at 01:04:01 UTC, Adam D. Ruppe wrote: We disagreed on this on irc, but I ask you to consider the following which limits the code breakage

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 24 June 2015 at 05:20:38 UTC, Jonathan M Davis wrote: When adding lazy versions in the past, for better or worse, we've generally gone for using nouns, whereas you're suggesting adjectives based coming from the past tense of a verb (though the verb to case has nothing with the

[Issue 14731] [REG2.068a] Error location insufficient when CTFE

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14731 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 5517] SEGV: assert(false) in release mode

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5517 Shachar Shemesh shac...@shemesh.biz changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Beta D 2.068.0-b1

2015-06-25 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 25 June 2015 at 07:48:24 UTC, Iain Buclaw wrote: More importantly, will all cross-platform regressions introduced in the development cycle of 2.068 be fixed? :-) Sure, we intend to fix all reported regressions.

Re: New names - 2.068 roundup

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 24 June 2015 at 21:06:43 UTC, deadalnix wrote: I'd like to raise concern about the Arguments name in std.meta . That is not the first time I do so, but this still needs to change. I haven't participated with the discussion but I agree with the points in your post. I discussed

hello world executable size

2015-06-25 Thread Joakim via Digitalmars-d
I was curious if binary sizes had decreased because of the changes Ilya had been making to try and scope imports better and make them more selective: https://github.com/D-Programming-Language/phobos/pulls?utf8=%E2%9C%93q=is%3Apr+author%3A9il+clean Hello world (void main(){ import std.stdio;

Re: std.experimental.color, request reviews

2015-06-25 Thread Manu via Digitalmars-d
How about HSx ? That's the best I've got! :P On 25 June 2015 at 15:45, Manu turkey...@gmail.com wrote: On 25 June 2015 at 15:18, Danni Coy via Digitalmars-d digitalmars-d@puremagic.com wrote: I would probably go with perceptual or something like it That sounds like you're talking about Lab

Re: PHP verses C#.NET verses D.

2015-06-25 Thread Etienne via Digitalmars-d
On Wednesday, 24 June 2015 at 05:34:08 UTC, Nick B wrote: On Tuesday, 23 June 2015 at 11:22:40 UTC, Etienne Cimon wrote: Nick I don't have current performance results because I've been focused on adding features, but these results were taken on a previous version:

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/24/15 11:40 PM, Adam D. Ruppe wrote: (An interesting point here though is since alias this DOES return a string, any duck-type checks or implicit conversion checks will also pass what it passes... and work, it'll just silently allocate the string. Which is no regression! The status quo is

std.uni.toCapitalized

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff Rationale: Same as toLowerCase/toUpperCase. Suggested new name: Following the same pattern as whatever new toLowerCase/toUpperCase names will be

Re: hello world executable size

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 11:59:24 UTC, Joakim wrote: On Thursday, 25 June 2015 at 11:07:11 UTC, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 11:05:00 UTC, Joakim wrote: I was curious if binary sizes had decreased because of the changes Ilya had been making to try and scope

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Jacob Carlborg via Digitalmars-d
On 24/06/15 22:56, Steven Schveighoffer wrote: I recently started learning ruby. Going through a tutorial, I came across this gem (no pun intended) when talking about how both intern and to_sym do the same thing: Hmm, I didn't know about intern. I've never seen in the wild. Why have

[Issue 14572] cannot build dmd from source anymore: 'g++ -m64: No such file or directory'

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14572 Mike slavo5...@yahoo.com changed: What|Removed |Added CC||slavo5...@yahoo.com --- Comment

Re: Beta D 2.068.0-b1

2015-06-25 Thread Mike via Digitalmars-d-announce
On Thursday, 25 June 2015 at 10:30:29 UTC, Martin Nowak wrote: On Wednesday, 24 June 2015 at 23:59:43 UTC, Mike wrote: * If you do wish to pursue it please polish it up and rebase it so it has a chance Which doesn't increase our review capacity, it would make more sense to only spent more

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 24 June 2015 at 20:03:35 UTC, Vladimir Panteleev wrote: On Wednesday, 24 June 2015 at 13:35:06 UTC, Vladimir Panteleev wrote: The problem with toXCase is that there is neither a noun for an upper-case transform, nor a verb for such an operation, such as e.g. capitalization and

Re: Coedit 1 - update 1

2015-06-25 Thread tired_eyes via Digitalmars-d-announce
On Thursday, 25 June 2015 at 04:10:15 UTC, Basile Burg wrote: This is the first update for Coedit 1, and probably the only. Errr... why so pessimistic?

Re: hello world executable size

2015-06-25 Thread Joakim via Digitalmars-d
On Thursday, 25 June 2015 at 12:04:26 UTC, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 11:59:24 UTC, Joakim wrote: Took 90 MiB of JSON to see it, but finally got it, funny how executable size swings wildly up to five times larger over the years. :) Anyway, I saw that viewer when you

std.path.defaultExt

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: [...] Same rationale as setExt/setExtension: the name difference from defaultExtension is abbreviating the word Extension to Ext. Really should've been in the same thread, I simply missed it. Suggested new name:

Re: Beta D 2.068.0-b1

2015-06-25 Thread Mike via Digitalmars-d-announce
On Thursday, 25 June 2015 at 10:42:46 UTC, Mike wrote: No, let's not play that game. Last minute additions are never a good idea and the next release is already coming in 2 month. I hope that more regular releases will help people to get their stuff ready in time. Then please flag things

Presentation Intro to D: What works?

2015-06-25 Thread qznc via Digitalmars-d
Looks like I will give a talk about D to our local Functional Programming User Group in August. Feel free to join, if you can be in Karlsruhe, Germany: http://www.meetup.com/de/The-Karlsruhe-Functional-Programmers-Meetup-Group/events/22343/ As far as I know, pretty much nobody there knows

Naming Voldemort Types

2015-06-25 Thread Nordlöw
I've noticed that the namings of lazy range voldemort types are inconsistent in Phobos. Some are named `XResult` others just `Result`, given that `x` is the parenting algorithm. What's the policy here? I would prefer the verbose `XResult` as it's more self documenting when debugging or using

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Jacob Carlborg via Digitalmars-d
On 24/06/15 22:07, Suliman wrote: If not to look at docs I would say that size is bite size, count - number of elements. So what is length I can't say. Probably I missed length and count. length and size are the exact same thing. They return the number of elements of an array or string.

Re: Using C library libsndfile with D

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/25/15 3:51 PM, bachmeier wrote: On Thursday, 25 June 2015 at 18:29:23 UTC, Ali Çehreli wrote: D has the pragma(lib) feature where you can tell the compiler to link with a specific library as well. For example: pragma(lib, curl); You would probably use sndfile in your case (not sure):

Re: Using C library libsndfile with D

2015-06-25 Thread Ali Çehreli via Digitalmars-d-learn
On 06/25/2015 12:51 PM, bachmeier wrote: pragma(lib, sndfile); This is the first time I've heard of pragma(lib). It's a nice feature that should be added to the compiler documentation. They are all here: http://dlang.org/pragma.html pragma(inline) is the latest, which will be

Re: Using C library libsndfile with D

2015-06-25 Thread bachmeier via Digitalmars-d-learn
On Thursday, 25 June 2015 at 19:54:34 UTC, Ali Çehreli wrote: They are all here: http://dlang.org/pragma.html pragma(inline) is the latest, which will be available in 2.068. Ali I meant on this page: http://dlang.org/dmd-linux.html Someone starting out with D might not look at the

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher adaption rate. With their track record of every

Re: Using C library libsndfile with D

2015-06-25 Thread bachmeier via Digitalmars-d-learn
On Thursday, 25 June 2015 at 19:54:40 UTC, Steven Schveighoffer wrote: http://dlang.org/pragma.html#lib It's got some problems though. Not everyone's system is the same. -Steve Okay. Then I guess it should not be pushed.

Re: Beta D 2.068.0-b1

2015-06-25 Thread rsw0x via Digitalmars-d-announce
On Wednesday, 24 June 2015 at 23:14:05 UTC, Martin Nowak wrote: First beta for the 2.068.0 release. http://downloads.dlang.org/pre-releases/2.x/2.068.0/ http://ftp.digitalmars.com/ Also available on Travis-CI as dmd-2.068.0-b1. A changelog containing all the upcoming changes will be

[Issue 14733] New: unable to link with odbc on linux. dmd_2.068.0~b1-0_i386.deb

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14733 Issue ID: 14733 Summary: unable to link with odbc on linux. dmd_2.068.0~b1-0_i386.deb Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread ponce via Digitalmars-d
On Wednesday, 24 June 2015 at 16:10:44 UTC, Iain Buclaw wrote: http://www.microsoft.com/en-us/server-cloud/products/windows-server-2003/ Which means that (strictly speaking), in 3 weeks time, there will be *no* operating system that supports CodeView debugging. This is an elongated way of

Re: auto ref is on the docket

2015-06-25 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 25 June 2015 at 08:04:09 UTC, kink wrote: On Wednesday, 24 June 2015 at 23:30:53 UTC, Jonathan M Davis wrote: But this has _nothing_ to do with scope, and scope ref was already rejected. The whole point of this is support having a function accept both rvalues and lvalues, not to

Re: auto ref is on the docket

2015-06-25 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 25 June 2015 at 08:10:06 UTC, Marc Schütz wrote: On Wednesday, 24 June 2015 at 17:47:51 UTC, Namespace wrote: On Wednesday, 24 June 2015 at 17:45:15 UTC, Marc Schütz wrote: On Wednesday, 24 June 2015 at 09:54:01 UTC, Jonathan M Davis wrote: On Wednesday, 24 June 2015 at 09:26:49

Re: Building DMD on SmartOS

2015-06-25 Thread flamencofantasy via Digitalmars-d
On Sunday, 17 May 2015 at 19:36:54 UTC, Joakim wrote: On Tuesday, 5 May 2015 at 15:41:47 UTC, Joakim wrote: On Tuesday, 5 May 2015 at 05:42:33 UTC, Kai Nacke wrote: BTW: You can by-pass the Solaris ld by setting environment variable LD_ALTEXEC to the ld binary you want to use. Thanks for the

Re: New names - 2.068 roundup

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 19:55:41 UTC, Steven Schveighoffer wrote: Yeah, I agree for existing names, but these are unreleased new names. I thought the idea was to use this trick to avoid introducing the new names, and instead change the established names in a mostly-backwards-compatible

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Tofu Ninja via Digitalmars-d
On Thursday, 25 June 2015 at 13:04:12 UTC, Vladimir Panteleev wrote: So, one option is to stay consistent with these additions, and go with upperCaser and lowerCaser, even if those sound a bit odd. Why not upperCaseSetter/lowerCaseSetter? Bit longer but upper case and lower case don't have a

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/25/15 3:57 PM, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 19:55:41 UTC, Steven Schveighoffer wrote: Yeah, I agree for existing names, but these are unreleased new names. I thought the idea was to use this trick to avoid introducing the new names, and instead change the

Re: New names - 2.068 roundup

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/25/15 3:57 PM, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 19:55:41 UTC, Steven Schveighoffer wrote: Yeah, I agree for existing names, but these are unreleased new names. I thought the idea was to use this trick to avoid introducing the new names, and instead change the

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Dmitry Olshansky via Digitalmars-d
On 25-Jun-2015 23:06, Steven Schveighoffer wrote: On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much better, I think it will get a much higher

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d
On 6/25/15 4:10 PM, Dmitry Olshansky wrote: On 25-Jun-2015 23:06, Steven Schveighoffer wrote: On 6/25/15 3:58 PM, Jacob Carlborg wrote: On 25/06/15 18:46, Nick Sabalausky wrote: Heh, that's awesome actually :) Got a source for that? Windows 8 was a big failure. Windows 10 is looking much

Re: auto ref is on the docket

2015-06-25 Thread Timon Gehr via Digitalmars-d
On 06/25/2015 10:28 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: trying to expand it with scope ref as if that were simply an extension of scope makes no sense. Before we can even consider what something like scope ref might mean, we'd have to properly define what scope means.

Re: Importing local modules in C style

2015-06-25 Thread jmh530 via Digitalmars-d-learn
On Thursday, 25 June 2015 at 17:20:46 UTC, jmh530 wrote: On Thursday, 25 June 2015 at 14:37:28 UTC, Binarydepth wrote: I organize some exercises in some source files, it's more how I like to work with C. I'm used to organize source files this way and I was wondering if this was possible with

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Timon Gehr via Digitalmars-d
On 06/25/2015 04:10 PM, Vladimir Panteleev wrote: And, IMHO, this: fileName.readText.lowerCased.detabbed.toFile(fileName.withExtension(.foo)) looks much better than this: fileName.readText.lowerCaser.detabber.toFile(fileName.extensionSetter(.foo)) Definitely. The existing functions

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 20:41:13 UTC, Timon Gehr wrote: On 06/25/2015 04:10 PM, Vladimir Panteleev wrote: And, IMHO, this: fileName.readText.lowerCased.detabbed.toFile(fileName.withExtension(.foo)) looks much better than this:

Re: Naming Voldemort Types

2015-06-25 Thread Walter Bright via Digitalmars-d
On 6/25/2015 11:54 AM, Andrei Alexandrescu wrote: On 6/25/15 6:12 AM, Nordlöw wrote: I've noticed that the namings of lazy range voldemort types are inconsistent in Phobos. Some are named `XResult` others just `Result`, given that `x` is the parenting algorithm. What's the policy here? I would

Re: New names - 2.068 roundup

2015-06-25 Thread Walter Bright via Digitalmars-d
Also, making PRs for this is fine, but please hold off on pulling until Andrei is back and can check.

Re: Building DMD on SmartOS

2015-06-25 Thread flamencofantasy via Digitalmars-d
On Thursday, 25 June 2015 at 20:26:05 UTC, Jason King wrote: The first thing I would suggest running the program via truss and see if any calls to write() are returning EBADF.. If so, see what fd# is being passed (or if something is calling close() on fd1). On Thu, Jun 25, 2015 at 2:57 PM,

std.string.entabber, detabber, left/right/centerJustifier, soundexer

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff So, there is some discussion about these here already: http://forum.dlang.org/post/ubfmdrorjtasgeung...@forum.dlang.org There seems to be varying

Re: New names - 2.068 roundup

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 20:55:36 UTC, Walter Bright wrote: Also, making PRs for this is fine, but please hold off on pulling until Andrei is back and can check. Do you know if Andrei will be back before RC1 (or the release, at least)? Missing the release defeats the entire point of this

Re: New names - 2.068 roundup

2015-06-25 Thread Walter Bright via Digitalmars-d
On 6/25/2015 12:48 PM, Mathias Lang via Digitalmars-d wrote: And he's right. It is really annoying to update to a new version and have perfectly valid and working code breaking because someone had a nice idea. Ideally, we should only ever break code that has a bug in it. I've also been willing

Re: New names - 2.068 roundup

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 25 June 2015 at 21:06:38 UTC, Walter Bright wrote: On 6/25/2015 12:48 PM, Mathias Lang via Digitalmars-d wrote: And he's right. It is really annoying to update to a new version and have perfectly valid and working code breaking because someone had a nice idea. Ideally, we should

Re: std.uni.toLowerCase / .toUpperCase

2015-06-25 Thread Timon Gehr via Digitalmars-d
On 06/25/2015 10:42 PM, Vladimir Panteleev wrote: On Thursday, 25 June 2015 at 20:41:13 UTC, Timon Gehr wrote: On 06/25/2015 04:10 PM, Vladimir Panteleev wrote: And, IMHO, this: fileName.readText.lowerCased.detabbed.toFile(fileName.withExtension(.foo)) looks much better than this:

Re: std.experimental.color, request reviews

2015-06-25 Thread Guillaume Chatelet via Digitalmars-d
On Thursday, 25 June 2015 at 13:36:57 UTC, Manu wrote: How about HSx ? That's the best I've got! :P Not too bad :-) I'm not too excited about this but how about : HS!L HS!V .,. It could work with a good documentation.

Re: New names - 2.068 roundup

2015-06-25 Thread Timon Gehr via Digitalmars-d
On 06/25/2015 11:06 PM, Walter Bright wrote: On 6/25/2015 12:48 PM, Mathias Lang via Digitalmars-d wrote: And he's right. It is really annoying to update to a new version and have perfectly valid and working code breaking because someone had a nice idea. Ideally, we should only ever break code

Re: std.experimental.color, request reviews

2015-06-25 Thread Guillaume Chatelet via Digitalmars-d
On Thursday, 25 June 2015 at 21:06:59 UTC, Guillaume Chatelet wrote: On Thursday, 25 June 2015 at 13:36:57 UTC, Manu wrote: How about HSx ? That's the best I've got! :P Not too bad :-) I'm not too excited about this but how about : HS!L HS!V .,. It could work with a good documentation. Or

Re: New names - 2.068 roundup

2015-06-25 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: 3. Change the names, with 2.068.0 RC1 being the deadline. I'll create and will be updating a PR after the first beta, and ask the release manager to merge it before the RC release. So, the first Beta is out. Here's a rough

Re: Importing local modules in C style

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/25/15 9:57 AM, Binarydepth wrote: I want to import a module from my local project in C style (#include local.h). No. I know I can do dmd main.d local.d but I wonder if it can be done C style. What is your goal? Why doesn't D import work for you? -Steve

I released my first library!

2015-06-25 Thread Vladde Nordholm via Digitalmars-d
For the past week I've been working on my first small cross-platform gamedev-ish console rendering library for d, and I call it clayers. It has been a fun learning process, as I've used many new programs and features. The whole thing is written in vim, which I've never used until now. I got

Re: End of life for Windows Server 2003 R2 is July 14, 2015

2015-06-25 Thread Kagamin via Digitalmars-d
On Thursday, 25 June 2015 at 13:53:40 UTC, Steven Schveighoffer wrote: And server OS migration moves much slower usually. Is it so? Do you mean windows server OS specifically?

Re: function default parameters lost

2015-06-25 Thread Paul D Anderson via Digitalmars-d-learn
On Thursday, 25 June 2015 at 07:10:57 UTC, tcak wrote: On Thursday, 25 June 2015 at 04:43:51 UTC, Paul D Anderson wrote: I'm trying to pass a function pointer while keeping the default parameter values intact. Given the following: [...] I filed a bug about 2-3 months ago about default

Re: std.path.toAbsolutePath / toNormalizedPath / toRelativePath

2015-06-25 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 25 June 2015 at 13:35:30 UTC, Vladimir Panteleev wrote: On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev wrote: http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff Rationale: - The eager versions are called absolutePath, normalizedPath,

[Issue 14572] cannot build dmd from source anymore: 'g++ -m64: No such file or directory'

2015-06-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14572 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1cfeb7f601e4befcba00354142a2cb556cf7b1d7 fix Issue 14572 (Take 2) -

Re: std.experimental.color, request reviews

2015-06-25 Thread Kagamin via Digitalmars-d
On Thursday, 25 June 2015 at 13:36:57 UTC, Manu wrote: How about HSx ? That's the best I've got! :P HueBased?

Re: Importing local modules in C style

2015-06-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/25/15 10:37 AM, Binarydepth wrote: On Thursday, 25 June 2015 at 14:10:00 UTC, Steven Schveighoffer wrote: On 6/25/15 9:57 AM, Binarydepth wrote: I want to import a module from my local project in C style (#include local.h). No. I know I can do dmd main.d local.d but I wonder if it

Opening browser and url.

2015-06-25 Thread Bauss via Digitalmars-d-learn
In other programming languages you can open a website in the default browser by spawning a process using the url, but it does not seem to work with D using spawnProcess(). Do I have to do API calls to get the default browser and then call spawnProcess() with the url as an argument or is there

Typed Message Passing between D Processes

2015-06-25 Thread via Digitalmars-d-learn
Is there an alternative to http://dlang.org/phobos/std_process.html#.pipe that can be used to do _typed_ _message_ _passing_ between two D processes with the same convenience as `send` and `receive` in std.concurrency ? Either in Phobos or in a third party library?

  1   2   >