Re: Beta D 2.071.0-b1

2016-03-23 Thread ag0aep6g via Digitalmars-d-announce
On 24.03.2016 02:49, Martin Nowak wrote: http://dlang.org/changelog/2.071.0.html The changelog page has the wrong version number is the heading and in the download link.

parsing fastq files with D

2016-03-23 Thread eastanon via Digitalmars-d-learn
Fastq is a format for storing DNA sequences together with the associated quality information often encoded in ascii characters. It is typically made of 4 lines for example 2 fastq entries would look like this. @seq1 TTAAAT + ?+BBB/DHH@ @seq2 GACCCTTTGCA + ?+BHB/DIH@ I do not have a lot

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 --- Comment #11 from ag0ae...@gmail.com --- (In reply to hsteoh from comment #10) > Why aren't we fixing this in git HEAD?! It's a regression. Those are fixed against stable, from which point releases are built. As far as I understand, stable is

Re: Females in the community.

2016-03-23 Thread QAston via Digitalmars-d
On Thursday, 24 March 2016 at 04:05:53 UTC, Adam D. Ruppe wrote: On Wednesday, 23 March 2016 at 10:46:22 UTC, QAston wrote: I could point to the building you're sitting in. Most likely made almost exclusively by males. LOL. I happened to spend most the day today with a group of women...

[Issue 15816] ICE void ddmd.dclass.__assert(int) with error: anonymous classes not allowed

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15816 --- 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/0480c90718a73af2cefc39ae92828b7555e9a797 fix Issue 15816 - ICE void

Re: Females in the community.

2016-03-23 Thread Mike Parker via Digitalmars-d
On Thursday, 24 March 2016 at 04:19:06 UTC, Vladimir Panteleev wrote: On Thursday, 24 March 2016 at 03:43:04 UTC, Mike Parker wrote: Spell checkers don't catch everything. If they did, there would have been many fewer edits to make in my manuscript for Learning D. They can't catch phrases that

Re: How do you append to a dynamic array using move semantics?

2016-03-23 Thread cy via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 23:44:55 UTC, ag0aep6g wrote: You got the order of arguments wrong here. Source goes first, Oh, derp. Thanks. Right then... it works as expected.

Re: Females in the community.

2016-03-23 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 24 March 2016 at 03:43:04 UTC, Mike Parker wrote: Spell checkers don't catch everything. If they did, there would have been many fewer edits to make in my manuscript for Learning D. They can't catch phrases that are worded ambiguously, or that come off in a way they weren't

Re: Females in the community.

2016-03-23 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 23 March 2016 at 10:46:22 UTC, QAston wrote: I could point to the building you're sitting in. Most likely made almost exclusively by males. LOL. I happened to spend most the day today with a group of women... building something. (I was there too, of course, but I'm practically

Re: parsing HTML for a web robot (crawler) like application

2016-03-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 10:49:03 UTC, Nordlöw wrote: HTML-docs here: http://dpldocs.info/experimental-docs/arsd.dom.html Indeed, though the docs are still a work in progress (the lib is now about 6 years old, but until recently, ddoc blocked me from using examples in the comments so

Re: Some crazy ideas from a high level perspective

2016-03-23 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 22 March 2016 at 20:52:26 UTC, cym13 wrote: [2]: https://github.com/adamdruppe/arsd/blob/master/simpledisplay.d simpledisplay has some examples in its docs: http://dpldocs.info/experimental-docs/simpledisplay.html I haven't actually written plotting examples yet, but it is the

Re: Females in the community.

2016-03-23 Thread Mike Parker via Digitalmars-d
On Thursday, 24 March 2016 at 03:43:04 UTC, Mike Parker wrote: They can't sentences that are incorrect, but that you didn't And here's an example of what I'm talking about. On this forum, I would normally just let it go, but on a modern forum I can edit my post.

Re: Females in the community.

