Re: Adding Modules to C in 10 Lines of Code

2022-06-05 Thread Walter Bright via Digitalmars-d-announce
On 6/5/2022 7:26 AM, mee6 wrote: On Saturday, 4 June 2022 at 19:26:27 UTC, Walter Bright wrote: On 6/4/2022 5:29 AM, Paulo Pinto wrote: I guess going around the horn is a synonym for lets pretend there wasn't prior art and keep arguing D did it first, as usual. Writing a paper is not doing

Re: Adding Modules to C in 10 Lines of Code

2022-06-04 Thread Walter Bright via Digitalmars-d-announce
On 6/4/2022 5:29 AM, Paulo Pinto wrote: I guess going around the horn is a synonym for lets pretend there wasn't prior art and keep arguing D did it first, as usual. Writing a paper is not doing it first.

Re: Adding Modules to C in 10 Lines of Code

2022-06-04 Thread Walter Bright via Digitalmars-d-announce
On 5/29/2022 11:13 PM, Paulo Pinto wrote: Stepstone did it for Objective-C with #import, Not the same as C doing the importing of C code. and Apple with module maps for C and Objective-C, the modules design that preceeded C++ modules on clang. Then we have those failed attempts at fixing C

Re: LDC 1.30.0-beta1

2022-05-17 Thread Walter Bright via Digitalmars-d-announce
On 5/16/2022 11:31 AM, kinke wrote: Glad to announce the first beta for LDC 1.30. Excellent work!

Re: Release D 2.100.0

2022-05-15 Thread Walter Bright via Digitalmars-d-announce
As always, stellar work, Martin! Thank you!

IntelliJ D Language support

2022-05-11 Thread Walter Bright via Digitalmars-d-announce
Now on front page of hackernews! https://news.ycombinator.com/news

Re: GCC 12.1 Released (D v2.100-rc.1)

2022-05-06 Thread Walter Bright via Digitalmars-d-announce
On 5/6/2022 4:57 AM, Iain Buclaw wrote: I am proud to announce another major GCC release, 12.1. Very impressive work, Iain!

Re: Beta 2.100.0

2022-04-24 Thread Walter Bright via Digitalmars-d-announce
On 4/23/2022 7:45 AM, Guillaume Piolat wrote: Those are not super critical bugs. It would just be nice to be able to use D_SIMD one day, as DMD compile speed benefits are enticing. I've addressed all three. The latter two are the result of incorrect usage, so I added some examples here:

Re: Beta 2.100.0

2022-04-23 Thread Walter Bright via Digitalmars-d-announce
On 4/22/2022 2:24 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.100.0 release, ♥ to the 40 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.100.0.html As usual please report any bugs at https://issues.dlang.org -Martin Yay! Thanks,

Re: Adding Modules to C in 10 Lines of Code

2022-04-22 Thread Walter Bright via Digitalmars-d-announce
On 4/17/2022 1:12 PM, Walter Bright wrote: https://nwcpp.org/ An online presentation. Monday at 7PM PST. Slides: https://nwcpp.org/talks/2022/modules_in_c.pdf Video: https://www.youtube.com/watch?v=2ImfbGm0fls

Re: Adding Modules to C in 10 Lines of Code

2022-04-19 Thread Walter Bright via Digitalmars-d-announce
On 4/19/2022 5:41 AM, jmh530 wrote: Will there be a recording available? Yes. NWCPP routinely posts the video a few days later.

Re: Adding Modules to C in 10 Lines of Code

2022-04-17 Thread Walter Bright via Digitalmars-d-announce
On 4/17/2022 5:40 PM, Ali Çehreli wrote: On 4/17/22 13:12, Walter Bright wrote: https://nwcpp.org/ An online presentation. Monday at 7PM PST. (My earlier post disappeared.) April 20 is Wednesday. Ali Gak! My bad. You're right.

Adding Modules to C in 10 Lines of Code

2022-04-17 Thread Walter Bright via Digitalmars-d-announce
https://nwcpp.org/ An online presentation. Monday at 7PM PST.

Re: Teaching D at a Russian University

