Re: DLang quarterly EU?

2017-05-06 Thread Walter Bright via Digitalmars-d
Dang, I wish I could participate in that!

get vtable size

2017-05-06 Thread Mike B Johnson via Digitalmars-d-learn
how many elements(virtual functions) are in the __vptr?

Re: How to declare "abstract" delegates list?

2017-05-06 Thread RedCAT via Digitalmars-d-learn
On Saturday, 6 May 2017 at 06:07:01 UTC, bauss wrote: By theory that should work. It's untested, so you might need a few tweaks here and there. Thanks!

Re: DLang quarterly EU?

2017-05-06 Thread Kai Nacke via Digitalmars-d
On Saturday, 6 May 2017 at 23:53:45 UTC, Ethan Watson wrote: I was speaking to Atila earlier about the things we like about DConf. Sitting around talking to a bunch of computer scientists is fantastic, and not something people generally get to do in their chosen careers as a programmer. EU

Re: DLang quarterly EU?

2017-05-06 Thread Manu via Digitalmars-d
On 7 May 2017 at 09:53, Ethan Watson via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > I was speaking to Atila earlier about the things we like about DConf. > Sitting around talking to a bunch of computer scientists is fantastic, and > not something people generally get to do in their

Re: DConf 2017 Day 3 Livestream

2017-05-06 Thread Joshua Niehus via Digitalmars-d-announce
It's over. The video has already been take down. They will chop it into individual lectures and repost them on Monday or thereabouts, I think. Ahh I see, thanks.

Re: DConf 2017 Berlin - Streaming ?

2017-05-06 Thread via Digitalmars-d
On Sunday, 7 May 2017 at 00:02:09 UTC, deXtoRious wrote: Supposedly just until Monday. I really don't get why they couldn't leave the full recordings up while they're in the process of slicing them up, though. Yeah they should keep the full thing up while they're shopping it. The weekend is

Re: DConf 2017 Berlin - Streaming ?

2017-05-06 Thread deXtoRious via Digitalmars-d
On Saturday, 6 May 2017 at 22:16:34 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: Recordings hidden/removed? do we need to wait another month to get them? Supposedly just until Monday. I really don't get why they couldn't leave the full recordings up while they're in the process of slicing

[Issue 17375] copy relocated ModuleInfos end up getting detected as duplicates

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 --- Comment #2 from Vladimir Panteleev --- Bisecting binutils points to: 9acc85a62eb76c270724bba15c889d2d05567b6a is the first bad commit commit 9acc85a62eb76c270724bba15c889d2d05567b6a Author: Alan Modra

DLang quarterly EU?

2017-05-06 Thread Ethan Watson via Digitalmars-d
I was speaking to Atila earlier about the things we like about DConf. Sitting around talking to a bunch of computer scientists is fantastic, and not something people generally get to do in their chosen careers as a programmer. EU nations are quite close together. Rather than a city meet up

Re: DConf 2017 Day 3 Livestream

2017-05-06 Thread MysticZach via Digitalmars-d-announce
On Saturday, 6 May 2017 at 22:12:10 UTC, Joshua Niehus wrote: On Saturday, 6 May 2017 at 08:03:11 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=XTtruC3D2Ag Is anyone else having issues viewing the livestream? It's over. The video has already been take down. They will chop it into

Re: DConf 2017 Berlin - Streaming ?

2017-05-06 Thread via Digitalmars-d
Recordings hidden/removed? do we need to wait another month to get them?

Re: How to get field default value at CT

2017-05-06 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 6 May 2017 at 21:40:24 UTC, Mike B Johnson wrote: I'd like to get the value assign to a field at CT. struct { int x = 3434; } I'd like to get the assigned "value" 3434 for x at CT. Use the .init property: struct S { int x = 3434; } unittest { static

Re: DConf 2017 Day 3 Livestream

2017-05-06 Thread Joshua Niehus via Digitalmars-d-announce
On Saturday, 6 May 2017 at 08:03:11 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=XTtruC3D2Ag Is anyone else having issues viewing the livestream?

How to get field default value at CT

2017-05-06 Thread Mike B Johnson via Digitalmars-d-learn
I'd like to get the value assign to a field at CT. struct { int x = 3434; } I'd like to get the assigned "value" 3434 for x at CT.

Re: Thank You DConf 2017

2017-05-06 Thread Ali Çehreli via Digitalmars-d
On 05/06/2017 11:53 AM, qznc wrote: Now I wish the remaining people a lot of fun at the hackathon and wait for some talks I missed to be published. Did you catch the point when we waved at you? :) Ali