2016-03-23 Thread Mike Parker via Digitalmars-d
On Wednesday, 23 March 2016 at 22:26:15 UTC, Walter Bright wrote: Newsgroups are like the C++ of forum technology... Don't conflate the NNTP protocol with the shortcomings of whatever newsreader you're using. Mine, for example, does spell checking. (Thunderbird FWIW) Spell checkers don't

Re: Compiler Specific dub Dependencies

2016-03-23 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 20:30:04 UTC, Jack Stouffer wrote: Is there any way in dub to specify that a module should only be linked and compiled for DMD and not for LDC? I am using the Economic Modeling containers library, and because it uses std.experimental.allocator, it can't be used

Re: emit: generalizes map, filter, joiner [proposal + implementation]

2016-03-23 Thread thedeemon via Digitalmars-d
On Monday, 21 March 2016 at 23:09:27 UTC, Tamas wrote: On Monday, 21 March 2016 at 11:48:52 UTC, Seb wrote: Could you try to point out whats wrong with map & filter? It's hard to do stuff like this: assert(9.iota.emit!(int,(put,a){if(a%2) put(a*a); if(a%3==0)

[Issue 15825] dmd's -transition=checkimports reports a false positive for tuple __dollar

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15825 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a13a024a02ab62ba88cbe0f87815032d931f3090 fix Issue 15825 - dmd's

[Issue 15779] DWARF EH fails when using stack stomping (-gx)

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15779 Walter Bright changed: What|Removed |Added CC|

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 hst...@quickfur.ath.cx changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread Simen Kjaeraas via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 18:10:05 UTC, ParticlePeter wrote: Thanks Simen, your tokenCounter is inspirational, for the rest I'll take some time for testing. My pleasure. :) Testing it on your example data shows it to work there. However, as stated above, the documentation says it's

[Issue 15782] [Reg 2.071-devel] Alias no longer strips qualifiers from user defined types

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15782 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/5fb53481fccbe800f083aeaa867d0dd541efbe67 fix Issue 15782 -

Re: Beta D 2.071.0-b1

2016-03-23 Thread deadalnix via Digitalmars-d-announce
On Thursday, 24 March 2016 at 01:49:25 UTC, Martin Nowak wrote: First beta for the 2.071.0 release. This release comes with many import and lookup related changes and fixes. You might see a lot of deprecation warnings b/c of these changes. We've added the -transition=import switch and

Beta D 2.071.0-b1

2016-03-23 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.071.0 release. This release comes with many import and lookup related changes and fixes. You might see a lot of deprecation warnings b/c of these changes. We've added the -transition=import switch and -transition=checkimports [¹] switches to ease updating existing code.

Re: static ctors in shared libs

2016-03-23 Thread bitwise via Digitalmars-d
On Friday, 18 March 2016 at 18:52:25 UTC, Jacob Carlborg wrote: On 17/03/16 21:27, bitwise wrote: I've been doing some work on shared libraries for OSX, and have come across a potential problem, which I'm not sure what to do with. Currently, when a thread is spawned, that thread calls all the

Re: GSOC 16 - Flatbuffer support or Protocol Buffer Support for D Language.

2016-03-23 Thread Dragos Carp via Digitalmars-d
On Wednesday, 23 March 2016 at 20:40:10 UTC, Joseph Rushton Wakeling wrote: On Saturday, 19 March 2016 at 07:41:16 UTC, Timothee Cour wrote: can https://github.com/msoucy/dproto be used as a starting point? Out of curiosity, what's actually missing in dproto that a GSoC project could

Re: static ctors in shared libs

2016-03-23 Thread bitwise via Digitalmars-d
On Friday, 18 March 2016 at 16:23:00 UTC, Johannes Pfau wrote: Am Fri, 18 Mar 2016 14:35:41 + schrieb Marc Schütz : [...] Thanks for the explanation! When I first looked at the elf implementation, I was confused by what was goign on with

