NASA/JPL Rules for writing Critical Software

2015-01-08 Thread Walter Bright via Digitalmars-d
http://pixelscommander.com/wp-content/uploads/2014/12/P10.pdf

Alignment of dynamic arrays

2015-01-08 Thread Luc Bourhis via Digitalmars-d
With auto a = new double[1000], is there any guarantee that a.ptr is aligned on a 16-byte boundary? Indeed I would like to use core.simd and this alignment is paramount for efficient loading from memory to SSE2 registers. On MacOS X and 64-bit Linux, it looks true for dmd. Looking at the

Re: For the lulz: ddmd vs libdparse lexer timings

2015-01-08 Thread Shammah Chancellor via Digitalmars-d
On 2015-01-05 00:50:55 +, Brian Schott said: Looks like it's time to spend some more time with perf: http://i.imgur.com/k50dFbU.png X-axis: Meaningless (Phobos module file names) Y-axis: Time in hnsecs (Lower is better) I had to hack the ddmd code to get it compile (more 1337 h4x were

Re: Fastest Way of Accessing Entries in an AA

2015-01-08 Thread Foo via Digitalmars-d-learn
On Thursday, 8 January 2015 at 23:06:39 UTC, Nordlöw wrote: On Thursday, 8 January 2015 at 16:11:07 UTC, ketmar via Digitalmars-d-learn wrote: how can it? compiler doesn't know what the code is supposed to do. if compilers will know such things someday, we can stop writing programs altogether,

Re: Alignment of dynamic arrays

2015-01-08 Thread bearophile via Digitalmars-d
Luc Bourhis: With auto a = new double[1000], is there any guarantee that a.ptr is aligned on a 16-byte boundary? Arrays are aligned on a 16-byte. But if you slice them, this alignment can be broken. In past I suggested to put the alignment of an array in the D type system, as an optional

Re: Alignment of dynamic arrays

2015-01-08 Thread Luc Bourhis via Digitalmars-d
On Friday, 9 January 2015 at 00:23:47 UTC, bearophile wrote: Luc Bourhis: With auto a = new double[1000], is there any guarantee that a.ptr is aligned on a 16-byte boundary? Arrays are aligned on a 16-byte. Good news! But if you slice them, this alignment can be broken. Yes, of

Bare-metal programming in D (was GSOC - Holiday Edition)

2015-01-08 Thread Mike via Digitalmars-d
On Wednesday, 7 January 2015 at 14:10:49 UTC, Dmitry Olshansky wrote: Truth be told none of listed in this thread feel fundamental to me. It looks more like a set of patches to each specific problem in the compiler or run-time. Yeah, run-time would better be more customizable, but it's just

Re: D idioms list

