Re: AWS API Dlang, hmac sha256 function.

2015-10-06 Thread Rikki Cattermole via Digitalmars-d-learn
On 07/10/15 3:18 PM, holo wrote: Congrats on getting it working! @Rikki Thanks :) I was trying to write my own lib from beginning based on examples but after some time i resign from that idea (will back to it when i will have some more experience) and right now im trying to customize that one

[Issue 15166] [REG2.069-devel] spurious statement not reachable warning in static foreach loop

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15166 Kenji Hara changed: What|Removed |Added Summary|[Ref 2.069-devel] spurious |[REG2.069-devel] spurious

Re: D 2015/2016 Vision?

2015-10-06 Thread Walter Bright via Digitalmars-d
On 10/6/2015 7:04 PM, bitwise wrote: On Wednesday, 7 October 2015 at 01:27:27 UTC, Walter Bright wrote: On 10/4/2015 11:02 AM, bitwise wrote: For example, streams. No streams. InputRanges. This is too vague to really respond to. It does serve as an example of the over-emphasis on ranges in

[Issue 15167] [REG2.069-devel] conflicting error with repeated alias declaration

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15167 Kenji Hara changed: What|Removed |Added Summary|[Reg 2.069-devel] |[REG2.069-devel]

Re: Bug? 0 is less than -10

