New Garbage Collector?

2017-07-21 Thread aedt via Digitalmars-d
In the forum, I saw a thread about someone working on a new GC. Just wanted to know if there's any updates on that. And what issues is it going to fix.. Personally, I would be greatly delighted if it acknowledges the Stop-The-World problem[1]. Going around it is shown not to be

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread MysticZach via Digitalmars-d
On Friday, 21 July 2017 at 19:36:08 UTC, H. S. Teoh wrote: In short, I feel that a more substantial discussion of how we arrived at the current form of the proposal is important so that Walter & Andrei can have the adequate context to appreciate the proposed syntax changes, and not feel like

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread MysticZach via Digitalmars-d
On Saturday, 22 July 2017 at 03:05:55 UTC, aberba wrote: How about this in current syntax? (that's what I do) int func(int a) in { assert(a >= 0); } out(result) { assert(result >= 2); } body { return 2 * a; } an improvement could be: int func(int

Re: Creating a new type, to get strong-ish type checking and restrict usage to certain operations, using struct perhaps

2017-07-21 Thread Cecil Ward via Digitalmars-d-learn
On Friday, 21 July 2017 at 18:49:21 UTC, Cecil Ward wrote: I was think about how to create a new type that holds packed bcd values, of a choice of widths, that must fit into a uint32_t or a uint64_t (not really long multi-byte objects). I am not at all sure how to do it. I thought about using

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread aberba via Digitalmars-d
On Friday, 21 July 2017 at 13:51:05 UTC, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1009.md Based on feedback from the first round, this DIP has been revised to the extent that a second preliminary review round is

Re: find difference between two struct instances.

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
On Saturday, 22 July 2017 at 01:04:48 UTC, Nicholas Wilson wrote: On Friday, 21 July 2017 at 23:38:51 UTC, FoxyBrown wrote: [...] use opCmp in conjunction with __traits(allMembers,T) struct Example { int a,b,c; string d,e,f; } void difference(alias func, T)(T t1, T t2)

Re: executeShell not working

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
On Saturday, 22 July 2017 at 02:31:45 UTC, FoxyBrown wrote: auto sss = "sc config \""~szSvcName~"\" start= disabled"; executeShell("sc config \""~szSvcName~"\" start= disabled"); but if I copy and paste the string in to an admin console, it works fine: sc config "W32Time" start= disabled

executeShell not working

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
auto sss = "sc config \""~szSvcName~"\" start= disabled"; executeShell("sc config \""~szSvcName~"\" start= disabled"); but if I copy and paste the string in to an admin console, it works fine: sc config "W32Time" start= disabled [SC] ChangeServiceConfig SUCCESS szSvcName is W32Time. It's

Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-21 Thread aberba via Digitalmars-d-announce
On Friday, 21 July 2017 at 07:40:20 UTC, Andrea Fontana wrote: On Thursday, 20 July 2017 at 12:23:31 UTC, Mike wrote: A few years ago I created a bare metal demo on an ARM Cortex-M4 microcontroller entirely in D. It was just a demonstration that one could do bare metal programming for

Re: How can I serialize a struct into a file in the style of C?

2017-07-21 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 22 July 2017 at 02:11:27 UTC, Mike Parker wrote: On Saturday, 22 July 2017 at 01:45:29 UTC, solidstate1991 wrote: Due to it's convenience, I was thinking on reading and writing file headers by creating structs mirroring the layouts of actual headers I would need. I've seen many

Re: How can I serialize a struct into a file in the style of C?

2017-07-21 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 22 July 2017 at 01:45:29 UTC, solidstate1991 wrote: Due to it's convenience, I was thinking on reading and writing file headers by creating structs mirroring the layouts of actual headers I would need. I've seen many examples of this in C, however I' struggling using the same

How can I serialize a struct into a file in the style of C?

2017-07-21 Thread solidstate1991 via Digitalmars-d-learn
Due to it's convenience, I was thinking on reading and writing file headers by creating structs mirroring the layouts of actual headers I would need. I've seen many examples of this in C, however I' struggling using the same methods through the use of code.stdc.stdio, especially as I can't

Re: Cannot find std.datetime when linking after upgrade to 2.075.0

2017-07-21 Thread Domain via Digitalmars-d-learn
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote: On Friday, July 21, 2017 15:33:45 Domain via Digitalmars-d-learn wrote: After upgrade dmd to latest 2.075.0, my project no longer build: zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external symbol _D3std8d

Re: find difference between two struct instances.

2017-07-21 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 21 July 2017 at 23:38:51 UTC, FoxyBrown wrote: On Friday, 21 July 2017 at 22:35:20 UTC, Era Scarecrow wrote: On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote: Is there a way to easily find the differences between to struct instances? I would like to report only the

Re: Boston D Meetup: Strawman Structs

2017-07-21 Thread Nicholas Wilson via Digitalmars-d-announce
On Friday, 21 July 2017 at 21:55:01 UTC, Steven Schveighoffer wrote: On 7/2/17 6:35 AM, Steven Schveighoffer wrote: I'll have a short presentation on a weird trick I discovered while writing some MySQL serialization code. Hope you can attend!

is the ubuntu sourceforge repository safe?

2017-07-21 Thread Ali via Digitalmars-d
I know that sourceforge doesnt have the best security track record Is it safe thought to use the dmd ubuntu repository hosted there [code] sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list wget -qO - https://dlang.org/d-keyring.gpg

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Mike Parker via Digitalmars-d
On Friday, 21 July 2017 at 19:36:08 UTC, H. S. Teoh wrote: However, I think the presentation of the DIP needs some work. For example, the rationales and lines of reasoning that eventually led to the currently proposed syntax, both from the original draft of this DIP and from the ensuing

Re: find difference between two struct instances.

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
On Friday, 21 July 2017 at 22:35:20 UTC, Era Scarecrow wrote: On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote: Is there a way to easily find the differences between to struct instances? I would like to report only the differences e.g., writeln(s1 - s2); prints only what is

Re: The X Macro using D

2017-07-21 Thread Nicholas Wilson via Digitalmars-d
On Friday, 21 July 2017 at 19:26:05 UTC, Johan Engelen wrote: On Thursday, 20 July 2017 at 21:17:45 UTC, Walter Bright wrote: Some time ago, I wrote about the X Macro in C: https://digitalmars.com/articles/b51.html I used it from time to time in C code. It's one of the things I actually

Re: find difference between two struct instances.

2017-07-21 Thread Era Scarecrow via Digitalmars-d-learn
On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote: Is there a way to easily find the differences between to struct instances? I would like to report only the differences e.g., writeln(s1 - s2); prints only what is different between s1 and s2. This is entirely dependent on the

Re: AddressSanitizer and the GC

2017-07-21 Thread Walter Bright via Digitalmars-d
On 7/21/2017 2:37 PM, Johan Engelen wrote: Can you advise me on where best to add the asan calls? Offhand, I don't know. It's been maybe 15 years since I worked on it, and a lot of people have moved things about since then. Dmitry Olshansky has worked on it very recently, in fact he is

Re: AddressSanitizer and the GC

2017-07-21 Thread Walter Bright via Digitalmars-d
On 7/21/2017 2:39 PM, Johan Engelen wrote: Quick extra note: the function pointer solution is not friendly to LTO, whereas a weak-linking solution would easily be optimized-out fully with LTO. So that's something to consider too. This code should be version'd with: version

Re: AddressSanitizer and the GC

2017-07-21 Thread Walter Bright via Digitalmars-d
On 7/21/2017 2:14 PM, Johan Engelen wrote: On Friday, 21 July 2017 at 20:56:02 UTC, Walter Bright wrote: If anyone is game, it would be cool to do an LLVM compile of DMD so AddressSanitizer can look for bugs in DMD itself. Yep, I've got fuzzing to work too, so... expect nice blogs "soon". ;-)

Re: If Statement with Declaration

2017-07-21 Thread Jonathan M Davis via Digitalmars-d
On Friday, July 21, 2017 17:32:48 Andrei Alexandrescu via Digitalmars-d wrote: > On 07/19/2017 09:30 AM, sontung wrote: > [snip] > > This post: > http://forum.dlang.org/post/vfjlpvpwuyfqoljvp...@forum.dlang.org seems > to be identical to one on November 3, 2016: >

Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-21 Thread Mr.D via Digitalmars-d-announce
On Friday, 21 July 2017 at 00:27:09 UTC, Mike wrote: On Thursday, 20 July 2017 at 17:09:40 UTC, Mr.D wrote: Thanks for your work with bare metal MCUs! I am dreaming that someday I can program smart house IoT automation on D. You already can; it just may not be the most professional

Re: An Issue I Wish To Raise Awareness On

2017-07-21 Thread Jonathan M Davis via Digitalmars-d
On Friday, July 21, 2017 08:37:51 Atila Neves via Digitalmars-d wrote: > On Thursday, 20 July 2017 at 21:20:46 UTC, Jonathan M Davis wrote: > > On Thursday, July 20, 2017 07:40:35 Dominikus Dittes Scherkl > > > > via Digitalmars-d wrote: > >> On Wednesday, 19 July 2017 at 22:35:43 UTC, Jonathan M

Re: Boston D Meetup: Strawman Structs

2017-07-21 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/2/17 6:35 AM, Steven Schveighoffer wrote: I'll have a short presentation on a weird trick I discovered while writing some MySQL serialization code. Hope you can attend! https://www.eventbrite.com/e/d-lang-presentation-strawman-structs-tickets-35120523431 I've set up a live stream for

Re: If Statement with Declaration

2017-07-21 Thread Johan Engelen via Digitalmars-d
On Friday, 21 July 2017 at 21:32:48 UTC, Andrei Alexandrescu wrote: It's bizarre even lexically: "If the following ... oh wait let me insert some stuff ... as I was saying, if the following condition happens..." (excuse me for muddying the waters) We do have a construct like that already:

Re: AddressSanitizer and the GC

2017-07-21 Thread Johan Engelen via Digitalmars-d
On Friday, 21 July 2017 at 21:37:39 UTC, Johan Engelen wrote: On Friday, 21 July 2017 at 20:53:18 UTC, Walter Bright wrote: On 7/21/2017 12:06 PM, Johan Engelen wrote: < [...] Another option is to use a pointer to the asan functions, like: if (asan_fp) (*asan_fp)(args...) The

Re: AddressSanitizer and the GC

2017-07-21 Thread Johan Engelen via Digitalmars-d
On Friday, 21 July 2017 at 20:53:18 UTC, Walter Bright wrote: On 7/21/2017 12:06 PM, Johan Engelen wrote: < [...] Thanks for your work on this. It is important to support such valuable tools. One way making such things pretty much cost-free in the olden days was to trick the linker into

Re: If Statement with Declaration

2017-07-21 Thread Andrei Alexandrescu via Digitalmars-d
On 07/19/2017 09:30 AM, sontung wrote: [snip] This post: http://forum.dlang.org/post/vfjlpvpwuyfqoljvp...@forum.dlang.org seems to be identical to one on November 3, 2016: http://forum.dlang.org/post/dejodpslmjdovstdi...@forum.dlang.org. Hat tip for persistence! Regarding the feature

Re: proposed @noreturn attribute

2017-07-21 Thread Andrei Alexandrescu via Digitalmars-d
On 07/19/2017 10:32 AM, Timon Gehr wrote: On 19.07.2017 14:13, Moritz Maxeiner wrote: On Wednesday, 19 July 2017 at 11:35:47 UTC, Timon Gehr wrote: a value of type bottom can be used to construct a value for any other type. AFAIK from type theory, bottom is defined as having no values (so

Re: AddressSanitizer and the GC

2017-07-21 Thread Johan Engelen via Digitalmars-d
On Friday, 21 July 2017 at 20:56:02 UTC, Walter Bright wrote: On 7/21/2017 12:06 PM, Johan Engelen wrote: I've added AddressSanitizer [1] support to LDC, and it is able to nicely catch bugs like this one: If anyone is game, it would be cool to do an LLVM compile of DMD so AddressSanitizer

find difference between two struct instances.

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
Is there a way to easily find the differences between to struct instances? I would like to report only the differences e.g., writeln(s1 - s2); prints only what is different between s1 and s2.

Re: AddressSanitizer and the GC

2017-07-21 Thread Walter Bright via Digitalmars-d
On 7/21/2017 12:06 PM, Johan Engelen wrote: I've added AddressSanitizer [1] support to LDC, and it is able to nicely catch bugs like this one: If anyone is game, it would be cool to do an LLVM compile of DMD so AddressSanitizer can look for bugs in DMD itself.

Re: AddressSanitizer and the GC

2017-07-21 Thread Walter Bright via Digitalmars-d
On 7/21/2017 12:06 PM, Johan Engelen wrote: < [...] Thanks for your work on this. It is important to support such valuable tools. One way making such things pretty much cost-free in the olden days was to trick the linker into writing NOPs over the function calls by using specially crafted

Re: The X Macro using D

2017-07-21 Thread Enamex via Digitalmars-d
On Thursday, 20 July 2017 at 22:02:32 UTC, Walter Bright wrote: On 7/20/2017 2:21 PM, Stefan Koch wrote: Please tell me this is not going to get into dmd :) templates are so much more expensive then macros. (Well, for now :) ) Those templates can and should be replaced by CTFE. If you like,

