Re: Beta D 2.071.2-b3

2016-09-04 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 3 September 2016 at 18:06:37 UTC, Dicebot wrote: There are enough ways to leak access to private entity (alias, template argument, taking address, some compile-time introspection) to make such optimizations impossible without extensive program analysis. OK, anything else that

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-04 Thread Martin Nowak via Digitalmars-d
On Sunday, 4 September 2016 at 07:24:42 UTC, Basile B. wrote: The introspection creates a special structure for each property annotated with @Set, @Get, or @SetGet. This is a kind of interface for serialization/binding/object inspector (a bit like "published" in Object Pascal). But you can't

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 19:31:12 UTC, Jacob Carlborg wrote: That can usually be solved using .tupleof[i], but I agree. Well, .tupleof gives you a typed representation of the memory layout, to me it's something different than qualified access of fields, just a safer mean to access

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 18:56:33 UTC, Dicebot wrote: Obviously serialization libraries come to mind, especially important for binary serialization because private members still affect the layout of the struct. Let me repeat that another time, private members have never been

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 17:23:53 UTC, Basile B. wrote: On Saturday, 3 September 2016 at 16:52:50 UTC, Martin Nowak wrote: On Tuesday, 30 August 2016 at 22:24:12 UTC, Ali Çehreli wrote: I don't agree with the current solution: Well let's come up with a better solution then. Let's

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Sunday, 4 September 2016 at 03:21:05 UTC, Stefan Koch wrote: While I do understand, that there could be a potential performance when private members could be changed around because they are not visible form outside. I fail to see how we would take advantage of that without breaking our

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 17:57:08 UTC, Jonathan M Davis wrote: I do get the feeling that too much of what we do with features like this is ad-hoc without really designing things up front, and then we keep having to tweak stuff as we go along in ways that aren't always particularly

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 20:40:57 UTC, Andrei Alexandrescu wrote: On 9/3/16 7:57 PM, Jonathan M Davis via Digitalmars-d wrote: Previously __traits(allMembers, T) listed _all_ members, whereas now it wil only list the ones that are accessible. The same for __traits(derivedMembers, T).

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Tuesday, 30 August 2016 at 22:24:12 UTC, Ali Çehreli wrote: I don't agree with the current solution: Well let's come up with a better solution then. Let's start by finding some proper use-cases that require introspection on private members w/o having access to them.

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Wednesday, 31 August 2016 at 21:12:54 UTC, Ali Çehreli wrote: On 08/30/2016 03:24 PM, Ali Çehreli wrote: > v2.071.2-b3 is bringing a change for this bug: > > https://issues.dlang.org/show_bug.cgi?id=15907 > > I don't agree with the current solution: > >

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Saturday, 3 September 2016 at 15:48:24 UTC, ketmar wrote: just a wrapper class, which will hold the actual instantiation and a scope. most of the code should "pass thru" the wrapper (i thing that `alias this` can be used for that, but have to check it), yet `__traits` can use additional

Re: Beta D 2.071.2-b3

2016-09-03 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 31 August 2016 at 06:20:46 UTC, Jacob Carlborg wrote: Class/struct fields are accessible using .tupleof. I was using __traits(getAttributes) in my serialization library to get UDA's for these fields, including private ones. Which is a weird implementation, b/c there is no direct

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Thursday, 1 September 2016 at 19:30:41 UTC, Basile B. wrote: https://github.com/dlang/DIPs/pull/39 Co-authors welcome. Slow down a bit until we've finally decided out how to resolve the problems.

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Wednesday, 31 August 2016 at 13:12:30 UTC, Adam D. Ruppe wrote: Ugh, it really should just give everything and have getMember bypass it. That won't even break any code! It will, e.g. having getMember bypass protection means vibe.d would now serialize private members

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Tuesday, 30 August 2016 at 22:24:12 UTC, Ali Çehreli wrote: I can't wrap my head around the fact that a library template called by my module cannot see my private members. Well, it was never possible to access them either, didn't seem to cause much confusion. Also getSymbolsByUDA is built

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-03 Thread Martin Nowak via Digitalmars-d
On Wednesday, 31 August 2016 at 05:33:50 UTC, ketmar wrote: all this mess should be resolved in compiler by assigning template *two* visibility scopes: one is template's "normal" scope (so it can see symbols from it's originating module), and second is it's "instantiation" scope. after all,