2015-01-08 Thread Foo via Digitalmars-d-announce
I saw recently (at last in this thread: http://forum.dlang.org/thread/tdfydchrairigdlgt...@forum.dlang.org#post-qakiogaqvmiwlneimhgu:40forum.dlang.org) that many users use key in aa ? aa[key] : ValueType.init; instead of auto ptr = key in aa; ptr ? *ptr : ValueType.init;

[Issue 9119] [AA] Forward range addition to associative arrays.

2015-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9119 --- Comment #13 from hst...@quickfur.ath.cx --- Furthermore, printing of the range returned by byPair() produces output of the form: - immutable(Tuple!(string, int))(a, 123) immutable(Tuple!(string, int))(b, 234) immutable(Tuple!(string, int))(c,

[Issue 13936] groupBy must be redone

2015-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #9 from hst...@quickfur.ath.cx --- The nice thing about assuming non-equivalence relation by default is that it's the most general: it will produce correct behaviour in all use cases with no further work required from the user. In my

Re: Game development

2015-01-08 Thread Manu via Digitalmars-d
On 9 January 2015 at 02:53, Ras via Digitalmars-d digitalmars-d@puremagic.com wrote: Hello, I want to write the game engine in C++ and write all the game logic and ai etc in D. How would i do this? I do this extensively. You can check out how I do D bindings for my engine:

Re: DConf 2015 Call for Submissions is now open

2015-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2015 8:42 AM, Jonathan M Davis via Digitalmars-d-announce wrote: On Thursday, January 08, 2015 10:31:37 Iain Buclaw via Digitalmars-d-announce wrote: On 6 January 2015 at 23:24, Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello, Exciting

[Issue 13936] groupBy must be redone

2015-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #12 from hst...@quickfur.ath.cx --- I don't see what's the big problem with supporting non-equivalence relations, all it means is that you have to evaluate the predicate only between adjacent elements rather than between an element and

Re: We need a DConf 2015 logo

2015-01-08 Thread Andrei Alexandrescu via Digitalmars-d
On 1/8/15 2:40 PM, ponce wrote: There: http://ovh.to/GAYPaom - same vector logo but with text and gray background - a render in 500x150 (I've used Firefox) - instructions on how to render again Let me know if you need any change. Take a look! http://dconf.org

Re: What's missing to make D2 feature complete?

2015-01-08 Thread Shammah Chancellor via Digitalmars-d
On 2014-12-20 23:27:18 +, aldanor said: - static foreach (declaration foreach) - fixing __traits templates (eg getProtection vein extremely flaky, allMembers not working etc) -- seeing as ctfe is one of flagship features of D, it would make sense to actually make it work flawlessly.

Re: We're looking for a Software Developer! (D language)

2015-01-08 Thread John Carter via Digitalmars-d-announce
If you email me at john DOT carter AT taitradio DOT com we can take this conversation out of the D forum as it is going way off topic. On Fri, Jan 9, 2015 at 4:05 PM, Rikki Cattermole via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 9/01/2015 2:53 p.m., John Carter via

Re: An idea for commercial support for D

2015-01-08 Thread via Digitalmars-d
On Thursday, 8 January 2015 at 15:27:57 UTC, Joakim wrote: the customer not being very price-sensitive. As for estimating the total cost, the seller also needs to estimate his expected revenue, ie how much demand there is and at what price. With this model, you are allowing the seller to get

Re: We're looking for a Software Developer! (D language)

2015-01-08 Thread Leandro Lucarella via Digitalmars-d-announce
On Thursday, 8 January 2015 at 13:21:05 UTC, Rikki Cattermole wrote: The challenge is on. If you think it’s you we’re looking for, send us your battle plan along with a certificate of your super powers at care...@sociomantic.com. Alternatively, a motivational cover letter and resume in English

Re: We're looking for a Software Developer! (D language)

2015-01-08 Thread Rikki Cattermole via Digitalmars-d-announce
On 9/01/2015 2:53 p.m., John Carter via Digitalmars-d-announce wrote: Whilst we are not currently using D at Tait Electronics I am certainly trying to make it happen. So if this job fits you...

Re: D idioms list

2015-01-08 Thread ketmar via Digitalmars-d-announce
On Thu, 08 Jan 2015 21:22:30 + ponce via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 8 January 2015 at 20:23:11 UTC, ketmar via Digitalmars-d-announce wrote: i'm not sure, but maybe it worth renaming struct inheritance to extending a struct? or

Re: An idea for commercial support for D

2015-01-08 Thread Joakim via Digitalmars-d
On Thursday, 8 January 2015 at 23:22:19 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 January 2015 at 15:27:57 UTC, Joakim wrote: the customer not being very price-sensitive. As for estimating the total cost, the seller also needs to estimate his expected revenue, ie how much demand there is

Parameterized enum does not work

2015-01-08 Thread Andre via Digitalmars-d-learn
Hi, Should following coding work? string lpad(ubyte length, long n) { import std.string: rightJustify; import std.conv: to; return rightJustify(to!string(n), length, '0'); } enum lpad14(long n) = lpad(14, n); void main() { lpad14(123); } There is

Re: Game development

2015-01-08 Thread ketmar via Digitalmars-d
On Thu, 08 Jan 2015 22:27:53 +0100 Joseph Rushton Wakeling via Digitalmars-d digitalmars-d@puremagic.com wrote: On 08/01/15 22:02, ketmar via Digitalmars-d wrote: am i fobidding someone to reply? O_O but yes, i want to create an impression that timewasters are not welcome. Well, it's

Re: Game development

2015-01-08 Thread ketmar via Digitalmars-d
On Fri, 09 Jan 2015 05:35:04 + Ras via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thursday, 8 January 2015 at 18:03:48 UTC, ketmar via Digitalmars-d wrote: On Thu, 08 Jan 2015 17:31:49 + NVolcz via Digitalmars-d digitalmars-d@puremagic.com wrote: engines) and why do

checking if template arg is literal, possible ER for compiler change

