Re: Google Summer of Code 2017

2016-12-26 Thread Seb via Digitalmars-d-announce
On Monday, 26 December 2016 at 23:25:24 UTC, Craig Dillabaugh wrote: I've now created the Google Summer of Code Idea's page for 2017. Thanks a lot for being such a good org admin! Its empty at the moment, awaiting all your wonderful ideas: I know about these two lists - they might be a

Re: Using dlopen/dlsym

2016-12-26 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: I'm building with no flags using dmd. Do dmd -v for verbose output and see what linker flags it is doing. Perhaps you have a configuration difference that is causing it not to export the symbol (`fun` isn't marked

Beta D 2.072.2-b1

2016-12-26 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.072.2 point release. This version resolves a number of regressions and bugs in the 2.072.1 release. Most prominently scope classes work again in @safe code, various rdmd bugs were fixed, and -fPIC became default for all linux 64-bit binaries and packages in order to support

Re: DMD travis-ci problems with new GDC toolchains

2016-12-26 Thread Martin Nowak via Digitalmars-d
On Sunday, 25 December 2016 at 19:25:40 UTC, Johannes Pfau wrote: This is not place to post bug reports. It was only by chance that I read it. Better file a Bugzilla Ticket, and notify the author of related tools/scripts. Since noone can monitor everything surrounding D, mailing the author

[Issue 17029] [Reg 2.072] scope variable may not be returned

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17029 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to scope at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c8d9e33ea2f7337b40866f15f37fbec058262eed Merge pull request #6363 from WalterBright/fix17029 fix Issue

[Issue 16979] Race in druntime leads to undefined behaviour

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16979 safety0ff.bugz changed: What|Removed |Added Status|NEW |RESOLVED

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 25 December 2016 at 19:41:38 UTC, Johannes Pfau wrote: Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries at https://gdcproject.org/downloads. Congratulations! massive internal changes in GDC in preparation for the DDMD frontend Sounded

[Issue 17029] [Reg 2.072] scope variable may not be returned

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17029 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/063bcfca0b30f31a18ebf2b1fae2873805b7d445 fix Issue 17029 - [Reg 2.072] scope variable may not be

[Issue 16794] dmd not working on Ubuntu 16.10 because of default PIE linking

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16794 --- Comment #17 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9fbce55814bdc8f78d6fead3243db657eafc4ec7 fix Issue 16794 - dmd not working on Ubuntu 16.10

Re: [question] Access from UDA constructor to parent symbol

2016-12-26 Thread Ali Çehreli via Digitalmars-d-learn
On 12/26/2016 02:04 PM, crimaniak wrote: So my main question: how it is possible to do such thing? Just to make sure we're on the same page: :) * There is 'interface' in addition to 'class' * If all you want is to check, then you can write template constraints by following the example of

Re: D-Apt DMD

2016-12-26 Thread rikki cattermole via Digitalmars-d
On 27/12/2016 6:05 AM, Russel Winder via Digitalmars-d wrote: I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. For future reference, source here[0]. Easy enough to compile + add

Simple library initialization

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
Walter and I investigated a bit the way C module initialization/termination works. https://issues.dlang.org/show_bug.cgi?id=17035 is the result. This preapproved enhancement would make life easier for folks who want to write libraries that don't depend on druntime. Andrei

Re: Using dlopen/dlsym

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
On 12/26/2016 07:35 PM, Nicholas Wilson wrote: On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl)

[Issue 17035] New: extern(C) and extern(C++) module ctor/dtor should behave like the C init/fini functions

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17035 Issue ID: 17035 Summary: extern(C) and extern(C++) module ctor/dtor should behave like the C init/fini functions Product: D Version: D2 Hardware: All OS: All

[Issue 15984] [REG2.071] Interface contracts retrieve garbage instead of parameters

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15984 --- Comment #11 from Martin Nowak --- An analysis of the current state of affairs, took me a while to dig through the numerous hacks, related changes and PRs. == Context information == - Accessing upvalues (variables

[Issue 17027] Add support for tzcnt and lzcnt in x86(64) iasm

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17027 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ab9a6a2582bc061754566e4f49ef5ac7be67baab issue 17027 - add TZCNT and LZCNT to inline assembler

Re: Using dlopen/dlsym

2016-12-26 Thread Benjiro via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); if

Re: Using dlopen/dlsym

2016-12-26 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); Does

