Re: Commercial video processing app in D (experience report)

2016-05-05 Thread thedeemon via Digitalmars-d-announce
On Thursday, 5 May 2016 at 18:33:44 UTC, TheGag96 wrote: On Wednesday, 27 April 2016 at 12:42:05 UTC, thedeemon wrote: (snip) Sorry to bump this thread, but how did you handle multiple windows using DlangUI? (As in, were you able to prevent input on the main window while another one was

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Friday, 6 May 2016 at 00:08:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 23:46:59 UTC, Ed wrote: On Thursday, 5 May 2016 at 23:33:07 UTC, Yuxuan Shui wrote: It'd really nice if this just works, That's clear that you've never been stuck in the fat mud of imperative and OO

Re: parameter pack to inputRange

2016-05-05 Thread Ali Çehreli via Digitalmars-d-learn
On 05/05/2016 10:00 PM, Erik Smith wrote: Is there an existing way to adapt a parameter pack to an input range? I would like to construct an array with it. Example: void run(A...) (A args) { Array!int a(toInputRange(args)); } Inspired by my DConf 2016 talk ;) here is a fiber-based

Re: parameter pack to inputRange

2016-05-05 Thread Ali Çehreli via Digitalmars-d-learn
On 05/05/2016 10:00 PM, Erik Smith wrote: Is there an existing way to adapt a parameter pack to an input range? I would like to construct an array with it. Example: void run(A...) (A args) { Array!int a(toInputRange(args)); } Just initialize an array with the arguments: void

parameter pack to inputRange

2016-05-05 Thread Erik Smith via Digitalmars-d-learn
Is there an existing way to adapt a parameter pack to an input range? I would like to construct an array with it. Example: void run(A...) (A args) { Array!int a(toInputRange(args)); }

Re: Template currying

2016-05-05 Thread ZombineDev via Digitalmars-d
On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: So I was working on a parser combinator library, where the combinators take parsers as template argument. It works well until recently I decided to change the parsers so they would take Ranges instead of just strings. The combinator

[Issue 15993] using mixin to specify 2 arguments for writefln results in unrecognized behavior

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15993 --- Comment #2 from yosik...@altalk.com --- (In reply to Mathias Lang from comment #1) > That's because it doesn't behaves as you expect it to. > > What's mixed in is an expression, not a tuple. The first value is then > discarded thanks to the coma

Re: How the heck is onInvalidMemoryOperationError() nothrow?

2016-05-05 Thread tsbockman via Digitalmars-d-learn
On Friday, 6 May 2016 at 02:57:59 UTC, Jeremy DeHaan wrote: In core.exception, we have a lovely function called onInvalidMemoryOperationError(). This function is marked as nothrow (plus other annotations). This function literally does nothing except throwing an error. How can it be marked as

How the heck is onInvalidMemoryOperationError() nothrow?

2016-05-05 Thread Jeremy DeHaan via Digitalmars-d-learn
In core.exception, we have a lovely function called onInvalidMemoryOperationError(). This function is marked as nothrow (plus other annotations). This function literally does nothing except throwing an error. How can it be marked as nothrow?

Re: vibe.d get parameters

2016-05-05 Thread Dicebot via Digitalmars-d
There are two problems here. 1) Your problem comes from the fact that `id` parameter name has been special cased since early vibe.d versions to mean URL parameter. If you enable `setLogLevel(LogLevel.debug_);` in the very beginning of module constructor, you will see this trace: REST route:

Re: GSoC 2016 - Precise GC

2016-05-05 Thread Jeremy DeHaan via Digitalmars-d-announce
On Wednesday, 4 May 2016 at 12:42:30 UTC, jmh530 wrote: On Wednesday, 4 May 2016 at 02:50:08 UTC, Jeremy DeHaan wrote: I'm not sure, but one would think that @safe code wouldn't need any extra information about the union. I wouldn't know how to differentiate between them though during

Re: So, About That Official Blog...

