Awesome mir/glas package

2016-11-13 Thread Picaud Vincent via Digitalmars-d
Just a word to say that I find the glas benchmark results and design awesome! https://github.com/libmir/mir I am new to D but I think this kind of developments has the potential to attract a lot of people doing numerical computations. I also would like to mention the "libFlame" approach

Re: static array internal & dangling reference

2016-11-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 14, 2016 06:19:25 Picaud Vincent via Digitalmars-d-learn wrote: > On Monday, 14 November 2016 at 06:10:38 UTC, Jonathan M Davis > > wrote: > > I would have hoped that it would have complained about the > > first one. I don't know why it isn't. It definitely results in > >

Nov 16 - Memory Safety and the D Programming Language

2016-11-13 Thread Walter Bright via Digitalmars-d-announce
This is a copy of the announcement. See y'all there! --- Folks please welcome Walter Bright as our presenter this month! Also please thank KForce for sponsoring our pizza this month!! Date/Time/Location: November 16th, 2016 at 7:00 PM Microsoft Eastside Campus, Bldg. 40, Steptoe

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Adam Wilson via Digitalmars-d-announce
Adam Wilson wrote: rikki cattermole wrote: On 14/11/2016 9:31 AM, Adam Wilson wrote: Jacob Carlborg wrote: On 2016-11-12 21:50, Adam Wilson wrote: I choose OpenSSL because it's a well respected, highly trusted, and it is available everywhere. I despise the license and the API. Sadly, those

Re: static array internal & dangling reference

2016-11-13 Thread Picaud Vincent via Digitalmars-d-learn
On Monday, 14 November 2016 at 06:10:38 UTC, Jonathan M Davis wrote: I would have hoped that it would have complained about the first one. I don't know why it isn't. It definitely results in having a pointer to memory that should no longer be referenced. Yes I would have hoped too, because

Re: static array internal & dangling reference

2016-11-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 14, 2016 05:53:04 Picaud Vincent via Digitalmars-d-learn wrote: > On Sunday, 13 November 2016 at 23:39:37 UTC, Steven Schveighoffer > > wrote: > > Note that he is declaring an int[10] inside the function and > > then returning it. The compiler must see that the int[10] will >

Re: static array internal & dangling reference

2016-11-13 Thread Picaud Vincent via Digitalmars-d-learn
On Sunday, 13 November 2016 at 23:39:37 UTC, Steven Schveighoffer wrote: Note that he is declaring an int[10] inside the function and then returning it. The compiler must see that the int[10] will be returned, and so it reuses the pre-allocated buffer for returning as the same address to

Re: CTFE Status

2016-11-13 Thread Stefan Koch via Digitalmars-d
Assignment to Array.length works now :) the following code : uint[] makeArr() { uint[] arr; arr.length = 5; return arr; } pragma(msg, makeArr()); results in : CTFE_DEBUG_MESSAGE : building Array of Length 5 [0u, 0u, 0u, 0u, 0u]

Re: Third attempt for SUM

2016-11-13 Thread jmh530 via Digitalmars-d
On Sunday, 13 November 2016 at 16:56:30 UTC, Ilya Yaroshenko wrote: Yes, KBN should be used instead Kahan when possible (for example Quaternions can not be summed using default KBN implementation). BTW, i have implemented sumOfLogs [1], it is more precise then everything else. [1]

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Adam Wilson via Digitalmars-d-announce
rikki cattermole wrote: On 14/11/2016 9:31 AM, Adam Wilson wrote: Jacob Carlborg wrote: On 2016-11-12 21:50, Adam Wilson wrote: I choose OpenSSL because it's a well respected, highly trusted, and it is available everywhere. I despise the license and the API. Sadly, those are not primary

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Adam Wilson via Digitalmars-d-announce
Steven Schveighoffer wrote: On 11/12/16 8:15 PM, Adam Wilson wrote: Hello DLang, I wanted to announce that I have completed the bulk of the work on my Cryptography library for D, SecureD. I was inspired to do this project by Stan Drapkin and his Inferno.NET project, however, the two projects

Re: Boston D Language Meetup in Back Bay

2016-11-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/4/16 12:02 PM, Steven Schveighoffer wrote: Just announced: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/ We are going to try a freely available conference room to have a presentation. No details on the presentation yet (I will figure that out soon),

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/12/16 8:15 PM, Adam Wilson wrote: Hello DLang, I wanted to announce that I have completed the bulk of the work on my Cryptography library for D, SecureD. I was inspired to do this project by Stan Drapkin and his Inferno.NET project, however, the two projects NOT compatible. [snip] Let

