Re: Quit running foreign unittests _

2015-05-05 Thread Dicebot via Digitalmars-d
On Thursday, 30 April 2015 at 02:26:19 UTC, Steven Schveighoffer wrote: On 4/29/15 7:43 AM, Dicebot wrote: On Wednesday, 29 April 2015 at 04:53:47 UTC, Steven Schveighoffer wrote: or rdmd -main -unittest - fail to build because the templated unit test doesn't work on your code. Good luck with

Re: std.xml2 (collecting features)

2015-05-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-05 12:41, Mario =?UTF-8?B?S3LDtnBsaW4i?= linkr...@github.com wrote: Recently, I compared DOM parsers for an XML files of 100 MByte: 15.8 s tango.text.xml (SiegeLord/Tango-D2) 13.4 s ae.utils.xml (CyberShadow/ae) 8.5 s xml.etree (Python) Either the Tango DOM parser is slow

Re: Ada to D - an array for storing values of each of the six bits which are sufficient

2015-05-05 Thread Dennis Ritchie via Digitalmars-d-learn
Realized bitmap, sorry that does not work with DMD 2.067.1: http://vlang.org/docs/Data_Types/Bits_and_Logic.html https://github.com/coverify/vlang/blob/master/src/esdl/data/bvec.d

Re: a success story for D ! !!

2015-05-05 Thread ponce via Digitalmars-d
On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!! Paper: http://vlang.org/dvcon2014.pdf I'd say that's pretty huge!

Re: a success story for D ! !!

2015-05-05 Thread extrawurst via Digitalmars-d
On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!! half the site is 404, the github account show little activity and information pretty sparse. smells kinda

Re: a success story for D ! !!

2015-05-05 Thread Rikki Cattermole via Digitalmars-d
On 6/05/2015 12:37 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!! Paper: http://vlang.org/dvcon2014.pdf I'd say that's pretty huge!

[Issue 11003] Improve .di generation

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11003 --- Comment #4 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/c9972ca53bd20362b615834061939094a30c94b8 Partial fix Issue 11003 -

[Issue 11003] Improve .di generation

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

Re: a success story for D ! !!

2015-05-05 Thread Rikki Cattermole via Digitalmars-d
On 6/05/2015 4:05 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:43:38 UTC, Rikki Cattermole wrote: On 6/05/2015 12:37 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Mike via Digitalmars-d
On Tuesday, 5 May 2015 at 18:13:03 UTC, Iain Buclaw wrote: It should also be possible for compilations to succeed without rt/typeinfo - and for the compiler to not assume they exist (Type::builtinTypeInfo). That would also be most welcome.

Re: Efficiently passing structs

2015-05-05 Thread Namespace via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 21:58:57 UTC, bitwise wrote: On Tue, 05 May 2015 17:33:09 -0400, Namespace rswhi...@gmail.com wrote: I've discussed that so many times... just search for auto / scope ref... ;) It will never happen. See:

Re: opEquals optimized away?

2015-05-05 Thread Manfred Nowak via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 05:26:17 UTC, anonymous wrote: because `c is c` Thanks. One can see this documented in http://dlang.org/operatoroverloading.html#equals But 1: how can one override this behavior 2: what is the design reason for this Especially: how can one implement side effects

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Mike via Digitalmars-d
On Tuesday, 5 May 2015 at 17:27:05 UTC, Johannes Pfau wrote: Am Tue, 05 May 2015 08:41:13 -0700 schrieb Dan Olson zans.is.for.c...@yahoo.com: Iain Buclaw via Digitalmars-d digitalmars-d@puremagic.com writes: If the cost is too much (ie: there is no heap), then we should be able to stop

Re: Does the compiler check for safe?

2015-05-05 Thread Baz via Digitalmars-d-announce
On Tuesday, 5 May 2015 at 21:09:45 UTC, Charles Hixson wrote: It was in announce because I made a mistake in posting. Yes of course, in a safe funct just try to call a non-safe one, to call a delegate or even to cast something and you'll be able to verify that by yourself thanks to the error

Re: Good examples of value types