[Issue 17590] Unnecessary GC alloc on returning static local struct

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17590 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9940f4ce5e82f783b3c41c260c32b56b11e37f8a Fix Issue 17590 - Unnecessary GC alloc on returning static

Re: An Issue I Wish To Raise Awareness On

2017-07-21 Thread Atila Neves via Digitalmars-d
On Friday, 21 July 2017 at 11:57:11 UTC, Kagamin wrote: On Friday, 21 July 2017 at 08:51:27 UTC, Atila Neves wrote: Mutexes and sockets are classes, so not destroyed deterministically. They should, like any unmanaged resources, e.g. by wrapping in a smart pointer. Imagine 1 lingering tcp

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 21, 2017 at 01:51:05PM +, Mike Parker via Digitalmars-d wrote: > DIP 1009 is titled "Improve Contract Usability". > > https://github.com/dlang/DIPs/blob/master/DIPs/DIP1009.md [...] As far as the meat of the proposal is concerned, I like it. The syntax of the out-contract without

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 21 July 2017 at 19:19:47 UTC, MysticZach wrote: On Friday, 21 July 2017 at 18:55:08 UTC, Moritz Maxeiner wrote: I really like how the syntax turned out. My only remaining peeve is the `ContractParameters` nomenclature in the grammar section, because it implies that asserts are