Re: How do you append to a dynamic array using move semantics?

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 24.03.2016 00:44, ag0aep6g wrote: On 24.03.2016 00:26, cy wrote: ++items.length move(items[$-1],item); // Error: struct Thing is not copyable because it is annotated with @disable You got the order of arguments wrong here. Source goes first, target second. Works for me with `move(item,

Re: How do you append to a dynamic array using move semantics?

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 24.03.2016 00:26, cy wrote: ++items.length move(items[$-1],item); // Error: struct Thing is not copyable because it is annotated with @disable You got the order of arguments wrong here. Source goes first, target second. Works for me with `move(item, items[$-1]);`.

How do you append to a dynamic array using move semantics?

2016-03-23 Thread cy via Digitalmars-d-learn
struct Thing { @disable this(this); } ... items ~= move(item); // Error: struct Thing is not copyable because it is annotated with @disable ++items.length move(items[$-1],item); // Error: struct Thing is not copyable because it is annotated with @disable appender(items).put(move(item));

Re: Silicon Valley D Meetup March 24, 2016

2016-03-23 Thread Ali Çehreli via Digitalmars-d-announce
Reminder... On 03/17/2016 11:40 AM, Ali Çehreli wrote: Stefan Brus has accepted to repeat his Berlin meetup presentation for us remotely at his 3am! :D "Intro to Game Development in D" http://www.meetup.com/D-Lang-Silicon-Valley/events/229370428/ As always, we will post a Google hangouts

[Issue 15825] New: dmd's -transition=checkimports reports a false positive for tuple __dollar

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15825 Issue ID: 15825 Summary: dmd's -transition=checkimports reports a false positive for tuple __dollar Product: D Version: D2 Hardware: All OS: All

Re: inout and templates don't mix...