2022-02-19 Thread Walter Bright via Digitalmars-d-announce
On 2/19/2022 12:26 PM, Elronnd wrote: I think it is fine as is. So do I. I enjoy the unusual phrasings some ESL people use. For example, a long time ago in a circle of friends of mine one ESL person would say things like: "time for go" instead of "time to go" "make some shoppings"

Re: Beta 2.099.0

2022-02-16 Thread Walter Bright via Digitalmars-d-announce
Now that the beta is released (Thank you, Martin!) could we get the documentation for __import pulled? https://github.com/dlang/dlang.org/pull/3182

Re: Beta 2.099.0

2022-02-16 Thread Walter Bright via Digitalmars-d-announce
On 2/15/2022 10:55 PM, Rainer Schuetze wrote: The PR was too late for the beta, but this is the basic change: https://github.com/dlang/druntime/pull/3740/files#diff-5cbe9748431681a766784b1bd997444d58d436a26a345b32397daae478f85c5dR907 Sweet!

Re: DConf 2022 in London?

2022-02-15 Thread Walter Bright via Digitalmars-d-announce
On 2/15/2022 4:22 AM, Mike Parker wrote: Personally, I'm super pumped about this. I hope to see a lot of you in London in August! I'm in!

Re: Added copy constructors to "Programming in D"

2022-02-10 Thread Walter Bright via Digitalmars-d-announce
On 2/10/2022 12:34 PM, Walter Bright wrote: On 2/10/2022 12:06 AM, Mathias LANG wrote: I think an *immediate* improvement we could make to ease people's life is to make `auto` peel the outermost qualifier level inside functions. So that: ```D const int* ptr; auto p2 = ptr; static assert

Re: Added copy constructors to "Programming in D"

2022-02-10 Thread Walter Bright via Digitalmars-d-announce
On 2/10/2022 12:06 AM, Mathias LANG wrote: I think an *immediate* improvement we could make to ease people's life is to make `auto` peel the outermost qualifier level inside functions. So that: ```D const int* ptr; auto p2 = ptr; static assert(is(typeof(p2) == const(int)*)); ``` I really

Re: DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

2022-02-07 Thread Walter Bright via Digitalmars-d-announce
On 2/7/2022 6:21 PM, Paul Backus wrote: On Monday, 7 February 2022 at 23:40:38 UTC, Walter Bright wrote: On 2/6/2022 9:05 PM, forkit wrote: only to have the compiler complain, that its' actually @mustUse I have to agree. All D keywords and imports and compiler-recognized attributes

Re: DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

2022-02-07 Thread Walter Bright via Digitalmars-d-announce
On 2/6/2022 7:14 AM, Daniel N wrote: However by choosing "use" we could avoid the entire discussion about which case to use... "mustuse" is much more greppable.

Re: DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

2022-02-07 Thread Walter Bright via Digitalmars-d-announce
On 2/7/2022 5:10 PM, forkit wrote: Suppose I don't want to 'use it'. That should be allowed, as long as I don't discard it. With mustuse, I'm being told I can't discard it, and that i must use it. Sorry, all those negations made my brain explode. P.S. English has examples of negation issues,

Re: DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

2022-02-07 Thread Walter Bright via Digitalmars-d-announce
On 2/6/2022 9:05 PM, forkit wrote: only to have the compiler complain, that its' actually @mustUse I have to agree. All D keywords and imports and compiler-recognized attributes are lower case, @mustuse should be consistent with that.

Re: DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

2022-02-07 Thread Walter Bright via Digitalmars-d-announce
On 2/6/2022 7:17 AM, Paul Backus wrote: To be honest, though, I can see where he's coming from. When writing DIP 1038, I made a conscious effort to avoid using the term "non-`@nodiscard`", due to the double negative. With a positively-phrased name like `@mustUse`, that problem disappears.

Re: The DIID series (Do It In D)

2022-01-25 Thread Walter Bright via Digitalmars-d-announce
On 1/25/2022 12:44 AM, Guillaume Piolat wrote: I'll consider fixing this. I always read "How good really is X?" as "this is bad" and "How bad really is X?" as "this is good" probably because for the french the best appreciation you can get is "not bad!" Thanks for considering it.