2016-05-05 Thread Jack Stouffer via Digitalmars-d
On Friday, 6 May 2016 at 01:21:03 UTC, Joakim wrote: Github might be better because it does automatic syntax highlighting, no need to format code yourself. I thought about Github because it would offer one advantage to tumblr: it could be owned by the dlang Github account. But, while Github

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread mate via Digitalmars-d-announce
On Friday, 6 May 2016 at 01:49:14 UTC, Joakim wrote: On Friday, 6 May 2016 at 01:37:10 UTC, mate wrote: On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: [...] Yes, you can get new stream URLs from the JSON metadata for each video.

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread Joakim via Digitalmars-d-announce
On Friday, 6 May 2016 at 01:37:10 UTC, mate wrote: On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: [...] Yes, you can get new stream URLs from the JSON metadata for each video. For example, the first video is at

vibe.d get parameters

2016-05-05 Thread Brian Forbes via Digitalmars-d
Hello, I have been programming in D now for a few months, and I am really impressed by how easy it is to get things up and running. However, I have run into some problems with vibe.d. I can't seem to figure out how to pass a get parameter after searching online for a few days.

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread mate via Digitalmars-d-announce
On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that

Re: So, About That Official Blog...

2016-05-05 Thread Joakim via Digitalmars-d
On Thursday, 5 May 2016 at 20:53:21 UTC, Jack Stouffer wrote: On Thursday, 5 May 2016 at 20:41:22 UTC, qznc wrote: On Thursday, 5 May 2016 at 18:22:50 UTC, Jack Stouffer wrote: Please let me know what you think! I believe this is a good first step in the right direction. Does tumblr allow

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread Joakim via Digitalmars-d-announce
On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the

Re: what's the right way to get char* from string?

2016-05-05 Thread Alex Parrill via Digitalmars-d-learn
On Thursday, 5 May 2016 at 07:49:46 UTC, aki wrote: extern (C) int strcmp(char* string1, char* string2); This signature of strcmp is incorrect. strcmp accepts const char* arguments [1], which in D would be written as const(char)*. The immutable(char)* values returned from toStringz are

Re: Template currying

2016-05-05 Thread Yuxuan Shui via Digitalmars-d
On Thursday, 5 May 2016 at 23:46:59 UTC, Ed wrote: On Thursday, 5 May 2016 at 23:33:07 UTC, Yuxuan Shui wrote: It'd really nice if this just works, That's clear that you've never been stuck in the fat mud of imperative and OO programming styles. You don't realize (anymore ?) how lucky we

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread H. S. Teoh via Digitalmars-d
On Thu, May 05, 2016 at 05:20:00PM +, Chris via Digitalmars-d wrote: > As a not on the side, there are those who say that letter-to-sound > systems should never be rule based, they should purely be based on > machine learning. The proponents of this are usually native English > speakers. For

Re: Template currying

2016-05-05 Thread Yuxuan Shui via Digitalmars-d
On Thursday, 5 May 2016 at 23:38:38 UTC, Ed wrote: On Thursday, 5 May 2016 at 23:19:59 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 23:12:40 UTC, Ed wrote: On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: [...] alias aa(T) = a!(1,T); aa!ubyte(2); Your alias declaration is

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 23:19:59 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 23:12:40 UTC, Ed wrote: On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...]

Re: Template currying

2016-05-05 Thread Yuxuan Shui via Digitalmars-d
On Thursday, 5 May 2016 at 23:12:40 UTC, Ed wrote: On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...] It's hard to help without a minimal working example (maybe

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 22:53:01 UTC, Yuxuan Shui wrote: On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...] It's hard to help without a minimal working example (maybe something with just the body). If you mean that

Re: Template currying

2016-05-05 Thread Yuxuan Shui via Digitalmars-d
On Thursday, 5 May 2016 at 21:54:29 UTC, Ed wrote: On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: [...] It's hard to help without a minimal working example (maybe something with just the body). If you mean that "alias new_parser = Comb!(a, b);" generates an error maybe that's

[Issue 10777] std.algorithm.multiSort to return a std.range.SortedRange

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

