Re: SQLite-D alpha is here

2016-05-26 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 27 May 2016 at 05:03:43 UTC, xenon325 wrote: For example, I have one thread with traditional (slow) SQLite client, which seldom updates data. And another thread which reads data with sqlite-d. Will not program crash or read trash/inconsistent data ? sqlite-d provides no safety

Re: SQLite-D alpha is here

2016-05-26 Thread xenon325 via Digitalmars-d-announce
On Saturday, 27 February 2016 at 16:08:21 UTC, Stefan Koch wrote: Hello, I am happy to announce the official alpha version of sqlite-d! sqlite-d is a reader for the SQLite File Format 3. On Thursday, 26 May 2016 at 19:11:50 UTC, Stefan Koch wrote: So, all that sqlite-d does is reading the

Re: The Case Against Autodecode

2016-05-26 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 26 May 2016 at 16:00:54 UTC, Andrei Alexandrescu wrote: 4. Autodecoding is slow and has no place in high speed string processing. I would agree only with the amendment "...if used naively", which is important. Knowledge of how autodecoding works is a prerequisite for writing

Re: The Case Against Autodecode

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
On 05/26/2016 07:23 PM, H. S. Teoh via Digitalmars-d wrote: Therefore, instead of: myString.splitter!"abc".joiner!"def".count; we have to write: myString.representation .splitter!("abc".representation) .joiner!("def".representation)

Re: Friends of Rust

2016-05-26 Thread Seb via Digitalmars-d
On Friday, 27 May 2016 at 01:51:24 UTC, Laeeth Isharc wrote: On Friday, 27 May 2016 at 00:55:34 UTC, Seb wrote: [...] That's great - looks really good and gets the message across clearly. I don't know, but one might need to check with the organisations involved before using their logo.

Re: Friends of Rust

2016-05-26 Thread Laeeth Isharc via Digitalmars-d
On Friday, 27 May 2016 at 00:55:34 UTC, Seb wrote: On Sunday, 1 May 2016 at 17:11:17 UTC, Seb wrote: On Sunday, 1 May 2016 at 16:26:55 UTC, Seb wrote: So which companies could be "friends of D"? I just found this wiki site - https://wiki.dlang.org/Current_D_Use -> apparently it's a bit

Re: Friends of Rust

2016-05-26 Thread Laeeth Isharc via Digitalmars-d
On Friday, 27 May 2016 at 00:55:34 UTC, Seb wrote: On Sunday, 1 May 2016 at 17:11:17 UTC, Seb wrote: On Sunday, 1 May 2016 at 16:26:55 UTC, Seb wrote: So which companies could be "friends of D"? I just found this wiki site - https://wiki.dlang.org/Current_D_Use -> apparently it's a bit

Re: Friends of Rust

2016-05-26 Thread Seb via Digitalmars-d
On Sunday, 1 May 2016 at 17:11:17 UTC, Seb wrote: On Sunday, 1 May 2016 at 16:26:55 UTC, Seb wrote: So which companies could be "friends of D"? I just found this wiki site - https://wiki.dlang.org/Current_D_Use -> apparently it's a bit hidden, so let's get this to as "friends of D" to

Re: Split general into multiple threads

2016-05-26 Thread Mike Parker via Digitalmars-d
On Thursday, 26 May 2016 at 23:13:10 UTC, Seb wrote: So yet another summary: New users: - Learn / Help Community: - General - Annouce (Official annoucements) - Broadcast Development: - Core (Language and standard library development) - GDC I would like to see a forum for third-party

IDE - Coedit 2, update 6 released

2016-05-26 Thread Basile B. via Digitalmars-d-announce
Mostly because an important feature of the library manager was not compatible with DUB > v0.9.24. Otherwise almost nothing. See https://github.com/BBasile/Coedit/releases/tag/2_update_6 for the changelog and the binaries.

Re: Our Sister

2016-05-26 Thread H. S. Teoh via Digitalmars-d
On Thu, May 26, 2016 at 04:24:10PM -0400, Andrei Alexandrescu via Digitalmars-d wrote: > On 05/26/2016 02:44 PM, Seb wrote: > > If you want RCStr to be adapted it has to be a drop-in replacement > > for string. > > With all the criticism leveled against string, I thought more of the > opposite.