Re: The X Macro using D

2017-07-21 Thread Johan Engelen via Digitalmars-d
On Thursday, 20 July 2017 at 21:17:45 UTC, Walter Bright wrote: Some time ago, I wrote about the X Macro in C: https://digitalmars.com/articles/b51.html I used it from time to time in C code. It's one of the things I actually like about the C preprocessor. But in translating the aged C

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread MysticZach via Digitalmars-d
On Friday, 21 July 2017 at 18:55:08 UTC, Moritz Maxeiner wrote: I really like how the syntax turned out. My only remaining peeve is the `ContractParameters` nomenclature in the grammar section, because it implies that asserts are contracts. Maybe I should have stuck with AssertParameters.

Re: An Issue I Wish To Raise Awareness On

2017-07-21 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 21 July 2017 at 11:57:11 UTC, Kagamin wrote: On Friday, 21 July 2017 at 08:51:27 UTC, Atila Neves wrote: Mutexes and sockets are classes, so not destroyed deterministically. They should, like any unmanaged resources I tend to agree, although e.g. by wrapping in a smart pointer.

AddressSanitizer and the GC

2017-07-21 Thread Johan Engelen via Digitalmars-d
Hi all, I've added AddressSanitizer [1] support to LDC, and it is able to nicely catch bugs like this one: ``` void foo(int* arr) { arr[10] = 1; } void main() { int[10] a; foo([0]); } ``` It works for malloc'ed memory, but not yet for GC'd memory. Our GC pool memory is

