Re: char array weirdness

2016-03-30 Thread Jack Stouffer via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 22:49:24 UTC, ag0aep6g wrote: When byCodeUnit takes no time at all, isn't 1µs infinite times slower, instead of 100 times? And I think byCodeUnits's 1µs is so low that noise is going to mess with any ratios you make. It's not that it's taking no time at all,

Re: dub, copyFiles and linux

2016-03-30 Thread Andre via Digitalmars-d-learn
OK solved;) Shared libraries doesn't need to be mentioned in libs section in dub. Therefore copying after the linking is correct and is working fine. Kind regards André

Re: How to escape control characters?

2016-03-30 Thread cy via Digitalmars-d-learn
Oh, cool. On Thursday, 31 March 2016 at 03:29:19 UTC, H. S. Teoh wrote: Or implement manual substitution with a pipeline: string myString = ...; string escapedStr = myString .chunks(1) .map!(c => (c == "\n") ? "\\n" : (c

Re: dub, copyFiles and linux

2016-03-30 Thread Andre via Digitalmars-d-learn
On Thursday, 31 March 2016 at 04:57:01 UTC, Andre wrote: I can't see why it is working with vibe-d projects (openssl libraries copied to application folder) but not for my project. There is no console output "copying files for..." while using dub for my application project. What is wrong?

dub, copyFiles and linux

2016-03-30 Thread Andre via Digitalmars-d-learn
Hi, I created a library which uses some shared objects. The dub.json looks like this: { "name": "sec", "configurations": [ { "name": "debug", "targetType": "library",

[Issue 15855] "a[{for" causes dmd to segfault

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15855 ag0ae...@gmail.com changed: What|Removed |Added Keywords||ice CC|

Re: How to escape control characters?

2016-03-30 Thread cy via Digitalmars-d-learn
On Thursday, 31 March 2016 at 03:23:52 UTC, Seb wrote: http://dlang.org/spec/lex.html#WysiwygString r"ab\n" or `ab\n` Yes I know. But I mean like, string a = r"ab\n"; writeln(escape(a)); // => ab\n

Re: Concatenative Programming Languages

2016-03-30 Thread BLM768 via Digitalmars-d
On Wednesday, 30 March 2016 at 22:20:02 UTC, John Colvin wrote: import std.functional : pipe; alias allThree = pipe!(foo, bar, baz); :) Interesting, but I'd call that a concatenative sub-language at most. ;) There's certainly some conceptual overlap between concatenative languages and D

Re: Mindset of the D team vs the Rust team

2016-03-30 Thread Shachar Shemesh via Digitalmars-d
On 29/03/16 07:36, Walter Bright wrote: On 3/28/2016 8:00 PM, Nick Sabalausky wrote: We have better things to deal with than endless Fire and Motion: http://www.joelonsoftware.com/articles/fog000339.html It's 7:40am here, and I just got to work. I stopped reading half way through,

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Suliman via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 20:23:13 UTC, Kagamin wrote: You can also look here https://github.com/cruisercoder/dstddb/blob/master/src/std/database/odbc/database.d for an example of accessing ODBC from D (only strings are supported so far). Does ita mean that I would not able to select

Re: How to escape control characters?

2016-03-30 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Mar 31, 2016 at 03:23:52AM +, Seb via Digitalmars-d-learn wrote: > On Thursday, 31 March 2016 at 03:15:49 UTC, cy wrote: > >This might be a dumb question. How do I format a string so that all > >the newlines print as \n and all the tabs as \t and such? > >

Re: How to escape control characters?

2016-03-30 Thread Seb via Digitalmars-d-learn
On Thursday, 31 March 2016 at 03:15:49 UTC, cy wrote: This might be a dumb question. How do I format a string so that all the newlines print as \n and all the tabs as \t and such? http://dlang.org/spec/lex.html#WysiwygString r"ab\n" or `ab\n`

How to escape control characters?

2016-03-30 Thread cy via Digitalmars-d-learn
This might be a dumb question. How do I format a string so that all the newlines print as \n and all the tabs as \t and such?

foreach_reverse and lockstep.

2016-03-30 Thread Sean Campbell via Digitalmars-d
Why doesn't reverse iteration of lockstep work? It does for zip. Is this intended or is it a bug?

[Issue 15848] out doesn't call opAssign()

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15848 Alex Parrill changed: What|Removed |Added CC||initrd...@gmail.com ---

Re: debugger blues

2016-03-30 Thread cy via Digitalmars-d
On Tuesday, 29 March 2016 at 23:49:21 UTC, Marco Leise wrote: It is straightforward to put spaces between arguments: warningf("%s %s %s", "puts", "spaces", "inbetween"); warningf("%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s

Re: Async read an output stream but how many bytes ?

2016-03-30 Thread Basile B. via Digitalmars-d-learn
On Thursday, 31 March 2016 at 01:12:50 UTC, Adam D. Ruppe wrote: On Thursday, 31 March 2016 at 00:50:16 UTC, Basile B. wrote: There should be a way to know how many bytes are available ? You are already using poll()... I'd just use read() directly on the file number too. It will read as much

Re: Linking a shared library in dub

2016-03-30 Thread maik klein via Digitalmars-d-learn
On Thursday, 31 March 2016 at 00:06:19 UTC, maik klein wrote: On Wednesday, 30 March 2016 at 17:38:15 UTC, maik klein wrote: On Wednesday, 30 March 2016 at 12:46:08 UTC, Vadim Lopatin wrote: On Wednesday, 30 March 2016 at 12:19:34 UTC, maik klein wrote: I want to finally convert my project to

[Issue 15855] New: "a[{for" causes dmd to segfault

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15855 Issue ID: 15855 Summary: "a[{for" causes dmd to segfault Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1

Re: Async read an output stream but how many bytes ?

2016-03-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 31 March 2016 at 00:50:16 UTC, Basile B. wrote: There should be a way to know how many bytes are available ? You are already using poll()... I'd just use read() directly on the file number too. It will read as much as is available up to the max size of the buffer, but if it

Async read an output stream but how many bytes ?

2016-03-30 Thread Basile B. via Digitalmars-d-learn
Hey, I have a class that wraps a process and implements two events. One of them is called after poll() for example if new data are available. The event is called correctly but I don't know how exactly how to read the data: - per buffer of fixed size ? - using the stream information ? If i

Re: Issue Turning Template into Variadic Template

2016-03-30 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Mar 30, 2016 at 08:43:03PM +, jmh530 via Digitalmars-d-learn wrote: > On Wednesday, 30 March 2016 at 18:56:29 UTC, H. S. Teoh wrote: > > > >Does this do what you want? > > > > Okay, I've looked at this a bit more thoroughly and it works perfectly > (perhaps with a better name put in

Re: Linking a shared library in dub

2016-03-30 Thread maik klein via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 17:38:15 UTC, maik klein wrote: On Wednesday, 30 March 2016 at 12:46:08 UTC, Vadim Lopatin wrote: On Wednesday, 30 March 2016 at 12:19:34 UTC, maik klein wrote: I want to finally convert my project to windows. That means that I want to build it on windows and

const(int) cannot be sent as int message

2016-03-30 Thread Ali Çehreli via Digitalmars-d-learn
As expected, the following trivial case works: void main() { auto func = delegate(int i) {}; // expects int func(const(int)(42));// passes const(int) } The following concurrency program fails at runtime: import core.thread; import std.concurrency; void foo() {

[Issue 15854] New: Intrinsic sin function uses buggy hardware fsin instruction

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15854 Issue ID: 15854 Summary: Intrinsic sin function uses buggy hardware fsin instruction Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW

Re: Weak Purity Blog Post

2016-03-30 Thread sarn via Digitalmars-d-announce
Yeah, there's a lot more stuff I could have talked about, but I think I'll leave it for other posts. About testing, I think the way protection works in D (i.e., private members are accessible within the same file) is important, too. I was a bit suspicious of that feature when I first looked

Re: Beta D 2.071.0-b2

2016-03-30 Thread Basile B. via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 12:04:19 UTC, Basile B. wrote: On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at

[Issue 15836] [REG 2.071-b1] memory error when a class is not implicitly destructed and constructed with new

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15836 b2.t...@gmx.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

Re: char array weirdness

2016-03-30 Thread ag0aep6g via Digitalmars-d-learn
On 30.03.2016 19:30, Jack Stouffer wrote: Just to drive this point home, I made a very simple benchmark. Iterating over code points when you don't need to is 100x slower than iterating over code units. [...] enum testCount = 1_000_000; enum var = "Lorem ipsum dolor sit amet, consectetur

Re: Weak Purity Blog Post

2016-03-30 Thread Jon D via Digitalmars-d-announce
On Monday, 28 March 2016 at 01:44:02 UTC, sarn wrote: D's implementation of functional purity supports "weak" purity - functions that can mutate arguments but are otherwise traditionally pure. I wrote a post about some of the practical benefits of this kind of purity:

Re: Concatenative Programming Languages

2016-03-30 Thread John Colvin via Digitalmars-d
On Wednesday, 30 March 2016 at 22:14:11 UTC, BLM768 wrote: On Wednesday, 30 March 2016 at 20:53:02 UTC, Shammah Chancellor wrote: I just stumbled on this wikipedia article: https://en.wikipedia.org/wiki/Concatenative_programming_language Seems like D falls under that category? -S. Not

Re: Concatenative Programming Languages

2016-03-30 Thread BLM768 via Digitalmars-d
On Wednesday, 30 March 2016 at 20:53:02 UTC, Shammah Chancellor wrote: I just stumbled on this wikipedia article: https://en.wikipedia.org/wiki/Concatenative_programming_language Seems like D falls under that category? -S. Not really. UFCS allows the syntax "x.foo.bar.baz", which is

[Issue 15845] Windows console cannot read properly UTF-8 lines

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15845 --- Comment #3 from ag0ae...@gmail.com --- (In reply to ag0aep6g from comment #2) > For -m32 (DIGITAL_MARS_STDIO) it seems to come down to this (with `chcp > 65001` in the console): [...] > That is, Digital Mars's FGETC (_fgetc_nlock) returns -1 for

Re: FreeTDS bindings

2016-03-30 Thread Nikitas Leogas via Digitalmars-d
On Wednesday, 30 March 2016 at 18:02:24 UTC, Erik Smith wrote: On Wednesday, 30 March 2016 at 15:42:05 UTC, Nikitas Leogas wrote: I'm new to D, but considering using it in a new project, which will need to connect to MS SQL Server and Sybase ASE databases. I've successfully used FreeTDS for

[Issue 1180] the GC failes to handle large allocation requests propperly

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1180 Rainer Schuetze changed: What|Removed |Added Keywords||pull

Concatenative Programming Languages

2016-03-30 Thread Shammah Chancellor via Digitalmars-d
I just stumbled on this wikipedia article: https://en.wikipedia.org/wiki/Concatenative_programming_language Seems like D falls under that category? -S.

Re: Issue Turning Template into Variadic Template

2016-03-30 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 18:56:29 UTC, H. S. Teoh wrote: Does this do what you want? Okay, I've looked at this a bit more thoroughly and it works perfectly (perhaps with a better name put in phobos?). If I'm understanding this correctly, the ImplType creates the correct type

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Kagamin via Digitalmars-d-learn
You can also look here https://github.com/cruisercoder/dstddb/blob/master/src/std/database/odbc/database.d for an example of accessing ODBC from D (only strings are supported so far).

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Kagamin via Digitalmars-d-learn
Latest version of what? ODBC bindings are in phobos: http://dlang.org/phobos/etc_c_odbc_sql.html

Re: Error: template instance does not match template declaration

2016-03-30 Thread ref2401 via Digitalmars-d-learn
On Tuesday, 29 March 2016 at 18:29:27 UTC, Ali Çehreli wrote: So, dict is a template value parameter of type T[string]. I don't think you can use an associative array as a template value parameter. (Can we?) Found this in D language reference:

Re: Pre-alpha D language online tour

2016-03-30 Thread Mark Isaacson via Digitalmars-d
This is awesome! My one complaint is that the section of the screen that contains the code doesn't scale well vertically when my browser window is large. The written explanations scale to fit the content, the code editor does not. I'd just make it stretch vertically to fill the screen :). At

Re: spam

2016-03-30 Thread Seb via Digitalmars-d
On Wednesday, 30 March 2016 at 19:14:11 UTC, Walter Bright wrote: On 3/30/2016 4:09 AM, Seb wrote: Is it a big step to only allow registered email addresses or users to post? When replying to spam or other garbage, please do not quote it, as then you're propagating it further. I usually

Re: Blog article on new import changes

2016-03-30 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Mar 29, 2016 at 11:25:27AM -0400, Steven Schveighoffer via Digitalmars-d-announce wrote: > I anticipate 2.071.0 is going to cause a lot of deprecation messages > and strange errors to occur, due to the fixes of very long-standing > import bugs. > > I wrote a blog post (actually my first

Re: Females in the community.

2016-03-30 Thread tsbockman via Digitalmars-d
On Wednesday, 30 March 2016 at 19:22:13 UTC, Walter Bright wrote: Having recently been absorbed by The Continuum, I acquired an iPhone. I found the predictive text input to be disconcerting at first, but it speeds up the typing a lot. It's still annoying to type anything other than lower case

Re: Issue Turning Template into Variadic Template

2016-03-30 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 18:56:29 UTC, H. S. Teoh wrote: Does this do what you want? I think it does. That's an approach I would not have thought of. I do not really know much about AliasSeq.

Re: Females in the community.

2016-03-30 Thread Walter Bright via Digitalmars-d
On 3/30/2016 5:22 AM, Bruno Medeiros wrote: Ok, fair enough. Personally I think reading newsgroups is too much of a complex task to be done on a phone (for starters typing is much harder, so you're kinda restricted to reading only, or typing short posts only). Having recently been absorbed by

Re: Blog article on new import changes

2016-03-30 Thread Walter Bright via Digitalmars-d-announce
On 3/30/2016 5:58 AM, Steven Schveighoffer wrote: Thanks for the feedback. And thanks for writing the article. Much appreciated.

Re: Policy for exposing range structs

2016-03-30 Thread Liran Zvibel via Digitalmars-d
On Sunday, 27 March 2016 at 17:01:39 UTC, David Nadlinger wrote: Compression in the usual sense won't help. Sure, it might reduce the object file size, but the full string will again have to be generated first, still requiring absurd amounts time and space. The latter is definitely not

Re: Females in the community.

2016-03-30 Thread Walter Bright via Digitalmars-d
On 3/30/2016 5:31 AM, Bruno Medeiros wrote: For reading posts, it wouldn't break clients, no. But what about writing messages with PGP signatures? If the client doesn't supported creating them automatically, it's too much of a pain the ass to do that manually. That's right. But you can use

Re: 느네집 fafa82.com 우리집

2016-03-30 Thread Walter Bright via Digitalmars-d
On 3/30/2016 4:09 AM, Seb wrote: Is it a big step to only allow registered email addresses or users to post? When replying to spam or other garbage, please do not quote it, as then you're propagating it further. I usually just delete the spam from the server when I see it. If I miss one,

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Suliman via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 18:31:35 UTC, Kagamin wrote: Also there's ODBC driver http://www.firebirdsql.org/en/devel-odbc-driver/ - you can use it, phobos has ODBC bindings. Where I can get the latest version? There is not any package on http://code.dlang.org/ and searching on github

[Issue 15853] [std.random] save method must be immutable

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15853 --- Comment #1 from Stepan Rogonov --- Possible solution(IMHO): @property typeof(this) save() @safe pure nothrow immutable { return this; } --

Re: Issue Turning Template into Variadic Template

2016-03-30 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Mar 30, 2016 at 06:12:40PM +, jmh530 via Digitalmars-d-learn wrote: > I wrote a version of cartesianProduct that will return the cartesian > product when the some of the types are not ranges. The original code > is below. > > My issue is that I can't figure out how to turn it into a

[Issue 15853] New: [std.random] save method must be immutable

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15853 Issue ID: 15853 Summary: [std.random] save method must be immutable Product: D Version: D2 Hardware: All URL: http://dlang.org/phobos/ OS: All Status: NEW

Re: Attribute inference for non-templated functions

2016-03-30 Thread Artur Skawina via Digitalmars-d
On 03/30/16 16:20, Meta via Digitalmars-d wrote: > On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote: >> It's a design decision. You want to be able to fix the exact type of your >> function, in order to provide headers for them for example (so you can work >> with libraries for

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
p.s. it's only for opening files with known names and doing file i/o. it doesn't support other FS operations (like getting list of files, or file renaming), as i wrote it for using in my game engines, and i don't need such operations there. so i won't add that, it's out of scope of the

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Kagamin via Digitalmars-d-learn
Also there's ODBC driver http://www.firebirdsql.org/en/devel-odbc-driver/ - you can use it, phobos has ODBC bindings.

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Kagamin via Digitalmars-d-learn
Mingw or windows platform SDK.

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
oops. almost forgot to mention that it works only with POSIX systems now. windoze port *may* be done in the future (it's not that hard — basically, replace fopen/fseek/etc. imports and calls). sure, you can DIY and send me a patch too.

simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
here[1] you can get a simple VFS system (yep, another one!). it introduces `VFile` struct (kinda like `std.stdio.File`, but with less features), which can wrap your own custom streams, `std.stdio.File`, libc `FILE*`, integer file descriptor... actually, anything you'll do a simple wrapper for.

Re: Is there anybody who used FireBird DB?

2016-03-30 Thread Suliman via Digitalmars-d-learn
I have found next driver http://www.ibpp.org/#what_is_ibpp Here http://sourceforge.net/projects/ibpp is link to zip package that include two exe files and ibpp.lib ibpp.h it's look like it's ass that need for binding. I tried to run htod.exe but got error: D:\Project\2016>htod.exe ibpp.h

Issue Turning Template into Variadic Template

2016-03-30 Thread jmh530 via Digitalmars-d-learn
I wrote a version of cartesianProduct that will return the cartesian product when the some of the types are not ranges. The original code is below. My issue is that I can't figure out how to turn it into a variadic template. The latest thing I tried is: auto mixedCartesianProduct(T...)(T x)

Re: FreeTDS bindings

2016-03-30 Thread Erik Smith via Digitalmars-d
On Wednesday, 30 March 2016 at 15:42:05 UTC, Nikitas Leogas wrote: I'm new to D, but considering using it in a new project, which will need to connect to MS SQL Server and Sybase ASE databases. I've successfully used FreeTDS for this purpose in the past, so I was looking for the corresponding

Re: Pre-alpha D language online tour

2016-03-30 Thread André via Digitalmars-d
On Tuesday, 29 March 2016 at 17:51:06 UTC, Bubbasaur wrote: On Tuesday, 29 March 2016 at 16:26:27 UTC, André wrote: ... I would appreciate if people could do some proof reading and just create pull requests for the content: Nice work but I really think that the left content should be

Re: Pre-alpha D language online tour

2016-03-30 Thread André via Digitalmars-d
On Wednesday, 30 March 2016 at 17:35:55 UTC, jmh530 wrote: On Wednesday, 30 March 2016 at 17:29:13 UTC, André wrote: On Tuesday, 29 March 2016 at 17:10:33 UTC, jmh530 wrote: D Basics (fix capitalization?): The current title is "D's basics". I'm unsure what to fix here.. I meant that one

Re: Linking a shared library in dub

2016-03-30 Thread maik klein via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 12:46:08 UTC, Vadim Lopatin wrote: On Wednesday, 30 March 2016 at 12:19:34 UTC, maik klein wrote: I want to finally convert my project to windows. That means that I want to build it on windows and linux. The problem is that I have one external c library 'glfw'.

Re: Pre-alpha D language online tour

2016-03-30 Thread jmh530 via Digitalmars-d
On Wednesday, 30 March 2016 at 17:29:13 UTC, André wrote: On Tuesday, 29 March 2016 at 17:10:33 UTC, jmh530 wrote: D Basics (fix capitalization?): The current title is "D's basics". I'm unsure what to fix here.. I meant that one is called D's basics and the other is called D's Gems.

Re: char array weirdness

2016-03-30 Thread Jack Stouffer via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 05:16:04 UTC, H. S. Teoh wrote: If we didn't have autodecoding, would be a simple matter of searching for sentinel substrings. This also indicates that most of the work done by autodecoding is unnecessary -- it's wasted work since most of the string data is

Re: Pre-alpha D language online tour

2016-03-30 Thread André via Digitalmars-d
Thank you very much for your thorough review! I integrated your ideas and comments in the latest version. Some additional information on what I changed and questions left are below. On Tuesday, 29 March 2016 at 17:10:33 UTC, jmh530 wrote: D Basics (fix capitalization?): The current title is

Re: Attribute inference for non-templated functions

2016-03-30 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, March 30, 2016 15:26:21 Seb via Digitalmars-d wrote: > On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote: > >> My question is whether this is just an open issue (I couldn't > >> find it) or a design decision? > > > > It's a design decision. You want to be able to fix

[Issue 15827] std.variant.Variant can not be initialized with some struct

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15827 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f9aa6f6efc503aacf704dbd677f63b29e37cb63e Fix Issue 15827.

Re: Oh, my GoD! Goroutines on D

2016-03-30 Thread Casey Sybrandy via Digitalmars-d
On Wednesday, 30 March 2016 at 15:50:47 UTC, Jin wrote: This is java bloatware. :-( I've never used the library so I can't comment on that, but the actual data structure/algorithm is really pretty simple. The core components are atomic counters and a static array. I think it would be a

[Issue 7625] inlining only works with explicit else branch

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

Re: Beta D 2.071.0-b2

2016-03-30 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 16:00:34 UTC, Luís Marques wrote: On Wednesday, 30 March 2016 at 15:48:28 UTC, John Colvin wrote: That would be me. Waiting for merge: https://github.com/Homebrew/homebrew/pull/50539 Thanks! Would it be against the homebrew spirit for the DMD recipe to link to

Re: Beta D 2.071.0-b2

2016-03-30 Thread Luís Marques via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 15:48:28 UTC, John Colvin wrote: That would be me. Waiting for merge: https://github.com/Homebrew/homebrew/pull/50539 Thanks! Would it be against the homebrew spirit for the DMD recipe to link to some URL like <...lastest-devel.tar.gz>? After all, that already

Re: Oh, my GoD! Goroutines on D

2016-03-30 Thread Jin via Digitalmars-d
On Wednesday, 30 March 2016 at 15:22:26 UTC, Casey Sybrandy wrote: Have you considered using a Disrupter (http://lmax-exchange.github.io/disruptor/) for the channels? Not sure how it compares to what you're using from Vibe.d, but it's not a hard data structure to implement and, IIRC, it

Re: Attribute inference for non-templated functions

2016-03-30 Thread Anon via Digitalmars-d
On Wednesday, 30 March 2016 at 15:26:21 UTC, Seb wrote: On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote: My question is whether this is just an open issue (I couldn't find it) or a design decision? It's a design decision. You want to be able to fix the exact type of your

Re: Attribute inference for non-templated functions

2016-03-30 Thread jmh530 via Digitalmars-d
On Wednesday, 30 March 2016 at 15:26:21 UTC, Seb wrote: OK so it makes sense to recommend to always use `auto` for non-templated functions in high-level parts of Phobos? The current guideline recommends to specify the return type for better readability in the code and documentation, but I

Re: Beta D 2.071.0-b2

2016-03-30 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 13:04:08 UTC, Luís Marques wrote: On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at

Re: FreeTDS bindings

2016-03-30 Thread rikki cattermole via Digitalmars-d
On 31/03/2016 4:42 AM, Nikitas Leogas wrote: I'm new to D, but considering using it in a new project, which will need to connect to MS SQL Server and Sybase ASE databases. I've successfully used FreeTDS for this purpose in the past, so I was looking for the corresponding D bindings, but could

FreeTDS bindings

2016-03-30 Thread Nikitas Leogas via Digitalmars-d
I'm new to D, but considering using it in a new project, which will need to connect to MS SQL Server and Sybase ASE databases. I've successfully used FreeTDS for this purpose in the past, so I was looking for the corresponding D bindings, but could not find any, except for this project [1],

Re: Attribute inference for non-templated functions

2016-03-30 Thread Seb via Digitalmars-d
On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote: My question is whether this is just an open issue (I couldn't find it) or a design decision? It's a design decision. You want to be able to fix the exact type of your function, in order to provide headers for them for example

Re: Oh, my GoD! Goroutines on D

2016-03-30 Thread Casey Sybrandy via Digitalmars-d
On Wednesday, 30 March 2016 at 14:28:50 UTC, Casey Sybrandy wrote: On Sunday, 27 March 2016 at 18:17:55 UTC, Jin wrote: DUB module: http://code.dlang.org/packages/jin-go GIT repo: https://github.com/nin-jin/go.d [...] Have you considered using a Disrupter

Re: Array Indexing/Slicing Range Checking, Exceptions and @nogc

2016-03-30 Thread ag0aep6g via Digitalmars-d-learn
On 30.03.2016 15:44, Nordlöw wrote: On Wednesday, 30 March 2016 at 13:24:20 UTC, ag0aep6g wrote: [...] This is off topic, but don't mark templates like that @trusted. By doing so you also trust R, but you don't know if it's memory safe. Should I post in group "General" instead? No, no, I

[Issue 15852] ICE(cod1) 1669: DMD failed with SIMD code

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15852 Илья Ярошенко changed: What|Removed |Added Keywords||ice,

[Issue 15849] change in std.uni test leads to magic linking error for d_do_test

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15849 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx

[Issue 15852] New: ICE(cod1) 1669: DMD failed with SIMD code

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15852 Issue ID: 15852 Summary: ICE(cod1) 1669: DMD failed with SIMD code Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority:

Re: the most D-ish GUI library

2016-03-30 Thread Jacob Carlborg via Digitalmars-d
On 2016-03-29 19:37, Nick Sabalausky wrote: Win and Mac: Qt looks native. For OS X, no not really. Although that might be due to the applications and not Qt. -- /Jacob Carlborg

[Issue 14804] Comparing two Nullables does not check if either is null

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14804 Luís Marques changed: What|Removed |Added CC||l...@luismarques.eu ---

Re: Oh, my GoD! Goroutines on D

2016-03-30 Thread Casey Sybrandy via Digitalmars-d
On Sunday, 27 March 2016 at 18:17:55 UTC, Jin wrote: DUB module: http://code.dlang.org/packages/jin-go GIT repo: https://github.com/nin-jin/go.d [...] Have you considered using a Disrupter (http://lmax-exchange.github.io/disruptor/) for the channels? Not sure how it compares to what you're

Re: Attribute inference for non-templated functions

2016-03-30 Thread Meta via Digitalmars-d
On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote: It's a design decision. You want to be able to fix the exact type of your function, in order to provide headers for them for example (so you can work with libraries for which the source code is not available). If you want

Re: Comparison of null `Nullable`s

2016-03-30 Thread Meta via Digitalmars-d
On Wednesday, 30 March 2016 at 12:06:24 UTC, Luís Marques wrote: Have you considered making these work, instead of throwing an exception? import std.typecons; alias T = Nullable!(int, -1); void main() { T a; T b; assert(a == b); T c; T

Re: Array Indexing/Slicing Range Checking, Exceptions and @nogc

2016-03-30 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 13:38:40 UTC, Adam D. Ruppe wrote: Don't use your ptr method. Instead, make it a slice method: `return _store[0 .. _length];` Now you can just index it internally and let the compiler automatically insert range checks. When you need the pointer, you still have

[Issue 15850] Host gh-pages at official repo

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15850 --- Comment #2 from greenify --- Clarification: I am referring to http://rainers.github.io/visuald/visuald/StartPage.html as documentation --

Re: Array Indexing/Slicing Range Checking, Exceptions and @nogc

2016-03-30 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 13:24:20 UTC, ag0aep6g wrote: On 30.03.2016 15:12, Nordlöw wrote: https://github.com/nordlow/justd/blob/master/packedarray.d From there: this(R)(R values, bool assumeSortedParameter = false) @trusted nothrow @("complexity", "O(n*log(n))") if

Re: Array Indexing/Slicing Range Checking, Exceptions and @nogc

2016-03-30 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 13:12:49 UTC, Nordlöw wrote: I'm however uncertain about how to implement error handling of bounds checking and how these interact with `@nogc`. My main goal is to match semantics of builtin D arrays and slices. I would actually cheat on this somehow and

Re: Debugging D DLL from C# app with C linkage for native Unity 5 plugin

2016-03-30 Thread Thalamus via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 07:38:07 UTC, Benjamin Thaut wrote: On Tuesday, 29 March 2016 at 23:41:28 UTC, Thalamus wrote: dmd dllmain.d dll.def -w -wi -g -map -ofLogic.dll -m64 -debug -shared Anyone know what I should try next? Am I missing something simple? :) thanks! Thalamus

Small rdmd wrapper for windows

2016-03-30 Thread Steve Biedermann via Digitalmars-d-announce
Hi, I made a simple wrapper around rdmd, which can be used to make .d files executable on windows and supports import paths. (A bat and a .d file) Not really a big announcement, but maybe useful to some of you. https://github.com/hardliner66/rdmd_windows

[Issue 15847] It is not an error to call opAssign on an uninitialized object

2016-03-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15847 monkeywork...@hotmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

Re: Array Indexing/Slicing Range Checking, Exceptions and @nogc

2016-03-30 Thread ag0aep6g via Digitalmars-d-learn
On 30.03.2016 15:12, Nordlöw wrote: https://github.com/nordlow/justd/blob/master/packedarray.d From there: this(R)(R values, bool assumeSortedParameter = false) @trusted nothrow @("complexity", "O(n*log(n))") if (isInputRange!R) This is off topic, but don't mark templates like

  1   2   >