Re: Beta D 2.071.2-b3

2016-09-03 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 31 August 2016 at 09:56:17 UTC, Johan Engelen wrote: (I can only think of complicated stuff that requires pretty much whole-program analysis to prove validity, and in that case adding `private` doesn't help any more) Yes, it does help. As private prevents usage outside of a

Re: Beta D 2.071.2-b3

2016-08-30 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 30 August 2016 at 23:08:58 UTC, Martin Nowak wrote: On Tuesday, 30 August 2016 at 21:58:05 UTC, Basile B. wrote: I'm a bit sad to see that https://issues.dlang.org/show_bug.cgi?id=15371 was completely ignored to fix issue 15907. Another decision could have been to break

Re: Beta D 2.071.2-b3

2016-08-30 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 30 August 2016 at 21:58:05 UTC, Basile B. wrote: I'm a bit sad to see that https://issues.dlang.org/show_bug.cgi?id=15371 was completely ignored to fix issue 15907. Another decision could have been to break the visibility for the traits allMember, getMember, derivedMember and

Beta D 2.071.2-b3

2016-08-30 Thread Martin Nowak via Digitalmars-d-announce
Third beta for the 2.071.2 release. This beta fixes spurious deprecation warnings with templates using getMember (Issue 15907), please read the changelog for more details. http://dlang.org/changelog/2.071.2.html http://dlang.org/download.html#dmd_beta Please report any bugs at

Re: On the future of DIP1000

2016-08-24 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 23 August 2016 at 18:37:46 UTC, Dicebot wrote: By its design definition DIP process is for approving communitty proposals by Walter/Andrei thus there is no point in pretending they can't ignore the feedback. Only reason it is even processed in the same queue is so that developers

Re: Minor updates: gen-package-version v1.0.4 and sdlang-d v0.9.6

2016-08-24 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 23 August 2016 at 16:19:12 UTC, Nick Sabalausky wrote: Couple very minor updates: gen-package-version v1.0.4: - Updated docs to include dub.sdl samples, not just dub.json. https://github.com/Abscissa/gen-package-version Great to see that it now works

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On 08/20/2016 03:21 PM, Martin Nowak wrote: > On Monday, 15 August 2016 at 20:47:10 UTC, Basile B. wrote: >>> Please share your suggestions for how to help with the false positive >>> issue (or just continue laughing in ignorance based on an assumption >>

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On Monday, 15 August 2016 at 20:47:10 UTC, Basile B. wrote: Please share your suggestions for how to help with the false positive issue (or just continue laughing in ignorance based on an assumption of something I never said). If the origin of the problem is NSIS then in a first time it

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On Tuesday, 16 August 2016 at 05:38:00 UTC, Ethan Watson wrote: D code seems to be sufficiently different that virus scanners get confused. Both Windows Defender and F-Secure complained about it being the same trojan in fact. Don't see any F-Secure problem for dmd-2.071.1.exe.

Re: DIP1000: Scoped Pointers

2016-08-20 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 10 August 2016 at 20:35:23 UTC, Dicebot wrote: - Please submit pull requests to adjust the markdown document if you want to propose any improvements (mentioning @WalterBright and @andralex for confirmation). Not completely through yet, but it looks really promising. Already made

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-11 Thread Martin Nowak via Digitalmars-d
On Thursday, 11 August 2016 at 09:06:50 UTC, Robert burner Schadek wrote: The DIP should make clear that this is wanted for a container library. Additionally, I miss how this DIP fits in the overall plan of getting rid of the GC. As long as there isn't a written masterplan how to combine those

Re: D on exercism.io

2016-08-10 Thread Martin Nowak via Digitalmars-d-announce
On 08/09/2016 09:43 AM, celavek wrote: > If anyone has ideas for new exercises please contribute or if the time > is an issue send me > a message with a clear problem statement and a set of unit tests. > > I would like to say that for me the sit worked quite well and it helped > me get started >

Re: Autotesting dub packages with dmd nightly

2016-08-10 Thread Martin Nowak via Digitalmars-d-announce
On 08/08/2016 09:54 AM, Sebastiaan Koppe wrote: > On Sunday, 7 August 2016 at 23:08:34 UTC, Martin Nowak wrote: >> I actually don't think this makes sense. You're not in the position to >> maintain 1K+ packages, it's the library owners that need to test their >> code. > Th

Re: I'll be back soon

2016-08-10 Thread Martin Nowak via Digitalmars-d
On Wednesday, 10 August 2016 at 05:49:55 UTC, Ilya Yaroshenko wrote: In addition, most of functions has very different API comparing with their prototypes from std.algorithms: multiple dimensions, multiple tensors, selection type, plus ndFind accepts static array as the first argument.

Beta D 2.071.2-b2

2016-08-09 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Second beta for the 2.071.2 release. This fixes Issue 15780, 16085, and 16348. More import/lookup fixes upcoming. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.2.html Please report any bugs at https://issues.dlang.org

Re: Autotesting dub packages with dmd nightly

2016-08-07 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 16 July 2016 at 20:34:49 UTC, Sebastiaan Koppe wrote: I am aiming really low at first, but will eventually add things like memory usage, history, notifications, etc. I actually don't think this makes sense. You're not in the position to maintain 1K+ packages, it's the library

Re: Battle-plan for CTFE

2016-08-07 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 6 August 2016 at 14:26:00 UTC, Stefan Koch wrote: I added a switch to my version of dmd which allows to toggle the ctfe engine. So now I can compare apples to apples when posting perf data. That's indeed very useful, also for testing purposes.

Re: Why doesn't dlang-bot use the GitHub conventions?

2016-08-07 Thread Martin Nowak via Digitalmars-d
On Sunday, 7 August 2016 at 20:03:45 UTC, Martin Nowak wrote: BTW, dlang-bot got a logo and it's own home page today. [Dlang-Bot](http://dlang-bot.herokuapp.com/) Also since yesterday it cancels outdated Travis-CI builds to reduce our test load.

Re: Why doesn't dlang-bot use the GitHub conventions?

2016-08-07 Thread Martin Nowak via Digitalmars-d
On Sunday, 7 August 2016 at 20:03:45 UTC, Martin Nowak wrote: That is actually the syntax for github's Bugzilla integration that we're using, and I don't plan on replacing that. We also rely on that for our changelog. https://github.com/github/github-services/blob

Re: Why doesn't dlang-bot use the GitHub conventions?

2016-08-07 Thread Martin Nowak via Digitalmars-d
On Wednesday, 18 May 2016 at 14:27:22 UTC, Jacob Carlborg wrote: Can we please have dlang-bot recognize the GitHub syntax as well? That is actually the syntax for github's Bugzilla integration that we're using, and I don't plan on replacing that. We also rely on that for our changelog. As

Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-06 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 6 August 2016 at 17:34:14 UTC, Andre Pany wrote: The build script is working fine: curl -fsS https://dlang.org/install.sh | bash -s dmd Good news, I'm really not that keen to write a powershell script. What OS does it detect and download?

Re: Beta D 2.071.2-b1

2016-08-02 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 1 August 2016 at 22:01:51 UTC, Ali Çehreli wrote: Package Installer (on Lubuntu) said "Same version is already installed". Good thing is that clicking [Reinstall Package] did work. Ali The .deb package has the proper version (2.071.2~b1-0) and updates 2.071.1 as expected. Sure

Re: Beta D 2.071.2-b1

2016-08-02 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 1 August 2016 at 21:54:11 UTC, Ali Çehreli wrote: This import regression is holding us from moving to 2.071: https://issues.dlang.org/show_bug.cgi?id=15907 Ali Yes, that's on our list. But as it's just a wrong deprecation warning it shouldn't completely prevent you from

Re: Beta D 2.071.2-b1

2016-08-01 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 1 August 2016 at 12:40:02 UTC, Stefan Koch wrote: Can you merge dmd PR #5842 into the release ? Only bugfixes go into stable, and safe bugfixes should always target stable.

Beta D 2.071.2-b1

2016-08-01 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.071.2 point release. We've prolonged the 2.071.x releases to fix all outstanding bugs related to the 2.071.0 import and lookup changes before moving on to 2.072.0. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.2.html Please report any bugs at

Re: An IO Streams Library

2016-07-24 Thread Martin Nowak via Digitalmars-d
On Sunday, 7 February 2016 at 00:48:54 UTC, Jason White wrote: I'm interested in feedback on this library. What is it missing? How can be better? I think making the actual read/write/open/accept/et.al. functions used to talk to the kernel pluggable would be a good extension point to hook in

Re: An IO Streams Library

2016-07-24 Thread Martin Nowak via Digitalmars-d
On Sunday, 7 February 2016 at 00:48:54 UTC, Jason White wrote: I'm also interested in a discussion of what IO-related functionality people are missing in Phobos. This is still a very interesting approach that could even become a candidate for std.io at some point. Would be great if we could

Re: Go's march to low-latency GC

2016-07-10 Thread Martin Nowak via Digitalmars-d
On Saturday, 9 July 2016 at 23:12:10 UTC, Andrei Alexandrescu wrote: Yah, I was thinking in a more general sense. Plenty of improvements of all kinds are within reach. -- Andrei Yes, but hardly anything that would allow us to do partial collections. And without that you always have to scan

Re: Go's march to low-latency GC

2016-07-09 Thread Martin Nowak via Digitalmars-d
On Saturday, 9 July 2016 at 17:41:59 UTC, Andrei Alexandrescu wrote: On 7/7/16 6:36 PM, Enamex wrote: https://news.ycombinator.com/item?id=12042198 ^ reposting a link in the right place. A very nice article and success story. We've had similar stories with several products at Facebook.

Re: First dmd nightly shipping with dub

2016-07-08 Thread Martin Nowak via Digitalmars-d-announce
On 07/08/2016 11:22 AM, Dicebot wrote: > On Friday, 8 July 2016 at 09:13:08 UTC, Martin Nowak wrote: >> What would be the use-case for those? Using newer dub versions with an >> older compiler? > > Or simply using dub with ldc/gdb without also installing dmd. Th

Re: Go's march to low-latency GC

2016-07-08 Thread Martin Nowak via Digitalmars-d
On 07/08/2016 07:45 AM, ikod wrote: > Correct me if I'm wrong, but in D fibers allocate stack statically, so > we have to preallocate large stacks. > > If yes - can we allocate stack frames on demand from some non-GC area? Fiber stacks are just mapped virtual memory pages that the kernel only

Re: First dmd nightly shipping with dub

2016-07-08 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 6 July 2016 at 14:32:45 UTC, Dejan Lekic wrote: Good work! I presume the "independent" dub packages will also be available, right? What would be the use-case for those? Using newer dub versions with an older compiler?

Re: daffodil, a D image processing library

2016-07-06 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 1 July 2016 at 21:18:28 UTC, Vladimir Panteleev wrote: In case anyone from this thread haven't seen it, I have my own image library, which I wrote about here: https://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ There is also a very nice and somewhat popular

First dmd nightly shipping with dub

2016-07-06 Thread Martin Nowak via Digitalmars-d-announce
This is the first nightly dmd build that includes dub binaries. http://nightlies.dlang.org/dmd-2016-07-06/ They will also be part of the upcoming 2.072.y releases. We will sync the dub and dmd release cycles, but not the versioning.

Re: DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-30 Thread Martin Nowak via Digitalmars-d
On Thursday, 30 June 2016 at 13:05:58 UTC, Martin Nowak wrote: Use selective imports instead to introduce just the necessary steps. s/steps/symbols/

Re: DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-30 Thread Martin Nowak via Digitalmars-d
On Thursday, 30 June 2016 at 12:20:26 UTC, captaindet wrote: this is really bad news for meta programming. i would have to do this with ugly string mixins from now on, or is this unintended behavior for string mixins as well? No it's not, importing whole modules or packages into the scope of

Re: Battle-plan for CTFE

2016-06-30 Thread Martin Nowak via Digitalmars-d-announce
On 06/30/2016 05:17 AM, Stefan Koch wrote: > Both. Actually I could not imagine fixing the memory problem without > doing IR interpretation. > I will tackle compiling more difficult code later today. > As soon as I can run my compiletime brainfuck I will open a PR. > > Until then you can see my

Re: Hooking into GC

2016-06-29 Thread Martin Nowak via Digitalmars-d-learn
On Thursday, 30 June 2016 at 03:03:16 UTC, MMJones wrote: I need to get more info than just the memory usage. Like what is using the memory. That's what -profile-gc is for, it tracks allocations. Give it a try, IIIRC it's missing explicit GC.malloc calls atm., but those should be rare anyhow

Re: Battle-plan for CTFE

2016-06-29 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 30 June 2016 at 01:20:08 UTC, Stefan Koch wrote: First small code example compiles! int bug6498(int x) { int n = 0; while (n < x) { n++; } return n; } evaluation of bug6498(100_000_00) took 226 msecs. evaluation of bug6498(100_000_000) took 2228 msecs. The memory

Re: GC pathological case behaviour

2016-06-29 Thread Martin Nowak via Digitalmars-d
On Tuesday, 28 June 2016 at 21:20:01 UTC, Ola Fosheim Grøstad wrote: Not necessarily, if the 10K allocations results in system calls, but try to remove the 1ms delay, set setMaxMailboxSize to a millon and set it to ignore. (i.e. if the box is full you bypass sending). Yes your overflowing

Re: one-file pure D decoders for vorbis, flac and mp3

2016-06-29 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote: i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work. so, here they are: * Vorbis decoder[1] (stb_vorbis port), PD; * FLAC decoder[2]

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Martin Nowak via Digitalmars-d
On Wednesday, 29 June 2016 at 10:02:08 UTC, Dicebot wrote: Please don't. There is a dire need to fix the implementation first, currently DIP25 is almost unusable for anyone who doesn't know exact limits of the feature - compiler diagnostics are pretty much non-existent. Right now it is miles

Re: Hooking into GC

2016-06-29 Thread Martin Nowak via Digitalmars-d-learn
On Wednesday, 29 June 2016 at 02:18:27 UTC, MMJones wrote: I read somewhere that one can modify the D files from phobos and runtime to supply a stub for the GC. I would like to add some logging features to the GC. Does this not require one to recompile phobos? I figured the source code was

Re: Fiber local GC

2016-06-27 Thread Martin Nowak via Digitalmars-d
On Monday, 27 June 2016 at 22:55:39 UTC, deadalnix wrote: Yeah, but you can blast the whole heap in between reuse, and that is great :) Right, and you can already reset a fiber local allocator today, just put a reference to it in your Fiber subclass.

Re: Fiber local GC

2016-06-27 Thread Martin Nowak via Digitalmars-d
On 06/25/2016 12:33 PM, Ola Fosheim Grøstad wrote: > > It takes the same viewpoint. A go-routine (fiber) that is short-lived > (like a HTTP request handler) can release everything in one swipe > without collection. Simple as don't allocate on a per-request basis if you want a fast program. It

Re: GSoC 2016 - std.experimental.xml after a month

2016-06-27 Thread Martin Nowak via Digitalmars-d
On 06/25/2016 10:33 PM, Lodovico Giaretta wrote: > > But my implementation does not maintain the state of the parents, so you > can't get any info about the parent from the children, unless you use > exit() (in which case, you can get the parent's name from the closing tag). > > But your idea