2015-01-08 Thread ketmar via Digitalmars-d-learn
Hello. disclaimer: please, ignore compiler inlining abilities while you are reading this post. i'll give some reasoning later. let's imagine that we have such function: void putPixel (int x, int y, uint color) { if ((color0xff) == 0) { // replace pixel } else if ((color0xff) !=

Re: Game development

2015-01-08 Thread Ras via Digitalmars-d
On Thursday, 8 January 2015 at 18:03:48 UTC, ketmar via Digitalmars-d wrote: On Thu, 08 Jan 2015 17:31:49 + NVolcz via Digitalmars-d digitalmars-d@puremagic.com wrote: engines) and why do you want to write the engine in C++ and the logic in D? i bet he thinking that D is a fancy scripting

Re: Game development

2015-01-08 Thread ketmar via Digitalmars-d
On Thu, 8 Jan 2015 21:25:24 + (UTC) Justin Whear via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thu, 08 Jan 2015 23:02:26 +0200, ketmar via Digitalmars-d wrote: but yes, i want to create an impression that timewasters are not welcome. Ironically this is exactly why I'm

Re: Fastest Way of Accessing Entries in an AA

2015-01-08 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, January 09, 2015 00:20:07 Foo via Digitalmars-d-learn wrote: On Thursday, 8 January 2015 at 23:06:39 UTC, Nordlöw wrote: On Thursday, 8 January 2015 at 16:11:07 UTC, ketmar via Digitalmars-d-learn wrote: how can it? compiler doesn't know what the code is supposed to do. if

Re: What's missing to make D2 feature complete?

2015-01-08 Thread safety0ff via Digitalmars-d
On Thursday, 25 December 2014 at 09:46:19 UTC, Martin Nowak wrote: On Saturday, 20 December 2014 at 19:22:05 UTC, safety0ff wrote: On Saturday, 20 December 2014 at 17:40:06 UTC, Martin Nowak wrote: Just wondering what the general sentiment is. Multiple alias this (DIP66 / #6083.) It's

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-08 22:01, Steven Schveighoffer wrote: core.stdc.config is not technically a standard C header, and it seems pretty strange. I'm going to leave that one alone unless someone objects. Shouldn't this then be documented like any other druntime/Phobos module. There are many cases

Re: Why do the same work about 'IndexOfAny' and 'indexOf' function?

2015-01-08 Thread FrankLike via Digitalmars-d-learn
On Thursday, 8 January 2015 at 15:15:59 UTC, Robert burner Schadek wrote: use canFind like such: bool a = canFind(strs,s) = 1; let the compiler figger out what the types of the parameter are. canFind is work for such as : bool x = canFind([exe,lib,a,dll],a ); but can't work for

Re: Why do the same work about 'IndexOfAny' and 'indexOf' function?

2015-01-08 Thread ketmar via Digitalmars-d-learn
On Fri, 09 Jan 2015 07:10:14 + FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 8 January 2015 at 15:15:59 UTC, Robert burner Schadek wrote: use canFind like such: bool a = canFind(strs,s) = 1; let the compiler figger out what the types

Re: Parameterized enum does not work

2015-01-08 Thread Daniel Kozak via Digitalmars-d-learn
On Friday, 9 January 2015 at 06:17:53 UTC, Andre wrote: Hi, Should following coding work? string lpad(ubyte length, long n) { import std.string: rightJustify; import std.conv: to; return rightJustify(to!string(n), length, '0'); } enum lpad14(long n) = lpad(14,

Re: An idea for commercial support for D

2015-01-08 Thread Joakim via Digitalmars-d
On Tuesday, 6 January 2015 at 22:32:22 UTC, uri wrote: On Tuesday, 6 January 2015 at 13:34:59 UTC, Joakim wrote: Before you make such claims, you should probably think about them a little bit first. Please tell me one company that does not buy outside commercial software which they then use

Re: We need a DConf 2015 logo

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-09 03:38, Andrei Alexandrescu wrote: Take a look! http://dconf.org https://github.com/D-Programming-Language/dconf.org/pull/31 The font is different compared to the PNG in the zip. The one on the site has a serif font. -- /Jacob Carlborg

Re: We need a DConf 2015 logo

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-08 23:40, ponce wrote: There: http://ovh.to/GAYPaom - same vector logo but with text and gray background - a render in 500x150 (I've used Firefox) - instructions on how to render again Let me know if you need any change. Shouldn't the logo look at least somewhat similar to the one

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2015 1:01 PM, Steven Schveighoffer wrote: core.stdc.config is not technically a standard C header, and it seems pretty strange. I'm going to leave that one alone unless someone objects. Yeah, the mere existence of that module grates.

Re: Parameterized enum does not work

2015-01-08 Thread Daniel Kozak via Digitalmars-d-learn
On Friday, 9 January 2015 at 07:50:53 UTC, Daniel Kozak wrote: On Friday, 9 January 2015 at 06:17:53 UTC, Andre wrote: Hi, Should following coding work? string lpad(ubyte length, long n) { import std.string: rightJustify; import std.conv: to; return

Re: Fastest Way of Accessing Entries in an AA

2015-01-08 Thread Foo via Digitalmars-d-learn
On Friday, 9 January 2015 at 06:18:53 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: On Friday, January 09, 2015 00:20:07 Foo via Digitalmars-d-learn wrote: On Thursday, 8 January 2015 at 23:06:39 UTC, Nordlöw wrote: On Thursday, 8 January 2015 at 16:11:07 UTC, ketmar via

Re: D idioms list

2015-01-08 Thread ketmar via Digitalmars-d-announce
On Thu, 08 Jan 2015 22:25:11 +0100 Artur Skawina via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 01/08/15 21:23, ketmar via Digitalmars-d-announce wrote: i'm not sure, but maybe it worth renaming struct inheritance to extending a struct? or even something completely

Re: D idioms list

2015-01-08 Thread ketmar via Digitalmars-d-announce
On Thu, 08 Jan 2015 21:22:30 + ponce via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 8 January 2015 at 20:23:11 UTC, ketmar via Digitalmars-d-announce wrote: i'm not sure, but maybe it worth renaming struct inheritance to extending a struct? or

Re: Fastest Way of Accessing Entries in an AA

2015-01-08 Thread ketmar via Digitalmars-d-learn
On Thu, 08 Jan 2015 23:06:38 + Nordlöw via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 8 January 2015 at 16:11:07 UTC, ketmar via Digitalmars-d-learn wrote: how can it? compiler doesn't know what the code is supposed to do. if compilers will know such

Re: An idea for commercial support for D

2015-01-08 Thread Joakim via Digitalmars-d
On Tuesday, 6 January 2015 at 22:37:40 UTC, anonymous wrote: On Tuesday, 6 January 2015 at 19:46:51 UTC, Joakim wrote: On Tuesday, 6 January 2015 at 19:06:27 UTC, anonymous wrote: [...] I don't know of any commercial support model where you only pay for the fixes you need at any given moment

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-08 22:23, Adam D. Ruppe wrote: On Thursday, 8 January 2015 at 21:14:43 UTC, Andrei Alexandrescu wrote: I don't think there is a way. version(Ddoc) dummy prototypes maybe. But that gets painful. Tango is using this method quite heavily in some modules. It also gives the

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-08 22:25, Andrei Alexandrescu wrote: Yah, as I said it's a project. Can we at least generate the documentation on multiple platforms, just to make sure we got all modules. -- /Jacob Carlborg

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2015 7:41 AM, Andrei Alexandrescu wrote: If we get real cocky we might insert for each symbol a LUCKY link googling for the header name and symbol name. Livin' on the edge!

[Issue 13901] Improvements to documentation

2015-01-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13901 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread H. S. Teoh via Digitalmars-d
On Thu, Jan 08, 2015 at 01:14:43PM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/8/15 1:01 PM, Steven Schveighoffer wrote: There are many cases where the members are dependent on the OS. The one that strikes me as the most OS dependent (so far) is errno.d. I'm guessing that only

Re: D idioms list

2015-01-08 Thread weaselcat via Digitalmars-d-announce
On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote: I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested. I think the focus should be on

Re: Game development

2015-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d
On 08/01/15 22:11, market via Digitalmars-d wrote: just gtfo ketmar... just do it. Sorry, no. Not acceptable either.

Re: Game development

2015-01-08 Thread ixid via Digitalmars-d
If you can't suffer someone's posts, please use your newsreader's filtering features to not see their posts. I know it's not perfect, but by and large it does improve things. Isn't it better for the community to politely reign in those who misbehave? Elitism is terribly damaging, we want D to

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 07/01/15 16:02, Laeeth Isharc via Digitalmars-d-learn wrote: class node { string name; node ref; } Small recommendation (apart from the reserved word issue which you fixed): it's generally considered good D style to give structs and classes names that start with capital letters,

Re: Game development

2015-01-08 Thread Steven Schveighoffer via Digitalmars-d
On 1/8/15 4:32 PM, Andrei Alexandrescu wrote: The dpl-generated docs are now the default on dlang.org. I don't know what dpl-generated means. I'm not seeing any differences. -Steve

Re: Game development

2015-01-08 Thread Andrei Alexandrescu via Digitalmars-d
On 1/8/15 1:46 PM, Steven Schveighoffer wrote: On 1/8/15 4:32 PM, Andrei Alexandrescu wrote: The dpl-generated docs are now the default on dlang.org. I don't know what dpl-generated means. I'm not seeing any differences. Oh, sorry. They aren't the default yet, but they'll be soon :o). --

Re: We're looking for a Software Developer! (D language)

2015-01-08 Thread Lukasz Wrzosek via Digitalmars-d-announce
Is there any chance that in the future your company hire D developers in Warsaw office ?

Re: Sociomantic: We're looking for a Software Developer! (D language)

2015-01-08 Thread FG via Digitalmars-d-announce
On 2015-01-08 14:01 Joseph Rushton Wakeling wrote: Just to mention that this call is particularly focused on getting new people for my team at Sociomantic. There is one important piece of information missing: Are you still using only D1? If not, how is your code base currently split into D1

Re: We need a DConf 2015 logo

2015-01-08 Thread ponce via Digitalmars-d
On Wednesday, 7 January 2015 at 23:16:19 UTC, Andrei Alexandrescu wrote: On 1/7/15 3:08 PM, ponce wrote: On Wednesday, 7 January 2015 at 22:36:28 UTC, Andrei Alexandrescu wrote: On 1/7/15 12:26 PM, ponce wrote: On Tuesday, 6 January 2015 at 19:27:23 UTC, Andrei Alexandrescu wrote: The DConf

Re: MSBUILD 2014, C# gets an ahead of time compiler to native code.

2015-01-08 Thread Alex D. via Digitalmars-d
Now I wonder how will runtime template instantiation work. it is not really difficult, but it a bit of work to make it run for example you when you use ListT you are going to use a specialization of the template such as Listint which is not template anymore.

Re: We need a DConf 2015 logo

2015-01-08 Thread Jeremy DeHaan via Digitalmars-d
On Thursday, 8 January 2015 at 22:40:41 UTC, ponce wrote: There: http://ovh.to/GAYPaom - same vector logo but with text and gray background - a render in 500x150 (I've used Firefox) - instructions on how to render again Let me know if you need any change. I think that is a pretty sweet logo.

Re: We need a DConf 2015 logo

2015-01-08 Thread Piotrek via Digitalmars-d
On Thursday, 8 January 2015 at 22:40:41 UTC, ponce wrote: There: http://ovh.to/GAYPaom - same vector logo but with text and gray background - a render in 500x150 (I've used Firefox) - instructions on how to render again Let me know if you need any change. The logo with new the perspective

Re: Fastest Way of Accessing Entries in an AA

2015-01-08 Thread Nordlöw
On Thursday, 8 January 2015 at 16:11:07 UTC, ketmar via Digitalmars-d-learn wrote: how can it? compiler doesn't know what the code is supposed to do. if compilers will know such things someday, we can stop writing programs altogether, as compilers will be able to write any program for us. ;-)

We're looking for a Linuy Systems Admin!

2015-01-08 Thread Johanna Burgos via Digitalmars-d-announce
Your Mission Provide server administration to our data centers Provisioning new servers, imaging, monitoring, and other daily routines Daily monitoring and maintenance of servers Perform backup, file replications, and script management for servers Test and apply new software and patches

Re: MSBUILD 2014, C# gets an ahead of time compiler to native code.

2015-01-08 Thread Alex via Digitalmars-d
There are some tools in the wild which allows to compile C#(MSIL) into native code (using LLVM) thus being cross-compiled as opposed to C# native compiler which Windows OS oriented. here some links: https://csnative.codeplex.com/ and https://github.com/xen2/SharpLang

Re: D idioms list

2015-01-08 Thread Szymon Gatner via Digitalmars-d-announce
On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote: I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested. I think the focus should be on

Re: Even better navigation - thanks Nick Treleaven!

2015-01-08 Thread Colin via Digitalmars-d
On Wednesday, 7 January 2015 at 23:18:03 UTC, Andrei Alexandrescu wrote: We just deployed Nick's work at https://github.com/D-Programming-Language/dlang.org/pull/726, which enables jump-to navigation for structures. For example, from http://dlang.org/phobos/std_array.html#.Appender one can

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-08 Thread Laeeth Isharc via Digitalmars-d-learn
this conversation is so funny: well what's wrong with this . It's a keyword... Aa Ha ha ha ha , rol. Seriously, is it so complicated to use a D editor ? I mean with syntax color... Man afraid to ask stoopid questions stays stoopid. And compiler error message far from informative. Not

Re: D idioms list

2015-01-08 Thread ketmar via Digitalmars-d-announce
On Thu, 08 Jan 2015 11:24:34 + Szymon Gatner via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote: I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you

Re: D idioms list

2015-01-08 Thread ponce via Digitalmars-d-announce
On Thursday, 8 January 2015 at 10:56:00 UTC, bearophile wrote: ponce: I'm not familiar with the terse, range-heavy, UFCS style that has emerged from Phobos In Rosettacode I have inserted tons of examples of that coding style. An example, given a tuple of arbitrary length, with items all

Re: D idioms list

2015-01-08 Thread Szymon Gatner via Digitalmars-d-announce
On Thursday, 8 January 2015 at 11:31:14 UTC, ketmar via Digitalmars-d-announce wrote: On Thu, 08 Jan 2015 11:24:34 + Szymon Gatner via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote: I've started a list of

Re: D idioms list

2015-01-08 Thread ponce via Digitalmars-d-announce
On Thursday, 8 January 2015 at 11:41:43 UTC, Szymon Gatner wrote: Question: Where did this syntax came from? It is not documented for 'import' keyword.(first time I see that D has built-in resource compiler): ubyte[] sdlBytes = cast(ubyte[]) import(SDL2.dll); it is documented:

Re: MSBUILD 2014, C# gets an ahead of time compiler to native code.

2015-01-08 Thread ponce via Digitalmars-d
On Wednesday, 2 April 2014 at 20:23:58 UTC, Paulo Pinto wrote: So it finally happened, C# gets an AOT compiler in addition to NGEN/JIT as part of standard Visual Studio tools.

Re: What does dmd 2.066 want from me?

2015-01-08 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 7 January 2015 at 20:10:35 UTC, Artem Tarasov wrote: I'm trying to compile my software with the latest compiler, and it spits out the following error: $ make ... rdmd --force --build-only -IBioD -g -L-Lhtslib -L-l:libhts.a -L-l:libphobos2.a -ofbuild/sambamba.o main.d ...

Re: MSBUILD 2014, C# gets an ahead of time compiler to native code.

2015-01-08 Thread Paulo Pinto via Digitalmars-d
On Thursday, 8 January 2015 at 11:53:37 UTC, ponce wrote: On Wednesday, 2 April 2014 at 20:23:58 UTC, Paulo Pinto wrote: So it finally happened, C# gets an AOT compiler in addition to NGEN/JIT as part of standard Visual Studio tools.

Re: How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

2015-01-08 Thread FrankLike via Digitalmars-d-learn
On Thursday, 8 January 2015 at 10:11:38 UTC, Danny wrote: Hi, sigh, so I have to annoy you with the truth... On Tuesday, 6 January 2015 at 17:15:28 UTC, FrankLike wrote: How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows? By not

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Steven Schveighoffer via Digitalmars-d
On 1/7/15 1:03 AM, Andrei Alexandrescu wrote: On 1/6/15 6:17 PM, Steven Schveighoffer wrote: On 1/6/15 5:43 PM, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. std.algorithm has many of the descriptions

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Steven Schveighoffer via Digitalmars-d
On 1/6/15 8:16 PM, Andrei Alexandrescu wrote: On 1/6/15 3:44 PM, weaselcat wrote: On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei Is it intentional for

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-08 Thread Mengu via Digitalmars-d-learn
On Thursday, 8 January 2015 at 11:29:30 UTC, Laeeth Isharc wrote: this conversation is so funny: well what's wrong with this . It's a keyword... Aa Ha ha ha ha , rol. Seriously, is it so complicated to use a D editor ? I mean with syntax color... Man afraid to ask stoopid questions stays

Re: D idioms list

2015-01-08 Thread Szymon Gatner via Digitalmars-d-announce
On Thursday, 8 January 2015 at 11:43:30 UTC, ponce wrote: On Thursday, 8 January 2015 at 11:41:43 UTC, Szymon Gatner wrote: Question: Where did this syntax came from? It is not documented for 'import' keyword.(first time I see that D has built-in resource compiler): ubyte[] sdlBytes =

Re: An idea for commercial support for D

2015-01-08 Thread via Digitalmars-d
On Thursday, 8 January 2015 at 10:37:57 UTC, Joakim wrote: supply/demand curve for his product. In this variable pricing model, the customer also takes some of that risk, ie you'll pay more if enough other people don't also want the product. Businesses don't like risk. They need to estimate

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-08 13:18, Steven Schveighoffer wrote: I like this idea. One thing that may be misleading about this -- our headers don't include *everything* from C-land. What would be a good generic blurb? strawman: core.stdc.ctype: This contains bindings to selected types and functions from the

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread John Colvin via Digitalmars-d
On Thursday, 8 January 2015 at 12:18:37 UTC, Steven Schveighoffer wrote: On 1/6/15 8:16 PM, Andrei Alexandrescu wrote: On 1/6/15 3:44 PM, weaselcat wrote: On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from

Re: D idioms list

2015-01-08 Thread ketmar via Digitalmars-d-announce
On Thu, 08 Jan 2015 11:41:42 + Szymon Gatner via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 8 January 2015 at 11:31:14 UTC, ketmar via Digitalmars-d-announce wrote: On Thu, 08 Jan 2015 11:24:34 + Szymon Gatner via Digitalmars-d-announce

Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread Steven Schveighoffer via Digitalmars-d
On 1/7/15 10:55 AM, Vladimir Panteleev wrote: On Wednesday, 7 January 2015 at 15:42:24 UTC, Andrei Alexandrescu wrote: * I still have reservations about using Disqus. I did keep that in mind. The long and short of it it it's impossible to make a change that everybody likes. We must move

Re: 4x4

2015-01-08 Thread Steven Schveighoffer via Digitalmars-d
On 1/7/15 2:09 AM, Andrei Alexandrescu wrote: http://dlang.org/library/std/digest/digest/digest.html Ugh. -- Andrei I remember this from the movie being std.digest when digest goes through the tunnel and becomes himself. -Steve

Re: 4x4

2015-01-08 Thread aldanor via Digitalmars-d
On Wednesday, 7 January 2015 at 07:09:01 UTC, Andrei Alexandrescu wrote: http://dlang.org/library/std/digest/digest/digest.html Ugh. -- Andrei This thread needs more digest: http://dlang.org/library/std/digest/digest/digest.digest.html

Re: Why do the same work about 'IndexOfAny' and 'indexOf' function?

2015-01-08 Thread FrankLike via Digitalmars-d-learn
On Wednesday, 7 January 2015 at 17:08:55 UTC, H. S. Teoh via Digitalmars-d-learn wrote: Try this: http://dlang.org/phobos-prerelease/std_algorithm#.findAmong T You mean ? The result is not that I want to get! ---test.d-- import std.stdio,

Sociomantic: We're looking for a Software Developer! (D language)

2015-01-08 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
Hello all, Just to mention that this call is particularly focused on getting new people for my team at Sociomantic. It may be of especial interest to anyone who wants to work on machine learning problems (we have lots of fun stuff in the pipeline), but whatever your background, this is a great

Sociomantic: We're looking for a Linux Systems Admin!

2015-01-08 Thread Don via Digitalmars-d-announce
It is probably not obvious why our HR department posted this job ad to this newsgroup, particularly to anyone who doesn't know Sociomantic's relationship to the D community. Most of the apps running on our servers, are written in D. The role doesn't involve D programming, and the job ad

Re: Why do the same work about 'IndexOfAny' and 'indexOf' function?

2015-01-08 Thread FrankLike via Digitalmars-d-learn
On Wednesday, 7 January 2015 at 17:08:55 UTC, H. S. Teoh via Digitalmars-d-learn wrote: Try this: http://dlang.org/phobos-prerelease/std_algorithm#.findAmong T Thank you,it can work. but it's not what I want. ---test.d-- import std.stdio,

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-08 Thread Tobias Pankrath via Digitalmars-d-learn
what's wrong with the code above ? i get an error no identifier for declarator node. (I have not used classes much, since structs often seem to be enough for what I need to do mostly). ref is a reserved keyword. -- Paulo this conversation is so funny: well what's wrong with this .

json generation from ddoc: painfully close

2015-01-08 Thread Andrei Alexandrescu via Digitalmars-d
I just experimented with a battery of macros (json.ddoc) for generating json via ddoc. Results for std.algorithm are in http://paste.ofcode.org/DFnxChvmRGJiXYpYYk2XWr. There are a couple of things that make the generated json invalid: 1. I couldn't get escaping to work. My ESCAPES is:

Re: json generation from ddoc: painfully close

2015-01-08 Thread Rikki Cattermole via Digitalmars-d
On 8/01/2015 9:32 p.m., Andrei Alexandrescu wrote: I just experimented with a battery of macros (json.ddoc) for generating json via ddoc. Results for std.algorithm are in http://paste.ofcode.org/DFnxChvmRGJiXYpYYk2XWr. There are a couple of things that make the generated json invalid: 1. I

Re: What does dmd 2.066 want from me?

2015-01-08 Thread Artem Tarasov via Digitalmars-d-learn
On Thursday, 8 January 2015 at 01:22:54 UTC, Rikki Cattermole wrote: Have you got opEqual's defined? Its wanting that and toHash I think. Yes, I have opEquals defined. I've just tried to add dummy toHash (returning a constant), but it doesn't help :( OK, it seems I'll have to stick with

Re: Phobos colour module?

2015-01-08 Thread via Digitalmars-d
On Thursday, 8 January 2015 at 02:56:36 UTC, Manu via Digitalmars-d wrote: L*ab, L*CHab, HSL, HWB C#'s and Java's colour struct provides what they call HSB which is related to HSV. In computer vision a variant is HSI. http://en.wikipedia.org/wiki/HSL_and_HSV Java has a separate colour

Re: Another init() bug, can we deprecate yet?

2015-01-08 Thread Peter Alexander via Digitalmars-d
On Wednesday, 7 January 2015 at 23:31:30 UTC, H. S. Teoh via Digitalmars-d wrote: On Wed, Jan 07, 2015 at 10:03:00PM +, Peter Alexander via Digitalmars-d wrote: https://issues.dlang.org/show_bug.cgi?id=13806 For the lazy: BitArray has an init() method, which hides the property

Re: We need a DConf 2015 logo

2015-01-08 Thread ponce via Digitalmars-d
On Wednesday, 7 January 2015 at 23:16:19 UTC, Andrei Alexandrescu wrote: On 1/7/15 3:08 PM, ponce wrote: On Wednesday, 7 January 2015 at 22:36:28 UTC, Andrei Alexandrescu wrote: On 1/7/15 12:26 PM, ponce wrote: On Tuesday, 6 January 2015 at 19:27:23 UTC, Andrei Alexandrescu wrote: The DConf

Re: DConf 2015 Call for Submissions is now open

2015-01-08 Thread Iain Buclaw via Digitalmars-d-announce
On 6 January 2015 at 23:24, Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello, Exciting times! DConf 2015 will take place May 27-29 2015 at Utah Valley University in Orem, UT. Awesome, that runs over my birthday (28th). My friends and family

Re: D idioms list

2015-01-08 Thread ponce via Digitalmars-d-announce
On Thursday, 8 January 2015 at 10:30:38 UTC, uri wrote: This is great, thanks. Something I personally would find useful is a comparison between the C++ way and idiomatic D with Phobos. I finding coming from C/C++ to D very easy but I'm always wondering if I'm doing things the D way.

Re: json generation from ddoc: painfully close

2015-01-08 Thread Walter Bright via Digitalmars-d
On 1/8/2015 12:32 AM, Andrei Alexandrescu wrote: I haven't yet figured the circumstances. We can't just let anybody know those things.

D idioms list

2015-01-08 Thread ponce via Digitalmars-d-announce
I've started a list of curated D tips and tricks here: http://p0nce.github.io/d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested. I think the focus should be on stuff that could make you more productive, or is just funky

  1   2   >