2015-05-05 Thread deadalnix via Digitalmars-d
On Tuesday, 5 May 2015 at 20:40:59 UTC, Luís Marques wrote: Hi, For a comparison with the Java language, I'm trying to come up with some good examples of custom types that should be value types (but that must be ref types in Java). I think the most obvious ones are numeric types. So BigNum,

[Issue 11003] Improve .di generation

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11003 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: std.xml2 (collecting features)

2015-05-05 Thread Walter Bright via Digitalmars-d
On 5/5/2015 4:16 AM, Richard Webb wrote: Also, profiling showed a lot of time spent in the GC, and the recent improvements in that area might have changed things by now. I haven't read the Tango source code, but the performance of it's xml was supposedly because it did not use the GC, it used

Re: dmd -profile=gc

2015-05-05 Thread Walter Bright via Digitalmars-d
On 5/5/2015 1:40 PM, Paolo Invernizzi wrote: On Tuesday, 5 May 2015 at 09:30:55 UTC, Walter Bright wrote: On 5/4/2015 10:53 PM, extrawurst wrote: Does it work with a multithreaded application (in contrast to -profile) ? Yes, and -profile was also fixed a week ago to handle multiple threads.

Re: type switch

2015-05-05 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 5 May 2015 at 18:12:42 UTC, Ali Çehreli wrote: Personally, I haven't felt the need for this becuase usually there is something different only for one or two specific types. I don't see that the syntax becomes shorter to warrant a language addition either. (However, the risk of

Re: opEquals optimized away?

2015-05-05 Thread Ali Çehreli via Digitalmars-d-learn
On 05/05/2015 04:30 PM, Manfred Nowak wrote: On Tuesday, 5 May 2015 at 05:26:17 UTC, anonymous wrote: because `c is c` Thanks. One can see this documented in http://dlang.org/operatoroverloading.html#equals But 1: how can one override this behavior There is now way in D other than

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Suliman via Digitalmars-d
Maybe it's stupid question, but is there any chance to get D on AVR(8/16 bit)?

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 18:58:34 -0400, Namespace rswhi...@gmail.com wrote: On Tuesday, 5 May 2015 at 21:58:57 UTC, bitwise wrote: On Tue, 05 May 2015 17:33:09 -0400, Namespace rswhi...@gmail.com wrote: I've discussed that so many times... just search for auto / scope ref... ;) It will never

Re: type switch

2015-05-05 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 5 May 2015 at 18:37:52 UTC, Justin Whear wrote: How's this? http://dpaste.dzfl.pl/d6643ec8ccd3 Yes, something like that. In my opinion, it's really easier than static if in some cases.

Re: dub: Missing package description for package at ..\memutils\

2015-05-05 Thread Suliman via Digitalmars-d-learn
Updating DUB to git version helped. Latest release version have next issue https://github.com/D-Programming-Language/dub/issues/535

dub: Missing package description for package at ..\memutils\

2015-05-05 Thread Suliman via Digitalmars-d-learn
After some days of holidays I am back to home, and run my project. After it I got very strange error: dub Error executing command run: Missing package description for package at ..\memutils\ I really do not remember that I played with memutils or so. dub.json include only next dependences:

[Issue 14413] Spurious newline in ddoc JSON output for multiple successive line doc comments

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14413 Nick Sabalausky cbkbbej...@mailinator.com changed: What|Removed |Added CC|

Re: a success story for D ! !!

2015-05-05 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 5 May 2015 at 12:21:52 UTC, extrawurst wrote: the github account show little activity But, a fair chunk of code. Maybe there's little activity recently because they consider it done. I haven't committed to the majority of my github things for months, but I still stand by them.

Re: std.xml2 (collecting features)

2015-05-05 Thread via Digitalmars-d
On Tuesday, 5 May 2015 at 12:10:59 UTC, Jacob Carlborg wrote: Yes, of course it's slower. The DOM parser creates a DOM as well, which the pull parser doesn't. These other libraries, what kind of parsers are those using? I mean, it's not fair to compare a pull parser against a DOM parser. I

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 00:20:15 -0400, rsw0x anonym...@anonymous.com wrote: it does, auto ref can bind to both lvalues and rvalues. Create the function with an empty template like so, import std.stdio; struct S{ } void Foo()(auto ref S s){ } void main(){ S s; Foo(s);

Re: dmd -profile=gc

2015-05-05 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 5 May 2015 at 13:55:29 UTC, Temtaime wrote: I have a problem with regexes inside my project. 5376580784 [] std.regex.internal.kickstart.Kickstart!char.ShiftOr.this dmd\windows\bin\..\..\src\phobos\std\regex\internal\kickstart.d:284 Calling of regex's crot with any argument

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Dan Olson via Digitalmars-d
Mike n...@none.com writes: On Tuesday, 5 May 2015 at 06:39:42 UTC, Dan Olson wrote: LDC Folks: https://github.com/ldc-developers/ldc/issues/781 is currently preventing me from supporting LDC with this runtime. I looked at this and found a workaround and noted it in the above issue link.

Re: dmd -profile=gc

2015-05-05 Thread extrawurst via Digitalmars-d
On Tuesday, 5 May 2015 at 09:30:55 UTC, Walter Bright wrote: On 5/4/2015 10:53 PM, extrawurst wrote: Does it work with a multithreaded application (in contrast to -profile) ? Yes, and -profile was also fixed a week ago to handle multiple threads. Awesome! Looking forward for the next

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 10:44:13 -0400, rsw0x anonym...@anonymous.com wrote: On Tuesday, 5 May 2015 at 14:14:51 UTC, bitwise wrote: Interesting.. Has this always worked? Theres a couple of forum conversations about trying to get auto ref to work for non-templates. The main problem seems to be

Re: Building DMD on SmartOS

2015-05-05 Thread Joakim via Digitalmars-d
On Tuesday, 5 May 2015 at 05:42:33 UTC, Kai Nacke wrote: BTW: You can by-pass the Solaris ld by setting environment variable LD_ALTEXEC to the ld binary you want to use. Thanks for the tip: I set that to the binutils ld and got almost all of druntime's tests to pass with a 64-bit binary. I

Re: Building DMD on SmartOS

2015-05-05 Thread flamencofantasy via Digitalmars-d
Thanks for the tip! I pointed LD_ALTEXEC to the gnu ld like this; LD_ALTEXEC=/opt/local/x86_64-sun-solaris2.11/bin/ld Now I can compile and build and run a simple D program with no imports. I do get a link error but ld apparently auto corrects it; [root@smartmachine ~]# dmd hello.d

Re: Building DMD on SmartOS

2015-05-05 Thread Jason King via Digitalmars-d
It looks like std/file.d needs to be updated to not use the largefile definition on 64-bit mode. On Tue, May 5, 2015 at 9:18 AM, flamencofantasy via Digitalmars-d digitalmars-d@puremagic.com wrote: Thanks for the tip! I pointed LD_ALTEXEC to the gnu ld like this;

Re: Adding a read primitive to ranges

2015-05-05 Thread Alex Parrill via Digitalmars-d
On Tuesday, 5 May 2015 at 01:28:03 UTC, Freddy wrote: Wait, Bad example, void func(R)(R range){//expects range of ubyte ubyte[] data=range.read(VERY_BIG_NUMBER); ubyte[] other_data=range.read(OTHER_VERY_BIG_NUMBER); } which would be more optimal for a file but still works for

Re: dmd -profile=gc

2015-05-05 Thread Temtaime via Digitalmars-d
I have a problem with regexes inside my project. 5376580784 [] std.regex.internal.kickstart.Kickstart!char.ShiftOr.this dmd\windows\bin\..\..\src\phobos\std\regex\internal\kickstart.d:284 Calling of regex's crot with any argument causes that. Problem only exists if my project is compiled

Re: dmd -profile=gc

2015-05-05 Thread Temtaime via Digitalmars-d
*ctor *and then appication terminates with OOM exeption

Re: CTFE enums static assert

2015-05-05 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-05-04 22:22:51 +, ketmar said: as i said, `typeid` is runtime feature, so you can't print it with pragma. and tuples aren't exist in runtime, it's compile-time only. i think you are even more confused now. ;-) sorry. No, that makes it much more clearer for me. The compiler

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Dan Olson via Digitalmars-d
Iain Buclaw via Digitalmars-d digitalmars-d@puremagic.com writes: If the cost is too much (ie: there is no heap), then we should be able to stop emutls from kicking in by preventing the D frontend from returning true on isThreadLocal calls. Iain, I think something like this would be good in

Re: Efficiently passing structs

2015-05-05 Thread rsw0x via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 14:14:51 UTC, bitwise wrote: On Tue, 05 May 2015 00:20:15 -0400, rsw0x anonym...@anonymous.com wrote: it does, auto ref can bind to both lvalues and rvalues. Create the function with an empty template like so, import std.stdio; struct S{ } void Foo()(auto ref S s){

Re: Linker command

2015-05-05 Thread Kagamin via Digitalmars-d-learn
It compiles the example code and links it with supplied libraries, supposedly dallegro bindings.

Re: Efficiently passing structs

2015-05-05 Thread Gomen via Digitalmars-d-learn
I am sorry for this post, I am just testing something.

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 18:27:54 -0400, Gomen go...@asai.jp wrote: I am sorry for this post, I am just testing something. The retired D forum seems to have been re-purposed for testing ;) Bit

Re: type switch

2015-05-05 Thread Ali Çehreli via Digitalmars-d
On 05/04/2015 03:48 PM, Dennis Ritchie wrote: I've been thinking. In D you can write a similar design to the generic functions or somewhere, use static if: // - static if (is(T == short) || is(T == int) || is(T == long)) { // do anything } else static if (is(T == real)) {

Re: isForwardRange failed to recognise valid forward range

2015-05-05 Thread via Digitalmars-d
On Monday, 4 May 2015 at 15:08:04 UTC, ketmar wrote: consistency issues tend to be ignored in D, dunno why. C++ become popular not due to it's weirdness, and make D weird and unintuitive will not automatically made it popular. i'd say the opposite. It is a much lesser problem that Phobos is

Re: type switch

2015-05-05 Thread Justin Whear via Digitalmars-d
How's this? http://dpaste.dzfl.pl/d6643ec8ccd3

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 17:33:09 -0400, Namespace rswhi...@gmail.com wrote: I've discussed that so many times... just search for auto / scope ref... ;) It will never happen. See: http://forum.dlang.org/thread/ntsyfhesnywfxvzbe...@forum.dlang.org?page=1

Re: Phobos master broken ?

2015-05-05 Thread Martin Krejcirik via Digitalmars-d
I think I read something (bugzilla issue, source comment, ...) that hinted at libc having to do with it, but I can't find it now. But CentOS 6's libc is indeed behind that of my usual Ubuntu 14.10 (2.12 vs 2.19). Yeah, upgrading Debian from wheezy to jessie solved the issue.

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Johannes Pfau via Digitalmars-d
Am Tue, 05 May 2015 08:41:13 -0700 schrieb Dan Olson zans.is.for.c...@yahoo.com: Iain Buclaw via Digitalmars-d digitalmars-d@puremagic.com writes: If the cost is too much (ie: there is no heap), then we should be able to stop emutls from kicking in by preventing the D frontend from

Re: a success story for D ! !!

2015-05-05 Thread ponce via Digitalmars-d
On Tuesday, 5 May 2015 at 12:43:38 UTC, Rikki Cattermole wrote: On 6/05/2015 12:37 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!!

Re: a success story for D ! !!

2015-05-05 Thread bearophile via Digitalmars-d
ponce: Paper: http://vlang.org/dvcon2014.pdf I'd say that's pretty huge! Very nice. Bye, bearophile

Re: Efficiently passing structs

2015-05-05 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 02:47:03 UTC, bitwise wrote: On Mon, 04 May 2015 00:16:03 -0400, Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: D will move the argument if it can rather than copying it (e.g. if a temporary is being passed in), which reduces the need

Re: a success story for D ! !!

2015-05-05 Thread deadalnix via Digitalmars-d
On Tuesday, 5 May 2015 at 16:05:16 UTC, ponce wrote: On Tuesday, 5 May 2015 at 12:43:38 UTC, Rikki Cattermole wrote: On 6/05/2015 12:37 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite

a success story for D ! !!

2015-05-05 Thread Alex Ogheri via Digitalmars-d
Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!!

Does the compiler check for safe?

2015-05-05 Thread Charles Hixson via Digitalmars-d-announce
I took some code that was annotated safe, and modified it to use a buffer internal to the class, and an offset counter. Some of the routines adjusted the counter. I forgot to remove the safe annotation. It compiled without error. So... 1) The compiler didn't check for safety 2) It counts

Re: Adding a read primitive to ranges

2015-05-05 Thread Freddy via Digitalmars-d
How would it be more optimal? As I said, if you pass in `file.byChunks(some_amount).joiner`, this will still read the file in large chunks. It's less optimal now because `read` has to allocate an array on every call (easily avoidable by passing in a reusable buffer, but still). Equivalent

Re: Does the compiler check for safe?

2015-05-05 Thread Adam D. Ruppe via Digitalmars-d-announce
Can you post the class in question and show where the safe annotation was too?

Re: Does the compiler check for safe?

2015-05-05 Thread deadalnix via Digitalmars-d-announce
On Tuesday, 5 May 2015 at 19:32:26 UTC, Adam D. Ruppe wrote: Can you post the class in question and show where the safe annotation was too? And why the f*** is that in announce ?

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Dan Olson via Digitalmars-d
Mike n...@none.com writes: Read on GitHub: https://github.com/JinShil/minimal_druntime_experiment There was recently a discussion about how we could create a portable, pay-as-you-go, D runtime to help bring the promise of D to free-standing platforms and devices with tight resource

[Issue 14544] isForwardRange failed to recognise valid forward range

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14544 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment #5 from

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Iain Buclaw via Digitalmars-d
On 5 May 2015 at 08:39, Dan Olson via Digitalmars-d digitalmars-d@puremagic.com wrote: Mike n...@none.com writes: Read on GitHub: https://github.com/JinShil/minimal_druntime_experiment There was recently a discussion about how we could create a portable, pay-as-you-go, D runtime to help

[Issue 14533] Error 43: Not a Valid Library File

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14533 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Reading bzipped files

2015-05-05 Thread via Digitalmars-d-learn
On Monday, 4 May 2015 at 20:53:27 UTC, monty wrote: cool. btw (at least GzipByLine) its slw if you compare it to gzcat and pipe it into stdin and use ByLineFast. i think its mainly the buffer appending that suboptimal. Could anyone please point out if this is possible to fix somehow? Is

Re: Reading bzipped files

2015-05-05 Thread via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 06:48:36 UTC, Per Nordlöw wrote: Could anyone please point out if this is possible to fix somehow? Is the solution to avoid the GC and do buffer reuse somehow? I *really* need this for reading Gigabytes of DBpedia data...

Re: std.xml2 (collecting features)

2015-05-05 Thread Marco Leise via Digitalmars-d
Am Tue, 05 May 2015 02:01:50 + schrieb weaselcat weasel...@gmail.com: maybe off-topic, but it would be nice if the standard json,xml, etc etc all had identical interfaces(except for implementation-specific quirks.) This might be something worth discussing if it wasn't already agreed

[Issue 14533] Error 43: Not a Valid Library File

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14533 --- Comment #4 from donglei do...@putao.com --- (In reply to Richard Cattermole from comment #3) (In reply to donglei from comment #2) (In reply to Richard Cattermole from comment #1) Just to confirm this is for 64bit builds on Windows? And not

Re: Reading bzipped files

2015-05-05 Thread monty via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 06:50:12 UTC, Per Nordlöw wrote: On Tuesday, 5 May 2015 at 06:48:36 UTC, Per Nordlöw wrote: Could anyone please point out if this is possible to fix somehow? Is the solution to avoid the GC and do buffer reuse somehow? I *really* need this for reading Gigabytes of

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #27 from Sobirari Muhomori dfj1es...@sneakemail.com --- If you want to request definite behavior in a fine-grained manner, that's always possible with configurable decoders, they would ignore default behavior if necessary. --

Re: Reading bzipped files

2015-05-05 Thread via Digitalmars-d-learn
On Tuesday, 5 May 2015 at 07:11:36 UTC, monty wrote: also check out: https://github.com/agordon/fileslurp https://github.com/biod/BioD/blob/master/bio/core/utils/bylinefast.d Thanks!

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Mike via Digitalmars-d
On Tuesday, 5 May 2015 at 06:56:52 UTC, Iain Buclaw wrote: Configure GDC with --disable-tls --disable-threads to get the desired behaviour (disabling only TLS just makes codegen fallback to emulated thread support). I didn't know this. You mean if I configure with those options, TLS

[Issue 14546] New: ClockType.uptime is not supported by MonoTimeImpl on this system

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14546 Issue ID: 14546 Summary: ClockType.uptime is not supported by MonoTimeImpl on this system Product: D Version: D2 Hardware: x86_64 OS: Linux Status:

Re: Reading bzipped files

2015-05-05 Thread via Digitalmars-d-learn
On Saturday, 2 May 2015 at 13:50:10 UTC, Per Nordlöw wrote: Should probably be built on top of http://code.dlang.org/packages/bzip2 Docs here: http://www.bzip.org/1.0.3/html/hl-interface.html

[Issue 14533] Error 43: Not a Valid Library File

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14533 --- Comment #5 from donglei do...@putao.com --- It works ok! thanks --

Re: What wrong?

2015-05-05 Thread sclytrack via Digitalmars-d-learn
On Monday, 4 May 2015 at 01:03:43 UTC, Fyodor Ustinov wrote: On Saturday, 2 May 2015 at 20:46:32 UTC, Dennis Ritchie wrote: On Saturday, 2 May 2015 at 19:38:01 UTC, Fyodor Ustinov wrote: I see it by the lack of 42. :) But why is this receive breaks down? import std.stdio; import

[Issue 14530] TickDuration to! is broken

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14530 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 14530] TickDuration to! is broken

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14530 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Severity|major |regression --

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Mike via Digitalmars-d
On Tuesday, 5 May 2015 at 06:39:42 UTC, Dan Olson wrote: LDC Folks: https://github.com/ldc-developers/ldc/issues/781 is currently preventing me from supporting LDC with this runtime. I looked at this and found a workaround and noted it in the above issue link. Many Thanks! I've gotten