Re: Where is the D deep learning library?

2016-06-27 Thread Martin Nowak via Digitalmars-d
On 06/27/2016 05:31 PM, Guillaume Piolat wrote: > You don't need to match the manpower and stability of the established > solution to make something useful. Perhaps there could be something > distinctive enough to make it attractive? Much faster turnaround times are a very distinctive feature.

Re: Where is the D deep learning library?

2016-06-27 Thread Martin Nowak via Digitalmars-d
On 06/27/2016 08:13 PM, Guillaume Piolat wrote: > Not yet, but it could be useful for new types of audio effects and > specific tasks like voiced/unvoiced detection. There are many simpler solutions for that than using machine learning. Writing a simple neural network with backpropagation is

Release D 2.071.1

2016-06-27 Thread Martin Nowak via Digitalmars-d-announce
Glad to announce D 2.071.1. http://dlang.org/download.html This point release fixes a few issues over 2.071.0, see the changelog for more details. http://dlang.org/changelog/2.071.1.html -Martin

Re: Beta D 2.071.1-b2

2016-06-27 Thread Martin Nowak via Digitalmars-d-announce
On 06/16/2016 08:43 PM, Jack Stouffer wrote: > On Sunday, 29 May 2016 at 21:53:23 UTC, Martin Nowak wrote: >> Second beta for the 2.071.1 release. >> >> http://dlang.org/download.html#dmd_beta >> http://dlang.org/changelog/2.071.1.html >> >> Please repo