[Issue 10777] std.algorithm.multiSort to return a std.range.SortedRange

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10777 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6b165d4deb110d5311131eb61b99895d6ef36297 Fix issue 10777 - multiSort should return a SortedRange

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread mate via Digitalmars-d-announce
On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the other three. Use those video players' dialogs to

[Issue 15976] explicite TLS initializes badly in DLLs if other threads exist

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15976 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/998c0fc455c959bfb55c1a26ef8b9599622bc457 fix issue 15976: swap out explicit TLS values

Re: Template currying

2016-05-05 Thread Ed via Digitalmars-d
On Thursday, 5 May 2016 at 20:17:08 UTC, Yuxuan Shui wrote: So I was working on a parser combinator library, where the combinators take parsers as template argument. It works well until recently I decided to change the parsers so they would take Ranges instead of just strings. The combinator

Re: DConf2016 Livestream questions

2016-05-05 Thread Vadim Goryunov via Digitalmars-d
Question to Liran Zvibel: Did you (Weka.IO team) consider possibility to write all code in zeroGC fashion? i.e. pre-allocating as much as possible, using manual malloc/free for regular allocations or using arena-style allocator for temporary stuff? If yes, why did you ended up in using GC.

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread QAston via Digitalmars-d
On Wednesday, 4 May 2016 at 18:29:25 UTC, Anon wrote: On that, we agree. But disregarding others' life experiences (and sociological research) because they differ from your own benefits nobody. Research is not conclusive, at least according to this documentary [1]. Some food for thought and

Re: So, About That Official Blog...

2016-05-05 Thread Jacques Müller via Digitalmars-d
On Thursday, 5 May 2016 at 18:22:50 UTC, Jack Stouffer wrote: This keeps coming up, so in the theme of Andrei's talk and because my day job is a web dev, I decided to do something about it. I have created this tumblr blog which I hope to shape into the official dlang blog:

[Issue 15975] TLS not scanned correctly for main thread

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15975 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread QAston via Digitalmars-d
On Thursday, 5 May 2016 at 09:28:27 UTC, deadalnix wrote: On Wednesday, 4 May 2016 at 18:17:57 UTC, tsbockman wrote: Poe's law strikes again! Really though, deadalnix is being ultra-sarcastic. Check out his more serious comments from the last thread touching on this subject, if you want to

Re: So, About That Official Blog...

