Re: Recommend: IDE and GUI library

2017-03-01 Thread thedeemon via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 23:44:47 UTC, XavierAP wrote: Still I want to be able to be able to work and debug from Visual Studio. The way I did on Windows: 1) get dlangui via dub 2) go to its folder in AppData\roaming\dub\packages and edit dub.json: * find "minimal" configuration * add

Why opDispatch uses SFINAE implicitly?

2017-03-01 Thread Dukc via Digitalmars-d
If I define an opDispatch for something, but the call does not compile, the compiler currently behaves as if the opDispatch didn't exist at all. Just like C++ templates as far as I know. Why is this? I think it would be better if it acted like other D templates: Compilation failure is always

Re: Recommend: IDE and GUI library

2017-03-01 Thread Patrick Schluter via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 23:44:47 UTC, XavierAP wrote: On Wednesday, 1 March 2017 at 20:00:32 UTC, thedeemon wrote: For this I found out how to clone the dependencies, sorry about that... (Only from the command line... Anyone recommends better free Windows Git gui clients than GitHub

Re: Getting underlying struct for parseJSON

2017-03-01 Thread Alexey H via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 21:21:30 UTC, Adam D. Ruppe wrote: On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: [...] It doesn't actually generate one, it just returns a tagged union (a kind of dynamic type). [...] Superb, Adam, thank you! I need to check out inspector.

Re: Mixing libraries

2017-03-01 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 2 March 2017 at 02:27:03 UTC, Jordan Wilson wrote: Ah yes, I think you explain the difference between wrapper/binding in one of the Derelict docs. I'm currently working through a ebook on Game Dev with SFML...the examples are all C++. I don't have any trouble translating it to

Re: DConf 2017 Hotel - book now!

2017-03-01 Thread Walter Bright via Digitalmars-d-announce
On 3/1/2017 6:49 PM, Nicholas Wilson wrote: Any idea when the speaker list will be published? I hope soon.

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 2 March 2017 at 00:06:17 UTC, Adam D. Ruppe wrote: Though it is important to note that adrdox does NOT support user-defined ddoc macros But, it DOES now support a footnote kind of thing. Behold: http://dpldocs.info/experimental-docs/test.html#footnotes In ddoc, I was tempted to

Re: DCV v0.2.0 - adaptation to the new ndslice

2017-03-01 Thread jmh530 via Digitalmars-d-announce
On Wednesday, 1 March 2017 at 21:48:27 UTC, Faux Amis wrote: Nice! Question, do you know of any (plans to make a) deep learning framework in D? (like: http://caffe.berkeleyvision.org) I only recall a previous discussion on this thread

Re: CTFE Status 2

2017-03-01 Thread Stefan Koch via Digitalmars-d
On Thursday, 2 March 2017 at 03:09:56 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Hi Guys, The implementation of ref parameters by itself was successful. However they hey have one bug, which is a consquence of newCTFE not touching dmd's

[Issue 17229] File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17229 Steven Schveighoffer changed: What|Removed |Added Keywords||pull

Re: CTFE Status 2

2017-03-01 Thread Stefan Koch via Digitalmars-d
On Thursday, 2 March 2017 at 03:09:56 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] uint add8ret3(ref uint a) {a += 8; return 3;} pragma (msg, (uint outer) { outer += add8ret3(a); return outer;}(1)); // will print 4 was supposed to

Re: CTFE Status 2

2017-03-01 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Hi Guys, The implementation of ref parameters by itself was successful. However they hey have one bug, which is a consquence of newCTFE not touching dmd's state. They cannot modify an outer parameter. (where outer

Re: DConf 2017 Hotel - book now!

2017-03-01 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 2 March 2017 at 02:24:50 UTC, Walter Bright wrote: http://www.ibis.com/gb/hotel-5694-ibis-berlin-neukoelln/index.shtml Last year, some people booked late and it was full and they had to stay at another hotel. Thanks for the heads up. Any idea when the speaker list will be

Re: Recommend: IDE and GUI library

2017-03-01 Thread evilrat via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 23:44:47 UTC, XavierAP wrote: For this I found out how to clone the dependencies, sorry about that... (Only from the command line... Anyone recommends better free Windows Git gui clients than GitHub Desktop?) TortoiseGIT maybe?

Re: Mixing libraries

2017-03-01 Thread Jordan Wilson via Digitalmars-d-learn
On Thursday, 2 March 2017 at 01:02:39 UTC, Mike Parker wrote: On Wednesday, 1 March 2017 at 16:12:06 UTC, bauss wrote: There is a better binding. dsfml. You can find it here: http://dsfml.com/ DSFML technically is not a binding (even though it says such on the web site). It's a wrapper

DConf 2017 Hotel - book now!

2017-03-01 Thread Walter Bright via Digitalmars-d-announce
http://www.ibis.com/gb/hotel-5694-ibis-berlin-neukoelln/index.shtml Last year, some people booked late and it was full and they had to stay at another hotel.

[Issue 17237] Wrong alignment of 256-bit and 512-bit vectors

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

[Issue 17237] Wrong alignment of 256-bit and 512-bit vectors

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17237 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/10eba509d6a5dfbe509fa1ffe7f4c3962a58a490 fix Issue 17237 - Wrong alignment for 256-bit vectors.

[Issue 17238] r.lookaround!(a, b) returns a range derived from r that allows a elements of lookahead and b elements of lookback

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17238 --- Comment #2 from Andrei Alexandrescu --- (In reply to greenify from comment #1) > A couple of questions to clarify: > > 1) popFront/popBack will move the fixed-size buffer, right? > For example: > >

Range with lookaround

2017-03-01 Thread Andrei Alexandrescu via Digitalmars-d
May be worth discussing in here: https://issues.dlang.org/show_bug.cgi?id=17238 -- Andrei

[Issue 17238] r.lookaround!(a, b) returns a range derived from r that allows a elements of lookahead and b elements of lookback

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17238 greenify changed: What|Removed |Added CC||greeen...@gmail.com

Re: Alignment of struct containing SIMD field - GDC

2017-03-01 Thread Cecil Ward via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 22:15:59 UTC, Iain Buclaw wrote: On Wednesday, 1 March 2017 at 19:09:24 UTC, Johan Engelen wrote: On Wednesday, 1 March 2017 at 18:34:16 UTC, Iain Buclaw wrote: Simple test case would be: struct vec_struct { bool b2; struct { bool b; int8

[Issue 17238] New: r.lookaround!(a, b) returns a range derived from r that allows a elements of lookahead and b elements of lookback

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17238 Issue ID: 17238 Summary: r.lookaround!(a, b) returns a range derived from r that allows a elements of lookahead and b elements of lookback Product: D Version: D2

Re: Alignment of struct containing SIMD field - GDC

2017-03-01 Thread Cecil Ward via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 22:15:59 UTC, Iain Buclaw wrote: On Wednesday, 1 March 2017 at 19:09:24 UTC, Johan Engelen wrote: On Wednesday, 1 March 2017 at 18:34:16 UTC, Iain Buclaw wrote: Simple test case would be: struct vec_struct { bool b2; struct { bool b; int8

Re: Mixing libraries

2017-03-01 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 16:12:06 UTC, bauss wrote: There is a better binding. dsfml. You can find it here: http://dsfml.com/ DSFML technically is not a binding (even though it says such on the web site). It's a wrapper that D-ifies the SFML API. The SFML functions are not callable

[Issue 12564] std.range.backWalk, std.range.backWalkMaybe

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12564 greenify changed: What|Removed |Added Status|NEW |RESOLVED

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 1 March 2017 at 23:21:14 UTC, Seb wrote: https://github.com/dlang/phobos/pulls?utf8=%E2%9C%93=is%3Apr%20label%3Adocumentation%20 Most of these changes are independent from Ddoc/Ddox/Adrdox/..., so everyone should be able to enjoy cleaner documentation soon. Actually, almost

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread lobo via Digitalmars-d
On Wednesday, 1 March 2017 at 06:19:30 UTC, lobo wrote: On Wednesday, 1 March 2017 at 05:18:59 UTC, Adam D. Ruppe wrote: I stumbled across std.typecons.Unique in my doc website today and realized there was a postblit in the source, but I didn't display the documentation comment. [...] Is

Re: Recommend: IDE and GUI library

2017-03-01 Thread XavierAP via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 20:00:32 UTC, thedeemon wrote: If you're building your app with VisualD (as opposed to invoking dub externally), make sure you've set up import paths in project settings properly. Thanks. With dub everything works straight forward. I just call it blindly since

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Seb via Digitalmars-d
On Wednesday, 1 March 2017 at 20:10:35 UTC, Adam D. Ruppe wrote: On Wednesday, 1 March 2017 at 12:05:33 UTC, bachmeier wrote: If by "surrender", you mean adopt your system for the official documentation, well I sure hope not. That's a fast way to kill progress on anything related to this

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Adam D. Ruppe via Digitalmars-d
Seeing ddmd coming to dlang.org , just for fun I ran my doc generator over the dmd source code too: http://dpldocs.info/experimental-docs/ddmd.html I didn't enable search over it but you can browse to the extent that there are ddoc

Re: Alignment of struct containing SIMD field - GDC

2017-03-01 Thread Iain Buclaw via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 19:09:24 UTC, Johan Engelen wrote: On Wednesday, 1 March 2017 at 18:34:16 UTC, Iain Buclaw wrote: Simple test case would be: struct vec_struct { bool b2; struct { bool b; int8 field; } } static assert(vec_struct.b.offsetof == 32);

[Issue 17237] Wrong alignment of 256-bit and 512-bit vectors

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17237 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org

[Issue 17237] New: Wrong alignment of 256-bit and 512-bit vectors

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17237 Issue ID: 17237 Summary: Wrong alignment of 256-bit and 512-bit vectors Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

Re: DCV v0.2.0 - adaptation to the new ndslice

2017-03-01 Thread Faux Amis via Digitalmars-d-announce
On 2017-03-01 18:10, Relja Ljubobratovic wrote: Hi everyone, I wanted to let you know that we've released new version of DCV[1], an open source computer vision library, written in D programming language, with goal to provide tools for solving most common computer vision problems - various image

[Issue 17236] New: DMD doesn't build on debian anymore

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17236 Issue ID: 17236 Summary: DMD doesn't build on debian anymore Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Recommend: IDE and GUI library

2017-03-01 Thread aberba via Digitalmars-d-learn
On Friday, 24 February 2017 at 22:44:55 UTC, XavierAP wrote: Hi I've looked at wiki.dlang.org/IDEs, and I see that Visual D is linked from dlang.org/download.html. Still I was looking for personal opinions and experiences beyond hard specs, I wonder if one of the IDEs is already dominant at

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread aberba via Digitalmars-d
On Wednesday, 1 March 2017 at 18:34:22 UTC, bachmeier wrote: On Wednesday, 1 March 2017 at 17:09:51 UTC, Jared Jeffries wrote: I think it should instead be advertised as the perfect language to learn programming and web development, because that's where it really shines, IMHO. I agree, but

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 1 March 2017 at 12:05:33 UTC, bachmeier wrote: If by "surrender", you mean adopt your system for the official documentation, well I sure hope not. That's a fast way to kill progress on anything related to this language. Yeah, I'd prolly have to continue working on it myself but

Re: Recommend: IDE and GUI library

2017-03-01 Thread thedeemon via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 17:37:02 UTC, XavierAP wrote: I'm trying now DlangUI on Visual D. I'm getting different errors from missing Derelict library dependencies... If you're building your app with VisualD (as opposed to invoking dub externally), make sure you've set up import paths in

Re: foreach for string[string]AA

2017-03-01 Thread Mike Wey via Digitalmars-d-learn
On 02/28/2017 07:16 PM, Anton Pastukhov wrote: On Tuesday, 28 February 2017 at 17:16:43 UTC, Daniel Kozák wrote: V Tue, 28 Feb 2017 15:15:00 + Anton Pastukhov via Digitalmars-d-learn napsáno: I can't see the logic in AA foreach order. Consider this

Re: Alignment of struct containing SIMD field - GDC

2017-03-01 Thread Johan Engelen via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 18:34:16 UTC, Iain Buclaw wrote: Simple test case would be: struct vec_struct { bool b2; struct { bool b; int8 field; } } static assert(vec_struct.b.offsetof == 32); static assert(vec_struct.field.offsetof == 64); With explicit

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/01/2017 12:25 PM, Jack Stouffer wrote: I agree. We have a lot to improve in terms of marketing. Mainly our messaging is jumbled. Rust = memory safety Go = the best runtime around D = everything I guess? And the problem is that D is good at everything (IMO), so how do we go about

Libharu D binding harud unicode support

2017-03-01 Thread Erdem via Digitalmars-d-learn
How should one use libharu d binding in unicode mode. Consider this basic example. import std.stdio; import harud; import harud.c; void main() { void errorCallback(uint error_number, uint detail_number) { writefln("err %x, %s, (num %x)" , error_number ,

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread bachmeier via Digitalmars-d
On Wednesday, 1 March 2017 at 17:09:51 UTC, Jared Jeffries wrote: I think it should instead be advertised as the perfect language to learn programming and web development, because that's where it really shines, IMHO. I agree, but we need an intro to programming class using D as the language

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/01/2017 08:35 AM, Craig Dillabaugh wrote: However the forum does often answer some highly important and relevant questions. My favorite so far was the "If I wanted to jump from an airplane flying at 30,000 feet with nothing but bubble wrap for protection, how much would I need?" Since

Re: Alignment of struct containing SIMD field - GDC

2017-03-01 Thread Iain Buclaw via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 06:04:32 UTC, Cecil Ward wrote: struct vec_struct { alias field this; bool b; int8 field; } In this code when you look at the generated x64 code output by GDC it seems to be doing a nice job, because it has got the offset right for the 256-bit YMM

Re: It's alive! D building D building D, all on Android

2017-03-01 Thread Andre Pany via Digitalmars-d-announce
On Monday, 27 February 2017 at 17:08:26 UTC, Joakim wrote: Piping hot builds of the upcoming ldc 1.1.1 release available as both a linux/x64 -> Android/ARM cross-compiler and a native Android/ARM compiler, that you can run on your own phone or tablet:

Re: WebAssembly design is done?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/01/2017 05:15 AM, Ola Fosheim Grøstad wrote: So, maybe the conclusion is: don't let corporations create technology standards in their main domain, because then they try to create monopolies and start misbehaving. Browsers is a side-line tech, so... this might have a chance..? Well,

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Meta via Digitalmars-d
On Wednesday, 1 March 2017 at 17:25:07 UTC, Jack Stouffer wrote: I agree. We have a lot to improve in terms of marketing. Mainly our messaging is jumbled. Rust = memory safety Go = the best runtime around D = everything I guess? And the problem is that D is good at everything (IMO), so how

Re: rdmd with a file with no extension

2017-03-01 Thread XavierAP via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 16:06:20 UTC, Colin wrote: When running a small D program through rdmd, it seems the file needs a .d extension to work. It looks like the file extension is enforced: https://dlang.org/dmd-windows.html#switches Looks like a feature rather than a bug... At the

Re: Recommend: IDE and GUI library

2017-03-01 Thread XavierAP via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 06:16:08 UTC, thedeemon wrote: For me Visual-D served well for years, and for GUI on Windows I've used DFL successfully (quite nice lib, very WinForms-like, with a visual editor) and now mostly use DLangUI (on both Windows and Linux). I'm trying now DlangUI on

Re: How to enforce compile time evaluation (and test if it was done at compile time)

2017-03-01 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, March 01, 2017 17:02:37 Dukc via Digitalmars-d-learn wrote: > On Wednesday, 1 March 2017 at 16:43:41 UTC, Jonathan M Davis > > wrote: > > Assert is for program invariants. If the condition is true, > > your program is outright broken. > > Error: He meant that if the condition is

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Joakim via Digitalmars-d
On Wednesday, 1 March 2017 at 17:09:51 UTC, Jared Jeffries wrote: I'm not talking especially about Quora, even if I admit that it's on this forum that somebody advised me to learn D to improve my object oriented programming skills. [...] I think it should instead be advertised as the perfect

Re: How to enforce compile time evaluation (and test if it was done at compile time)

2017-03-01 Thread XavierAP via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 09:19:53 UTC, Christian Köstlin wrote: On 01/03/2017 00:09, Joseph Rushton Wakeling wrote: if (!__ctfe) assert(false); ... might be the best option. That shouldn't be compiled out even in -release builds. thats a nice idea! is this happening because of

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 1 March 2017 at 17:09:51 UTC, Jared Jeffries wrote: I'm not talking especially about Quora, even if I admit that it's on this forum that somebody advised me to learn D to improve my object oriented programming skills. I'm just saying that I think that D is de facto one of the

DCV v0.2.0 - adaptation to the new ndslice

2017-03-01 Thread Relja Ljubobratovic via Digitalmars-d-announce
Hi everyone, I wanted to let you know that we've released new version of DCV[1], an open source computer vision library, written in D programming language, with goal to provide tools for solving most common computer vision problems - various image processing tasks, feature detection and

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Jared Jeffries via Digitalmars-d
I'm not talking especially about Quora, even if I admit that it's on this forum that somebody advised me to learn D to improve my object oriented programming skills. I'm just saying that I think that D is de facto one of the best languages for beginners like me. A lot better than most

Re: How to enforce compile time evaluation (and test if it was done at compile time)

2017-03-01 Thread Dukc via Digitalmars-d-learn
On Wednesday, 1 March 2017 at 16:43:41 UTC, Jonathan M Davis wrote: Assert is for program invariants. If the condition is true, your program is outright broken. Error: He meant that if the condition is FALSE, the program is faulty.

Re: How to enforce compile time evaluation (and test if it was done at compile time)

2017-03-01 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, February 28, 2017 09:16:47 sarn via Digitalmars-d-learn wrote: > On Tuesday, 28 February 2017 at 07:41:36 UTC, Christian Köstlin > > wrote: > > As I understand the only difference between assert and enforce > > is, that > > assert is not compiled into releases? > > > > Thanks! > >

Re: Mixing libraries

2017-03-01 Thread bauss via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 20:08:25 UTC, Jordan Wilson wrote: Hello, Been trying to learn the Simple Fast Multimedia Library (SFML) using the Derelict bindings, and noticed some functionality is offered by both SFML and the std library (for example, sfClock and sfMutex). Is there a

rdmd with a file with no extension

2017-03-01 Thread Colin via Digitalmars-d-learn
When running a small D program through rdmd, it seems the file needs a .d extension to work. ``` $ ./testscript2 Error: module testscript2 is in file './testscript2.d' which cannot be read $ cat testscript2 #!/usr/bin/env rdmd void main(string[] args){ import std.stdio;

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 28 February 2017 at 23:29:24 UTC, Jared Jeffries wrote: I've read the answer to questions like "Which is the best programming language to learn in 2017?". Nobody was telling anything about D, which is really sad, because in my opinion D could be one of the best answers to this

[Issue 17229] File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17229 --- Comment #6 from Steven Schveighoffer --- (In reply to anonymous4 from comment #5) > static assert(is(ubyte:dchar)); > This assert succeeds. Is it intended? It's why LockingTextWriter accepts > bytes event though it's a text

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 1 March 2017 at 06:19:30 UTC, lobo wrote: Is it possible to use your tool to generate the docs for my own code? Yes, but I don't actually support it yet (you can grab the code from the link rikki gave but you're on your own). I work on this in between the other million things

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Mike Parker via Digitalmars-d
On Wednesday, 1 March 2017 at 10:20:45 UTC, Jared Jeffries wrote: I suggest that D lovers answer as often as possible to these kind of questions on these websites. Plenty of people do, particularly on reddit, StackOverflow, Hacker News, and whatever forums & communities they tend to hang

Project Highlight: vibe.d

2017-03-01 Thread Mike Parker via Digitalmars-d-announce
Most of us here are already familiar with vibe.d. In this post, Sönke talks a bit about why he started it and why & how he's breaking it up into independent packages. Post: https://dlang.org/blog/2017/03/01/project-highlight-vibe-d/ Reddit:

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 1 March 2017 at 08:12:05 UTC, Nick Sabalausky (Abscissa) wrote: On 02/28/2017 06:29 PM, Jared Jeffries wrote: What's quora? (It's really hard to always keep on top of all the latest tread sites/appz/whatever. It's all so fly-by-night.) Quora is a general Q forum and hang-out

Re: foreach for string[string]AA

2017-03-01 Thread Minty Fresh via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 18:16:45 UTC, Anton Pastukhov wrote: On Tuesday, 28 February 2017 at 17:16:43 UTC, Daniel Kozák wrote: V Tue, 28 Feb 2017 15:15:00 + Anton Pastukhov via Digitalmars-d-learn napsáno: I can't see the logic in AA foreach

Re: Fast hashtable

2017-03-01 Thread deadalnix via Digitalmars-d
On Wednesday, 1 March 2017 at 06:44:34 UTC, Cecil Ward wrote: const uint power2 = 512; // say, some 1 << n anyway const uint prime = 509; // some prime just below the power, some prime > power2/2 static assert( power2 - 1 - prime < prime ); x = x & ( power2 - 1 ); x = ( x

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread bachmeier via Digitalmars-d
On Wednesday, 1 March 2017 at 05:18:59 UTC, Adam D. Ruppe wrote: Or better yet, surrender to me! D is gaining features that ddoc doesn't even know how to handle but I do... If by "surrender", you mean adopt your system for the official documentation, well I sure hope not. That's a fast

[Issue 17136] dictionary get(value, defaultValue) should be nothrow

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17136 Lucia Cojocaru changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12647] Lazy parameter evaluation should be marked as nothrow

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12647 --- Comment #8 from Lucia Cojocaru --- *** Issue 17136 has been marked as a duplicate of this issue. *** --

[Issue 17229] File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17229 --- Comment #5 from anonymous4 --- static assert(is(ubyte:dchar)); This assert succeeds. Is it intended? It's why LockingTextWriter accepts bytes event though it's a text writer. --

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Jared Jeffries via Digitalmars-d
Here is a link to my answer : https://www.quora.com/Which-is-the-best-programming-language-to-learn-in-2017/answer/Jared-Jeffries-4?prompt_topic_bio=1

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Jared Jeffries via Digitalmars-d
It's one of those forum websites where you ask a question, experts give their advices and people vote for the best answer. You can find them by searching "best programming language 2017" in google for instance. I suggest that D lovers answer as often as possible to these kind of questions

Re: WebAssembly design is done?

2017-03-01 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 1 March 2017 at 09:00:42 UTC, Nick Sabalausky (Abscissa) wrote: If we could invent a technical way to screw over, underminine, and completely replace corporate interests, it would be the single greatest achievement in computing (not to mention economic theory), EVER. I bet

Re: Fast hashtable

2017-03-01 Thread Daniel Kozak via Digitalmars-d
On Wednesday, 1 March 2017 at 06:44:34 UTC, Cecil Ward wrote: I liked that article. I didn't really understand the point about implementation of modulo primes, maybe I missed something. Given that our man is doing modulo a 'known' value (he had a switch statement to get to them), why not do

Re: Snowflake Strings

2017-03-01 Thread Kagamin via Digitalmars-d-announce
In case strings hash to the same value, the linkers (ld and ms) have an option to detect discrepancy in content.

Re: WebAssembly design is done?

2017-03-01 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 1 March 2017 at 08:56:37 UTC, Nick Sabalausky (Abscissa) wrote: On 03/01/2017 03:47 AM, Ola Fosheim Grøstad wrote: On Wednesday, 1 March 2017 at 08:01:41 UTC, Saurabh Das wrote: I'm not so up-to-date about the mechanics of WebAssembly, but it would be pretty exciting to run D

Re: How to enforce compile time evaluation (and test if it was done at compile time)

2017-03-01 Thread Christian Köstlin via Digitalmars-d-learn
On 01/03/2017 00:09, Joseph Rushton Wakeling wrote: > On Tuesday, 28 February 2017 at 00:22:28 UTC, sarn wrote: >>> If you ever have doubts, you can always use something like this to >>> check: >>> >>> assert (__ctfe); >> >> Sorry, "enforce" would more appropriate if you're really checking. > >

[Issue 17229] File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17229 Jon Degenhardt changed: What|Removed |Added Summary|File.byChunk w/ |File.byChunk

[Issue 17229] File.byChunk w/ stdout.lockingTextWriter is very slow

2017-03-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17229 --- Comment #3 from Jon Degenhardt --- I've confirmed that File.byChunk with lockingTextWriter corrupts utf-8 encoded files. I used the unicode test file: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt

Re: WebAssembly design is done?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/01/2017 03:46 AM, Ola Fosheim Grøstad wrote: On Tuesday, 28 February 2017 at 21:50:11 UTC, Jack Stouffer wrote: What a long, roundabout path we've taken to end up back where we started: shipping binaries in a sandboxed environment. Portable object-files is something that that people

Re: WebAssembly design is done?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 03/01/2017 03:47 AM, Ola Fosheim Grøstad wrote: On Wednesday, 1 March 2017 at 08:01:41 UTC, Saurabh Das wrote: I'm not so up-to-date about the mechanics of WebAssembly, but it would be pretty exciting to run D code in the browser. Is this now possible or have I completely misunderstood what

Re: WebAssembly design is done?

2017-03-01 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 1 March 2017 at 08:01:41 UTC, Saurabh Das wrote: I'm not so up-to-date about the mechanics of WebAssembly, but it would be pretty exciting to run D code in the browser. Is this now possible or have I completely misunderstood what WebAssembly allows for? It should be possible,

Re: WebAssembly design is done?

2017-03-01 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 28 February 2017 at 21:50:11 UTC, Jack Stouffer wrote: What a long, roundabout path we've taken to end up back where we started: shipping binaries in a sandboxed environment. Portable object-files is something that that people have tried to achieve since the 1980s, but vendors

Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 02/28/2017 06:29 PM, Jared Jeffries wrote: I've read the answer to questions like "Which is the best programming language to learn in 2017?". Nobody was telling anything about D, which is really sad, because in my opinion D could be one of the best answers to this question. I've answered

Re: WebAssembly design is done?

2017-03-01 Thread Saurabh Das via Digitalmars-d
I'm not so up-to-date about the mechanics of WebAssembly, but it would be pretty exciting to run D code in the browser. Is this now possible or have I completely misunderstood what WebAssembly allows for?

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 1 March 2017 at 05:18:59 UTC, Adam D. Ruppe wrote: Contrast to the official docs: http://dlang.org/phobos/std_typecons.html#.RefCounted http://dlang.org/library-prerelease/std/typecons/ref_counted.html my 2 cents: The officials docs has too much grey and the information is not