2016-03-23 Thread Ali Çehreli via Digitalmars-d-learn
On 03/23/2016 02:31 PM, cy wrote: > struct Someop(Type) { >Type thing; >void foo() { > thing.bar(); >} > } > > struct Foo { >void bar() { > import std.stdio: writeln; > writeln("bar"); >} > } > > struct Bar { >void thingy(inout(Foo) foo) inout { > auto

Re: Females in the community.

2016-03-23 Thread Walter Bright via Digitalmars-d
On 3/23/2016 3:53 AM, Bruno Medeiros wrote: On 23/03/2016 10:51, Bruno Medeiros wrote: OMG, this irrelevant, flamebait thread. One thing I like with Rust is that they have a modern forum software (discourse.org) for their community forums, in particular one that requires registration and an

Re: emit: generalizes map, filter, joiner [proposal + implementation]

2016-03-23 Thread crimaniak via Digitalmars-d
On Monday, 21 March 2016 at 11:48:52 UTC, Seb wrote: On Monday, 21 March 2016 at 11:35:49 UTC, Timothee Cour wrote: assert(9.iota.emit!(int,(put,a){if(a%2) put(a*a);}).equal([1, 9, 25, 49])) I support idea to have such feature, sometimes it really need. Could you try to point out whats

Re: Checking if a port is listening

2016-03-23 Thread Lucien via Digitalmars-d-learn
On Saturday, 19 March 2016 at 18:24:38 UTC, Marc Schütz wrote: On Saturday, 19 March 2016 at 09:55:13 UTC, Lucien wrote: const int MAX = 64; Socket[] sockets = new Socket[MAX]; string ipb = "192.168.0."; for (int i = 1; i < MAX; i++) { Here's the reason for your SEGV: You

inout and templates don't mix...

2016-03-23 Thread cy via Digitalmars-d-learn
halp There's a module that tries to define complex operations on both const and non-const structs, since it's the same operation for both. So every function that invokes those operations is copy-pasted twice, just with "const" added. Switching to inout to eliminate that huge amount of code

Re: If I understand const right...

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 23.03.2016 22:26, ag0aep6g wrote: On 23.03.2016 22:18, cy wrote: On Wednesday, 23 March 2016 at 21:10:49 UTC, ag0aep6g wrote: [...] b = new int(*b + 1); Here "b" is pointing to mutable heap allocated data, which got cast to constant. with b = b + 1, it's still constant memory. It's

Re: If I understand const right...

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 23.03.2016 22:18, cy wrote: On Wednesday, 23 March 2016 at 21:10:49 UTC, ag0aep6g wrote: [...] b = new int(*b + 1); Here "b" is pointing to mutable heap allocated data, which got cast to constant. with b = b + 1, it's still constant memory. It's stack memory. Its constness isn't any

Re: Is C++ trying to be like D?

2016-03-23 Thread _d0s_ via Digitalmars-d
On Saturday, 19 March 2016 at 13:46:14 UTC, Anonymouse wrote: On Saturday, 19 March 2016 at 13:23:55 UTC, Bauss wrote: Looking at C++14 and the proposed features for C++17 - https://en.wikipedia.org/wiki/C%2B%2B17 It looks a lot like C++ is trying to become similar to D. I believe that shows

Re: If I understand const right...

2016-03-23 Thread cy via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 21:10:49 UTC, ag0aep6g wrote: Just to be 100% clear: you're adding to the pointer here, No, that's what I meant to do. b = new int(*b + 1); Here "b" is pointing to mutable heap allocated data, which got cast to constant. with b = b + 1, it's still constant

Re: If I understand const right...

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 23.03.2016 21:52, cy wrote: const(int)[2] a = [23,24]; const(int)* b = a; Should be: const(int)* b = a.ptr; writeln(," always constant"); writeln(a, " always constant"); There's some subtlety here. `a` itself is not const, but its elements are. `a` being a fixed-sized array, you can't

Re: GSOC 16 - Flatbuffer support or Protocol Buffer Support for D Language.

2016-03-23 Thread Rajat Kumar via Digitalmars-d
On Saturday, 19 March 2016 at 07:51:34 UTC, Joakim wrote: On Saturday, 19 March 2016 at 06:18:06 UTC, Rajat Kumar wrote: Hello. I am Rajat Kumar, a junior year university student from India. I have working experiences in languages like C,C++ and Python. I am really really interested in

getOverloads, but also include all the imported members

2016-03-23 Thread Yuxuan Shui via Digitalmars-d-learn
Say: module one; void func(int a){} / module two; import one; void func(float a){} Is there a way to get both func() in module two?

If I understand const right...

2016-03-23 Thread cy via Digitalmars-d-learn
a = a + 1 a is const, a + 1 is const, yet a can't be assigned to a + 1. And I think the reason is like... const(int) a = 23; while(something()) { a = a + 1; } in the first iteration, a is set to 23, and the value of "a + 1" is 24, but where is the computer gonna store that 24? It can't

Re: GSOC 16 - Flatbuffer support or Protocol Buffer Support for D Language.

2016-03-23 Thread Joseph Rushton Wakeling via Digitalmars-d
On Saturday, 19 March 2016 at 07:41:16 UTC, Timothee Cour wrote: can https://github.com/msoucy/dproto be used as a starting point? Out of curiosity, what's actually missing in dproto that a GSoC project could address?

Compiler Specific dub Dependencies

2016-03-23 Thread Jack Stouffer via Digitalmars-d-learn
Is there any way in dub to specify that a module should only be linked and compiled for DMD and not for LDC? I am using the Economic Modeling containers library, and because it uses std.experimental.allocator, it can't be used with LDC through dub. I have coded in such a way with static if's

Re: GtkD 3.3.0 released, GTK+ with D.

2016-03-23 Thread Gerald via Digitalmars-d-announce
On Wednesday, 23 March 2016 at 18:16:02 UTC, Mike Wey wrote: GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. A new version of GTK was released today, and with that comes a new GtkD release so you can use the new features in D. GtkD 3.3.0 is now available on

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread wobbles via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 11:57:49 UTC, ParticlePeter wrote: I need to parse an ascii with multiple tokens. The tokens can be seen as keys. After every token there is a bunch of lines belonging to that token, the values. The order of tokens is unknown. I would like to read the file in as

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 ag0ae...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

Re: Variant.type bug ?

2016-03-23 Thread Voitech via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 19:18:50 UTC, Chris Wright wrote: Consider the `coerce` method: http://dpldocs.info/experimental-docs/std.variant.VariantN.coerce.html Example: import std.variant; class A {} class B : A {} void main() { A b = new B; auto bb = Variant(b).coerce!B;

Re: pass a struct by value/ref and size of the struct

2016-03-23 Thread kinke via Digitalmars-d-learn
On Tuesday, 22 March 2016 at 07:35:49 UTC, ZombineDev wrote: If the object is larger than the size of a register on the target machine, it is implicitly passed by ref That's incorrect. As Johan pointed out, this is somewhat true for the Win64 ABI (but it firstly copies the argument before

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 --- Comment #8 from hst...@quickfur.ath.cx --- Oh, was this only fixed in stable? I'm testing with latest git HEAD. --

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 --- Comment #7 from ag0ae...@gmail.com --- (In reply to hsteoh from comment #6) > This bug has not yet been (fully) fixed: > > -- > import std.stdio; > class Wrapper > { > typeof(stdin.byLine()) src; > } > void main() > { > auto x = new

Re: Variant.type bug ?

2016-03-23 Thread Chris Wright via Digitalmars-d-learn
Consider the `coerce` method: http://dpldocs.info/experimental-docs/std.variant.VariantN.coerce.html Example: import std.variant; class A {} class B : A {} void main() { A b = new B; auto bb = Variant(b).coerce!B; assert (bb !is null); }

Re: Updating D-based apps without recompiling it

2016-03-23 Thread Chris Wright via Digitalmars-d-learn
On Wed, 23 Mar 2016 12:21:33 +, Ozan wrote: > Enterprise applications in productive environments requires smooth > updating mechanisms without recompiling or reinstalling. The industry standard is to build on a build server and stop the application to update, but to have enough redundancy

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 hst...@quickfur.ath.cx changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

Re: byChunk odd behavior?

2016-03-23 Thread cym13 via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 03:17:05 UTC, Hanh wrote: Thanks for your help everyone. I agree that the issue is due to the misusage of an InputRange but what is the semantics of 'take' when applied to an InputRange? It seems that calling it invalidates the range; in which case what is the

Re: byChunk odd behavior?

2016-03-23 Thread Chris Wright via Digitalmars-d-learn
On Wed, 23 Mar 2016 03:17:05 +, Hanh wrote: > In Scala, 'take' consumes bytes from the iterator. So the same code > would be buffer = range.take(N).toArray import std.range, std.array; auto bytes = byteRange.takeExactly(N).array; There's also take(N), but if the range contains fewer than N

Re: Females in the community.

2016-03-23 Thread Chris Wright via Digitalmars-d
On Wed, 23 Mar 2016 14:40:07 -0400, Andrei Alexandrescu wrote: > I'm not sure what was being implied, but just to clarify a few simple > facts: Janice and I never interacted on IRC. I was comparing reactions to you with reactions to Janice. I did not intend to imply that you harassed anyone. The

Re: Females in the community.

2016-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 03/23/2016 12:42 AM, Vladimir Panteleev wrote: On Tuesday, 22 March 2016 at 20:37:27 UTC, Chris Wright wrote: On Tue, 22 Mar 2016 19:33:47 +, deadalnix wrote: On Tuesday, 22 March 2016 at 18:19:16 UTC, Chris Wright wrote: There was Janice Caron, who was helpful and eager and got a

Re: Something wrong with GC

2016-03-23 Thread ag0aep6g via Digitalmars-d-learn
On 22.03.2016 16:56, ag0aep6g wrote: I've filed an issue: https://issues.dlang.org/show_bug.cgi?id=15821 And it's been fixed: https://github.com/D-Programming-Language/druntime/pull/1519 Since the issue was a regression, the fix was made against the stable branch. It's going to be in the

[Issue 12391] DirEntries throws in foreach

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12391 --- Comment #6 from Jason Spashett --- Could we not take something out of python's book (or some other language): os.walk https://docs.python.org/2/library/os.html (1) This [os.walk] gives an opportunity to have an error

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread ParticlePeter via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 15:23:38 UTC, Simen Kjaeraas wrote: Without a bit more detail, it's a bit hard to help. std.algorithm.splitter has an overload that takes a function instead of a separator: import std.algorithm; auto a = "a,b;c"; auto b = a.splitter!(e => e == ';'

GtkD 3.3.0 released, GTK+ with D.

2016-03-23 Thread Mike Wey via Digitalmars-d-announce
GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. A new version of GTK was released today, and with that comes a new GtkD release so you can use the new features in D. GtkD 3.3.0 is now available on gtkd.org: http://gtkd.org/download.html -- Mike Wey

[Issue 11791] std.file.write failed to write huge files

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11791 Dmitry Olshansky changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: emit: generalizes map, filter, joiner [proposal + implementation]

2016-03-23 Thread Tamas via Digitalmars-d
On Wednesday, 23 March 2016 at 17:29:55 UTC, Nick Treleaven wrote: On Monday, 21 March 2016 at 23:09:27 UTC, Tamas wrote: On Monday, 21 March 2016 at 11:48:52 UTC, Seb wrote: Could you try to point out whats wrong with map & filter? It's hard to do stuff like this:

Re: Finding out names in shared libraries

2016-03-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-03-23 16:17, Ozan wrote: Hi If I want to use a class or a function in a shared library, it is necessary to use funny names like "D7myclass10getMyClassFZC7myclass7MyClass". Is it possible to get a list of all the names in shared library? What is the schema behind these names? Is there

Re: Updating D-based apps without recompiling it

2016-03-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-03-23 18:15, Jesse Phillips wrote: Do you have an example of this being done in any other language? In Erlang it's possible to hot swap code. I'm not sure how it works though. But if we're talking servers, the easiest is to have multiple instances and restart one at the time with

Re: emit: generalizes map, filter, joiner [proposal + implementation]

2016-03-23 Thread Nick Treleaven via Digitalmars-d
On Monday, 21 March 2016 at 23:09:27 UTC, Tamas wrote: On Monday, 21 March 2016 at 11:48:52 UTC, Seb wrote: Could you try to point out whats wrong with map & filter? It's hard to do stuff like this: assert(9.iota.emit!(int,(put,a){if(a%2) put(a*a); if(a%3==0)

Re: Updating D-based apps without recompiling it

2016-03-23 Thread Jesse Phillips via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 12:21:33 UTC, Ozan wrote: Hi Enterprise applications in productive environments requires smooth updating mechanisms without recompiling or reinstalling. It's not possible to stop an enterprise application, then run "dub --reforce" and wait until finish. Mostly

Re: Females in the community.

2016-03-23 Thread deadalnix via Digitalmars-d
On Wednesday, 23 March 2016 at 11:33:55 UTC, QAston wrote: Why don't we look past the superficial stuff in the language and assume good intent? Because some people have nothing of substance to contribute, but still want to feel superior.

Re: Females in the community.

2016-03-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 23 March 2016 at 12:35:59 UTC, QAston wrote: And yes, I'm saying that the world of programming has a history of accepting "weird" people. That's partially because we have a clear measurment: either your stuff works or it doesn't. No need for identity wars. Computing was dominated

Re: Finding out names in shared libraries

2016-03-23 Thread Ozan via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 15:17:18 UTC, Ozan wrote: If I want to use a class or a function in a shared library, it is necessary to use funny names like "D7myclass10getMyClassFZC7myclass7MyClass". Is it possible to get a list of all the names in shared library? What is the schema behind

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread ParticlePeter via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 14:20:12 UTC, Andrea Fontana wrote: Any input => output example? Sure, it is ensight gold case file format: FORMAT type: ensight gold GEOMETRY model: 1exgold2.geo** VARIABLE scalar per node: 1 Stress

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread Simen Kjaeraas via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 11:57:49 UTC, ParticlePeter wrote: I need to parse an ascii with multiple tokens. The tokens can be seen as keys. After every token there is a bunch of lines belonging to that token, the values. The order of tokens is unknown. I would like to read the file in as

Finding out names in shared libraries

2016-03-23 Thread Ozan via Digitalmars-d-learn
Hi If I want to use a class or a function in a shared library, it is necessary to use funny names like "D7myclass10getMyClassFZC7myclass7MyClass". Is it possible to get a list of all the names in shared library? What is the schema behind these names? Is there a listing for "D7", "10",

[Issue 15816] ICE void ddmd.dclass.__assert(int) with error: anonymous classes not allowed

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15816 Kenji Hara changed: What|Removed |Added Keywords||ice, pull

Re: Variant.type bug ?

2016-03-23 Thread Voitech via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 12:52:24 UTC, Adam D. Ruppe wrote: On Wednesday, 23 March 2016 at 08:01:36 UTC, Voitech wrote: Hi Variant stores variant.type as not the "highest" in hierarchy. Yeah, it stores the static type. You can use it to get that then do a normal dynamic cast to test

[Issue 15824] 'scope' attribute ignored when making an alias to a scope delegate

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15824 Mathias Lang changed: What|Removed |Added CC|

[Issue 15824] New: 'scope' attribute ignored when making an alias to a scope delegate

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15824 Issue ID: 15824 Summary: 'scope' attribute ignored when making an alias to a scope delegate Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 12:00:15 UTC, ParticlePeter wrote: On Wednesday, 23 March 2016 at 11:57:49 UTC, ParticlePeter wrote: Stupid typos: I need to parse an ascii file with multiple tokens. ... ... to do this with a lazy result range and without new allocations. Any input =>

Re: parsing HTML for a web robot (crawler) like application

2016-03-23 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 09:02:37 UTC, Martin Tschierschke wrote: Hello! I want to set up a web robot to detect changes on certain web pages or sites. Any hint to similar projects or libraries at dub or git to look at, before starting to develop my own RegExp for parsing? Best regards

Re: Females in the community.

2016-03-23 Thread Marco Leise via Digitalmars-d
Am Wed, 23 Mar 2016 11:33:55 + schrieb QAston : > https://marketplace.visualstudio.com/items?itemName=shinnn.alex "The novelist from my motherland excites a lot of sci-fi addicts by his crazy storytelling." … (from the screen-shot) turns into … "The novelist from my

[Issue 15823] opIndex doesn't work for const std.variant.Variant

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15823 --- Comment #1 from Maksim Zholudev --- https://github.com/D-Programming-Language/phobos/pull/4112 --

Re: [Request] A way to extract all instance of X from a range

2016-03-23 Thread Marc Schütz via Digitalmars-d
On Wednesday, 23 March 2016 at 11:36:39 UTC, Nick Treleaven wrote: On Tuesday, 22 March 2016 at 20:09:51 UTC, Matthias Bentrup wrote: It is logically just a combination of map and concat (which turns a range of ranges into a combined range, but I think that one is missing in the std lib too).

[Issue 15823] New: opIndex doesn't work for const std.variant.Variant

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15823 Issue ID: 15823 Summary: opIndex doesn't work for const std.variant.Variant Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: 2016Q1: std.blas

2016-03-23 Thread paper rewriter via Digitalmars-d-announce
Whatever your reason may be for wanting to rewrite your paper it can still be a difficult task.To improve the language and structure of the original. Also, To target a different audience with your writing.

Re: Variant.type bug ?

2016-03-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 08:01:36 UTC, Voitech wrote: Hi Variant stores variant.type as not the "highest" in hierarchy. Yeah, it stores the static type. You can use it to get that then do a normal dynamic cast to test for a more derived type.

Re: Updating D-based apps without recompiling it

2016-03-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 12:21:33 UTC, Ozan wrote: Has someone experience with handling upgrading/updating D-Apps on the fly? The way I always did it was to simply have old and new running side-by-side in the transition. So, without stopping the old version, compile the new one and

Re: Females in the community.

2016-03-23 Thread QAston via Digitalmars-d
On Wednesday, 23 March 2016 at 12:04:19 UTC, Ola Fosheim Grøstad wrote: Actually, the D forums can be quite hostile at times, but it doesn't last for a very long. I've actually spent years of my life studying social interaction on the internet and virtual worlds, academically. So you will

Updating D-based apps without recompiling it

2016-03-23 Thread Ozan via Digitalmars-d-learn
Hi Enterprise applications in productive environments requires smooth updating mechanisms without recompiling or reinstalling. It's not possible to stop an enterprise application, then run "dub --reforce" and wait until finish. Mostly only few functions need to be replaced. Has someone

Re: Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread ParticlePeter via Digitalmars-d-learn
On Wednesday, 23 March 2016 at 11:57:49 UTC, ParticlePeter wrote: Stupid typos: I need to parse an ascii file with multiple tokens. ... ... to do this with a lazy result range and without new allocations.

Re: Females in the community.

2016-03-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 23 March 2016 at 10:46:22 UTC, QAston wrote: [citations needed] for so much you post. You need to update your knowledge of evo-psych. You should learn not to open a reply with going ad hominem. The fact that you don't, suggests to me that I've struck a nerve and that you

Does something like std.algorithm.iteration:splitter with multiple seperators exist?

2016-03-23 Thread ParticlePeter via Digitalmars-d-learn
I need to parse an ascii with multiple tokens. The tokens can be seen as keys. After every token there is a bunch of lines belonging to that token, the values. The order of tokens is unknown. I would like to read the file in as a whole string, and split the string with: splitter(fileString,

Re: Something wrong with GC

2016-03-23 Thread thedeemon via Digitalmars-d-learn
On Tuesday, 22 March 2016 at 13:46:41 UTC, stunaep wrote: So what am I do to? Just learn more about available containers and their semantics. Maybe you don't need Array!T when there is a simple T[]. If you think you do need Array, then think about memory management: where are you going to

Re: Question about version ( ) keyword

2016-03-23 Thread Nick Treleaven via Digitalmars-d
On Monday, 21 March 2016 at 14:51:48 UTC, Vincent R wrote: version( CRuntime_Glibc ) || version( FreeBSD ) || version (Solaris) { As a workaround, you can do it with static if and version strings: http://forum.dlang.org/post/op.vkshabecot0hzo@las-miodowy

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

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

[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

2016-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15822 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/d23d7efb3649cd543e8d0b10b9a32ab3325f5cd0 fix Issue 15822 -

Re: Females in the community.

2016-03-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 23 March 2016 at 10:25:46 UTC, Vladimir Panteleev wrote: Also because the GP used the word "vitriol". Yes, but Chris has already stated that he is a Social Justice Warrior, so he might object to things others don't :-).

Re: [Request] A way to extract all instance of X from a range

2016-03-23 Thread Nick Treleaven via Digitalmars-d
On Tuesday, 22 March 2016 at 20:09:51 UTC, Matthias Bentrup wrote: It is logically just a combination of map and concat (which turns a range of ranges into a combined range, but I think that one is missing in the std lib too). http://dlang.org/phobos/std_range.html#.chain

Re: Females in the community.

2016-03-23 Thread QAston via Digitalmars-d
On Tuesday, 22 March 2016 at 20:43:07 UTC, Chris Wright wrote: Helping others to be polite is in fact progressive and enlightened. Your response is neither. The problem with this idea is that you need an authority which decides what is the correct polite speech and what's not. There's no

  1   2   >