[Issue 17374] Improve inferred attribute error message

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17374 --- Comment #1 from Adam D. Ruppe --- Actually, I think what I really want from the error message is for it to find the bottom-most inferred function that fails the expected check and then just issue the error message it

[Issue 17375] copy relocated ModuleInfos end up getting detected as duplicates

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 --- Comment #1 from Vladimir Panteleev --- On Arch Linux, this is reproducible with binutils 2.28.0, but not reproducible with 2.27. --

[Issue 17375] copy relocated ModuleInfos end up getting detected as duplicates

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 17375] copy relocated ModuleInfos end up getting detected as duplicates

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 greensunn...@gmail.com changed: What|Removed |Added CC||greensunn...@gmail.com --

Re: Thank You DConf 2017

2017-05-06 Thread qznc via Digitalmars-d
On Saturday, 6 May 2017 at 16:44:00 UTC, Stanislav Blinov wrote: Fantastic three days of presentations. A big Thank You to all presenters, organizers and sponsors, and a special Thank You to the team that made the livestream possible, so even those of us who couldn't make it to Berlin could

Re: Fantastic exchange from DConf

2017-05-06 Thread thedeemon via Digitalmars-d
On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. And then null safety will kill D. ;)

[Issue 17375] New: copy relocated ModuleInfos end up getting detected as duplicates

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375 Issue ID: 17375 Summary: copy relocated ModuleInfos end up getting detected as duplicates Product: D Version: D2 Hardware: x86_64 OS: Linux Status:

[Issue 17374] New: Improve inferred attribute error message

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17374 Issue ID: 17374 Summary: Improve inferred attribute error message Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: enhancement

profdump - Converts your 'trace.log' files into dot graphs

2017-05-06 Thread Anton Fediushin via Digitalmars-d-announce
profdump parses 'trace.log' (output of default profiler) and converts it to: - Plain text - More readable and user-friendly than raw trace.log - JSON - Can be used if you wanna process it with your scripts - DOT Graph - Nice and colourful graphs You can customize output: --threshold - If time

Thank You DConf 2017

2017-05-06 Thread Stanislav Blinov via Digitalmars-d
Fantastic three days of presentations. A big Thank You to all presenters, organizers and sponsors, and a special Thank You to the team that made the livestream possible, so even those of us who couldn't make it to Berlin could not only learn from the conference but actually participate. An

Re: alias can't find symbol or can't use symbol

2017-05-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, May 6, 2017 1:49:34 PM CEST Carl Sturtivant via Digitalmars-d- learn wrote: > On Wednesday, 3 May 2017 at 09:04:07 UTC, Jonathan M Davis wrote: > > I believe that the core problem is that an alias declaration > > just aliases a symbol - i.e. it just creates a new name for the > >

Re: On Andrei's Keynote / checkedint

2017-05-06 Thread qznc via Digitalmars-d
On Saturday, 6 May 2017 at 14:14:25 UTC, Andrei Alexandrescu wrote: [0] http://beza1e1.tuxen.de/leaky_abstractions.html Nice job writing a post so quickly! It was a coincidence. It took longer. That post is part of my preparation for another conference [0], but that talk will be strongly

Re: std.algorithm can not be used inside pure functions?

2017-05-06 Thread Szabo Bogdan via Digitalmars-d-learn
On Saturday, 6 May 2017 at 15:01:16 UTC, Adam D. Ruppe wrote: On Saturday, 6 May 2017 at 14:14:41 UTC, Szabo Bogdan wrote: oh yes, I get it... begin and end are `SysTime`.. there is any workaround for this? Don't use pure? I don't think any of the SysTime conversion methods are pure since

Re: std.algorithm can not be used inside pure functions?

2017-05-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, May 6, 2017 2:14:41 PM CEST Szabo Bogdan via Digitalmars-d- learn wrote: > On Saturday, 6 May 2017 at 13:21:10 UTC, Adam D. Ruppe wrote: > > On Saturday, 6 May 2017 at 13:19:17 UTC, Szabo Bogdan wrote: > >> a.begin.toISOExtString, > > > > I believe that function is not marked pure if