Re: Creating a new type, to get strong-ish type checking and restrict usage to certain operations, using struct perhaps

2017-07-21 Thread Ali Çehreli via Digitalmars-d-learn
On 07/21/2017 11:49 AM, Cecil Ward wrote: I was think about how to create a new type that holds packed bcd values, of a choice of widths, that must fit into a uint32_t or a uint64_t (not really long multi-byte objects). I am not at all sure how to do it. I thought about using a templated struct

Re: Creating a new type, to get strong-ish type checking and restrict usage to certain operations, using struct perhaps

2017-07-21 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 21 July 2017 at 18:49:21 UTC, Cecil Ward wrote: I was think about how to create a new type that holds packed bcd values, of a choice of widths, that must fit into a uint32_t or a uint64_t (not really long multi-byte objects). I am not at all sure how to do it. I thought about using

Re: Cannot find std.datetime when linking after upgrade to 2.075.0

2017-07-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, July 21, 2017 15:33:45 Domain via Digitalmars-d-learn wrote: > After upgrade dmd to latest 2.075.0, my project no longer build: > > zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external > symbol _D3std8d > atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime > > and many

Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread Seb via Digitalmars-d-announce
On Friday, 21 July 2017 at 15:16:30 UTC, NVolcz wrote: On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote: [...] I am getting OpenSSL linker errors when I run "dub test": https://gist.github.com/NVolcz/d1731f92622b018e1cebbc42b195028c FYI:

Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread tetyys via Digitalmars-d-announce
On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote: I just released a vibe.d library that allows you to turn any D struct into an editable HTML5 compatible form with live JS updates but also normal no-JS updates with nearly the same experience. that's very nice, thanks

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 21 July 2017 at 13:51:05 UTC, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". [...] Destroy! I really like how the syntax turned out. My only remaining peeve is the `ContractParameters` nomenclature in the grammar section, because it implies that asserts are

