Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grostad via Digitalmars-d
On Wednesday, 16 September 2015 at 06:25:59 UTC, Ola Fosheim Grostad wrote: On Wednesday, 16 September 2015 at 05:51:50 UTC, Tobias Müller wrote: Ola Fosheim Grøstad wrote: But you need non-copyable move-only types for it to work. Yes... But will it

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grostad via Digitalmars-d
On Wednesday, 16 September 2015 at 05:51:50 UTC, Tobias Müller wrote: Ola Fosheim Grøstad wrote: On Tuesday, 15 September 2015 at 20:34:43 UTC, Tobias Müller wrote: There's a Blog post somewhere but I can't find it atm. Ok found it: >

Why do abstract class functions require definitions?

2015-09-16 Thread FiveNights via Digitalmars-d-learn
Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class somewhere that isn't defined: abstract class SomeClass { int someVariable; void someFunction(); } the

[Issue 15069] nonsense struct template instantiations still compile

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15069 Sobirari Muhomori changed: What|Removed |Added CC|

[Issue 15060] Can't load a D shared library first, then load a C shared library

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15060 --- Comment #1 from ponce --- Suggestion from David Nadlinger " This is OS X only, right? In this case, it is hard to judge where exactly it sits and what needs to be done to fix it, as no work has been done on dylib support

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-09-16 10:49, FiveNights wrote: Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class somewhere that isn't defined: abstract class SomeClass { int

Re: running code on the homepage

2015-09-16 Thread ixid via Digitalmars-d
On Wednesday, 16 September 2015 at 06:44:30 UTC, nazriel wrote: On Wednesday, 16 September 2015 at 05:54:03 UTC, Andrei Amatuni wrote: maybe I'm doing something wrong...but the output of running the default code snippet on the dlang.org homepage is: "unable to fork: Cannot allocate memory"

Re: Initalizing complex array types or some other problem ;/

2015-09-16 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 01:46:09 UTC, Prudence wrote: In any case, Maybe you are not as smart as you think you are if you can't understand it? Maybe next time you shouldn't assume you are the oracle of all knowledge and if you can't understand it then it's bad/wrong. In fact, it's

[Issue 15069] New: nonsense struct template instantiations still compile

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15069 Issue ID: 15069 Summary: nonsense struct template instantiations still compile Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

Re: running code on the homepage

2015-09-16 Thread nazriel via Digitalmars-d
On Wednesday, 16 September 2015 at 05:54:03 UTC, Andrei Amatuni wrote: maybe I'm doing something wrong...but the output of running the default code snippet on the dlang.org homepage is: "unable to fork: Cannot allocate memory" not a good look Thank you for letting us know, This issue will

Re: dpaste web site

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
How about just using a single click recaptcha: https://www.google.com/recaptcha/intro/index.html

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Don via Digitalmars-d
On Tuesday, 15 September 2015 at 11:13:59 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 15 September 2015 at 10:38:23 UTC, ponce wrote: On Tuesday, 15 September 2015 at 09:35:36 UTC, Ola Fosheim Grøstad wrote: http://sites.ieee.org/scv-cs/files/2013/03/Right-SizingPrecision1.pdf That's a

[Issue 15068] New: wrong error message on attempting to use type as template

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15068 Issue ID: 15068 Summary: wrong error message on attempting to use type as template Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 15071] New: filenames and module names with case-insensitive HFS+

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 Issue ID: 15071 Summary: filenames and module names with case-insensitive HFS+ Product: D Version: D2 Hardware: All OS: Mac OS X Status: NEW Severity: major

[Issue 15070] New: Template is silently extracted from type and reinstantiated

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15070 Issue ID: 15070 Summary: Template is silently extracted from type and reinstantiated Product: D Version: D2 Hardware: All URL:

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 08:17:59 UTC, Don wrote: I'm not convinced. I think they are downplaying the hardware difficulties. Slide 34: I don't think he is downplaying it. He has said that it will probably take at least 10 years before it is available in hardware. There is also a

[Issue 15070] Template is silently extracted from type and reinstantiated

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15070 Sobirari Muhomori changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15069] nonsense struct template instantiations still compile

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15069 Sobirari Muhomori changed: What|Removed |Added CC|dfj1es...@sneakemail.com| --