Re: The DIID series (Do It In D)

2022-01-24 Thread Walter Bright via Digitalmars-d-announce
On 1/24/2022 4:34 PM, Elronnd wrote: On Monday, 24 January 2022 at 23:33:29 UTC, Walter Bright wrote: The phrase "How bad really is the D ecosystem?" only asks a question, but people tend to interpret such sentences as "D's ecosystem is really bad". What works better is

Re: The DIID series (Do It In D)

2022-01-24 Thread Walter Bright via Digitalmars-d-announce
This is a nice initiative, Thanks! But may I offer a suggestion: The phrase "How bad really is the D ecosystem?" only asks a question, but people tend to interpret such sentences as "D's ecosystem is really bad". What works better is: "How good really is the D ecosystem?"

Re: From the D Blog: The Binary Language of Moisture Vaporators

2022-01-24 Thread Walter Bright via Digitalmars-d-announce
On 1/24/2022 1:57 PM, Moth wrote: first: how exactly does assembly output relate to moisture vaporators? Vaporators run on compiled code, so do understand the binary code of vaporators, you'll need a disassembler. I wanted to make looking at the binary code easy and fun. second: what on

Re: From the D Blog: The Binary Language of Moisture Vaporators

2022-01-24 Thread Walter Bright via Digitalmars-d-announce
On 1/24/2022 10:22 AM, Imperatorn wrote: On Monday, 24 January 2022 at 14:22:21 UTC, Mike Parker wrote: Some of you may be aware that Walter recently added a disassembler to DMD. He writes about it in his latest post for the D blog. The blog:

Re: On the D Blog: Using the GCC Static Analyzer on the D Programming Language

2022-01-15 Thread Walter Bright via Digitalmars-d-announce
Nice work, Max!

Re: Why I Like D

2022-01-12 Thread Walter Bright via Digitalmars-d-announce
On 1/12/2022 8:14 AM, Steven Schveighoffer wrote: I wonder if there is just so much fear of the GC vs people who actually tried to use the GC and it failed to suit their needs. I've never been afraid of the GC in my projects, and it hasn't hurt me at all. My experience with people who don't

Why I Like D

2022-01-11 Thread Walter Bright via Digitalmars-d-announce
"Why I like D" is on the front page of HackerNews at the moment at number 11. https://news.ycombinator.com/news

Re: DMD now incorporates a disassembler

2022-01-09 Thread Walter Bright via Digitalmars-d-announce
On 1/9/2022 11:33 AM, max haughton wrote: https://stackoverflow.com/questions/2511018/how-does-objdump-manage-to-display-source-code-with-the-s-option obj2asm does the same thing: https://www.digitalmars.com/ctg/obj2asm.html

Re: DMD now incorporates a disassembler

2022-01-09 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2022 10:04 PM, max haughton wrote: For GCC/Clang you'd want -S I know about that, but take a look at it: > cat fred.c int fred(int a[10]) { return a[11]; } > cc -S test.c > cat test.s .file "test.c" .text .globl test .type test, @function

Re: DMD now incorporates a disassembler

2022-01-09 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2022 10:04 PM, max haughton wrote: Anyway, I've been playing with -vasm and I think it seems pretty good so far. There are some formatting issues which shouldn't be hard to fix at all (this is why we asked for some basic tests of the shape of the output), put I think I've only found one

Re: DMD now incorporates a disassembler

2022-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2022 7:25 PM, Brian Callahan wrote: Thanks Walter. This is quite useful. Welcs. I'm already productively using it myself.

Re: DMD now incorporates a disassembler

2022-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2022 4:43 PM, Elronnd wrote: On Friday, 7 January 2022 at 21:41:55 UTC, Walter Bright wrote:   :   89 F8   mov EAX,EDI Feature request: octal. I buried my PDP-11 long ago. Sob.

Re: DMD now incorporates a disassembler

2022-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/7/2022 10:39 PM, ag0aep6g wrote: With feature creep in full swing now, when can I expect to read my email with DMD? The real question is why doesn't your email reader have an option to disassemble the email?

Re: DMD now incorporates a disassembler