Re: The X Macro using D

2017-07-21 Thread Jacob Carlborg via Digitalmars-d
On 2017-07-21 14:27, Olivier FAURE wrote: Quick questions: isn't it possible to do private __gshared const(char)*[24] pseudotab = Y.map!(x => x.id); instead? That seems like the most obvious and easy to read option; and in contrast to the other solutions proposed, it's closer to the Rule

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread David Gileadi via Digitalmars-d
On 7/21/17 11:41 AM, Moritz Maxeiner wrote: On Friday, 21 July 2017 at 18:35:53 UTC, David Gileadi wrote: On 7/21/17 6:51 AM, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". For out contracts that use the return identifier, could the keyword "return" be used?

Creating a new type, to get strong-ish type checking and restrict usage to certain operations, using struct perhaps

2017-07-21 Thread Cecil Ward via Digitalmars-d-learn
I was think about how to create a new type that holds packed bcd values, of a choice of widths, that must fit into a uint32_t or a uint64_t (not really long multi-byte objects). I am not at all sure how to do it. I thought about using a templated struct to simply wrap a uint of a chosen width,

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 21 July 2017 at 18:35:53 UTC, David Gileadi wrote: On 7/21/17 6:51 AM, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". For out contracts that use the return identifier, could the keyword "return" be used? out(return > 0) One possible problem with this

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread David Gileadi via Digitalmars-d
On 7/21/17 6:51 AM, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". For out contracts that use the return identifier, could the keyword "return" be used? out(return > 0) One possible problem with this syntax is a future where functions could have multiple return

Re: D easily overlooked?

2017-07-21 Thread Seb via Digitalmars-d
On Friday, 21 July 2017 at 13:50:24 UTC, Joakim wrote: On Friday, 21 July 2017 at 13:25:32 UTC, Adrian Matoga wrote: On Friday, 14 July 2017 at 13:29:30 UTC, Joakim wrote: [...] Interesting. A few months ago I wanted to sell ctRegex as the fastest one in a presentation, but in my benchmarks

Re: An Issue I Wish To Raise Awareness On

2017-07-21 Thread Kagamin via Digitalmars-d
Hmm, if proper implementation of a shared smart pointer is impossible, it probably means that such smart pointer should be typed unshared when passed around. But then it doesn't make sense to call unshared destructor on shared smart pointer anyway, because it's not designed to be typed shared.

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread MysticZach via Digitalmars-d
On Friday, 21 July 2017 at 15:13:09 UTC, Timon Gehr wrote: "in and out expressions must come at the end of the function declarator suffix, and before the regular contracts, if any" The implementation actually allows all possible notations for contracts to be mixed freely. Whether or not 'do'

[Issue 15484] core.memory.GC.disable() is not @nogc

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15484 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Cannot find std.datetime when linking after upgrade to 2.075.0

2017-07-21 Thread zabruk70 via Digitalmars-d-learn
https://dlang.org/changelog/2.075.0.html#split-std-datetime

[Issue 15484] core.memory.GC.disable() is not @nogc

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15484 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

Cannot find std.datetime when linking after upgrade to 2.075.0

2017-07-21 Thread Domain via Digitalmars-d-learn
After upgrade dmd to latest 2.075.0, my project no longer build: zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external symbol _D3std8d atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime and many more. All about std.datetime.

Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread NVolcz via Digitalmars-d-announce
On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote: I just released a vibe.d library that allows you to turn any D struct into an editable HTML5 compatible form with live JS updates but also normal no-JS updates with nearly the same experience. It basically feels like you don't need

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Timon Gehr via Digitalmars-d
On 21.07.2017 15:51, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1009.md Based on feedback from the first round, this DIP has been revised to the extent that a second preliminary review round is warranted. All