Re: static array internal & dangling reference

2016-11-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/13/16 12:52 PM, cym13 wrote: On Saturday, 12 November 2016 at 12:16:02 UTC, Andrew wrote: On Saturday, 12 November 2016 at 11:03:31 UTC, Mike Parker wrote: [...] I thought that if you changed the function signature to int[10] f() to return a static array, this should be returned by

Re: Appender bug, or impossible?

2016-11-13 Thread Steven Schveighoffer via Digitalmars-d
On 11/13/16 11:29 AM, Jonathan Marler wrote: It looks like an Appender field of a struct doesn't work when its element type is the containing struct, i.e. struct Foo { Appender!(Foo[]) fooAppender; } My guess is the problem is that the Appender needs to know how big "Foo" is since it would

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread rikki cattermole via Digitalmars-d-announce
On 14/11/2016 9:31 AM, Adam Wilson wrote: Jacob Carlborg wrote: On 2016-11-12 21:50, Adam Wilson wrote: I choose OpenSSL because it's a well respected, highly trusted, and it is available everywhere. I despise the license and the API. Sadly, those are not primary concerns when dealing with

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Adam Wilson via Digitalmars-d-announce
Jacob Carlborg wrote: On 2016-11-12 21:50, Adam Wilson wrote: I choose OpenSSL because it's a well respected, highly trusted, and it is available everywhere. I despise the license and the API. Sadly, those are not primary concerns when dealing with Cryptograpy libraries. Well, Apple

[Issue 1761] TypeInfo.toString for function types always indicates no-parameter function

2016-11-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1761 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/ff4adf65b16cefc4caa831e9a6983970d831396e fix issue 1761

[Issue 1761] TypeInfo.toString for function types always indicates no-parameter function

2016-11-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1761 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Trailing catch on function?

2016-11-13 Thread André Puel via Digitalmars-d
On Saturday, 12 November 2016 at 12:17:35 UTC, Anonymouse wrote: On Wednesday, 9 November 2016 at 09:49:08 UTC, Daniel N wrote: On Tuesday, 8 November 2016 at 16:02:25 UTC, Manu wrote: scope(failure) doesn't catch... how is that function nothrow? Seems like you overlooked Anonymouse's

Re: pipeProcess: read stdout and stderror simultaneously