2022-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2022 12:50 PM, max haughton wrote: On Saturday, 8 January 2022 at 18:47:11 UTC, Vladimir Marchevsky wrote: On Friday, 7 January 2022 at 21:41:55 UTC, Walter Bright wrote: Compile with -vasm to see it! Enjoy! Any practical reason to put disassembler into compiler instead of making

Re: DMD now incorporates a disassembler

2022-01-08 Thread Walter Bright via Digitalmars-d-announce
On 1/8/2022 10:47 AM, Vladimir Marchevsky wrote: On Friday, 7 January 2022 at 21:41:55 UTC, Walter Bright wrote: Compile with -vasm to see it! Enjoy! Any practical reason to put disassembler into compiler instead of making it a separate tool?  Any ETA for renaming it into DMD Burning ROM

DMD now incorporates a disassembler

2022-01-07 Thread Walter Bright via Digitalmars-d-announce
Compile with -vasm to see it! Enjoy! For the file test.d: int demo(int x) { return x * x; } Compiling with: dmd test.d -c -vasm prints: _D4test4demoFiZi: : 89 F8 mov EAX,EDI 0002: 0F AF C0imulEAX,EAX 0005: C3

Re: GDC has just landed v2.098.0-beta.1 into GCC

2021-12-03 Thread Walter Bright via Digitalmars-d-announce
On 11/30/2021 11:37 AM, Iain Buclaw wrote: The latest version of the D language has [now landed](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5) in GCC. Excellent!

Re: DConf Online 2021 Links

2021-11-23 Thread Walter Bright via Digitalmars-d-announce
Mike, the conference went great and very smoothly! You did a great job on all aspects! And thanks to all the presenters for great work, too!

Classes in D with betterC

2021-11-19 Thread Walter Bright via Digitalmars-d-announce
https://lsferreira.net/posts/zet-1-classes-betterc-d/ by Luís Ferreira It's currently on the front page of Hacker News: https://news.ycombinator.com/

Re: Gordon programming language

2021-10-25 Thread Walter Bright via Digitalmars-d-announce
On 10/25/2021 1:38 AM, Tero Hänninen wrote: On Monday, 25 October 2021 at 00:39:07 UTC, Walter Bright wrote: The Emperor would shoot you for interrupting his wedding with this news! Fire when Gordon's in range! Ohh sh*t, I've got to runnn! Thanks for creating D, Walter. I liked the core D

Re: Gordon programming language

2021-10-24 Thread Walter Bright via Digitalmars-d-announce
The Emperor would shoot you for interrupting his wedding with this news! Fire when Gordon's in range!

Re: Beta 2.098.0

2021-10-20 Thread Walter Bright via Digitalmars-d-announce
On 10/19/2021 10:08 PM, max haughton wrote: Why is compiling zlib a goalpost for *Import*C? Dogfooding.

Re: Beta 2.098.0

2021-10-19 Thread Walter Bright via Digitalmars-d-announce
On 10/19/2021 6:35 AM, Timon Gehr wrote: I think @live is a dead end and any further work on it is probably wasted unless the code is reusable for some other feature. Ownership is a property of values, not of functions operating on those values. In particular, prioritizing ImportC over @live

Re: DConf Online 2021 Schedule Published

2021-10-11 Thread Walter Bright via Digitalmars-d-announce
Use #dconf2021 on twitter! https://twitter.com/hashtag/dconf2021

Re: Beta 2.098.0

2021-10-10 Thread Walter Bright via Digitalmars-d-announce
On 10/5/2021 10:36 AM, ag0aep6g wrote: it's also true that Walter prioritizes new features instead (ImportC is the latest fad) ImportC resolves a long standing serious issue where multiple other substantial attempts at solving it have fallen short over the years. Unfortunately, ImportC is

Re: Beta 2.098.0

2021-10-10 Thread Walter Bright via Digitalmars-d-announce
On 10/5/2021 8:57 AM, Steven Schveighoffer wrote: On 10/4/21 6:40 PM, Temtaime wrote: https://issues.dlang.org/show_bug.cgi?id=22115 was created for no reason and fixed same day. Aside from the tasteless (and incorrect) attack here, creating an issue, even for a small change, puts something