[Issue 10364] Mac OS 10.8 program crash

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10364 --- Comment #9 from Vladimir Panteleev --- (In reply to Jacob Carlborg from comment #8) > I did some more debugging. The error returned by "thread_get_state" is > 268435459 (0x1003) which seems to correspond to

Re: Check whether string value represents a type

2017-07-21 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/21/17 10:21 AM, Timoses wrote: I'd love to check whether a string value is the name of a type at run-time. E.g.: string a = "int"; string b = "im no type"; assert( isStringType(a) ); assert( !isStringType(b) ); or struct TestStruct { int test; } string t = "TestStruct"; assert(

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Friday, 21 July 2017 at 13:51:05 UTC, Mike Parker wrote: DIP 1009 is titled "Improve Contract Usability". I like it. I would prefer the out with two sets of parantheses.

Check whether string value represents a type

2017-07-21 Thread Timoses via Digitalmars-d-learn
I'd love to check whether a string value is the name of a type at run-time. E.g.: string a = "int"; string b = "im no type"; assert( isStringType(a) ); assert( !isStringType(b) ); or struct TestStruct { int test; } string t = "TestStruct"; assert( isStringType(t) ); Is anything like

[Issue 17587] JSONOptions: No forward slash encoding

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

[Issue 17587] JSONOptions: No forward slash encoding

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17587 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0503b9b4a55512335ce038a34aa57a137b76753d add JSONOptions.doNotEscapeSlashes Fixes issue 17587

DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Mike Parker via Digitalmars-d-announce
DIP 1009 is titled, "Improve Contract Usability". The second preliminary review round is now underway. http://forum.dlang.org/post/luhdbjnsmfomtgpyd...@forum.dlang.org As a reminder, the first preliminary review round for DIP 1011 is ongoing and has one week remaining.

DIP 1009--Improve Contract Usability--Preliminary Review Round 2 Begins

2017-07-21 Thread Mike Parker via Digitalmars-d
DIP 1009 is titled "Improve Contract Usability". https://github.com/dlang/DIPs/blob/master/DIPs/DIP1009.md Based on feedback from the first round, this DIP has been revised to the extent that a second preliminary review round is warranted. All review-related feedback on and discussion of the

Re: D easily overlooked?

2017-07-21 Thread Joakim via Digitalmars-d
On Friday, 21 July 2017 at 13:25:32 UTC, Adrian Matoga wrote: On Friday, 14 July 2017 at 13:29:30 UTC, Joakim wrote: Yes, D's compile-time regex are still the fastest in the world. I've been benching it recently for a marketing-oriented blog post I'm preparing for the official D blog,

Re: Solving the spurious forward/cyclic reference errors in DMD

2017-07-21 Thread Timon Gehr via Digitalmars-d
On 17.07.2017 03:16, Elie Morisse wrote: Timon, any update on this? Not really. I did not have much time to work in this in the past year. (Also, it is not very convenient to work with DMD 2.060.) What are the insights you gained with your frontend? ... What I have implemented works

Re: D easily overlooked?

2017-07-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 14 July 2017 at 13:29:30 UTC, Joakim wrote: Yes, D's compile-time regex are still the fastest in the world. I've been benching it recently for a marketing-oriented blog post I'm preparing for the official D blog, std.regex beats out the top C and Rust entries from the benchmarks

Re: Article on the D blog

2017-07-21 Thread Mike Parker via Digitalmars-d
On Friday, 21 July 2017 at 13:03:34 UTC, Jean-Louis Leroy wrote: Hi, Whom should I contact to submit an article proposal for the D blog? Me: aldac...@gmail.com

Article on the D blog

2017-07-21 Thread Jean-Louis Leroy via Digitalmars-d
Hi, Whom should I contact to submit an article proposal for the D blog?

Re: The X Macro using D

2017-07-21 Thread Olivier FAURE via Digitalmars-d
On Friday, 21 July 2017 at 12:27:35 UTC, Olivier FAURE wrote: private __gshared const(char)*[24] pseudotab = Y.map!(x => x.id); I meant private __gshared static immutable string[Y.length] pseudotab = Y.map!(x => x.id); but you get my point. Also, upon trying it, it doesn't

Re: The X Macro using D