Using dlopen/dlsym

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); if (!p) { import core.stdc.stdio; printf("%s\n",

[Issue 16626] [Reg 2.073] extreme CTFE memory usage with compile time regex

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16626 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/07090ae2fdaddd1c40b8c149f32733e908094ac3 disable kickstart in ctfe to workaround Issue 16626 -

Google Summer of Code 2017

2016-12-26 Thread Craig Dillabaugh via Digitalmars-d-announce
I've now created the Google Summer of Code Idea's page for 2017. Its empty at the moment, awaiting all your wonderful ideas: https://wiki.dlang.org/GSOC_2017_Ideas You can edit the page directly, though I may edit any submitted ideas for the sake of consistency, grammar, etc. Also, feel

[Issue 17034] DMD 32 bit PIC wrong code

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17034 safety0ff.bugz changed: What|Removed |Added Keywords||pull --- Comment

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Dicebot via Digitalmars-d-announce
After some tweaking and playing have finally uploaded Arch Linux packages for GDC using 6.2.1 gcc base and https://github.com/D-Programming-GDC/GDC/releases/tag/v2.068.2_gcc6 Now also includes new "libpghobos" package providing shared library only (though I haven't tested this part).

Re: [question] Access from UDA constructor to parent symbol

2016-12-26 Thread crimaniak via Digitalmars-d-learn
On Monday, 26 December 2016 at 21:15:03 UTC, Adam D. Ruppe wrote: On Monday, 26 December 2016 at 20:07:56 UTC, crimaniak wrote: // I want to see Foo here and use it's reflection to iterate fields and methods. then pass foo to it What do you mean parent symbol? I assumed you mean

Re: Is there anything other than nullable to work with optional types?

2016-12-26 Thread aliak via Digitalmars-d-learn
On Monday, 26 December 2016 at 04:55:30 UTC, Seb wrote: Then help to push it forward!! There are many ways: - review the PR and point out anything problematic you see (lack of reviews/interest is a main reason why PRs get stalled) - post reasons and arguments for merging this PR (seems like

Re: [question] Access from UDA constructor to parent symbol

2016-12-26 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 26 December 2016 at 20:07:56 UTC, crimaniak wrote: // I want to see Foo here and use it's reflection to iterate fields and methods. then pass foo to it What do you mean parent symbol? I assumed you mean subclass but your example shows one class and one struct. So is

Re: DMD travis-ci problems with new GDC toolchains

2016-12-26 Thread Jacob Carlborg via Digitalmars-d
On 2016-12-25 20:25, Johannes Pfau wrote: There's also a related issue with libatomic: In order to support 128bit operations in core.atomic GDC has to link libatomic. libatomic is not available on ubuntu 12.04... An alternative could be to use Docker to run a later version of Ubuntu, if

[question] Access from UDA constructor to parent symbol

2016-12-26 Thread crimaniak via Digitalmars-d-learn
``` class uda { this() { // I want to see Foo here and use it's reflection to iterate fields and methods. } } @uda struct Foo { } ``` Is there a way to do it?

Re: D future ...

2016-12-26 Thread WebFreak001 via Digitalmars-d
On Monday, 26 December 2016 at 19:37:34 UTC, David Gileadi wrote: On 12/24/16 5:11 PM, WebFreak001 wrote: On Thursday, 22 December 2016 at 04:47:06 UTC, Chris Wright wrote: CTFE ( Stefan is dealing with that ), Documentation, better Editor support... I think code-d could potentially be

Re: D future ...

2016-12-26 Thread David Gileadi via Digitalmars-d
On 12/24/16 5:11 PM, WebFreak001 wrote: On Thursday, 22 December 2016 at 04:47:06 UTC, Chris Wright wrote: CTFE ( Stefan is dealing with that ), Documentation, better Editor support... I think code-d could potentially be extended to install its dependencies, which would improve the situation

Poodinis (DI framework) 8.0.0 released

2016-12-26 Thread Mike Bierlee via Digitalmars-d-announce
Poodinis is a dependency injection framework for the D programming language. It is heavily inspired by the Spring Framework. New in this release is value injection. Via injectors you can inject value-types such as primitives or structs. Currently a value injector using proper-d is available

[Issue 16783] std.net.curl application throws an exception

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16783 Erdem changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: D-Apt DMD

2016-12-26 Thread Seb via Digitalmars-d
On Monday, 26 December 2016 at 17:05:13 UTC, Russel Winder wrote: I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. 1) You can use rdmd with any compiler - use `--compiler` 2)

D-Apt DMD

2016-12-26 Thread Russel Winder via Digitalmars-d
I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. -- Russel. = Dr Russel Winder t: +44 20 7585

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread brocolis via Digitalmars-d-announce
On Sunday, 25 December 2016 at 19:41:38 UTC, Johannes Pfau wrote: Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries Thank you for the hard work. Any hope for the windows/mingw target?

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2016-12-26 at 14:42 +0100, Johannes Pfau via Digitalmars-d- announce wrote: > […] > > I think this has been fixed by the debian maintainers. > > -- Johannes Splendid. I must have missed the change happening. I can confirm it all does now work fine. Which is great. Is the DMD

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Johannes Pfau via Digitalmars-d-announce
Am Mon, 26 Dec 2016 16:26:55 +0200 schrieb Dicebot : > On 12/25/2016 09:41 PM, Johannes Pfau wrote: > > Happy holidays everybody, > > > > I'm happy to finally announce the release of new GDC binaries at > > https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D > >

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Dicebot via Digitalmars-d-announce
On 12/25/2016 09:41 PM, Johannes Pfau wrote: > Happy holidays everybody, > > I'm happy to finally announce the release of new GDC binaries at > https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D > compiler using GCC as the compiler backend. A lot of great stuff! Got few questions

[Issue 1164] Wrong order of memory deallocation

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #13 from safety0ff.bugz --- (In reply to Pieter Penninckx from comment #9) > > Am I right that the garbage collector currently works as follows: It currently works as follows: * Mark * For each unmarked

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Johannes Pfau via Digitalmars-d-announce
Am Mon, 26 Dec 2016 12:24:18 + schrieb Russel Winder via Digitalmars-d-announce : > Has the problem of the Debian Sid GDC packages and LDC packages having > conflicting file installs been sorted so that it is possible to have > both installed and usable

[Issue 1164] Wrong order of memory deallocation

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #12 from safety0ff.bugz --- (In reply to Pieter Penninckx from comment #7) > > invariant() { > if(sibling !is null) { > if (sibling.fun()) > {

[Issue 1164] Wrong order of memory deallocation

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 safety0ff.bugz changed: What|Removed |Added CC|

[Issue 1164] Wrong order of memory deallocation

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #10 from Andrei Alexandrescu --- (In reply to Pieter Penninckx from comment #9) > Just to be sure I understand you correctly. > > Am I right that the garbage collector currently works as follows: > > * Mark (= mark

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Russel Winder via Digitalmars-d-announce
Has the problem of the Debian Sid GDC packages and LDC packages having conflicting file installs been sorted so that it is possible to have both installed and usable at the same time? On Mon, 2016-12-26 at 10:51 +0100, Daniel Kozák via Digitalmars-d- announce wrote: > > Johannes Pfau via

[Issue 17027] Add support for tzcnt and lzcnt in x86(64) iasm

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17027 b2.t...@gmx.com changed: What|Removed |Added Summary|Add support for tzcnt in|Add support for tzcnt and

[Issue 17034] DMD 32 bit PIC wrong code

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17034 safety0ff.bugz changed: What|Removed |Added Keywords||wrong-code --

[Issue 17034] New: DMD 32 bit PIC wrong code

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17034 Issue ID: 17034 Summary: DMD 32 bit PIC wrong code Product: D Version: D2 Hardware: x86 OS: All Status: NEW Severity: critical Priority: P1

[Issue 1164] Wrong order of memory deallocation

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #9 from Pieter Penninckx --- Just to be sure I understand you correctly. Am I right that the garbage collector currently works as follows: * Mark (= mark all reachable objects as reachable) * For each

[Issue 16990] Ensure that every Phobos function has a unittest

2016-12-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16990 --- Comment #1 from greenify --- The tools has been integrated into the tools repo: https://github.com/dlang/tools/blob/master/styles/has_public_example.d run with e.g. dub --root=../tools/styles -c has_public_example -i std

Build your own Trie entry table

2016-12-26 Thread Remi Thebault via Digitalmars-d-learn
Hello I want to map a dchar to its Bidi_Class. I've built an utility that reads UnicodeData.txt into an AA and builds a trie with std.uni.codepointTrie from it. I use Trie.store() to export the trie entry table into a D module. (I believe in a similar manner than phobos' unicode_tables.d)

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-26 Thread Daniel Kozák via Digitalmars-d-announce
Johannes Pfau via Digitalmars-d-announce napsal Ne, pro 25, 2016 v 8∶41 : Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries at https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D compiler using GCC as