Re: GCC 11.2 Released

2021-07-29 Thread Walter Bright via Digitalmars-d-announce
On 7/29/2021 7:51 AM, Iain Buclaw wrote: GCC version 11.2 was released on the 28th. Thank you!

Re: LDC 1.27.0-beta3

2021-07-14 Thread Walter Bright via Digitalmars-d-announce
On 7/14/2021 12:38 PM, kinke wrote: Glad to announce the third beta for LDC 1.27. Some noteworthy changes since beta2: Nice work!

Re: Keep up with ImportC using hashtag #ImportC

2021-06-11 Thread Walter Bright via Digitalmars-d-announce
On 6/10/2021 9:08 AM, Imperatorn wrote: On Tuesday, 8 June 2021 at 06:39:51 UTC, Walter Bright wrote: https://twitter.com/hashtag/ImportC?src=hashtag_click There are a couple ancient tweets there, just ignore them. ImportC will actually be kinda cool Yup, that's why I'm putting the effort into it.

Keep up with ImportC using hashtag #ImportC

2021-06-08 Thread Walter Bright via Digitalmars-d-announce
https://twitter.com/hashtag/ImportC?src=hashtag_click There are a couple ancient tweets there, just ignore them.

Re: Destroy All Memory Corruption

2021-04-24 Thread Walter Bright via Digitalmars-d-announce
On 4/24/2021 2:53 PM, Paul Backus wrote: I assume it's to ensure that objects are destroyed properly when unwinding the stack. Might be possible to avoid in `nothrow` code. Yes, you can avoid this in nothrow code.

Re: Destroy All Memory Corruption

2021-04-23 Thread Walter Bright via Digitalmars-d-announce
On 4/21/2021 6:31 PM, Ali Çehreli wrote: This is happening in half an hour. It requires MS Teams, which requires a MS (or Skype) account. I was a bit concerned about this, so a couple days earlier Lloyd and I worked to get everything configured and working at my end. It worked smoothly, but

Destroy All Memory Corruption

2021-04-19 Thread Walter Bright via Digitalmars-d-announce
I'll be doing a reprise of my DConf 2020 talk on Destroy All Memory Corruption on April 21, 2021 at 7PM PST. https://nwcpp.org/ Except this time it'll be live, not prerecorded. All are welcome!

Re: Beta 2.096.1

2021-04-16 Thread Walter Bright via Digitalmars-d-announce
On 4/14/2021 8:10 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.096.1 point release, ♥ to the 15 contributors. Thank you, Martin!

Re: Dr Callahan ports D compiler to OpenBSD

2021-03-22 Thread Walter Bright via Digitalmars-d-announce
No problem, Brian. I just assumed that since the article used Dr, that you preferred it. It's a good idea to sign up on Reddit and HN, if only to help support your work and articles.

Dr Callahan ports D compiler to OpenBSD

2021-03-21 Thread Walter Bright via Digitalmars-d-announce
https://briancallahan.net/blog/20210320.html https://news.ycombinator.com/item?id=26520996#26531423 https://reddit.com/r/programming/comments/m9xu8s/a_working_d_compiler_on_openbsd/ Thanks to Dr Brian Callahan!

Re: Release D 2.096.0

2021-03-13 Thread Walter Bright via Digitalmars-d-announce
Thank you, Martin!

Re: Windows Bindings v1.0

2021-02-17 Thread Walter Bright via Digitalmars-d-announce
On 2/17/2021 2:09 PM, Dennis wrote: On Wednesday, 17 February 2021 at 20:53:49 UTC, tchaloupka wrote: Thanks for this, looks great. Could the generated code be annotated with nothrow @nogc too? +1 This is actually missing in many core.sys.windows modules. Please file bugzilla issues for

Re: Idioms for the D programming language

2021-02-14 Thread Walter Bright via Digitalmars-d-announce
On 2/13/2021 7:57 AM, James Lu wrote: I once resubmitted with an AMA-style comment, which was the difference between getting 12 points and not getting on the frontpage, and getting on the frontpage with 158 points. Yup. Another critical thing is to make the first post. The first post has a