Re: std.algorithm can not be used inside pure functions?

2017-05-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 6 May 2017 at 14:14:41 UTC, Szabo Bogdan wrote: oh yes, I get it... begin and end are `SysTime`.. there is any workaround for this? Don't use pure? I don't think any of the SysTime conversion methods are pure since all of them call C functions which pull from the time zone...

Re: On Andrei's Keynote / checkedint

2017-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/17 12:45 PM, qznc wrote: I just watched Andrei's Keynote slightly delayed so I could not ask live via chat. One question and one remark: 1. Is there any reason to restrict this to integrals? Why not use Checked!(float,H) or Checked!(complex,H) or Checked!(polynomial,H)? If it is more

Re: std.algorithm can not be used inside pure functions?

2017-05-06 Thread Szabo Bogdan via Digitalmars-d-learn
On Saturday, 6 May 2017 at 13:21:10 UTC, Adam D. Ruppe wrote: On Saturday, 6 May 2017 at 13:19:17 UTC, Szabo Bogdan wrote: a.begin.toISOExtString, I believe that function is not marked pure if it is a SysTime because it needs to pull global timezone info. What is the type of a.begin? oh

Re: multiple `alias this` suggestion

2017-05-06 Thread Carl Sturtivant via Digitalmars-d
On Saturday, 6 May 2017 at 10:18:24 UTC, Seb wrote: As no one pointed it out before, FYI there has been a previous DIP (https://wiki.dlang.org/DIP66) on which the old dmd PR was based on. Glad you mentioned that!

Re: Adding D code to a C++ codebase

2017-05-06 Thread Russel Winder via Digitalmars-d
On Sat, 2017-05-06 at 13:42 +, Joakim via Digitalmars-d wrote: > […] > ldc is a mixed D/C++ codebase using CMake: > > https://github.com/ldc-developers/ldc/blob/master/CMakeLists.txt > Of course it is. I should have known that. I shall delve into its build. -- Russel.

Re: Adding D code to a C++ codebase

2017-05-06 Thread Russel Winder via Digitalmars-d
On Sat, 2017-05-06 at 12:11 +, qznc via Digitalmars-d wrote: > […] > > There is a plugin for IntelliJ [0], but I have not tried it. I  > don't know the Jetbrains products. Is Clion and IntelliJ IDEA the  > same core with different plugins and branding or is it really  > different? > > [0]

Re: alias can't find symbol or can't use symbol

2017-05-06 Thread Carl Sturtivant via Digitalmars-d-learn
On Wednesday, 3 May 2017 at 09:04:07 UTC, Jonathan M Davis wrote: I believe that the core problem is that an alias declaration just aliases a symbol - i.e. it just creates a new name for the symbol. And as far as I can tell, alias n2 = x2.n; is actually equivalent to alias n2 = member.n;

Re: Adding D code to a C++ codebase

2017-05-06 Thread Joakim via Digitalmars-d
On Saturday, 6 May 2017 at 11:44:28 UTC, Russel Winder wrote: Say I have a C++14 codebase, for arguments sake let's call it Me TV. Say I fancy rewriting it in D, but incrementally not as a "big bang". Actually I may start by adding new features in D code rather than C++. In any event it is a

std.algorithm can not be used inside pure functions?

2017-05-06 Thread Szabo Bogdan via Digitalmars-d-learn
Hi, I'm trying to write a function that saves some structs as csv file: ``` string toCsv(const(StatStorage) storage) { return storage.values .map!(a => [ a.name, a.begin.toISOExtString, a.end.toISOExtString, a.status.to!string ]) .map!(a => a.join(',')) .join('\n'); } ``` I

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread k-five via Digitalmars-d-learn
On Saturday, 6 May 2017 at 10:35:05 UTC, Stanislav Blinov wrote: On Saturday, 6 May 2017 at 10:15:03 UTC, k-five wrote: On Saturday, 6 May 2017 at 08:53:12 UTC, Jonathan M Davis wrote: On Saturday, May 6, 2017 8:34:11 AM CEST k-five via Digitalmars-d-learn wrote: On Friday, 5 May 2017 at

Re: Adding D code to a C++ codebase

2017-05-06 Thread qznc via Digitalmars-d
On Saturday, 6 May 2017 at 11:44:28 UTC, Russel Winder wrote: CLion, IntelliJ IDEA, Eclipse/CDT, Xcode, and Visual Studio seem to be the IDEs of the moment. There is effort to get D support in IntelliJ IDEA, but CLion is where the C++ folk are. Eclipse/CDT appears to have lost all activity on

[DConf 2017] Amaury Séchet: Cryptography in D

2017-05-06 Thread Fool via Digitalmars-d
Deadalnix, thumbs up for your nice talk! One question, how can you be sure that the optimizer does not 'improve' your code and (re)introduce those kinds of vulnerabilities you carefully try to eliminate? Is there any other option than looking at the generated code? For every compiler

Adding D code to a C++ codebase

2017-05-06 Thread Russel Winder via Digitalmars-d
Say I have a C++14 codebase, for arguments sake let's call it Me TV. Say I fancy rewriting it in D, but incrementally not as a "big bang". Actually I may start by adding new features in D code rather than C++. In any event it is a mixed C++/D code with a C++ main. The build is currently CMake

Re: On Andrei's Keynote / checkedint

2017-05-06 Thread qznc via Digitalmars-d
On Saturday, 6 May 2017 at 10:45:56 UTC, qznc wrote: I just watched Andrei's Keynote slightly delayed so I could not ask live via chat. One question and one remark: 1. ... 2. ... 3. Checkedint has the same problem as std::string in C++, which Scott Meyers highlighted in his keynote the day

On Andrei's Keynote / checkedint

2017-05-06 Thread qznc via Digitalmars-d
I just watched Andrei's Keynote slightly delayed so I could not ask live via chat. One question and one remark: 1. Is there any reason to restrict this to integrals? Why not use Checked!(float,H) or Checked!(complex,H) or Checked!(polynomial,H)? If it is more general, then we should change

Re: DIP 1005 - Preliminary Review Round 1

2017-05-06 Thread Mike Parker via Digitalmars-d
On Saturday, 6 May 2017 at 10:38:25 UTC, Mike Parker wrote: On Saturday, 22 April 2017 at 11:54:08 UTC, Mike Parker wrote: All review-related feedback on and discussion of the DIP should occur in this thread. Due to DConf taking place during the review period, the period will be extended by a

Re: DIP 1005 - Preliminary Review Round 1

2017-05-06 Thread Mike Parker via Digitalmars-d
On Saturday, 22 April 2017 at 11:54:08 UTC, Mike Parker wrote: All review-related feedback on and discussion of the DIP should occur in this thread. Due to DConf taking place during the review period, the period will be extended by a week. The review period will end at 11:59 PM ET on May 13

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 6 May 2017 at 10:15:03 UTC, k-five wrote: On Saturday, 6 May 2017 at 08:53:12 UTC, Jonathan M Davis wrote: On Saturday, May 6, 2017 8:34:11 AM CEST k-five via Digitalmars-d-learn wrote: On Friday, 5 May 2017 at 17:07:25 UTC, Stanislav Blinov wrote: > On Friday, 5 May 2017 at

Re: DConf hackathon: idea list

2017-05-06 Thread Seb via Digitalmars-d-announce
On Saturday, 6 May 2017 at 10:13:28 UTC, Seb wrote: On Thursday, 4 May 2017 at 13:32:21 UTC, Seb wrote: Hi all, the DConf hackathon isn’t a hackathon in the traditional sense. It is intended as a day for _collaboratively_ focusing on long-lasting problems and pain points in the D ecosystem,

Re: DConf 2017 Day 2 Livestream

2017-05-06 Thread Joakim via Digitalmars-d-announce
On Saturday, 6 May 2017 at 09:36:16 UTC, mate wrote: On Friday, 5 May 2017 at 08:06:05 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=_gfwk-zRwmk Unfortunately all these links now give a “This video is unavailable” error. Day 1 https://www.youtube.com/watch?v=MqrJZg6PgnM

Re: multiple `alias this` suggestion

2017-05-06 Thread Seb via Digitalmars-d
On Thursday, 4 May 2017 at 14:09:49 UTC, Carl Sturtivant wrote: Reasonable. I may eventually resort to this possibility, but right now I am trying to force out the consequences of avoiding this extra complexity. (And syntax, yes, noted.) Not finished posting to this thread yet. As no one

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread k-five via Digitalmars-d-learn
On Saturday, 6 May 2017 at 08:53:12 UTC, Jonathan M Davis wrote: On Saturday, May 6, 2017 8:34:11 AM CEST k-five via Digitalmars-d-learn wrote: On Friday, 5 May 2017 at 17:07:25 UTC, Stanislav Blinov wrote: > On Friday, 5 May 2017 at 09:54:03 UTC, k-five wrote:

Re: DConf hackathon: idea list

2017-05-06 Thread Seb via Digitalmars-d-announce
On Thursday, 4 May 2017 at 13:32:21 UTC, Seb wrote: Hi all, the DConf hackathon isn’t a hackathon in the traditional sense. It is intended as a day for _collaboratively_ focusing on long-lasting problems and pain points in the D ecosystem, planning upcoming features or DIPs, and creation of

Re: Fantastic exchange from DConf

2017-05-06 Thread qznc via Digitalmars-d
On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter Bright: I firmly believe that memory safety is gonna be an absolute requirement moving forward, very soon, for programming language selection. Scott Meyers: For, for what kinds of applications? Walter: Anything that goes on the

[Issue 17264] [REG2.073] uniq fails with const elements

2017-05-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17264 Vladimir Panteleev changed: What|Removed |Added CC|

Re: DConf 2017 Day 2 Livestream

2017-05-06 Thread mate via Digitalmars-d-announce
On Friday, 5 May 2017 at 08:06:05 UTC, Mike Parker wrote: https://www.youtube.com/watch?v=_gfwk-zRwmk Unfortunately all these links now give a “This video is unavailable” error. Day 1 https://www.youtube.com/watch?v=MqrJZg6PgnM https://www.youtube.com/watch?v=IqiXMN03968 Day 2

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 6 May 2017 at 08:34:11 UTC, k-five wrote: Also what is the parameter "a.empty" for template filter Jonathan covered the type part. As for that last bit, the filter template takes a predicate as parameter. This predicate is called for each input element, and if returns false,

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, May 6, 2017 8:34:11 AM CEST k-five via Digitalmars-d-learn wrote: > On Friday, 5 May 2017 at 17:07:25 UTC, Stanislav Blinov wrote: > > On Friday, 5 May 2017 at 09:54:03 UTC, k-five wrote: > == > > Thanks. > I only needed this part

Re: Looking for an equivalent to C++ std::getline in D

2017-05-06 Thread k-five via Digitalmars-d-learn
On Friday, 5 May 2017 at 17:07:25 UTC, Stanislav Blinov wrote: On Friday, 5 May 2017 at 09:54:03 UTC, k-five wrote: == Thanks. I only needed this part since it filters the empty elements and this is enough for me: auto input =

DConf 2017 Day 3 Livestream

2017-05-06 Thread Mike Parker via Digitalmars-d-announce
https://www.youtube.com/watch?v=XTtruC3D2Ag

Re: "Rolling Hash computation" or "Content Defined Chunking"

2017-05-06 Thread Johannes Pfau via Digitalmars-d-learn
Am Mon, 01 May 2017 21:01:43 + schrieb notna : > Hi Dlander's. > > Found some interesting reads ([1] [2] [3]) about the $SUBJECT and > wonder if there is anything available in the Dland?! > > If yes, pls. share. > If not, how could it be done (D'ish) > >

Fantastic exchange from DConf

2017-05-06 Thread Joakim via Digitalmars-d
Walter Bright: I firmly believe that memory safety is gonna be an absolute requirement moving forward, very soon, for programming language selection. Scott Meyers: For, for what kinds of applications? Walter: Anything that goes on the internet. Scott: Uh, let me just, sort of as background,

Re: How to declare "abstract" delegates list?

2017-05-06 Thread bauss via Digitalmars-d-learn
On Saturday, 6 May 2017 at 06:07:01 UTC, bauss wrote: On Friday, 5 May 2017 at 14:20:43 UTC, RedCAT wrote: [...] I would do something like this: [...] You could also do use alias this to use the delegate instead of the class encapsulating the delegate.

Re: How to declare "abstract" delegates list?

2017-05-06 Thread bauss via Digitalmars-d-learn
On Friday, 5 May 2017 at 14:20:43 UTC, RedCAT wrote: Hello! Is it possible to create a list of slightly different delegates? For example, there is a class hierarchy: class Base; class DerivedOne : Base; class DerivedTwo : Base; And there are several delegates: void delegate(int, Base); void