2016-05-05 Thread Jack Stouffer via Digitalmars-d
On Thursday, 5 May 2016 at 20:41:22 UTC, qznc wrote: On Thursday, 5 May 2016 at 18:22:50 UTC, Jack Stouffer wrote: Please let me know what you think! I believe this is a good first step in the right direction. Does tumblr allow for syntax highlighting for code examples (e.g. including

Re: So, About That Official Blog...

2016-05-05 Thread qznc via Digitalmars-d
On Thursday, 5 May 2016 at 18:22:50 UTC, Jack Stouffer wrote: Please let me know what you think! I believe this is a good first step in the right direction. Great that you took the initiative! Does tumblr allow for syntax highlighting for code examples (e.g. including pygments)? For

Re: Commercial video processing app in D (experience report)

2016-05-05 Thread TheGag96 via Digitalmars-d-announce
On Wednesday, 27 April 2016 at 12:42:05 UTC, thedeemon wrote: (snip) Sorry to bump this thread, but how did you handle multiple windows using DlangUI? (As in, were you able to prevent input on the main window while another one was open, etc.) I know Vadim/buggins is working on improving

So, About That Official Blog...

2016-05-05 Thread Jack Stouffer via Digitalmars-d
This keeps coming up, so in the theme of Andrei's talk and because my day job is a web dev, I decided to do something about it. I have created this tumblr blog which I hope to shape into the official dlang blog: http://officaldlang.tumblr.com/ A couple of notes: 1. I choose tumblr because we

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread Chris via Digitalmars-d
As a not on the side, there are those who say that letter-to-sound systems should never be rule based, they should purely be based on machine learning. The proponents of this are usually native English speakers. For English you do need machine learning. For Spanish not so much. If you can feed

Re: template auto instantiation when parameters empty

2016-05-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/5/16 6:50 PM, Erik Smith wrote: Alias works at the cost of adding a 2nd type name: alias Res = Resource!(); auto res = Res.create The other problem is that the alias definition by itself instantiates, which I can't afford. I have createResource() now, it just doesn't fit well with the

Re: template auto instantiation when parameters empty

2016-05-05 Thread Erik Smith via Digitalmars-d-learn
On Thursday, 5 May 2016 at 16:12:40 UTC, Steven Schveighoffer wrote: On 5/5/16 12:10 AM, Erik Smith wrote: I want to have a struct template auto instantiate when the template parameters are defaulted or missing. Example: struct Resource(T=int) { static auto create() {return

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread H. S. Teoh via Digitalmars-d
On Thu, May 05, 2016 at 04:03:46PM +, Chris via Digitalmars-d wrote: [...] > I knew I'd regret it, when I wrote "as you hear it in your head". :) :-) > The ideal is phonetic spelling (Spanish comes quite close to it). This > does not mean that you have a letter for each sound, or that you

Re: template auto instantiation when parameters empty

2016-05-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/5/16 12:10 AM, Erik Smith wrote: I want to have a struct template auto instantiate when the template parameters are defaulted or missing. Example: struct Resource(T=int) { static auto create() {return Resource(null);} this(string s) {} } auto resource = Resource.create; As a

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread Chris via Digitalmars-d
On Thursday, 5 May 2016 at 14:52:00 UTC, H. S. Teoh wrote: [...] But hey, it's just a coding convention. We shouldn't be too attached to spellings, especially if reforms make it easier to spell (i.e. to spell out a word as you hear it in your head) and parse text. It's a code to

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Joakim via Digitalmars-d
On Thursday, 5 May 2016 at 13:44:47 UTC, Kagamin wrote: On Wednesday, 4 May 2016 at 19:38:45 UTC, Joakim wrote: If we want to close all gaps, we should also close the gender gap for occupational fatalities: http://mjperry.blogspot.com/2009/09/occupational-male-female-death-gap-is.html That

Re: what's the right way to get char* from string?

2016-05-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/5/16 3:36 PM, Steven Schveighoffer wrote: Only thing I can think of is.. um... horrible: char *toCharz(string s) { auto cstr = s.toStringz; return cstr[0 .. s.length + 1].dup.ptr; } Ignore this. What Jonathan said :) -Steve

Re: what's the right way to get char* from string?

2016-05-05 Thread aki via Digitalmars-d-learn
On Thursday, 5 May 2016 at 11:35:09 UTC, Jonathan M Davis wrote: If you want a different mutability, then use the more general function std.utf.toUTFz. e.g. from the documentation: auto p1 = toUTFz!(char*)("hello world"); auto p2 = toUTFz!(const(char)*)("hello world"); auto p3 =

Re: Show window maximized in DlangUI

2016-05-05 Thread default0 via Digitalmars-d-learn
On Thursday, 5 May 2016 at 14:10:14 UTC, Vadim Lopatin wrote: On Thursday, 5 May 2016 at 07:53:43 UTC, default0 wrote: Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Nick Sabalausky via Digitalmars-d
On 05/04/2016 02:29 PM, Anon wrote: On Wednesday, 4 May 2016 at 15:46:13 UTC, Nick Sabalausky wrote: It's touchy, because I've come across people who actually do genuinely believe the field has things in place deliberately to exclude women/ethnicities...even though...those VERY SAME people have

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

2016-05-05 Thread Dan Olson via Digitalmars-d-announce
Quite nice!

[Issue 15995] std.conv.text and friends can be made faster with std.array.appender

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15995 --- Comment #1 from Jack Stouffer --- https://github.com/dlang/phobos/pull/4280 --

[Issue 15995] std.conv.text and friends can be made faster with std.array.appender

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15995 Jack Stouffer changed: What|Removed |Added Keywords||pull --

[Issue 15992] [REG2.072a] dmd: todt.c:787: void membersToDt(AggregateDeclaration*, DtBuilder&, Expressions*, size_t, ClassDeclaration*, BaseClass***): Assertion `vd->semanticRun >= PASSsemantic2done'

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15992 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com

[Issue 15995] New: std.conv.text and friends can be made faster with std.array.appender

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15995 Issue ID: 15995 Summary: std.conv.text and friends can be made faster with std.array.appender Product: D Version: D2 Hardware: All OS: All Status:

[Issue 15995] std.conv.text and friends can be made faster with std.array.appender

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15995 Jack Stouffer changed: What|Removed |Added Depends on||15992 --

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Nick Sabalausky via Digitalmars-d
On 05/04/2016 03:15 PM, Chris wrote: On Wednesday, 4 May 2016 at 15:46:13 UTC, Nick Sabalausky wrote: [snip] Verifiable fact: My sister paid considerably less than I did for each year of college even though we came from EXACTLY the same economic background, exactly the same city/town,

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread H. S. Teoh via Digitalmars-d
On Thu, May 05, 2016 at 09:28:01AM +, Chris via Digitalmars-d wrote: [...] > There was a spelling reform in Germany in the 1990ies. Portuguese > spelling has been reformed several times (and there are two major > spelling systems Brazilian and Portuguese Portuguese)[1], and in > Spanish it has

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

2016-05-05 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the

[Issue 15994] Trivial code compiled with dmd ends with code 11 !?

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15994 --- Comment #2 from Adam D. Ruppe --- Not a bug in D, simple programmer error. Pointers and references (not that all class objects are implicitly references, like Java or C#, but unlike C++) are automatically initialized

[Issue 15994] Trivial code compiled with dmd ends with code 11 !?

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15994 Dicebot changed: What|Removed |Added Status|NEW |RESOLVED

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

2016-05-05 Thread Kai Nacke via Digitalmars-d-announce
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the

[Issue 15972] range of chars doesn't work with joiner with literal delimiters

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15972 --- Comment #1 from Sobirari Muhomori --- What I have in mind: 1. Move autodecoding algorithms to undead. 2. Remove autodecoding from algorithms. 3. Have dfix rewrite std.algorithm to undead.algorithm --

[Issue 15994] Trivial code compiled with dmd ends with code 11 !?

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15994 Dicebot changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment

Re: Unique Enum Members

2016-05-05 Thread Mark Isaacson via Digitalmars-d-learn
On Thursday, 5 May 2016 at 12:54:08 UTC, Nordlöw wrote: Is there a way to calculate unique enum members without using sort, such as *not* done in my current implementation: auto uniqueEnumMembers(T)() { import std.traits: EnumMembers; import std.algorithm: sort, uniq; return

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

2016-05-05 Thread Chris via Digitalmars-d-announce
Thank you very much!! Fantastic job!

Re: Show window maximized in DlangUI

2016-05-05 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 5 May 2016 at 07:53:43 UTC, default0 wrote: Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation that seem to do this. Does anyone know how to do this? No

[Issue 15994] New: Trivial code compiled with dmd ends with code 11 !?

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15994 Issue ID: 15994 Summary: Trivial code compiled with dmd ends with code 11 !? Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major

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

2016-05-05 Thread Vadim Lopatin via Digitalmars-d-announce
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the

DlangUI & DlangIDE

2016-05-05 Thread Chris via Digitalmars-d
I might ask as long as DConf is still going on. Anyone interested in joining forces to improve and extend DlangUI and DlangIDE? I was thinking of DlangUI - artwork - tutorials - code - platform support (hardware & OSes) DlangIDE: - plug-ins + plug-in architecture (cf. jEdit or Textadept) -

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Kagamin via Digitalmars-d
On Wednesday, 4 May 2016 at 19:38:45 UTC, Joakim wrote: If we want to close all gaps, we should also close the gender gap for occupational fatalities: http://mjperry.blogspot.com/2009/09/occupational-male-female-death-gap-is.html That means 4,000 more women will die on the job this year, make

Re: what's the right way to get char* from string?

2016-05-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/5/16 11:53 AM, pineapple wrote: On Thursday, 5 May 2016 at 07:49:46 UTC, aki wrote: Hello, When I need to call C function, often need to have char* pointer from string. This might help: import std.traits : isSomeString; import std.string : toStringz; extern (C) int strcmp(char*

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Kagamin via Digitalmars-d
On Wednesday, 4 May 2016 at 18:29:25 UTC, Anon wrote: Anti- is irrelevant, as it is fairly easy to deal with. Perceptions and biases are what matter. As I said above, people (in general) assume women are bad at math. That makes them less likely to trust any math a female coworker does than

Re: Async or event library

2016-05-05 Thread Dsby via Digitalmars-d-learn
On Thursday, 5 May 2016 at 08:19:26 UTC, chmike wrote: Hello I have seen the wiki page https://wiki.dlang.org/Event_system and would like to know the current status. Is there a working group for this subject ? This is a topic I'm interested in and did some modest work on some years ago.

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread Dan Olson via Digitalmars-d-announce
Joakim writes: >>> Sound doesn't work in the official Ustream Android app either for >>> the Dconf stream, as I noted. My guess would be that the HTML5 >>> player and the Android app try to use whatever audio codecs are >>> built into Android, instead of the app using its

Unique Enum Members

2016-05-05 Thread Nordlöw via Digitalmars-d-learn
Is there a way to calculate unique enum members without using sort, such as *not* done in my current implementation: auto uniqueEnumMembers(T)() { import std.traits: EnumMembers; import std.algorithm: sort, uniq; return [EnumMembers!T].sort().uniq; } Preferrably both at

DUB: shared libraries missing, after upgrade to ubuntu 16.04

2016-05-05 Thread Nafees via Digitalmars-d
I recently upgraded to ubuntu 16.04 LTS from 14.04 LTS. I formatted the whole HDD, when I reinstalled all my stuff, DUB won't work. When I type "dub" into the terminal, this is what shows up: "dub: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file

[Issue 15993] using mixin to specify 2 arguments for writefln results in unrecognized behavior

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15993 Mathias Lang changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15993] New: using mixin to specify 2 arguments for writefln results in unrecognized behavior

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15993 Issue ID: 15993 Summary: using mixin to specify 2 arguments for writefln results in unrecognized behavior Product: D Version: D2 Hardware: x86 URL:

[Issue 15993] using mixin to specify 2 arguments for writefln results in unrecognized behavior

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15993 yosik...@altalk.com changed: What|Removed |Added CC||yosik...@altalk.com --

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Max Samukha via Digitalmars-d
On Wednesday, 4 May 2016 at 04:39:46 UTC, Walter Bright wrote: One of the things that comes with Haskell has nothing to do with functional programming. It's the minimalist syntax. However, I find that they've gone too far with this, and it's difficult for me to read. Haskell people, however,

Re: what's the right way to get char* from string?

2016-05-05 Thread Jonathan M Davis via Digitalmars-d-learn
On Thu, 05 May 2016 07:49:46 + aki via Digitalmars-d-learn wrote: > Hello, > > When I need to call C function, often need to > have char* pointer from string. > > "Interfacing to C++" page: > https://dlang.org/spec/cpp_interface.html > have following

Re: Live streaming of DConf 2016: confirmed

2016-05-05 Thread Joakim via Digitalmars-d-announce
On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: Joakim writes: On Wednesday, 4 May 2016 at 09:13:12 UTC, Dženis Kiderič wrote: On Wednesday, 4 May 2016 at 09:04:38 UTC, Dicebot wrote: On Wednesday, 4 May 2016 at 08:33:47 UTC, Joakim wrote: There appears to be

Re: what's the right way to get char* from string?

2016-05-05 Thread pineapple via Digitalmars-d-learn
On Thursday, 5 May 2016 at 07:49:46 UTC, aki wrote: Hello, When I need to call C function, often need to have char* pointer from string. This might help: import std.traits : isSomeString; import std.string : toStringz; extern (C) int strcmp(char* string1, char* string2); int strcmpD0(S)(in

Re: Strange stack variable corruption error after calling extern(C) function

2016-05-05 Thread Benjamin Thaut via Digitalmars-d-learn
On Wednesday, 4 May 2016 at 17:53:32 UTC, cc wrote: The OS is Win64 though the program is being compiled as 32-bit and I'm using the 32-bit distributed DLL. fmod.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows Tried int and long as the return type, same issue both ways. Tried

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread Chris via Digitalmars-d
On Thursday, 5 May 2016 at 09:28:27 UTC, deadalnix wrote: Yup. How sad it is that gibberish nonsense can actually looks like it is being written seriously. You would take any gibberish seriously these days:

Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-05 Thread deadalnix via Digitalmars-d
On Wednesday, 4 May 2016 at 18:17:57 UTC, tsbockman wrote: On Wednesday, 4 May 2016 at 17:42:01 UTC, Nick Sabalausky wrote: On 05/04/2016 12:16 PM, deadalnix wrote: On Wednesday, 4 May 2016 at 15:46:13 UTC, Nick Sabalausky wrote: Hard to tell for certain, but you ARE being sarcastic/joking

Re: Walter's Famous German Language Essentials Guide

2016-05-05 Thread Chris via Digitalmars-d
On Monday, 2 May 2016 at 21:49:21 UTC, H. S. Teoh wrote: However, various recent attempts to reform English spelling have for the most part failed, mostly due to inertia and the presence of a substantial (and very fast growing!) body of literature in current spelling, which would require a

Re: Async or event library

2016-05-05 Thread rikki cattermole via Digitalmars-d-learn
Event loops needs to be thread local not per process. So many API's such as WinAPI for e.g. GUI's have this requirement in it that its just not worth fighting over.

[Issue 15980] std.traits.Identity is undocumented but public

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15980 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/3a322792bfc7488b05c0ddd9515e83e9bd04b009 Fix Issue 15980: std.traits.Identity is undocumented

[Issue 15980] std.traits.Identity is undocumented but public

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

Re: Async or event library

2016-05-05 Thread chmike via Digitalmars-d-learn
I would like to add that the switchable TLS is only a half backed solution. It would't work in a multi core context where threads are truly executing in parallel. Two such threads might get the same TLS context which would invalidate its implicit predicate. Another strategy would be to forbit

Async or event library

2016-05-05 Thread chmike via Digitalmars-d-learn
Hello I have seen the wiki page https://wiki.dlang.org/Event_system and would like to know the current status. Is there a working group for this subject ? This is a topic I'm interested in and did some modest work on some years ago. At the bottom of the wiki page there is an innocent

Re: 500,000 non-Zimbabwean dollars

2016-05-05 Thread deadalnix via Digitalmars-d
On Thursday, 5 May 2016 at 01:04:57 UTC, tsbockman wrote: Since the D foundation is getting some real money soon, how about spending a little of it on a faster Windows 64-bit auto-tester server? It's rather unfortunate that when things get busy, practically the only way to get the W64 tester

Show window maximized in DlangUI

2016-05-05 Thread default0 via Digitalmars-d-learn
Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation that seem to do this. Does anyone know how to do this?

what's the right way to get char* from string?

2016-05-05 Thread aki via Digitalmars-d-learn
Hello, When I need to call C function, often need to have char* pointer from string. "Interfacing to C++" page: https://dlang.org/spec/cpp_interface.html have following example. extern (C) int strcmp(char* string1, char* string2); import std.string; int myDfunction(char[] s) { return

Re: template auto instantiation when parameters empty

2016-05-05 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 4 May 2016 at 22:10:16 UTC, Erik Smith wrote: Any ideas? Using an alias could be a solution.

[Issue 9766] align(n) with n compile-time constant

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9766 j...@red.email.ne.jp changed: What|Removed |Added CC||j...@red.email.ne.jp --- Comment #4