2015-10-06 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/6/15 7:21 PM, Laeeth Isharc wrote: could we have ssize_t defined in phobos somewhere so your code ends up being portable ;) (It's trivial to do, obviously). ptrdiff_t -Steve

[Issue 15138] [REG2.068.2] ICE with basic use of stdx.data.json

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15138 --- Comment #9 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/f223530ec642a28f9152d10273837254e1ab6417 fix Issue 15138 - ICE with

[Issue 15150] [REG2.068.1] Public selective import causes conflict

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15150 --- Comment #4 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/9e1e61d6e9d7713f8d64def9c468c0771bb6efff fix Issue 15150 - Public

[Issue 15152] [REG2.069.0-devel] template fails to instantiate if argument is itself a template

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15152 --- Comment #3 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/4d1b0864d25660fdd347146c4a19ad9ba878a3bb fix Issue 15152 - template

Re: D 2015/2016 Vision?

2015-10-06 Thread bitwise via Digitalmars-d
On Wednesday, 7 October 2015 at 02:41:12 UTC, Walter Bright wrote: On 10/6/2015 7:04 PM, bitwise wrote: On Wednesday, 7 October 2015 at 01:27:27 UTC, Walter Bright wrote: On 10/4/2015 11:02 AM, bitwise wrote: For example, streams. No streams. InputRanges. This is too vague to really

Re: D 2015/2016 Vision?

2015-10-06 Thread bitwise via Digitalmars-d
On Tuesday, 6 October 2015 at 22:21:41 UTC, Jonathan M Davis wrote: So, we're doing better than C# or Java do, but unfortunately, there are just enough issues with ref-counting structs that to get it fully right, we do need ref-counting in the language (unfortunately, I don't remember all of

Re: Varargs and default arguments

2015-10-06 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/6/15 4:27 PM, anonymous wrote: You can put an expression tuple ("expression AliasSeq"??) there. T.init is one that always fits T's types. But you could generate one with different values, too. void foo(T...)(string str=null, T args = T.init) { //... } void main() {

Re: How to check if JSONValue of type object has a key?

2015-10-06 Thread Marco Leise via Digitalmars-d-learn
Am Tue, 06 Oct 2015 21:39:28 + schrieb Fusxfaranto : > Additionally, just like associative arrays, if you need to access > the value, you can get a pointer to it with the in operator (and > if the key doesn't exist, it will return a null pointer). > >

Re: D 2015/2016 Vision?

2015-10-06 Thread rsw0x via Digitalmars-d
On Tuesday, 6 October 2015 at 20:44:22 UTC, ponce wrote: On Tuesday, 6 October 2015 at 17:20:39 UTC, Jonathan M Davis wrote: [...] Unfortunately, it is quite common to need both virtual functions and deterministic destruction. It isn't helpful to disregard the problem by saying "you should

Re: D 2015/2016 Vision?

2015-10-06 Thread Walter Bright via Digitalmars-d
On 10/4/2015 11:02 AM, bitwise wrote: For example, streams. No streams. InputRanges.

Re: Concatenation of ubyte[] to char[] works, but assignation doesn't

2015-10-06 Thread Marc Schütz via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 05:38:36 UTC, Jonathan M Davis wrote: Your suggestion only works by assuming that the result will fit in a char, which doesn't fit at all with how coversions are currently done in D. It would allow for narrowing conversions which lost data. And there's no way that

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread Marc Schütz via Digitalmars-d
On Tuesday, 6 October 2015 at 05:45:18 UTC, Andre wrote: vagrant@vagrant-ubuntu-trusty-64:~/projects/tests/vibed_test$ dub Target memutils 0.4.1 is up to date. Use --force to rebuild. Target libasync 0.7.5 is up to date. Use --force to rebuild. Target vibe-d 0.7.25 is up to date. Use --force to

Re: std.data.json formal review

2015-10-06 Thread Alex via Digitalmars-d
JSON is a particular file format useful for serialising heirachical data. Given that D also has an XML module which appears to be deprecated, I wonder if it would be better to write a more abstract serialisation/persistance module that could use either json,xml,some binary format and future

Re: D 2015/2016 Vision?

2015-10-06 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 6 October 2015 at 20:44:22 UTC, ponce wrote: On Tuesday, 6 October 2015 at 17:20:39 UTC, Jonathan M Davis wrote: But in general, at this point, with D, if you want deterministic destruction, then you use structs. Classes are not the appropriate place for it. If they were

Re: D and microservices

2015-10-06 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. on your email, in case it fits. nanomsg and a

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-06 Thread Ulrich Küttler via Digitalmars-d
On Tuesday, 6 October 2015 at 07:09:21 UTC, Jonathan M Davis wrote: On Tuesday, 6 October 2015 at 06:52:13 UTC, Ulrich Kuettler wrote: On Tuesday, 6 October 2015 at 02:31:53 UTC, Eric Niebler wrote: Given that starting point, ranges of different strength are an "obvious" next step that many

Re: D and microservices

2015-10-06 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 6 October 2015 at 19:31:20 UTC, Mengu wrote: a half of it is the buzz and other half of is not. remember people talking about reactjs, go and rails being buzz? they were the same. we have built an online payment gateway and we are about to decouple our application and switch to

Re: Objective C and C++ Compatibility?

2015-10-06 Thread Laeeth Isharc via Digitalmars-d
On Monday, 5 October 2015 at 14:16:22 UTC, Jack Stouffer wrote: Around the release of 2.068 I saw a couple of threads about Objective C compatibility in D, but it wasn't merged into stable for 2.068. Is this going to be merged into 2.069? Any improvements from the very basic support that was

Re: Bug? 0 is less than -10

2015-10-06 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 14:55:23 UTC, Adam D. Ruppe wrote: On Tuesday, 6 October 2015 at 14:46:56 UTC, tcak wrote: void main(){ size_t dec = 0; How is it generating "true" for (dec <= -10) ? Is there a special casting or something? size_t is unsigned, so the -10 is cast to

Re: This Week in D: livestreaming and we're moving forward on Windows bindings!

2015-10-06 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/6/15 9:09 AM, Iain Buclaw via Digitalmars-d-announce wrote: On 6 Oct 2015 12:30 am, "Adam D. Ruppe via Digitalmars-d-announce" > wrote: > > On Monday, 5 October 2015 at 21:59:49 UTC, anonymous wrote: >>

Re: std.data.json formal review

2015-10-06 Thread Sönke Ludwig via Digitalmars-d
Am 06.10.2015 um 12:05 schrieb Alex: JSON is a particular file format useful for serialising heirachical data. Given that D also has an XML module which appears to be deprecated, I wonder if it would be better to write a more abstract serialisation/persistance module that could use either

Re: Walter and I talk about D in Romania

2015-10-06 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/6/15 8:42 AM, Rory McGuire via Digitalmars-d-announce wrote: On Tue, Oct 6, 2015 at 2:43 AM, Andrei Alexandrescu via Digitalmars-d-announce > wrote: ... The event is sponsored by Siemens and free

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread Etienne Cimon via Digitalmars-d
On Tuesday, 6 October 2015 at 09:36:42 UTC, Marc Schütz wrote: On Tuesday, 6 October 2015 at 05:45:18 UTC, Andre wrote: vagrant@vagrant-ubuntu-trusty-64:~/projects/tests/vibed_test$ dub Target memutils 0.4.1 is up to date. Use --force to rebuild. Target libasync 0.7.5 is up to date. Use

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread Etienne Cimon via Digitalmars-d
On Monday, 5 October 2015 at 06:24:44 UTC, Andrei Alexandrescu wrote: On 10/5/15 1:34 AM, Rikki Cattermole wrote: Vibe.d has a provider called libasync. Libasync is fully implemented in D. You probably should have tried that at least. Although I still would recommend trying it ;) It's a lot

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 October 2015 at 11:30:00 UTC, Etienne Cimon wrote: Will need to strip memutils, will you have std.allocator ready? https://github.com/D-Programming-Language/phobos/tree/master/std/experimental/allocator :)

Re: What keeps you from using gtkd or dlangui

2015-10-06 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 6 October 2015 at 13:38:28 UTC, Gerald wrote: My limited experience with gtkd has been very positive, while the documentation is primarily reference material it's not very difficult to figure out how things work with GTK based on examples from C or pyGTK. I do use Linix and Gnome

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread Andre via Digitalmars-d
On Tuesday, 6 October 2015 at 09:36:42 UTC, Marc Schütz wrote: On Tuesday, 6 October 2015 at 05:45:18 UTC, Andre wrote: vagrant@vagrant-ubuntu-trusty-64:~/projects/tests/vibed_test$ dub Target memutils 0.4.1 is up to date. Use --force to rebuild. Target libasync 0.7.5 is up to date. Use

Re: Concatenation of ubyte[] to char[] works, but assignation doesn't

2015-10-06 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 09:28:29 UTC, Marc Schütz wrote: I see, this is a new problem introduced by `char + int = char`. But at least the following could be disallowed without introducing problems: int a = 'a'; char b = 32; But strictly speaking, we already accept overflow

Re: Concatenation of ubyte[] to char[] works, but assignation doesn't

2015-10-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 06, 2015 09:28:27 Marc Schütz via Digitalmars-d-learn wrote: > I see, this is a new problem introduced by `char + int = char`. > But at least the following could be disallowed without > introducing problems: > > int a = 'a'; > char b = 32; Sure, it would be nice, but

Re: Experience: Developing Cloud Foundry applications with D

2015-10-06 Thread Rikki Cattermole via Digitalmars-d
On 07/10/15 12:29 AM, Etienne Cimon wrote: On Monday, 5 October 2015 at 06:24:44 UTC, Andrei Alexandrescu wrote: On 10/5/15 1:34 AM, Rikki Cattermole wrote: Vibe.d has a provider called libasync. Libasync is fully implemented in D. You probably should have tried that at least. Although I

Re: Is Anything Holding you back?

2015-10-06 Thread krzaq via Digitalmars-d
On Friday, 2 October 2015 at 02:25:21 UTC, Yaser wrote: Are there any critical frameworks or libraries that are holding you back in fully investing in D? Obviously I think D is an awesome language, but some frameworks/libraries hold me back, wish I could do everything in D. Nothing major for

Re: What keeps you from using gtkd or dlangui

2015-10-06 Thread Gerald via Digitalmars-d
On Sunday, 4 October 2015 at 13:24:23 UTC, karabuta wrote: In YHO, what keeps you from using any of those fully(mostly)? Gtkd first, followed by dlangui. I need to know what I am signing up for. I'm working on a search utility using gtkd, it's essentially a GUI for grep. I was using a

[Issue 15149] [REG2.068.1] Linker error with separate compilation

2015-10-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15149 --- Comment #4 from Kenji Hara --- Created attachment 1554 --> https://issues.dlang.org/attachment.cgi?id=1554=edit Dustmited test case. --

Re: What is the postfix for min long value?

2015-10-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 06, 2015 15:16:12 tcak via Digitalmars-d-learn wrote: > While writing max ulong value, I added the "u" postfix. So > compiler accepted it as ulong value (That's my interpretation if > correct on compiler's side). > > writeln( 18_446_744_073_709_551_615u ); > > But when I try to

Re: Is Anything Holding you back?

2015-10-06 Thread Jan Johansson via Digitalmars-d
On Tuesday, 6 October 2015 at 14:28:42 UTC, Kagamin wrote: On Monday, 5 October 2015 at 16:40:06 UTC, Jan Johansson wrote: Yes, I know WCF more than well, doing my own bindings, federated security bindings, you name it. I also know that WCF works with attribute values during runtime, through

Re: D 2015/2016 Vision?

2015-10-06 Thread bitwise via Digitalmars-d
On Tuesday, 6 October 2015 at 06:45:47 UTC, Jonathan M Davis wrote: On Monday, 5 October 2015 at 23:08:37 UTC, bitwise wrote: Well, again that has it's pros and cons. This is why I just want a normal language solution like DIP74. They're not the same thing at all. scoped is supposed to put

D and microservices

2015-10-06 Thread Russel Winder via Digitalmars-d
Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. -- Russel. = Dr Russel Winder t:+44

Re: Moving back to .NET

2015-10-06 Thread Chris via Digitalmars-d
On Monday, 5 October 2015 at 15:01:14 UTC, Ola Fosheim Grøstad wrote: Could you line out how you would like a language to be so it doesn't bore you stiff? Consistency in philosophy is important. If D is a compile time oriented library authors language (and I think it is) then that needs to

Re: D 2015/2016 Vision?

2015-10-06 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 6 October 2015 at 17:03:07 UTC, bitwise wrote: On Tuesday, 6 October 2015 at 06:45:47 UTC, Jonathan M Davis wrote: They're not the same thing at all. scoped is supposed to put the class on the stack, not the heap. And it's not ref-counted. It's so that you can create a class object

Re: Bug? 0 is less than -10

2015-10-06 Thread Meta via Digitalmars-d-learn
On Tuesday, 6 October 2015 at 14:46:56 UTC, tcak wrote: Maybe I am just too stressed out to see the problem. [code] import std.stdio; void main(){ size_t dec = 0; writeln( dec, " ", (dec <= -10), " ", (dec >= 10), " ", ((dec <= -10) || (dec >= 10)) ); } [/code] [output] 0 true

Re: D and microservices

2015-10-06 Thread Dejan Lekic via Digitalmars-d
On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. As far as I know, there is no implementation of

Re: Linker error with dmd

2015-10-06 Thread Chris via Digitalmars-d-learn
On Friday, 2 October 2015 at 14:03:08 UTC, John Colvin wrote: On Friday, 2 October 2015 at 09:43:54 UTC, Chris wrote: Why do I get this error msg with dmd 2.067.1 and 2.068.0 in release mode: $ dub --build=release

Re: std.data.json formal review

2015-10-06 Thread Atila Neves via Digitalmars-d
On Tuesday, 6 October 2015 at 15:47:08 UTC, Sebastiaan Koppe wrote: At which point it begs the question, why not just write simple primitive (de)serialization modules that only do one format? Probably easier to build, maintain and debug. The binary one is the one I care about, so that's the

Re: This Week in D: livestreaming and we're moving forward on Windows bindings!

2015-10-06 Thread Nick Sabalausky via Digitalmars-d-announce
On 10/05/2015 05:30 PM, Andy Smith wrote: On Monday, 5 October 2015 at 19:35:53 UTC, anonymous wrote: On Monday 05 October 2015 21:29, Adam D. Ruppe wrote: which generates Microsoft format object files and the MS linker even on 32 bit I think you a word there. I think you a grammatical

Re: What is the postfix for min long value?

2015-10-06 Thread Ali Çehreli via Digitalmars-d-learn
On 10/06/2015 08:16 AM, tcak wrote: > While writing max ulong value, I added the "u" postfix. Better to use U to be consistent with L (see below). > But when I try to print out minimum value of long, compiler says > Error: signed integer overflow > > writeln( -9_223_372_036_854_775_808 ); I

<    1   2