Re: The Case Against Autodecode

2016-05-26 Thread H. S. Teoh via Digitalmars-d
On Thu, May 26, 2016 at 12:00:54PM -0400, Andrei Alexandrescu via Digitalmars-d wrote: [...] > On 05/12/2016 04:15 PM, Walter Bright wrote: [...] > > 4. Autodecoding is slow and has no place in high speed string processing. > > I would agree only with the amendment "...if used naively", which is

Re: Split general into multiple threads

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 23:03:46 UTC, Joakim wrote: On Thursday, 26 May 2016 at 21:45:56 UTC, Seb wrote: On Thursday, 26 May 2016 at 21:17:18 UTC, jmh530 wrote: On Thursday, 26 May 2016 at 20:27:25 UTC, Jonathan M Davis wrote: [...] I suggest renaming Learn to be Learn/Help. Wow

Re: Split general into multiple threads

2016-05-26 Thread Joakim via Digitalmars-d
On Thursday, 26 May 2016 at 21:45:56 UTC, Seb wrote: On Thursday, 26 May 2016 at 21:17:18 UTC, jmh530 wrote: On Thursday, 26 May 2016 at 20:27:25 UTC, Jonathan M Davis wrote: It may be that we want to create another list or two for some specific stuff, but trying to split stuff across a

Re: Testing array ptr for offset 0...

2016-05-26 Thread Era Scarecrow via Digitalmars-d-learn
On Thursday, 26 May 2016 at 22:15:42 UTC, ag0aep6g wrote: On 05/26/2016 11:13 PM, Era Scarecrow wrote: void scan(ref Data[][] data, Condition cond) { foreach(i; ...) { if (cond) data[i] ~= ... } } Sorry, I'm still lost. Why can't you do whatever you're doing

Re: Testing array ptr for offset 0...