Re: Beta D 2.071.1-b2

2016-06-27 Thread Martin Nowak via Digitalmars-d-announce
On 06/16/2016 09:47 PM, deadalnix wrote: > 196418a8b3ec1c5f284da5009b4bb18e3f70d99f still not in after 3 month. > This is typesystem breaking. While I understand it wasn't picked for > 2.071 , I'm not sure why it wasn't for 2.071.1 . Because it didn't target stable.

Re: Anybody still using the chm docs

2016-06-16 Thread Martin Nowak via Digitalmars-d
On Thursday, 16 June 2016 at 02:32:05 UTC, Jack Stouffer wrote: On Wednesday, 15 June 2016 at 10:58:04 UTC, Martin Nowak wrote: So I'm wondering if in 2016 someone really needs an offline copy of a website shipped with a binary release? For offline browsing, Windows and Linux users can use

Anybody still using the chm docs

2016-06-15 Thread Martin Nowak via Digitalmars-d
It's a huge maintenance effort for us to produce the chm files. We no longer generate documentation on Windows, but just for the chm generation we have dedicated tools [¹] to create an index (from a json generated via ddoc) and copy the html files. So I'm wondering if in 2016 someone really

Re: I implemented delegates in D

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 06/10/2016 12:17 AM, Steven Schveighoffer wrote: > On 6/9/16 6:06 PM, Mathias Lang via Digitalmars-d wrote: >> To avoid the delegate being GC allocated, use `scope foo = (int i) { ... >> }` at call site. > > Is that true? At one point in D's past, this ONLY worked if you passed a > delegate to