Re: Idioms for the D programming language

2021-02-12 Thread Walter Bright via Digitalmars-d-announce
On 2/11/2021 5:53 PM, James Lu wrote: On Thursday, 11 February 2021 at 20:12:36 UTC, Walter Bright wrote: Now #5 on the front page of https://news.ycombinator.com/news I've gotten Dlang to the frontpage of HN 3 other times: Specification for the D Programming Language https

Idioms for the D programming language

2021-02-11 Thread Walter Bright via Digitalmars-d-announce
Now #5 on the front page of https://news.ycombinator.com/news The page being discussed: https://p0nce.github.io/d-idioms/ and on reddit: https://www.reddit.com/r/programming/comments/lhssjp/idioms_for_the_d_programming_language/

Re: Article: Why I use the D programming language for scripting

2021-01-31 Thread Walter Bright via Digitalmars-d-announce
On 1/31/2021 12:36 PM, aberba wrote: It's finally out! https://opensource.com/article/21/1/d-scripting Very nice and informative article!

Re: Please Congratulate My New Assistant

2021-01-25 Thread Walter Bright via Digitalmars-d-announce
On 1/24/2021 10:46 PM, Imperatorn wrote: Imo it's reasonable to close or archive issues that are older than 10 years. We are not going to do that just because they are old. If a bug still exists in the current DMD, the bug report stays open.

Re: Please Congratulate My New Assistant

2021-01-24 Thread Walter Bright via Digitalmars-d-announce
On 1/24/2021 5:49 AM, Timon Gehr wrote: There is certainly useful work to be done in the issue tracker. I am here objecting to certain systematic destructive practices that do not even have any upside. I wish this kind of behavior would stop forever. You are not the first person to engage into

Re: Please Congratulate My New Assistant

2021-01-21 Thread Walter Bright via Digitalmars-d-announce
Welcome Max and congratulations!

Re: Say Hello to Our Two New Pull-Request/Issue Managers

2021-01-14 Thread Walter Bright via Digitalmars-d-announce
This is great news! Congrats to Andrew and Razvan. I'm looking forward to working with them.

Re: Printing shortest decimal form of floating point number with Mir

2021-01-10 Thread Walter Bright via Digitalmars-d-announce
On 1/9/2021 11:18 PM, Jacob Carlborg wrote: On 2021-01-06 03:30, Walter Bright wrote: The baseline Linux target does not have SSE. What about this changelog entry: https://dlang.org/changelog/2.087.0.html#xmm-linux-changelog ? Eh, you're right. It's FreeBSD32

Re: Printing shortest decimal form of floating point number with Mir

2021-01-07 Thread Walter Bright via Digitalmars-d-announce
On 1/6/2021 1:31 AM, 9il wrote: > [...] This is the same problem as https://issues.dlang.org/show_bug.cgi?id=21526 It has been provided in the thread https://forum.dlang.org/post/gqzdiicrvtlicurxy...@forum.dlang.org In general, I strongly reiterate that posting bugs to the n.g. means they

Re: Printing shortest decimal form of floating point number with Mir

2021-01-07 Thread Walter Bright via Digitalmars-d-announce
On 1/6/2021 4:26 AM, Jacob Carlborg wrote: On 2021-01-06 03:30, Walter Bright wrote: The baseline Linux target does not have SSE. Other compilers solve this by having a flag to specify the minimum target CPU. DMD has flags for that, too.

Re: Printing shortest decimal form of floating point number with Mir

2021-01-05 Thread Walter Bright via Digitalmars-d-announce
On 1/5/2021 9:57 PM, Timon Gehr wrote: Anyway, I wouldn't necessarily say occasional accidental correctness is the only upside, you also get better performance and simpler code generation on the deprecated x87. I don't see any further upsides though, and for me, it's a terrible trade-off,

Re: Printing shortest decimal form of floating point number with Mir