[Issue 14526] GetOptException DDOC needs cleanup

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14526 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull

Re: std.xml2 (collecting features)

2015-05-05 Thread via Digitalmars-d
On Monday, 4 May 2015 at 19:31:59 UTC, Jonathan M Davis wrote: Given how D's arrays work, we have the opportunity to have an _extremely_ fast XML parser thanks to slices. Yes, that would be great. XML is a flexible go-to archive, exchange and application format. Things like entities,

Re: The most awesome forward to member solution?

2015-05-05 Thread bioinfornatics via Digitalmars-d
That is not exactly what I requested years ago --- http://forum.dlang.org/thread/1330792937.10754.7.camel@jonathan

[Issue 14530] TickDuration to! is broken

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14530 Robert Schadek rburn...@gmail.com changed: What|Removed |Added CC||rburn...@gmail.com ---

Re: dmd -profile=gc

2015-05-05 Thread Andrea Fontana via Digitalmars-d
On Monday, 4 May 2015 at 19:24:57 UTC, Walter Bright wrote: On 5/4/2015 6:06 AM, Andrea Fontana wrote: Can be -profile and -profile=gc mixed together? Yes, and you'll get two reports. So I think they should be called -profile and -profile-gc. Or at least -profile=code -profile=gc (but i

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Iain Buclaw via Digitalmars-d
On 5 May 2015 at 09:48, Mike via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 5 May 2015 at 06:56:52 UTC, Iain Buclaw wrote: Configure GDC with --disable-tls --disable-threads to get the desired behaviour (disabling only TLS just makes codegen fallback to emulated thread

[Issue 14535] std.net.curl.CurlException should include status line

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14535 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull

Re: std.mmfile is broken

2015-05-05 Thread tcak via Digitalmars-d
On Tuesday, 5 May 2015 at 19:53:51 UTC, Freddy wrote: The garbage collector is not required to call class destructors, but Mmfile is a class and could leak memory. http://dlang.org/phobos/std_mmfile.html As far as I know, when a process is terminated, its file handlers are removed by

Re: std.mmfile is broken

2015-05-05 Thread Liam McSherry via Digitalmars-d
On Tuesday, 5 May 2015 at 19:53:51 UTC, Freddy wrote: The garbage collector is not required to call class destructors, but Mmfile is a class and could leak memory. http://dlang.org/phobos/std_mmfile.html This would probably be better reported as a bug using the issue tracker:

std.mmfile is broken

2015-05-05 Thread Freddy via Digitalmars-d
The garbage collector is not required to call class destructors, but Mmfile is a class and could leak memory. http://dlang.org/phobos/std_mmfile.html

Re: Efficiently passing structs

2015-05-05 Thread bitwise via Digitalmars-d-learn
On Tue, 05 May 2015 14:49:07 -0400, Ali Çehreli acehr...@yahoo.com wrote: http://ddili.org/ders/d.en/lvalue_rvalue.html#ix_lvalue_rvalue.auto%20ref,%20parameter I've actually stumbled upon this site a few times, and it has been very helpful, so thanks =D Unfortunately though, I had no idea

Re: dmd -profile=gc

2015-05-05 Thread Paolo Invernizzi via Digitalmars-d
On Tuesday, 5 May 2015 at 09:30:55 UTC, Walter Bright wrote: On 5/4/2015 10:53 PM, extrawurst wrote: Does it work with a multithreaded application (in contrast to -profile) ? Yes, and -profile was also fixed a week ago to handle multiple threads. Finally! Yah! /P

Good examples of value types

2015-05-05 Thread via Digitalmars-d
Hi, For a comparison with the Java language, I'm trying to come up with some good examples of custom types that should be value types (but that must be ref types in Java). I think the most obvious ones are numeric types. So BigNum, MyNum, etc. are good examples because programmers are used

Re: a success story for D ! !!

2015-05-05 Thread deadalnix via Digitalmars-d
On Tuesday, 5 May 2015 at 17:07:19 UTC, deadalnix wrote: On Tuesday, 5 May 2015 at 16:05:16 UTC, ponce wrote: On Tuesday, 5 May 2015 at 12:43:38 UTC, Rikki Cattermole wrote: On 6/05/2015 12:37 a.m., ponce wrote: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Johannes Pfau via Digitalmars-d
Am Tue, 05 May 2015 02:26:26 + schrieb Mike n...@none.com: Read on GitHub: https://github.com/JinShil/minimal_druntime_experiment There was recently a discussion about how we could create a portable, pay-as-you-go, D runtime to help bring the promise of D to free-standing platforms

Re: RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

2015-05-05 Thread Iain Buclaw via Digitalmars-d
On 5 May 2015 at 19:38, Johannes Pfau via Digitalmars-d digitalmars-d@puremagic.com wrote: I would probably split the runtime into at least two, probably three parts: * Compiler support library (object.d, gcc/*.d, exception implementation) (module rt/ no module name) * Higher level

[Issue 14549] New: isVirtualMethod does not work well with Github DMD

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14549 Issue ID: 14549 Summary: isVirtualMethod does not work well with Github DMD Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: [hackathon] ARE WE SLIM YET?

2015-05-05 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/5/15 3:17 AM, Vladimir Panteleev wrote: On Sunday, 3 May 2015 at 13:04:41 UTC, Vladimir Panteleev wrote: There is a bunch of cool things happening under the hood about which I might or might not do a full blog post later. http://blog.thecybershadow.net/2015/05/05/is-d-slim-yet/

Re: Phobos master broken ?

2015-05-05 Thread anonymous via Digitalmars-d
On Monday, 4 May 2015 at 14:32:16 UTC, Martin Krejcirik wrote: I can't seem to build phobos master on linux, unless I revert pull #3014 unittests DMD v2.067-devel-b9dee9e DEBUG std/math.d(2702): Error: number '0x1p-1024' is not representable std/math.d(2705): Error: number '0x1p-1024' is not

[Issue 14548] New: std.stdio.File should have sync() method (fsync/FlushFileBuffers wrapper)

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14548 Issue ID: 14548 Summary: std.stdio.File should have sync() method (fsync/FlushFileBuffers wrapper) Product: D Version: D2 Hardware: All OS: All

[Issue 14406] [REG2.068a] GIT HEAD ignores forward reference and generates wrong code

2015-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14406 --- Comment #6 from Puneet Goel pun...@coverify.org --- Kenji Issue https://issues.dlang.org/show_bug.cgi?id=14549 might be related. Kindly have a look. Regards - Puneet --

  1   2   >