2016-11-13 Thread unDEFER via Digitalmars-d
I have found! The magic word is Redirect.stderrToStdout. So the right code: == auto rsync_pipes = pipeProcess(["rsync", archieve_option, "-vu", "--delete", path, copy_to], Redirect.stdout | Redirect.stderrToStdout); scope(exit) wait(df_pipes.pid); foreach (df_line;

Re: Earthquakes - New Zealand

2016-11-13 Thread Suliman via Digitalmars-d
On Sunday, 13 November 2016 at 12:17:22 UTC, rikki cattermole wrote: Hello everyone! So to summarize New Zealand right now is being hit with some major earthquakes. But don't fret, I'm ok. There is a couple of other members in NZ, so please do let us know that you're safe! Now, for W, is

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-11-12 21:50, Adam Wilson wrote: I choose OpenSSL because it's a well respected, highly trusted, and it is available everywhere. I despise the license and the API. Sadly, those are not primary concerns when dealing with Cryptograpy libraries. Well, Apple abandoned it years ago because

Re: static array internal & dangling reference

2016-11-13 Thread cym13 via Digitalmars-d-learn
On Saturday, 12 November 2016 at 12:16:02 UTC, Andrew wrote: On Saturday, 12 November 2016 at 11:03:31 UTC, Mike Parker wrote: [...] I thought that if you changed the function signature to int[10] f() to return a static array, this should be returned by value, and so should be safe to use,

Re: pipeProcess: read stdout and stderror simultaneously

2016-11-13 Thread unDEFER via Digitalmars-d
2) Some magic function which join stderr with stdout together: foreach (df_line; df_pipes.stdout_joined_with_stderr.notBlockingByLine) { //Handle progress } Thank you in advance.

pipeProcess: read stdout and stderror simultaneously

2016-11-13 Thread unDEFER via Digitalmars-d
Hello! I'm trying to run rsync and handle errors and operation progress at the same time: auto rsync_pipes = pipeProcess(["rsync", "-avu", "--delete", path, copy_to], Redirect.stdout | Redirect.stderr); scope(exit) wait(df_pipes.pid); foreach (df_line;

Re: Third attempt for SUM

2016-11-13 Thread Ilya Yaroshenko via Digitalmars-d
On Sunday, 13 November 2016 at 16:04:51 UTC, safety0ff wrote: On Saturday, 12 November 2016 at 15:37:29 UTC, Ilya Yaroshenko wrote: Hi all, Advanced summation algorithms [3] from Mir project [1] are ready to be merged to Phobos. Hi, Do you have any thoughts at to when Kahan should be used

Appender bug, or impossible?

2016-11-13 Thread Jonathan Marler via Digitalmars-d
It looks like an Appender field of a struct doesn't work when its element type is the containing struct, i.e. struct Foo { Appender!(Foo[]) fooAppender; } My guess is the problem is that the Appender needs to know how big "Foo" is since it would be storing each element by value, but since

Re: Third attempt for SUM

2016-11-13 Thread safety0ff via Digitalmars-d
On Saturday, 12 November 2016 at 15:37:29 UTC, Ilya Yaroshenko wrote: Hi all, Advanced summation algorithms [3] from Mir project [1] are ready to be merged to Phobos. Hi, Do you have any thoughts at to when Kahan should be used over KBN? I was testing summation for a program (summing

Re: Variable-Length Bit-Level Encoding

2016-11-13 Thread LiNbO3 via Digitalmars-d-learn
On Saturday, 12 November 2016 at 19:19:58 UTC, James Buren wrote: On Saturday, 12 November 2016 at 19:13:13 UTC, Nordlöw wrote: Does anybody have a suggestion for an encoder that is more suitable for real-world values that are, for instance, normally distributed? I don't recall the name, but

Re: Earthquakes - New Zealand

2016-11-13 Thread Ali Çehreli via Digitalmars-d
On 11/13/2016 04:17 AM, rikki cattermole wrote: > Hello everyone! > So to summarize New Zealand right now is being hit with some major > earthquakes. > > But don't fret, I'm ok. > There is a couple of other members in NZ, so please do let us know that > you're safe! > > Now, for W, is there a

Re: PDF generation in D?

2016-11-13 Thread Bauss via Digitalmars-d
On Thursday, 10 November 2016 at 23:42:46 UTC, Daniel Kozak wrote: Dne 10.11.2016 v 23:30 Karabuta via Digitalmars-d napsal(a): Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :) It depends what

Earthquakes - New Zealand

2016-11-13 Thread rikki cattermole via Digitalmars-d
Hello everyone! So to summarize New Zealand right now is being hit with some major earthquakes. But don't fret, I'm ok. There is a couple of other members in NZ, so please do let us know that you're safe! Now, for W, is there a plan for core members to report in to check that everyone is

[Issue 16666] core.sys.posix.sys.types uses c_long without importing its definition

2016-11-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added CC||4bur...@gmail.com ---

[Issue 16683] New: Lower typeid expression to .typeidImpl!(T)

2016-11-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16683 Issue ID: 16683 Summary: Lower typeid expression to .typeidImpl!(T) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 1761] TypeInfo.toString for function types always indicates no-parameter function

2016-11-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1761 --- Comment #2 from Lucia Cojocaru --- PR: https://github.com/dlang/druntime/pull/1692 --

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Adam Wilson via Digitalmars-d-announce
Suliman wrote: It would take some research, but the native Botan library makes heavy use of C++ templates There is native lib https://github.com/etcimon/botan Some people with whom I talked said that botan is too low level for them and it's hard for them to use it. So your lib maybe very good

Re: SecureD - A simple cryptography library for D

2016-11-13 Thread Suliman via Digitalmars-d-announce
It would take some research, but the native Botan library makes heavy use of C++ templates There is native lib https://github.com/etcimon/botan Some people with whom I talked said that botan is too low level for them and it's hard for them to use it. So your lib maybe very good wrap on top of

Re: {DMD-AST-Tool} For beginning DDMD hackers

2016-11-13 Thread Stefan Koch via Digitalmars-d
On Saturday, 12 November 2016 at 10:26:53 UTC, Stefan Koch wrote: Hi Guys, I have written a small utility called dmd-ast-tool. It can be used to quickly generate boilerplate code for dmd-ast-visitors. Originally it was only written for my personal use, it used to work with a handwritten

Re: Unum II announcement

2016-11-13 Thread Nick B via Digitalmars-d
On Monday, 10 October 2016 at 05:32:55 UTC, Nick B wrote: On Saturday, 8 October 2016 at 00:35:31 UTC, Nick B wrote: On Sunday, 25 September 2016 at 02:22:01 UTC, Nick B wrote: I suggest that now, programmers would/may have a choice: be slow and correct, or fast and incorrect, and that would