2021-01-05 Thread Walter Bright via Digitalmars-d-announce
On 1/5/2021 2:42 AM, 9il wrote: On Tuesday, 5 January 2021 at 09:47:41 UTC, Walter Bright wrote: On 1/4/2021 11:22 PM, 9il wrote: I can't reproduce the same DMD output as you. I did it on Windows 32 bit. I tried it on Linux 32, which does indeed show the behavior you mentioned

Re: Printing shortest decimal form of floating point number with Mir

2021-01-05 Thread Walter Bright via Digitalmars-d-announce
On 1/5/2021 5:30 AM, Guillaume Piolat wrote: It would be nice if no excess precision was ever used. It can sometimes gives a false sense of correctness. It has no upside except accidental correctness that can break when compiled for a different platform. That same argument could be use to

Re: Printing shortest decimal form of floating point number with Mir

2021-01-05 Thread Walter Bright via Digitalmars-d-announce
On 1/4/2021 11:22 PM, 9il wrote: I can't reproduce the same DMD output as you. I did it on Windows 32 bit. I tried it on Linux 32, which does indeed show the behavior you mentioned. At the moment I don't know why the different behaviors. https://issues.dlang.org/show_bug.cgi?id=21526 It

Re: Printing shortest decimal form of floating point number with Mir

2021-01-04 Thread Walter Bright via Digitalmars-d-announce
On 1/4/2021 4:11 AM, 9il wrote: [...] The reason those switches are provided is because the write/read is a performance hog. D provides a couple functions in druntime which guarantee rounding intermediate values to float/double precision. Those can be used as required. This is better than a

Re: Printing shortest decimal form of floating point number with Mir

2021-01-03 Thread Walter Bright via Digitalmars-d-announce
On 1/3/2021 8:37 PM, 9il wrote: I didn't believe it when I got a similar answer about IEEE floating-point numbers: D doesn't pertinent to be IEEE 754 compatible language and the extended precision bug is declared to be a language feature. The "extended precision bug" is how all x87 code

Re: Beta 2.095.0

2020-12-24 Thread Walter Bright via Digitalmars-d-announce
On 12/20/2020 5:21 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.095.0 release, ♥ to the 61 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.095.0.html As usual please report any bugs at https://issues.dlang.org -Martin Thank you,

Re: Printing shortest decimal form of floating point number with Mir

2020-12-22 Thread Walter Bright via Digitalmars-d-announce
If you don't want the formatting code to be part of Phobos, I respect your choice.

Re: Printing shortest decimal form of floating point number with Mir

2020-12-22 Thread Walter Bright via Digitalmars-d-announce
On 12/21/2020 8:51 PM, 9il wrote: ... I just have thought maybe I have missed something and DLF helps Mir with advertising at least a bit, maybe at least with two-three tweets per year? The last time @D_Programming tweeted something about Mir was in 2016. I thought anything in D.announce got

Re: Printing shortest decimal form of floating point number with Mir

2020-12-22 Thread Walter Bright via Digitalmars-d-announce
On 12/21/2020 8:33 PM, 9il wrote: These functions in Phobos would make a great advertisement for Mir. How this possible? A lot more people will have Phobos than Phobos+Mir. If they are perusing the source code and see Mir contributed excellent floating point formatting code, they may have

Re: Printing shortest decimal form of floating point number with Mir

2020-12-21 Thread Walter Bright via Digitalmars-d-announce
On 12/20/2020 9:42 PM, 9il wrote: On Sunday, 20 December 2020 at 22:21:56 UTC, Walter Bright wrote: Can the improved parsing be added to D? (It would need to be Boost licensed.) If I am correct there is open PR that set DMD to use C’s primitives for literals parsing. So, for compiler itself we

Re: Printing shortest decimal form of floating point number with Mir

2020-12-20 Thread Walter Bright via Digitalmars-d-announce
On 12/13/2020 10:47 PM, 9il wrote: Note that D's compiler floating-point literals parsing and Phobos floating-point literals parsing are not precise [5,6,7,8]. It is recommended to use Mir's to!double/float/real to convert floating-point numbers from a string. Can the improved parsing be

Re: Mir vs. Numpy: Reworked!