2017-07-21 Thread Olivier FAURE via Digitalmars-d
On Friday, 21 July 2017 at 08:06:09 UTC, Stefan Koch wrote: My pleasure :) // ... mixin((){ // ... enum Y = [ // id reg mask ty X("AH", 4, mAX, TYuchar), X("AL", 0, mAX, TYuchar), X("AX", 8, mAX, TYushort), X("BH", 7, mBX,

Re: The X Macro using D

2017-07-21 Thread Nick Treleaven via Digitalmars-d
On Friday, 21 July 2017 at 11:19:47 UTC, Patrick Schluter wrote: In C there's no point in the X macro anymore since C99. Designated initializer allow to do it properly[1] now. enum COLORS { red, blue, green, max }; char *cstring[max] = {[red]="red", [blue]="blue", [green]="green" };

Re: An Issue I Wish To Raise Awareness On

2017-07-21 Thread Kagamin via Digitalmars-d
On Friday, 21 July 2017 at 08:51:27 UTC, Atila Neves wrote: Mutexes and sockets are classes, so not destroyed deterministically. They should, like any unmanaged resources, e.g. by wrapping in a smart pointer. Imagine 1 lingering tcp connections accumulated over time due to poor timing of

Re: The X Macro using D

2017-07-21 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 20 July 2017 at 21:17:45 UTC, Walter Bright wrote: Some time ago, I wrote about the X Macro in C: https://digitalmars.com/articles/b51.html I used it from time to time in C code. It's one of the things I actually like about the C preprocessor. But in translating the aged C

Re: The X Macro using D

2017-07-21 Thread Patrick Schluter via Digitalmars-d
On Thursday, 20 July 2017 at 21:17:45 UTC, Walter Bright wrote: Some time ago, I wrote about the X Macro in C: https://digitalmars.com/articles/b51.html I used it from time to time in C code. It's one of the things I actually like about the C preprocessor. But in translating the aged C

[Issue 13951] Massive amounts of bloat generated for asserts by template.c

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13951 --- Comment #1 from Vladimir Panteleev --- (In reply to Walter Bright from comment #0) > The dmd source code in template.c: I see that this code block has been removed in

[Issue 15089] Marks wrong line as where error occurs.

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15089 Vladimir Panteleev changed: What|Removed |Added Severity|minor

[Issue 15089] Marks wrong line as where error occurs.

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15089 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 12337] Bad enum usage wrong error message line number

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12337 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 15537] Private function is not accessible from other module when compiling with -debug flag

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15537 Vladimir Panteleev changed: What|Removed |Added Resolution|INVALID

[Issue 15230] Inconsistent std.range.SortedRange predicate checks

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15230 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 15230] Inconsistent std.range.SortedRange predicate checks

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15230 --- Comment #3 from Vladimir Panteleev --- Verifying the predicate statically regardless of -debug does sound like a good idea. --

[Issue 14674] Importing std.stdio causes another module to become undefined

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14674 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 10478] Crappy error message when two operator overloads match

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10478 Vladimir Panteleev changed: What|Removed |Added Severity|normal

[Issue 10478] Crappy error message when two operator overloads match

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10478 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17674] [REG 2.064] Simultaneous opBinary and opBinaryRight is not rejected

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17674 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 17674] New: [REG 2.064] Simultaneous opBinary and opBinaryRight is not rejected

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17674 Issue ID: 17674 Summary: [REG 2.064] Simultaneous opBinary and opBinaryRight is not rejected Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: WebConfig - a vibe.d HTML form generator & validator from D structs

2017-07-21 Thread Dukc via Digitalmars-d-announce
On Thursday, 20 July 2017 at 15:57:55 UTC, WebFreak001 wrote: [snip] At my current work I do program web pages to access a database, just in C#. Vibe.D and this would wipe the floor with our methods! Thank you!

[Issue 16684] [REG 2.067.0] std.getopt, problem with the automatic handling of "h"

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16684 Vladimir Panteleev changed: What|Removed |Added Summary|std.getopt, problem with|[REG

[Issue 16684] std.getopt, problem with the automatic handling of "h"

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16684 --- Comment #5 from Vladimir Panteleev --- (In reply to b2.temp from comment #2) > Forgot to say that the only way to handle "h" should be the getopt results, > e.g I guess "helpWanted" is a way to do that, but

[Issue 16684] std.getopt, problem with the automatic handling of "h"

2017-07-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16684 Vladimir Panteleev changed: What|Removed |Added Severity|normal

  1   2   >