Re: How does one get to the root of a package in ddox?

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 04/16/2016 07:38 AM, Sönke Ludwig wrote: > Am 15.04.2016 um 22:38 schrieb Andrei Alexandrescu: >> Say you're on https://dlang.org/library/std/range/primitives.html and >> try to find your way to https://dlang.org/library/std/range.html. >> >> Clicking on "range" in the navigation panel doesn't

Re: Fixed date to move to ddox for Phobos documentation

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 06/11/2016 02:24 PM, Jonathan M Davis via Digitalmars-d wrote: > I'm fine with generating the docs with ddox if that works better, but I sure > hope that we're not going to then change how we're doing the actual > documenattion in the source files except that if ddox is smart enough that > we

Re: Fixed date to move to ddox for Phobos documentation

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 06/11/2016 02:31 PM, Jonathan M Davis via Digitalmars-d wrote: >>> > > But the problem is, people will ask questions on these forums, and >>> > > likely will not get answers. >> > >> > Why not? -- Andrei > Are _you_ going to spend time going through every single page in the > documentation,

Re: Fixed date to move to ddox for Phobos documentation

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 06/10/2016 07:33 PM, Andrei Alexandrescu wrote: > I'm a bit bummed about that. I like it. Is my understanding incorrect > that disqus is fairly established by now? You need to create an account with a pay-by-data company to even post something.