2020-12-03 Thread Walter Bright via Digitalmars-d-announce
On 12/3/2020 8:27 AM, 9il wrote: Since the first announcement [0] the original benchmark [1] has been boosted [2] with Mir-like implementations. This is really great! Can you write an article about it? Such would be really helpful in letting people know about it.

DConf Online 2020 was a big success!

2020-11-22 Thread Walter Bright via Digitalmars-d-announce
I enjoyed #DConfOnline very much, though I miss seeing everyone in person. Thanks go out to all the people who helped out by asking questions that made the chats interesting and informative. Special thanks go out to our speakers who provided the technical presentations: Stefan Koch Steven

Re: DConf Online 2020...

2020-10-03 Thread Walter Bright via Digitalmars-d-announce
What's the hashtag? #dconf2020 ?

Re: DIP 1030-- Named Arguments--Formal Assessment

2020-09-23 Thread Walter Bright via Digitalmars-d-announce
On 9/23/2020 7:01 AM, Arun wrote: How does the compiler handle function lookup when there is an ambiguous match, but the ambiguous function is in a different module? What would be the solution? The same way it handles it without named arguments - an error.

Re: DIP 1030-- Named Arguments--Formal Assessment

2020-09-17 Thread Walter Bright via Digitalmars-d-announce
On 9/17/2020 6:42 AM, Jean-Louis Leroy wrote: That being said, does the new feature imply any change in the *parameters* themselves? No. I.e. are there changes in the way the function is defined, No. not only in the way it is called? It only affects calling syntax in providing an

Re: Beta 2.094.0

2020-09-12 Thread Walter Bright via Digitalmars-d-announce
On 9/12/2020 5:26 PM, Manu wrote: What a monster release! We haven't had one like this for a while! Should be something for everyone in it :-)

Re: Beta 2.094.0

2020-09-12 Thread Walter Bright via Digitalmars-d-announce
On 9/11/2020 12:48 AM, Martin Nowak wrote: As usual please report any bugs at https://issues.dlang.org https://issues.dlang.org/show_bug.cgi?id=21241 (The changelog is basically illegible on Chrome.)

Re: Beta 2.094.0

2020-09-12 Thread Walter Bright via Digitalmars-d-announce
On 9/11/2020 12:48 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.094.0 release, ♥ to the 49 contributors. This is the first release to be built with LDC on all platforms, so we'd welcome some more thorough beta testing. http://dlang.org/download.html#dmd_beta

Re: Beta 2.093.1

2020-08-21 Thread Walter Bright via Digitalmars-d-announce
On 8/11/2020 2:30 AM, Martin Nowak wrote: Glad to announce the first beta for the 2.093.1 point release, ♥ to the 11 contributors. Thank you, Martin and the 11!

Re: Article: The surprising thing you can do in the D programming language

2020-08-21 Thread Walter Bright via Digitalmars-d-announce
On 8/20/2020 3:12 AM, aberba wrote: Wrote something on OpenSource.com https://opensource.com/article/20/8/nesting-d Very nice! Thank you, Lawrence!

Re: Github Actions now support D out of the box!

2020-08-21 Thread Walter Bright via Digitalmars-d-announce
Very nice! Thanks to everyone who helped make this happen.

Re: The ABC's of Templates in D

2020-07-31 Thread Walter Bright via Digitalmars-d-announce
On 7/31/2020 10:57 AM, H. S. Teoh wrote: Not sure how blog-worthy this is, It is. Please do it!

Re: Beerconf July 2020

2020-07-26 Thread Walter Bright via Digitalmars-d-announce
On 7/10/2020 12:56 PM, Steven Schveighoffer wrote: But on July 25-26, we will do another online beerconf like was done in June. This went off very nicely! Thanks to all to participated, and especially to Steven for finding good video conferencing software (much better than Skype is) and

Re: Release D 2.093.0

2020-07-16 Thread Walter Bright via Digitalmars-d-announce
On 7/12/2020 2:04 AM, Martin Nowak wrote: Glad to announce D 2.093.0, ♥ to the 54 contributors. This release comes with a preview for shared variable initialization, template instantiation statistics, better Windows support of the install.sh script, and higher accuracy GC memory options.

<    1   2   3   4   5   6   7   8   9   10   >