2016-05-26 Thread ag0aep6g via Digitalmars-d-learn
On 05/26/2016 11:13 PM, Era Scarecrow wrote: By adding a struct overload for opOpAssign I can shrink it all down to this, and avoid lengths entirely... As such internally the length starts at 0, and checks are in place to ensure the bounds are never exceeded. void scan(ref Data[][] data,

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 20:46:31 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 20:25:43 UTC, Basile B. wrote: [...] I tried this with the gfm-package. I opened the dub.json file as a project and clicked 'Compilation'-> 'Compile Project' then it did its things: [...] gfm doesn't

Re: Our Sister

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 21:42:31 UTC, jmh530 wrote: On Thursday, 26 May 2016 at 20:24:10 UTC, Andrei Alexandrescu wrote: On 05/26/2016 02:44 PM, Seb wrote: If you want RCStr to be adapted it has to be a drop-in replacement for string. With all the criticism leveled against string, I

Re: [RFC] D Improvement Proposals: Move to git + markdown?

2016-05-26 Thread Seb via Digitalmars-d
On Sunday, 8 May 2016 at 11:39:45 UTC, Nordlöw wrote: I'm in favour of this, Seb. IMO, the pros outweigh the cons. Integrated peer-review is a big win. We already see at our github repos that peer review/help is great, so why not for the DIPs?

[Issue 16081] New: CTFE mistakes for arr in cast

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16081 Issue ID: 16081 Summary: CTFE mistakes for arr in cast Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1

Re: Split general into multiple threads

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 21:51:51 UTC, qznc wrote: On Thursday, 26 May 2016 at 17:07:54 UTC, Seb wrote: I think we all agree that general is having to much traffic and according to CyberShadow [1] this again is just an approval issue, however I expect this a bit controversial, so please no

Re: Split general into multiple threads

2016-05-26 Thread qznc via Digitalmars-d
On Thursday, 26 May 2016 at 17:07:54 UTC, Seb wrote: I think we all agree that general is having to much traffic and according to CyberShadow [1] this again is just an approval issue, however I expect this a bit controversial, so please no OT! Only other category proposals. How about a "Show

Re: Split general into multiple threads

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 21:17:18 UTC, jmh530 wrote: On Thursday, 26 May 2016 at 20:27:25 UTC, Jonathan M Davis wrote: It may be that we want to create another list or two for some specific stuff, but trying to split stuff across a bunch of groups is going to cause its own problems. We

Re: Our Sister

2016-05-26 Thread jmh530 via Digitalmars-d
On Thursday, 26 May 2016 at 20:24:10 UTC, Andrei Alexandrescu wrote: On 05/26/2016 02:44 PM, Seb wrote: If you want RCStr to be adapted it has to be a drop-in replacement for string. With all the criticism leveled against string, I thought more of the opposite. This is an opportunity to get

Re: Phobos uses opSlice and opDollar without checking for it

2016-05-26 Thread qznc via Digitalmars-d
On Thursday, 26 May 2016 at 06:07:36 UTC, Jonathan M Davis wrote: At this point, generic code should just never use opDollar unless it specifically tests for it, and usually, there's really no reason to do that rather than just using length at this point, much as it's far more aesthetically

Re: Testing array ptr for offset 0...

2016-05-26 Thread Era Scarecrow via Digitalmars-d-learn
On Thursday, 26 May 2016 at 12:33:31 UTC, Adam D. Ruppe wrote: On Thursday, 26 May 2016 at 12:30:30 UTC, Alex Parrill wrote: The line "not having to make another array to keep track of lengths and then shorten them" is fairly vague. "Shortening" an array via slicing is basically free (it's

Re: Our Sister

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
On 05/26/2016 04:32 PM, Bastiaan Veelo wrote: * Would it support implicit sharing (copy-on-write)? What about sub-strings? Yes, COW. Substrings will be managed COW-ish as well (no copy upon substring extraction). * Will concatenations be fast? No, it will copy (i.e. no multiple segments

[Issue 16080] Internal error: backend\cgobj.c 3406 when building static library

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16080 Sönke Ludwig changed: What|Removed |Added Severity|major |regression ---

[Issue 16080] Internal error: backend\cgobj.c 3406 when building static library

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16080 Sönke Ludwig changed: What|Removed |Added Keywords||ice,

[Issue 16080] New: Internal error: backend\cgobj.c 3406 when building static library

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16080 Issue ID: 16080 Summary: Internal error: backend\cgobj.c 3406 when building static library Product: D Version: D2 Hardware: x86 OS: Windows Status:

Re: Split general into multiple threads

2016-05-26 Thread jmh530 via Digitalmars-d
On Thursday, 26 May 2016 at 20:27:25 UTC, Jonathan M Davis wrote: It may be that we want to create another list or two for some specific stuff, but trying to split stuff across a bunch of groups is going to cause its own problems. We already have enough issues with folks posting in the

Re: Testing array ptr for offset 0...

2016-05-26 Thread Era Scarecrow via Digitalmars-d-learn
On Thursday, 26 May 2016 at 11:47:13 UTC, ag0aep6g wrote: I don't follow. Why can't you use a built-in array? What can you do with the stand-in that you can't do with the array itself? I can do the job with the built-in arrays, however the need for another temporary array to keep track of

Re: Avoid GC with closures

2016-05-26 Thread bpr via Digitalmars-d
On Thursday, 26 May 2016 at 18:53:35 UTC, Iakh wrote: Functions with lambdas cannot be @nogc as far as they allocates closures. Counterexample: // Note that this is NOT a good way to do numerical quadrature! double integrate(scope double delegate(double x) @nogc f, double

Re: Please update company and job pages on wiki

2016-05-26 Thread Ali Çehreli via Digitalmars-d
(Pinging this thread one last time.) Tripaneer.com is added to both pages. Ali On 05/16/2016 10:24 AM, Ali Çehreli wrote: Companies that use D: https://wiki.dlang.org/Current_D_Use Open D jobs: https://wiki.dlang.org/Jobs I'm mostly interested in the ones that are in SF Bay Area. ;)

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 20:25:43 UTC, Basile B. wrote: But the procedure I described is very easy. you just have to clone, compile and click a button in the library manager. It's even better because you can choose which version to compile by "git checkout vx.x.x" while using the "DUB

Re: Our Sister

2016-05-26 Thread Bastiaan Veelo via Digitalmars-d
On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: I've been working on RCStr (endearingly pronounced "Our Sister"), D's up-and-coming reference counted string type. The goals are: * Reference counted, shouldn't leak if all instances destroyed; even if not, use the GC as a

Re: Operator overloading through UFCS doesn't work

2016-05-26 Thread Timon Gehr via Digitalmars-d-learn
On 25.05.2016 01:19, Elie Morisse wrote: On Saturday, 13 October 2012 at 22:58:56 UTC, Timon Gehr wrote: Afaik free-function operator overloads (but not in the context of UFCS) were considered and turned down because D did not want to get amidst discussions about adding Koenig lookup. UFCS does

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 19:07:42 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 17:25:25 UTC, Basile B. wrote: I'm on Windows now. I'm sorry but both packages were setup successfully. What you can do is the other way: - clone the git repos. - open the DUB json as project. - choose the

Re: Split general into multiple threads

2016-05-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, May 26, 2016 17:07:54 Seb via Digitalmars-d wrote: > I think we all agree that general is having to much traffic and > according to CyberShadow [1] this again is just an approval > issue, however I expect this a bit controversial, so please no > OT! Only other category proposals. > >

Re: Our Sister

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
On 05/26/2016 02:44 PM, Seb wrote: If you want RCStr to be adapted it has to be a drop-in replacement for string. With all the criticism leveled against string, I thought more of the opposite. This is an opportunity to get it right. -- Andrei

Re: Operator overloading through UFCS doesn't work

2016-05-26 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, May 26, 2016 16:24:37 Elie Morisse via Digitalmars-d-learn wrote: > On Thursday, 26 May 2016 at 06:23:17 UTC, Jonathan M Davis wrote: > > The difference is that it's impossible to do > > 10.opBinary!"+"(15), so if you're forced to do > > foo.opBinary!"+"(bar) to get around a symbol

Re: SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread ikod via Digitalmars-d
On Thursday, 26 May 2016 at 19:40:35 UTC, Claude wrote: On Thursday, 26 May 2016 at 18:44:22 UTC, ikod wrote: Is there any recommended workaround for this problem? Is this a bug? I don't think it's a bug. Even without a GC, on GNU/Linux OS, I would enclose the receive function (or any

Re: A technique to mock "static interfaces" (e.g. isInputRange)

2016-05-26 Thread Jacob Carlborg via Digitalmars-d
On 2016-05-25 23:38, Atila Neves wrote: Interesting? Crazy? Worth adding to unit-threaded? Phobos (after much cleaning up)? Interesting, yes. Crazy, not enough :). Here's an example of replacing functions and replacing methods on individual objects [1]. I'm trying to do something like you

Re: Our Sister [i.e. RCStr/RCString]

2016-05-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, May 26, 2016 16:20:37 Adam D. Ruppe via Digitalmars-d wrote: > On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu > > wrote: > > I've been working on RCStr (endearingly pronounced "Our Sister") > > You really should actually mention RCStr in the subject line so > people

Re: Our Sister

2016-05-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, May 26, 2016 17:50:36 Adam D. Ruppe via Digitalmars-d wrote: > Would an RCStr pass isSomeString? I kinda think it shouldn't. > Actually, isSomeString probably shouldn't often be used - instead > checking for string-like range capabilities is likely better for > algorithms. Then doing

Re: SQLite-D alpha is here

2016-05-26 Thread Stefan Koch via Digitalmars-d-announce
On Thursday, 26 May 2016 at 19:35:22 UTC, Suliman wrote: Oh! Look like for all time I misunderstood the purpose of your project. Do you mean that your tool is created not for being SQL compatible driver, but make possible to use D code for iteration with DB? Yes and no, currently it does

Re: Split general into multiple threads

2016-05-26 Thread Joakim via Digitalmars-d
On Thursday, 26 May 2016 at 19:32:31 UTC, ag0aep6g wrote: On Thursday, 26 May 2016 at 19:12:44 UTC, Joakim wrote: Or we could just go by topic and not bother with separate forums too, as it has largely failed so far. The General/Learn split is working pretty well. It works because people who

Re: SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread Claude via Digitalmars-d
On Thursday, 26 May 2016 at 18:44:22 UTC, ikod wrote: Is there any recommended workaround for this problem? Is this a bug? I don't think it's a bug. Even without a GC, on GNU/Linux OS, I would enclose the receive function (or any blocking system function like poll etc) in a do-while loop

Re: SQLite-D alpha is here

2016-05-26 Thread Suliman via Digitalmars-d-announce
On Thursday, 26 May 2016 at 19:11:50 UTC, Stefan Koch wrote: On Thursday, 26 May 2016 at 14:45:58 UTC, Suliman wrote: Could you explain more details? What do you mean by indirection work with data? Sure, I can explain. So, all that sqlite-d does is reading the sqlite-db files. However the

Re: Split general into multiple threads

2016-05-26 Thread ag0aep6g via Digitalmars-d
On Thursday, 26 May 2016 at 19:12:44 UTC, Joakim wrote: Or we could just go by topic and not bother with separate forums too, as it has largely failed so far. The General/Learn split is working pretty well. It works because people who ask learning questions in General get told to post to

Re: Split general into multiple threads

2016-05-26 Thread Wyatt via Digitalmars-d
On Thursday, 26 May 2016 at 18:38:30 UTC, Seb wrote: I proposed two weeks ago to turn off the bot, but it seems some people like it. Most projects I can think of have separate *-commits lists for automated spam like that. -Wyatt

Re: Split general into multiple threads

2016-05-26 Thread ag0aep6g via Digitalmars-d
On Thursday, 26 May 2016 at 18:38:30 UTC, Seb wrote: I proposed two weeks ago to turn off the bot, but it seems some people like it. Yet the DMD group doesn't get them anymore, and no one is complaining (loud enough). Github is already high-traffic, so I expect if we have a mailing list it

Re: Our Sister

2016-05-26 Thread jmh530 via Digitalmars-d
On Thursday, 26 May 2016 at 18:44:42 UTC, Seb wrote: Great news! I think one can't stress this enough: If you want RCStr to be adapted it has to be a drop-in replacement for string. Maybe we can bundle the transition from auto-decoding with the adaption to a RCString. There was the proposal

Re: SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread safety0ff via Digitalmars-d
On Thursday, 26 May 2016 at 18:44:22 UTC, ikod wrote: Hello, On linux, in the code below, receive() returns -1 with errno=EINTR if syscall is interrupted by GC (so you can see several "insterrupted") when GC enabled, and prints nothing (this is desired and expected behavior) when GC

Re: Split general into multiple threads

2016-05-26 Thread Joakim via Digitalmars-d
On Thursday, 26 May 2016 at 17:07:54 UTC, Seb wrote: I think we all agree that general is having to much traffic and according to CyberShadow [1] this again is just an approval issue, however I expect this a bit controversial, so please no OT! Only other category proposals. I disagree. You

Re: SQLite-D alpha is here

2016-05-26 Thread Stefan Koch via Digitalmars-d-announce
On Thursday, 26 May 2016 at 14:45:58 UTC, Suliman wrote: Could you explain more details? What do you mean by indirection work with data? Sure, I can explain. So, all that sqlite-d does is reading the sqlite-db files. However the proper sqlite does much more: It implements a whole

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:25:25 UTC, Basile B. wrote: I'm on Windows now. I'm sorry but both packages were setup successfully. What you can do is the other way: - clone the git repos. - open the DUB json as project. - choose the right config in the inspector. - compile. - while the

Avoid GC with closures

2016-05-26 Thread Iakh via Digitalmars-d
Functions with lambdas cannot be @nogc as far as they allocates closures. And the way lambdas works is completely different from C++ way. In D using lambda we define how some part of "stack" frame allocates. So in some aspect closure allocation is property of a function. So we need a way to

Re: Our Sister

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 17:45:15 UTC, Xinok wrote: On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: I've been working on RCStr (endearingly pronounced "Our Sister"), D's up-and-coming reference counted string type. The goals are: ... I don't know how practical this

SIGUSR2 from GC interrupts application system calls on Linux

2016-05-26 Thread ikod via Digitalmars-d
Hello, On linux, in the code below, receive() returns -1 with errno=EINTR if syscall is interrupted by GC (so you can see several "insterrupted") when GC enabled, and prints nothing (this is desired and expected behavior) when GC disabled. Looks like the reason of the problem is call

Re: Our Sister

2016-05-26 Thread Joakim via Digitalmars-d
On Thursday, 26 May 2016 at 16:20:37 UTC, Adam D. Ruppe wrote: On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: I've been working on RCStr (endearingly pronounced "Our Sister") You really should actually mention RCStr in the subject line so people overwhelmed with the

Re: Split general into multiple threads

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 17:45:59 UTC, ag0aep6g wrote: On 05/26/2016 07:07 PM, Seb wrote: Proposed categories: - DMD - DRuntime - Phobos Already there, but not used a lot. Druntime and Phobos are just being spammed by GitHub. I suggest combining the three into one Development group

Re: Dynamic Bindings to libui (x-platform GUI)

2016-05-26 Thread Basile B. via Digitalmars-d-announce
On Thursday, 26 May 2016 at 17:17:00 UTC, ketmar wrote: great lib (libui). sadly, no GNU/Linux support in there yet. gtk+3 is complete crap, and it doesn't even *have* to present in system (it isn't in my case). and libui cannot fallback to gtk+2. it's sad: i was very excited by the nice C UI

Re: Our Sister

2016-05-26 Thread Jack Stouffer via Digitalmars-d
On Thursday, 26 May 2016 at 17:50:36 UTC, Adam D. Ruppe wrote: That would be templated so like byUTF!char and byUTF!wchar right? Then byCodePoint can just be another name for byUTF!dchar. I kinda like that. Ideally, the string type would also use lazy imports for any conversion table. So

Re: Our Sister

2016-05-26 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 26 May 2016 at 17:32:33 UTC, Jack Stouffer wrote: Well, because we already have the standard library functions representation, byUTF That would be templated so like byUTF!char and byUTF!wchar right? Then byCodePoint can just be another name for byUTF!dchar. I kinda like that.

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:09:03 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 17:06:03 UTC, Basile B. wrote: colorize works. You meant "serial-port" ? Well, i get the same message for both packages...Even though it creates a new folder with all the files in

Re: Split general into multiple threads

2016-05-26 Thread jmh530 via Digitalmars-d
On Thursday, 26 May 2016 at 17:07:54 UTC, Seb wrote: Proposed categories: - DMD - DRuntime - Phobos - Language design (or Idea pool) - D Foundation + resources - Events - Other (formerly known as General) I would worry about splitting it in to too many categories. There are already are DMD

[Issue 15925] [REG 2.071] Import declaration from mixin templates are ignored

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15925 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #8

[Issue 15966] [REG 2.071] {public,protected} imports in base class ignored on symbol lookup

2016-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15966 --- Comment #13 from Martin Nowak --- Works as expected with -transition=import/checkimports and that behavior is already covered by test cases. --

Re: Our Sister

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
On 05/26/2016 12:58 PM, Gary Willoughby wrote: On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: * Support several views of the same string, e.g. given s of type RCStr!char, it can be iterated byte-wise, code point-wise, code unit-wise etc. by using s.by!ubyte, s.by!char,

Re: Our Sister

2016-05-26 Thread Jack Stouffer via Digitalmars-d
On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: * Support const and immutable qualifiers for the character type. How is that going BTW. Last I heard you were having problems with inout/const. * Support several views of the same string, e.g. given s of type RCStr!char,

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:09:03 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 17:06:03 UTC, Basile B. wrote: colorize works. You meant "serial-port" ? Well, i get the same message for both packages...Even though it creates a new folder with all the files in

Re: Dynamic Bindings to libui (x-platform GUI)

2016-05-26 Thread ketmar via Digitalmars-d-announce
great lib (libui). sadly, no GNU/Linux support in there yet. gtk+3 is complete crap, and it doesn't even *have* to present in system (it isn't in my case). and libui cannot fallback to gtk+2. it's sad: i was very excited by the nice C UI library (even if it is actually a wrapper). let's hope

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:09:03 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 17:06:03 UTC, Basile B. wrote: colorize works. You meant "serial-port" ? Well, i get the same message for both packages...Even though it creates a new folder with all the files in

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:06:03 UTC, Basile B. wrote: On Thursday, 26 May 2016 at 17:02:06 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 16:53:42 UTC, Basile B. wrote: [...] Thanks, now i found it. If i try to add for example 'colorize' as a package i get: Fetching serial-port

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:06:03 UTC, Basile B. wrote: colorize works. You meant "serial-port" ? Well, i get the same message for both packages...Even though it creates a new folder with all the files in AppData\Roaming\dub\packages

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Rainer Schuetze via Digitalmars-d-learn
On 26.05.2016 17:11, TheDGuy wrote: Hi, i use Visual D as a plugin for visual studio to create D applications. But what bothers me a bit is that i have to tell visual D the exact link to the .lib file for every lib i want to use in the project (!). So these are the steps i have to make to get

Split general into multiple threads

2016-05-26 Thread Seb via Digitalmars-d
I think we all agree that general is having to much traffic and according to CyberShadow [1] this again is just an approval issue, however I expect this a bit controversial, so please no OT! Only other category proposals. Proposed categories: - DMD - DRuntime - Phobos - Language design (or

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:02:06 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 16:53:42 UTC, Basile B. wrote: [...] Thanks, now i found it. If i try to add for example 'colorize' as a package i get: Fetching serial-port ~master... Placing serial-port ~master to

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 16:53:42 UTC, Basile B. wrote: - Registering a dub package from online is in the "library manager" - The DUB project editor is a widget that's not docked by default, see in the menu "Windows", the item "Dub project editor". The Native project configuration and

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 17:02:06 UTC, TheDGuy wrote: Thanks, now i found it. If i try to add for example 'colorize' as a package i get: Fetching serial-port ~master... Placing serial-port ~master to C:\Users\luc\AppData\Roaming\dub\packages\... Neither a package description file, nor

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 16:53:42 UTC, Basile B. wrote: On Thursday, 26 May 2016 at 16:21:30 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 16:01:22 UTC, Basile B. wrote: To register a DUB package, you can either fetch (DUB icon) or clone the repo, open the DUB JSON project, compile the

Re: Request for approval: deploying dlang.org on merge

2016-05-26 Thread Seb via Digitalmars-d
On Thursday, 26 May 2016 at 16:43:20 UTC, Dicebot wrote: On Thursday, 26 May 2016 at 16:38:16 UTC, Andrei Alexandrescu wrote: If Vladimir is okay with auto-deployment I'm okay too. Move fast! The only question is, how do we avoid cases in which a deployment breaks something important? --

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 16:21:30 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 16:01:22 UTC, Basile B. wrote: To register a DUB package, you can either fetch (DUB icon) or clone the repo, open the DUB JSON project, compile the right config, then in the libman there's a icon with a gray

Re: Why do some T.init evaluate to true while others to false?

2016-05-26 Thread ArturG via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:51:39 UTC, Basile B. wrote: Oh, I'm so sorry ! I totally missed the point of the Q. float.nan is not a "unique" value. Several values verify "nan" (Look at std.math.isNan). So I suppose it's simpler to test for nullity. Though with the sign there's also two

Re: Request for approval: deploying dlang.org on merge

2016-05-26 Thread Dicebot via Digitalmars-d
On Thursday, 26 May 2016 at 16:38:16 UTC, Andrei Alexandrescu wrote: If Vladimir is okay with auto-deployment I'm okay too. Move fast! The only question is, how do we avoid cases in which a deployment breaks something important? -- Andrei You don't need to avoid - just hit "revert" button and

Re: Request for approval: deploying dlang.org on merge

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
On 5/26/16 11:53 AM, Seb wrote: Hey, Let me tell you a little story - once there was the amazing Dconf at the beginning of this month (4-6.5). We put a notice about it on dlang.org "DConf 2016 is coming up: May 4-6 in Berlin, Germany. Secure your seat before it's sold out!". It took two

Re: Our Sister

2016-05-26 Thread ixid via Digitalmars-d
On Thursday, 26 May 2016 at 16:20:37 UTC, Adam D. Ruppe wrote: On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote: I've been working on RCStr (endearingly pronounced "Our Sister") You really should actually mention RCStr in the subject line so people overwhelmed with the

Re: The Case Against Autodecode

2016-05-26 Thread Jack Stouffer via Digitalmars-d
On Thursday, 26 May 2016 at 16:00:54 UTC, Andrei Alexandrescu wrote: instead, it should use standard library algorithms for searching, matching etc. When needed, iterating every code unit is trivially done through indexing. For an example where the std.algorithm/range functions don't cut

Re: Operator overloading through UFCS doesn't work

2016-05-26 Thread Elie Morisse via Digitalmars-d-learn
On Thursday, 26 May 2016 at 06:23:17 UTC, Jonathan M Davis wrote: The difference is that it's impossible to do 10.opBinary!"+"(15), so if you're forced to do foo.opBinary!"+"(bar) to get around a symbol conflict, it won't work with built-in types. Obviously operator overloading should be

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 16:01:22 UTC, Basile B. wrote: To register a DUB package, you can either fetch (DUB icon) or clone the repo, open the DUB JSON project, compile the right config, then in the libman there's a icon with a gray chain over a book. Click this icon and the library is

Our Sister

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
I've been working on RCStr (endearingly pronounced "Our Sister"), D's up-and-coming reference counted string type. The goals are: * Reference counted, shouldn't leak if all instances destroyed; even if not, use the GC as a last-resort reclamation mechanism. * Entirely @safe. * Support UTF

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:41:45 UTC, TheDGuy wrote: On Thursday, 26 May 2016 at 15:21:40 UTC, Basile B. wrote: Use Coedit: the widget "library manager" allow to register libraries in a single click and then they are usable on the fly, in the projects or in a runnable modules, without

Re: The Case Against Autodecode

2016-05-26 Thread Andrei Alexandrescu via Digitalmars-d
This might be a good time to discuss this a tad further. I'd appreciate if the debate stayed on point going forward. Thanks! My thesis: the D1 design decision to represent strings as char[] was disastrous and probably one of the largest weaknesses of D1. The decision in D2 to use

Request for approval: deploying dlang.org on merge

2016-05-26 Thread Seb via Digitalmars-d
Hey, Let me tell you a little story - once there was the amazing Dconf at the beginning of this month (4-6.5). We put a notice about it on dlang.org "DConf 2016 is coming up: May 4-6 in Berlin, Germany. Secure your seat before it's sold out!". It took two weeks, but finally karthikeyan

Re: Why do some T.init evaluate to true while others to false?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:48:18 UTC, Basile B. wrote: On Thursday, 26 May 2016 at 15:34:50 UTC, ArturG wrote: On Thursday, 26 May 2016 at 15:29:52 UTC, Basile B. wrote: float.init is not equal to 0.0f. In D FP points values are initialized to nan (not a number). By the way for

Re: Why do some T.init evaluate to true while others to false?

2016-05-26 Thread Basile B. via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:34:50 UTC, ArturG wrote: On Thursday, 26 May 2016 at 15:29:52 UTC, Basile B. wrote: float.init is not equal to 0.0f. In D FP points values are initialized to nan (not a number). By the way for strings it works, it's like the array case I described in the

Re: Why do some T.init evaluate to true while others to false?

2016-05-26 Thread ArturG via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:38:55 UTC, Basile B. wrote: because nan is not 0 and that the shortcut for float is if (fpValue) <=> if (fpValue != 0) if (!fpValue)<=> if (fpValue == 0) There's no relation between the initializer and the shortcut. It's not because for some values the

Re: Easier way to add libraries to visual d?

2016-05-26 Thread TheDGuy via Digitalmars-d-learn
On Thursday, 26 May 2016 at 15:21:40 UTC, Basile B. wrote: Use Coedit: the widget "library manager" allow to register libraries in a single click and then they are usable on the fly, in the projects or in a runnable modules, without specifying anything (except a (*) in a project setting

Re: Why do some T.init evaluate to true while others to false?

2016-05-26 Thread ag0aep6g via Digitalmars-d-learn
On 05/26/2016 05:28 PM, ArturG wrote: On Thursday, 26 May 2016 at 15:25:26 UTC, ag0aep6g wrote: [...] What does it matter? You would have to create special cases for them. When? If you want to check if something is the .init value, compare against .init.

  1   2   >