Re: Fixed date to move to ddox for Phobos documentation

2016-06-11 Thread Martin Nowak via Digitalmars-d
On 06/11/2016 03:02 PM, Martin Nowak wrote: > On 06/10/2016 07:33 PM, Andrei Alexandrescu wrote: >> I'm a bit bummed about that. I like it. Is my understanding incorrect >> that disqus is fairly established by now? > > You need to create an account with a pay-by-data

Re: Fixed date to move to ddox for Phobos documentation

2016-06-10 Thread Martin Nowak via Digitalmars-d
On 06/04/2016 08:23 PM, Sönke Ludwig wrote: > I think they have. Vladimir has reported a bunch of them over time and > all of those have been fixed. Found a new one ;). [Issue 16152 – dpl-docs/ddox doesn't show documentation for eponymous template

Re: Fixed date to move to ddox for Phobos documentation

2016-06-10 Thread Martin Nowak via Digitalmars-d
On 06/04/2016 09:32 PM, Andrei Alexandrescu wrote: > Sounds good to me, thanks. Delegation/lieutenantship/empowering for the > win. I think we should also secure Martin's buy-in to make sure. -- Andrei I'm fine with switching to ddox, could have happened a while ago. Would be worth to switch for

Re: Fixed date to move to ddox for Phobos documentation

2016-06-10 Thread Martin Nowak via Digitalmars-d
On 06/05/2016 11:21 AM, Jacob Carlborg wrote: > I found a minor issue recently. If there's more than one symbol in the > same module with the same name but with different casing, all these > symbols are shown on the same "single symbol page". Not sure if that's > solvable due to some operating

Re: LDC 1.0.0 has been released!

2016-06-06 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 6 June 2016 at 07:00:56 UTC, Kai Nacke wrote: Hi everyone, It is a great pleasure to announce that version 1.0.0 of LDC, the LLVM-based D compiler, is now available for download! Congratulations! And please update https://ldc-developers.github.io/LATEST.

Re: clipboard button to copy selective import from documentation?

2016-06-05 Thread Martin Nowak via Digitalmars-d
On Saturday, 4 June 2016 at 18:21:27 UTC, Vladimir Panteleev wrote: Generally I'm not a fan of bloating things up with JavaScript widgets. Perhaps only if there is a lot of demand for this? Bloat? One button per entity and a single js function? Perhaps we should improve editor support

clipboard button to copy selective import from documentation?

2016-06-04 Thread Martin Nowak via Digitalmars-d
I'm finding myself writing a lot of selective imports nowaday, while also browsing the documentation (sometimes even using dman). I though it might be a nice to have a "copy-as-selective-import" button next to the anchor link. Then once you find what you've been looking for, e.g.

Re: mir.random - my GSoC project

2016-06-02 Thread Martin Nowak via Digitalmars-d
On 04/23/2016 04:17 PM, Seb wrote: > This project is about adding non-uniform random generators to mir and > hopefully eventually to Phobos. I just happen to need a gaussian random number generator right now. Is there already some WIP code, or would you have an intermediate recommendation?

Re: Copyright for Phobos to D Foundation

2016-05-30 Thread Martin Nowak via Digitalmars-d
On Monday, 30 May 2016 at 04:42:24 UTC, rikki cattermole wrote: I was making the point that dub could handle ldc as the default if dmd is not on the PATH variable. That's already done since a long time. Since 0.9.25 you can also configure your default compiler.

Beta D 2.071.1-b2

2016-05-29 Thread Martin Nowak via Digitalmars-d-announce
Second beta for the 2.071.1 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.1.html Please report any bugs at https://issues.dlang.org -Martin

Re: The Case Against Autodecode

2016-05-29 Thread Martin Nowak via Digitalmars-d
On 05/12/2016 10:15 PM, Walter Bright wrote: > On 5/12/2016 9:29 AM, Andrei Alexandrescu wrote: >> I am as unclear about the problems of autodecoding as I am about the > necessity >> to remove curl. Whenever I ask I hear some arguments that work well > emotionally >> but are scant on reason and

Re: D plugin for Visual Studio Code

2016-05-29 Thread Martin Nowak via Digitalmars-d
On Sunday, 29 May 2016 at 18:20:29 UTC, Martin Nowak wrote: I used the web search (which is really bad) and tried D, dlang, D lang, and D language. Apparently didn't try dlang, my fault. Would it be possible to add the other search terms? Same point had already been raised in a plugin review

Re: D plugin for Visual Studio Code

2016-05-29 Thread Martin Nowak via Digitalmars-d
On Sunday, 22 May 2016 at 12:39:08 UTC, WebFreak001 wrote: Is the name really that bad? I mean you can find it if you search for `dlang` in the editor because it has dlang in the description. I used the web search (which is really bad) and tried D, dlang, D lang, and D language.

D plugin for Visual Studio Code

2016-05-22 Thread Martin Nowak via Digitalmars-d
Anyone working on a D language plugin for Visual Studio's cross platform IDE? Of course we're late to the party, language support for everything else is already there. http://code.visualstudio.com/ How is the D language experience on Atom and Sublime Text?

Re: Need a Faster Compressor

2016-05-22 Thread Martin Nowak via Digitalmars-d
On Saturday, 21 May 2016 at 21:12:15 UTC, Walter Bright wrote: The current one is effective, but slow: https://github.com/dlang/dmd/blob/master/src/backend/compress.c Yes, LZO, LZ4, or snappy would be good choices. They are real-time compression algorithms, i.e. it's faster to compress

Re: Battle-plan for CTFE

2016-05-21 Thread Martin Nowak via Digitalmars-d-announce
On 05/21/2016 11:18 PM, Martin Nowak wrote: > The debugging metaphor would be comparing a program that only uses > pointer arithmetic against one that is memory safe, the former can > randomly write everywhere from anywhere, the latter could use the wrong > reference. It's

Re: Battle-plan for CTFE

2016-05-21 Thread Martin Nowak via Digitalmars-d-announce
On 05/18/2016 04:59 PM, Daniel Murphy wrote: > The bytecode generator and bytecode interpreter can be debugged (and > tested!) independently. So the total amount of code will increase but > the components themselves will be better isolated and easier to work with. It's simpler to debug an AST

Re: Battle-plan for CTFE

2016-05-21 Thread Martin Nowak via Digitalmars-d-announce
On 05/18/2016 07:50 PM, Stefan Koch wrote: > Indeed. > > I am currently designing an IR to feed into the CTFE Evaluator. > I am aware that this could potentially make it harder to get things > merged since DMD already has the glue-layer. As a compat layer between different interpreters or as a

Re: D's Auto Decoding and You

2016-05-20 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:06:37 UTC, Jack Stouffer wrote: Related discussion https://trello.com/c/4XmFdcp6/163-rediscuss-redundant-utf-8-string-validation.

Re: Battle-plan for CTFE

2016-05-17 Thread Martin Nowak via Digitalmars-d-announce
On 05/17/2016 12:42 PM, Don Clugston wrote: > There's no need for grandiose plans, as if there is some > almost-insurmountable problem to be solved. THIS IS NOT DIFFICULT. With > the interface cleaned up, it is the well-studied problem of creating an > interpreter. Everyone knows how to do this,

Re: Supporting musl libc

2016-05-17 Thread Martin Nowak via Digitalmars-d
On Tuesday, 17 May 2016 at 08:51:01 UTC, Jacob Carlborg wrote: I'm not sure how to best handle different C standard libraries when it comes to choosing which one to use. Is it best to choose that when building the compiler or when building druntime? Or can it be a runtime option? Shouldn't

Re: The D language online tour - tour.dlang.org

2016-05-16 Thread Martin Nowak via Digitalmars-d-announce
On 05/16/2016 07:32 PM, André wrote: > Hi, > > after another round of polishing, bug fixing, very useful user > contributions and suggestions, I'd like to present the new home of the D > language online tour: > > http://tour.dlang.org/ > > Thank you very much to the D foundation for hosting

Re: Battle-plan for CTFE

2016-05-16 Thread Martin Nowak via Digitalmars-d-announce
On 05/16/2016 03:03 PM, Martin Nowak wrote: > ~this() > { > if (impl.onHeap && --impl.heap.refCount == 0) > heapAllocator.free(impl.heap); > } Of course missing the increment for copies. this(this) { if (impl.onHeap) ++impl.heap.refCount; }

Re: Battle-plan for CTFE

2016-05-16 Thread Martin Nowak via Digitalmars-d-announce
On 05/16/2016 01:36 PM, Andrei Alexandrescu wrote: > > A reap would be great there! std.experimental.allocator offers that and > a variety of others. -- Andrei Yes indeed, a malloc backed Region Allocator w/ a FreeList or a BitmappedBlock would be a good starting point. That might finally be a

Re: Battle-plan for CTFE

2016-05-16 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 16 May 2016 at 10:01:47 UTC, Kagamin wrote: Wasn't it possible to enable GC for entire compiler? There can be hybrid approach: 1) first allocate from bump heap 2) when it reaches, say, 200MB, switch to GC. Well, I wouldn't use D's GC for that dedicated heap. Allocation of CTFE

Re: Battle-plan for CTFE

2016-05-15 Thread Martin Nowak via Digitalmars-d-announce
On 05/15/2016 04:00 PM, Daniel Murphy wrote: > The problem is, if index refers to a single variable on the stack, then > it's insufficient to refer to a variable inside an aggregate on the > stack. Then you need to start building constructs for member of struct > in array of struct pointers and

<    1   2   3   4   5   6   7   8   9   10   >