Re: Re-named & Selective Imports

2015-09-16 Thread Kagamin via Digitalmars-d-learn
Well, arguably disjunctive combination doesn't make much sense here, because renamed import disambiguates it all enough, but makes it impossible to merge arbitrary namespaces ad hoc, a feature I missed several times.

What kind of sorcery is that?

2015-09-16 Thread NX via Digitalmars-d-learn
import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); } class Stuff(T) { T!int var; } class Thing(T) { T varling; }

Re: Implement the "unum" representation in D ?

2015-09-16 Thread deadalnix via Digitalmars-d
On Wednesday, 16 September 2015 at 08:17:59 UTC, Don wrote: On Tuesday, 15 September 2015 at 11:13:59 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 15 September 2015 at 10:38:23 UTC, ponce wrote: On Tuesday, 15 September 2015 at 09:35:36 UTC, Ola Fosheim Grøstad wrote:

Re: What kind of sorcery is that?

2015-09-16 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 08:28:24 UTC, NX wrote: import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); } class Stuff(T) { T!int var; } class Thing(T) { T

Re: Implement the "unum" representation in D ?

2015-09-16 Thread deadalnix via Digitalmars-d
On Saturday, 11 July 2015 at 18:16:22 UTC, Timon Gehr wrote: On 07/11/2015 05:07 PM, Andrei Alexandrescu wrote: On 7/10/15 11:02 PM, Nick B wrote: John Gustafson book is now out: It can be found here:

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 09:21 PM, Mike McKee wrote: What's the best direction from... http://dlang.org/phobos/std_process.html ...on spawning an async process and then peeking at it occasionally as it runs, and then get notified when it finishes? In other words, what std.process functions would you

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread BBasile via Digitalmars-d-learn
On Tuesday, 15 September 2015 at 23:49:23 UTC, BBasile wrote: Under Windows this works fine but under Linux I got a runtime error. this could be reduced to : [...] If it can help to understand the problem, here is the unreducted case:

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Kagamin via Digitalmars-d-learn
declare as abstract void someFunction();

Re: Implementing typestate

2015-09-16 Thread Idan Arye via Digitalmars-d
On Wednesday, 16 September 2015 at 06:25:59 UTC, Ola Fosheim Grostad wrote: On Wednesday, 16 September 2015 at 05:51:50 UTC, Tobias Müller wrote: Ola Fosheim Grøstad wrote: On Tuesday, 15 September 2015 at 20:34:43 UTC, Tobias Müller wrote: There's a Blog

How do I change debug mode with dub?

2015-09-16 Thread Alex_Freeman via Digitalmars-d-learn
Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have code behind multiple debug versions, or run more than one debug version at once? Thanks!

Re: Why do abstract class functions require definitions?

2015-09-16 Thread Marc Schütz via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 09:31:25 UTC, Jacob Carlborg wrote: On 2015-09-16 10:49, FiveNights wrote: Every so often I'll get a compiler error that isn't particularly clear on what's wrong and eventually I'll figure out that what's causing it is having a function in an abstract class

Re: Type helpers instead of UFCS

2015-09-16 Thread Per Nordlöw via Digitalmars-d
On Saturday, 12 September 2015 at 20:37:37 UTC, BBasile wrote: UFCS is good but there are two huge problems: - code completion in IDE. It'will never work. Is is possible. DCD plans to support it: https://github.com/Hackerpilot/DCD/issues/13 I agree that this is a big issue, though, and is

[Issue 15072] New: [REG2.069-devel] Re-introducing codegen performance regression 14805

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15072 Issue ID: 15072 Summary: [REG2.069-devel] Re-introducing codegen performance regression 14805 Product: D Version: D2 Hardware: All OS: All Status:

Re: How do I change debug mode with dub?

2015-09-16 Thread Gary Willoughby via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 10:42:13 UTC, Alex_Freeman wrote: Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have code behind multiple debug versions, or run more than one debug version at

Re: FancyPars

2015-09-16 Thread Bastiaan Veelo via Digitalmars-d-announce
On Thursday, 2 July 2015 at 14:25:09 UTC, Stefan Koch wrote: I hope that it will be suitable to beginners. Sounds like you want to share this, but I can't find a licence. In case this turns out to be useful, we would need one :-) If you want I can prepare a PR for that, just let me know

Re: Final templated interface method not found

2015-09-16 Thread Andre via Digitalmars-d-learn
Thanks, it works like a charme. Kind regards André

Re: running code on the homepage

2015-09-16 Thread Dmitry Olshansky via Digitalmars-d
On 16-Sep-2015 09:44, nazriel wrote: On Wednesday, 16 September 2015 at 05:54:03 UTC, Andrei Amatuni wrote: maybe I'm doing something wrong...but the output of running the default code snippet on the dlang.org homepage is: "unable to fork: Cannot allocate memory" not a good look Thank you

Re: Another, is it a bug?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 03:48:59 UTC, Random D user wrote: Yeah... I guess I was expecting it to overload across class boundaries. I mean there's already a member eat in base class and sub class can't override that since it's got different parameters, and it's a function (can't be

[Issue 15073] New: SIGRTMIN is an alias to a private function

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15073 Issue ID: 15073 Summary: SIGRTMIN is an alias to a private function Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major

[Issue 15072] [REG2.069-devel] Re-introducing codegen performance regression 14805

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15072 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #1 from

Re: Release D 2.068.1

2015-09-16 Thread Marco Leise via Digitalmars-d-announce
Am Tue, 15 Sep 2015 08:39:41 + schrieb John Colvin : > On Monday, 14 September 2015 at 23:53:16 UTC, Martin Nowak wrote: > > On Monday, 14 September 2015 at 20:14:45 UTC, Jack Stouffer > > wrote: > >> On Monday, 14 September 2015 at 17:51:59 UTC, Martin Nowak

[Issue 15071] filenames and module names with case-insensitive HFS+

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 --- Comment #1 from Sobirari Muhomori --- >From spec: --- By convention, package and module names are all lower case. This is because those names can have a one-to-one correspondence with the operating system's directory

Re: "if sting in string"

2015-09-16 Thread smadus via Digitalmars-d-learn
A lot of thanks... i choose the (line.canFind(term)). No is not my first language, Python was my first, but i dont coding a long time...

Re: "if sting in string"

2015-09-16 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:55:13 UTC, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file.

Re: running code on the homepage

2015-09-16 Thread Andrei Amatuni via Digitalmars-d
On Wednesday, 16 September 2015 at 10:17:21 UTC, Dmitry Olshansky wrote: On 16-Sep-2015 09:44, nazriel wrote: On Wednesday, 16 September 2015 at 05:54:03 UTC, Andrei Amatuni wrote: maybe I'm doing something wrong...but the output of running the default code snippet on the dlang.org homepage

Re: running code on the homepage

2015-09-16 Thread nazriel via Digitalmars-d
On Wednesday, 16 September 2015 at 10:17:21 UTC, Dmitry Olshansky wrote: On 16-Sep-2015 09:44, nazriel wrote: On Wednesday, 16 September 2015 at 05:54:03 UTC, Andrei Amatuni wrote: maybe I'm doing something wrong...but the output of running the default code snippet on the dlang.org homepage

Re: Another, is it a bug?

2015-09-16 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 13:18:51 UTC, Meta wrote: It's the exact same as in Java, and probably C# as well. I don't know if there's any OOP language that overloads methods between the base and super class. https://ideone.com/En5JEc https://ideone.com/aIIrKM No, there's nothing

reggae v0.5.0: new features in the D meta-build system

2015-09-16 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/my_packages/reggae What's new: . API changes: main high-level rules are now called objectFiles, link, and scriptlike . Optional top-level targets: aren't built by default but can be built on request . Phony targets . staticLibrary rule that does what it says . unityBuild

"if sting in string"

2015-09-16 Thread smadus via Digitalmars-d-learn
Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec09a0f849c The Problem is in the if() "line 17" i searching in

Re: "if sting in string"

2015-09-16 Thread Rikki Cattermole via Digitalmars-d-learn
On 17/09/15 12:55 AM, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file. http://dpaste.dzfl.pl/dec09a0f849c The Problem is in

[Issue 15071] filenames and module names with case-insensitive HFS+

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 --- Comment #2 from John Colvin --- (In reply to Sobirari Muhomori from comment #1) > From spec: > --- > By convention, package and module names are all lower case. This is because > those names can have a one-to-one

Re: "if sting in string"

2015-09-16 Thread cym13 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:55:13 UTC, smadus wrote: Hello Searching after hours, i give up and here is the question. ;) I will make a programm, this searching all txt files on the system or the path from user and searching a user tiped term in this file.

[Issue 15073] SIGRTMIN is an alias to a private function

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15073 --- Comment #1 from Tomer Filiba --- Sent a pull request: https://github.com/D-Programming-Language/druntime/pull/1386 --

Re: dpaste web site

2015-09-16 Thread nazriel via Digitalmars-d
On Wednesday, 16 September 2015 at 06:52:57 UTC, Ola Fosheim Grøstad wrote: How about just using a single click recaptcha: https://www.google.com/recaptcha/intro/index.html Used that before - still was getting spam. As Vladimir mentioned - it costs 0.001$ to get Captcha solved :)

Re: dpaste web site

2015-09-16 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 16 September 2015 at 13:46:07 UTC, nazriel wrote: On Wednesday, 16 September 2015 at 06:52:57 UTC, Ola Fosheim Grøstad wrote: How about just using a single click recaptcha: https://www.google.com/recaptcha/intro/index.html Used that before - still was getting spam. As Vladimir

Re: dmd codegen improvements

2015-09-16 Thread Bruno Medeiros via Digitalmars-d
On 28/08/2015 22:59, Walter Bright wrote: People told me I couldn't write a C compiler, then told me I couldn't write a C++ compiler. I'm still the only person who has ever implemented a complete C++ compiler (C++98). Then they all (100%) laughed at me for starting D, saying nobody would ever

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 10:31:58 UTC, Idan Arye wrote: What's wrong with two `open()`s in a row? Each will return a new file handle. Yes, but if you do it by mistake then you don't get the compiler to check that you call close() on both. I should have written "what if you forget

Re: any way to initialize an array of structs to void?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:51:51 UTC, ref2401 wrote: On Wednesday, 16 September 2015 at 14:48:59 UTC, Meta wrote: Don't do this with a dynamic array, though, as they work a bit differently from static arrays. Unfortunately I have to deal with dynamic arrays. In that case, you

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 08:38:25 UTC, deadalnix wrote: The energy comparison is bullshit. As long as you haven't loaded the data, you don't know how wide they are. Meaning you need either to go pessimistic and load for the worst case scenario or do 2 round trip to memory. That

Re: any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:48:59 UTC, Meta wrote: Don't do this with a dynamic array, though, as they work a bit differently from static arrays. Unfortunately I have to deal with dynamic arrays.

Re: dmd codegen improvements

2015-09-16 Thread Bruno Medeiros via Digitalmars-d
On 02/09/2015 19:58, Walter Bright wrote: On 8/29/2015 12:37 PM, Laeeth Isharc wrote: In my experience you can deliver everything people say they want, and then find it isn't that at all. That's so true. My favorite anecdote on that was back in the 1990's. A friend of mine said that what he

any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
struct MyStruct { @disable this(); this(int a, string b) { this.a = a; this.b = b; } int a; string b; } I know there is a way to create one instance of `MyStruct` and initialize it to void. MyStruct s = void; s =

Re: any way to initialize an array of structs to void?

2015-09-16 Thread ref2401 via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:57:49 UTC, Meta wrote: In that case, you can use std.array.uninitializedArray or std.array.minimallyInitializedArray as needed. http://dlang.org/phobos/std_array.html#uninitializedArray http://dlang.org/phobos/std_array.html#.minimallyInitializedArray

Weird "circular initialization of isInputRange" error

2015-09-16 Thread Alex Parrill via Digitalmars-d
This piece of code (which I reduced with dustmite) gives me the following error when I try to compile it: $ rdmd -main parser.d parser.d(28): Error: circular initialization of isInputRange parser.d(31): Error: template instance std.meta.staticMap!(handler, ArrayReader*) error instantiating

[Issue 15074] New: std.path.globMatch and escaping [/]/{/}

2015-09-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15074 Issue ID: 15074 Summary: std.path.globMatch and escaping [/]/{/} Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Another, is it a bug?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:08:11 UTC, Kagamin wrote: On Wednesday, 16 September 2015 at 13:18:51 UTC, Meta wrote: It's the exact same as in Java, and probably C# as well. I don't know if there's any OOP language that overloads methods between the base and super class.

Re: any way to initialize an array of structs to void?

2015-09-16 Thread Meta via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 14:45:06 UTC, ref2401 wrote: struct MyStruct { @disable this(); this(int a, string b) { this.a = a; this.b = b; } int a; string b; } I know there is a way to create one instance of

Re: No -v or -deps for gdc?

2015-09-16 Thread Atila Neves via Digitalmars-d-learn
On Tuesday, 15 September 2015 at 18:12:56 UTC, Johannes Pfau wrote: Am Tue, 15 Sep 2015 12:19:34 + schrieb Atila Neves : gdmd supports those options but gdc doesn't. Is that likely to always be the case? Atila gdmd is just a wrapper around gdc. If something is

Re: reggae v0.5.0: new features in the D meta-build system

2015-09-16 Thread Leandro Motta Barros via Digitalmars-d-announce
This link should work for everyone: http://code.dlang.org/packages/reggae (I never tried reggae. Maybe I should, it looks good.) LMB On Wed, Sep 16, 2015 at 11:07 AM, Atila Neves via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: >

Re: dmd codegen improvements

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 14:40:26 UTC, Bruno Medeiros wrote: Me and other people from D community: "ok... now we have a new half-baked functionality in D, adding complexity for little value, and put here only to please people that are extremely unlikely to ever be using D whatever

Re: Implementing typestate

2015-09-16 Thread Idan Arye via Digitalmars-d
On Wednesday, 16 September 2015 at 14:34:05 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 16 September 2015 at 10:31:58 UTC, Idan Arye wrote: What's wrong with two `open()`s in a row? Each will return a new file handle. Yes, but if you do it by mistake then you don't get the compiler to

Re: How do I change debug mode with dub?

2015-09-16 Thread Alex_Freeman via Digitalmars-d-learn
On Wednesday, 16 September 2015 at 12:04:38 UTC, Gary Willoughby wrote: On Wednesday, 16 September 2015 at 10:42:13 UTC, Alex_Freeman wrote: Hey all! I'm just wondering how to run dub with different debug versions, or running it with different versions generally? Is there also a way to have

Thrift

2015-09-16 Thread ddos via Digitalmars-d-learn
Looking for a RPC library, thrift looked promising, but i can't even compile the simple example given here https://thrift.apache.org/tutorial/d to compile i've 1. copied the thrift/lib/d/src/thrift folder to my source directory 2. copied the generated sources ( tutorial and share folder )

Re: GC performance: collection frequency

2015-09-16 Thread H. S. Teoh via Digitalmars-d
On Tue, Sep 15, 2015 at 07:08:01AM +0200, Daniel Kozák via Digitalmars-d wrote: > > http://dlang.org/changelog/2.067.0.html#gc-options [...] Wow that is obscure. This really needs to go into the main docs so that it can actually be found... T -- People demand freedom of speech to make up

Re: Implementing typestate

2015-09-16 Thread Marc Schütz via Digitalmars-d
On Tuesday, 15 September 2015 at 21:44:25 UTC, Freddy wrote: On Tuesday, 15 September 2015 at 17:45:45 UTC, Freddy wrote: Rust style memory management in a library Wait nevermind about that part, it's harder than I thought. Yeah, I thought about type-states as a way of implementing

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 15:34:40 UTC, Idan Arye wrote: Move semantics should be enough. We can declare the destructor private, and then any code outside the module that implicitly calls the d'tor when the variable goes out of scope will raise a compilation error. In order to "get

Re: reggae v0.5.0: new features in the D meta-build system

2015-09-16 Thread Kagamin via Digitalmars-d-announce
Ruby link points to reggae-python.

Re: Creating a DLL with a ActiveX interface.

2015-09-16 Thread Taylor Hillegeist via Digitalmars-d-learn
On Monday, 14 September 2015 at 16:59:20 UTC, Adam D. Ruppe wrote: On Monday, 14 September 2015 at 15:44:36 UTC, Taylor Hillegeist wrote: So, Actually I am using NI LabVIEW to interact with my DLL. I imagine even getting hold of of that would troublesome or expensive. Ah, all right. Here's a

Re: dpaste web site

2015-09-16 Thread John Colvin via Digitalmars-d
On Wednesday, 16 September 2015 at 16:12:03 UTC, Kagamin wrote: On Wednesday, 16 September 2015 at 13:54:36 UTC, Andrea Fontana wrote: I mean: to check some frequencies of common d keywords/combo like "class", "struct", "int", "float", "if(" "while(", "(int ", "(float ", etc that are not

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 16:24:49 UTC, Idan Arye wrote: No need for `reinterpret_cast`. The `close` function is declared in the same module as the `File` struct, so it has access to it's private d'tor. True, so it might work for D. Interesting.

Re: dpaste web site

2015-09-16 Thread Kagamin via Digitalmars-d
On Wednesday, 16 September 2015 at 13:54:36 UTC, Andrea Fontana wrote: I mean: to check some frequencies of common d keywords/combo like "class", "struct", "int", "float", "if(" "while(", "(int ", "(float ", etc that are not common in plain english used by spammers... Solving dcaptcha costs

Re: Implementing typestate

2015-09-16 Thread Idan Arye via Digitalmars-d
On Wednesday, 16 September 2015 at 15:57:14 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 16 September 2015 at 15:34:40 UTC, Idan Arye wrote: Move semantics should be enough. We can declare the destructor private, and then any code outside the module that implicitly calls the d'tor when the

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Mike McKee via Digitalmars-d-learn
Beautiful, Ali. Took me a bit to read here... http://dlang.org/phobos/std_concurrency.html ...but I realized that receiveTimeout() was a std.concurrency class method.

Re: Best Direction on Spawning Process Async

2015-09-16 Thread Mike McKee via Digitalmars-d-learn
This really shows the beauty and simplicity of the D language compared to C++. Check this out in Qt/C++: http://stackoverflow.com/questions/32593463/spawn-async-qprocess-from-dynamic-library-peek-output-until-done ...see how much nicer the D version is here that Ali did, versus the Qt/C++

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Timon Gehr via Digitalmars-d
On 09/16/2015 10:17 AM, Don wrote: So: ... * There is no guarantee that it would be possible to implement it in hardware without a speed penalty, regardless of how many transistors you throw at it (hardware analogue of Amdahl's Law) https://en.wikipedia.org/wiki/Gustafson's_law :o)

Re: Overview of D User Groups?

2015-09-16 Thread Ali Çehreli via Digitalmars-d
On 09/16/2015 11:56 AM, qznc wrote: Is there an overview of D user groups somewhere? There is one in Berlin and one in the Valley, apparently. Walter participates in the Cpp group in Seattle or something, if I remember correctly. If a Meetup group happens to list the right keywords (topics?)

Re: Runtime error when calling a callback in a parallel Task

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 04:49 PM, BBasile wrote: Under Windows this works fine but under Linux I got a runtime error. Can it be because 'param' is invalid at the time clbck is called? The following program works under Linux. However, removing thread_joinAll() is a bug: import std.parallelism; import

Re: Implement the "unum" representation in D ?

2015-09-16 Thread deadalnix via Digitalmars-d
On Wednesday, 16 September 2015 at 14:11:04 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 16 September 2015 at 08:38:25 UTC, deadalnix wrote: The energy comparison is bullshit. As long as you haven't loaded the data, you don't know how wide they are. Meaning you need either to go pessimistic

LDC 0.16.0 alpha3 is out! Get it, test it, give feedback!

2015-09-16 Thread Kai Nacke via Digitalmars-d-announce
Hi everyone, LDC 0.16.0 alpha3, the LLVM-based D compiler, is available for download! This release is based on the 2.067.1 frontend and standard library and supports LLVM 3.1-3.7 (OS X: no support for 3.3). Don't miss to check if your preferred system is supported by this release. There is

Re: Implement the "unum" representation in D ?

2015-09-16 Thread deadalnix via Digitalmars-d
On Wednesday, 16 September 2015 at 19:40:49 UTC, Ola Fosheim Grøstad wrote: You can load continuously 64 bytes in a stream, decode to your internal format and push them into the scratchpad of other cores. You could even do this in hardware. 1/ If you load the worst case scenario, then your

Re: Implement the "unum" representation in D ?

2015-09-16 Thread jmh530 via Digitalmars-d
On Wednesday, 16 September 2015 at 08:38:25 UTC, deadalnix wrote: Also, predictable size mean you can split your dataset and process it in parallel, which is impossible if sizes are random. I don't recall how he would deal with something similar to cache misses when you have to promote or

Silicon Valley D Meetup September 2015

2015-09-16 Thread Ali Çehreli via Digitalmars-d-announce
"Introducing ultraviolet-d, a web framework for REST-ful services" http://www.meetup.com/D-Lang-Silicon-Valley/events/224948581/ Ali

Re: Release D 2.068.1

2015-09-16 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 15 September 2015 at 08:39:43 UTC, John Colvin wrote: Where is the VERSION file documented? Why does it need manual intervention only for patch releases and pre-releases? We should prolly remove the manually updated VERSION file. The other build scripts update the file or pass

Overview of D User Groups?

2015-09-16 Thread qznc via Digitalmars-d
Is there an overview of D user groups somewhere? There is one in Berlin and one in the Valley, apparently. Walter participates in the Cpp group in Seattle or something, if I remember correctly.

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 19:21:59 UTC, deadalnix wrote: No you don't. Because the streamer still need to load the unum one by one. Maybe 2 by 2 with a fair amount of hardware speculation (which means you are already trading energy for performances, so the energy argument is weak).

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Timon Gehr via Digitalmars-d
On 09/16/2015 10:46 AM, deadalnix wrote: On Saturday, 11 July 2015 at 18:16:22 UTC, Timon Gehr wrote: On 07/11/2015 05:07 PM, Andrei Alexandrescu wrote: On 7/10/15 11:02 PM, Nick B wrote: John Gustafson book is now out: It can be found here:

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 18:01:29 UTC, Marc Schütz wrote: typestate(alias owner) { this.owner := owner; // re-alias operator this.owner.refcount++; } I don't think this is possible to establish in the general case. Wouldn't

Re: Implementing typestate

2015-09-16 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 16 September 2015 at 18:41:33 UTC, Ola Fosheim Grøstad wrote: I don't think this is possible to establish in the general case. Wouldn't this require a full theorem prover? I think the only way for that to work is to fully unroll all loops and hope that a theorem prover can deal

Re: Load Qt UI XML File as GUI

2015-09-16 Thread Ali Çehreli via Digitalmars-d-learn
On 09/15/2015 09:36 PM, Steven Schveighoffer wrote: On 9/16/15 12:03 AM, Mike McKee wrote: Unfortunately, the http://dsource.org/forums/ doesn't appear to be active -- I can't login after I registered. This is where the QtD project has their forum. So, I'm asking this here. Seems to have

Re: Implement the "unum" representation in D ?

2015-09-16 Thread deadalnix via Digitalmars-d
On Wednesday, 16 September 2015 at 21:12:11 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 16 September 2015 at 20:53:37 UTC, deadalnix wrote: On Wednesday, 16 September 2015 at 20:30:36 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 16 September 2015 at 20:06:43 UTC, deadalnix wrote: You know,

Desperately looking for a work-around to load and unload D shared libraries from C on OSX

2015-09-16 Thread ponce via Digitalmars-d
Context: On OSX, a C program can load a D shared library but once unloaded the next dlopen will crash, jumping into a callback that doesn't exist anymore. I've filed it here: https://issues.dlang.org/show_bug.cgi?id=15060 It looks like this was known and discussed several times already:

Re: Implement the "unum" representation in D ?

2015-09-16 Thread Wyatt via Digitalmars-d
On Wednesday, 16 September 2015 at 08:53:24 UTC, Ola Fosheim Grøstad wrote: I don't think he is downplaying it. He has said that it will probably take at least 10 years before it is available in hardware. There is also a company called Rex Computing that are looking at unum: Oh hey, I

  1   2   >