Re: Binary Literals Not Going Anywhere

2022-09-26 Thread Mike Parker via Digitalmars-d-announce
On Monday, 26 September 2022 at 06:19:05 UTC, Max Samukha wrote: Please do not take the backlash against the removal of binary literals as general aversion to breaking changes/deprecations. D has plenty to remove/deprecate I'm sure Walter didn't take it that way.

Binary Literals Not Going Anywhere

2022-09-25 Thread Mike Parker via Digitalmars-d-announce
You may have seen [the long discussion about the deprecation of binary literals(https://forum.dlang.org/thread/vphguaninxedxopjk...@forum.dlang.org). A few hours ago, Walter and I recorded a second conversation for our YouTube channel. Before we got started, I asked him about the binary

Re: DIP 1043---Shortened Method Syntax---Accepted

2022-09-21 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 21 September 2022 at 13:56:35 UTC, Meta wrote: On Wednesday, 21 September 2022 at 10:40:42 UTC, Mike Parker wrote: On Wednesday, 21 September 2022 at 10:39:27 UTC, Mike Parker wrote: DIP 1043, "Shortened Method Syntax", has been accepted.

Reminder: DConf Online '22 Submission Deadline (and website now live)

2022-09-21 Thread Mike Parker via Digitalmars-d-announce
As I announced previously, the deadline for DConf Online '22 submissions is October 9. If you'd like to submit a talk, please visit https://dconf.org/2022/online/ for the details!

Re: DIP 1043---Shortened Method Syntax---Accepted

2022-09-21 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 21 September 2022 at 10:39:27 UTC, Mike Parker wrote: DIP 1043, "Shortened Method Syntax", has been accepted. https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1043.md

DIP 1043---Shortened Method Syntax---Accepted

2022-09-21 Thread Mike Parker via Digitalmars-d-announce
DIP 1043, "Shortened Method Syntax", has been accepted. The fact that the feature was already implemented behind a preview switch carried weight with Atila. He noted that, if not for that, he wasn't sure where he would stand on adding the feature, but he could see no reason to reject it now.

Re: Inochi2D - Realtime 2D Animation written in D

2022-09-12 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 11 September 2022 at 23:00:24 UTC, Luna wrote: Hey folks, I have for the (almost) past 2 years been working on a real-time 2D animation library called [Inochi2D](https://github.com/Inochi2D/inochi2d) and tooling for it. Recently I went full time on the project due to generous

Re: Why I get delegate when passing address of function?

2022-09-11 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 11 September 2022 at 09:15:11 UTC, Mike Parker wrote: Pointers to non-static member functions always produce a delegate. Otherwise, you wouldn't be able to access the class instance's members. Reference: https://dlang.org/spec/function.html#closures

Re: Why I get delegate when passing address of function?

2022-09-11 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 11 September 2022 at 09:02:31 UTC, Injeckt wrote: I have a one class and two modificators, where in "public" function I'm calling CreateThread with address of the ClientThread function which stored in same class, but in "private" modificator. And i get this error: Error: cannot

Re: How I can pass the WndProc as a parameter?

2022-09-10 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 10 September 2022 at 10:39:12 UTC, Injeckt wrote: To elaborate on why you need the above... But I get these bugs: WndProc is a function, and you can't pass a function as a runtime function parameter, only pointers to functions. The first two errors tell you exactly what the

Re: How I can pass the WndProc as a parameter?

2022-09-10 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 10 September 2022 at 10:39:12 UTC, Injeckt wrote: And after all, I call it: KK_CreateWindowClass(WndProc); `KK_CreateWindowClass();`

Re: Walter's Edited DConf Talk Video -- Feedback Request

2022-09-08 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 8 September 2022 at 15:02:47 UTC, Steven Schveighoffer wrote: I've seen other conference streams where the image of the speaker is very narrow, and therefore they can consume most of the screen with the slides. I think that's ideal. Picture-in-picture has been requested many

Re: Walter's Edited DConf Talk Video -- Feedback Request

2022-09-08 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 8 September 2022 at 14:57:48 UTC, matheus. wrote: On Thursday, 8 September 2022 at 10:40:41 UTC, Mike Parker wrote: Are you still talking about the edited version? ... I didn't like the random switching in the livestream (which is what the recorded version is), which is why I

Re: Walter's Edited DConf Talk Video -- Feedback Request

2022-09-08 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 8 September 2022 at 10:19:00 UTC, matheus. wrote: I usually watch videos at work (During interval) using my personal phone/internet, and watching as (https://imgur.com/1LeGPRd) two small texts of the same thing with visual impairment is tough. The edited version is still too

Re: Walter's Edited DConf Talk Video -- Feedback Request

2022-09-07 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 7 September 2022 at 14:25:44 UTC, Steven Schveighoffer wrote: Mike you added all the highlights?! You went above and beyond there! Yes, I did. Thanks! I did the same thing for the DConf Online videos last year. Makes it easier to follow. Looks good to me! If I were to

Re: Walter's Edited DConf Talk Video -- Feedback Request

2022-09-07 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 7 September 2022 at 14:36:33 UTC, Dennis wrote: On Wednesday, 7 September 2022 at 12:42:35 UTC, Mike Parker wrote: https://youtu.be/iuP-AWUyjp8 I suggest boosting the audio as much as you can before it starts clipping. It's currently a bit low. Ugh. It sounds fine to me. It

Re: How include header file?

2022-09-07 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 7 September 2022 at 20:23:03 UTC, Injeckt wrote: Convert it to D: extern(C) const(char)* inet_ntop(int af, const(void)* src, char* dst, socklen_t size); Win32 API functions need to be `extern(Windows)`. You probably also need: alias socklen_t = ...;

Walter's Edited DConf Talk Video -- Feedback Request

2022-09-07 Thread Mike Parker via Digitalmars-d-announce
I've settled on a format for the edited talks that I think works. To be clear, I'm not chopping these up as I do the DConf Online talks to remove the pauses, uhs, ahs, etc. I'm letting the whole thing go from beginning to end just as if it were live. What's different from the livestream

Re: How to link a msvcr120.dll in an inverse recursive way after a Windows .exe binary deployment

2022-09-05 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 6 September 2022 at 04:36:55 UTC, ShadoLight wrote: True. In that case just distribute the DLL (taken from the DMD bin folder) alongside the HelloWorld EXE so that both reside in the same folder on the target computer. The proper way to do this is to ship the correct version of

Re: D Language Foundation August 2022 Monthly Meeting Summary

2022-09-05 Thread Mike Parker via Digitalmars-d-announce
On Monday, 5 September 2022 at 13:53:42 UTC, ryuukk_ wrote: On Monday, 5 September 2022 at 11:39:44 UTC, Mike Parker wrote: I mentioned to Max that I had spoken to Eyal Lotem of Weka about the move constructor DIP (DIP 1040, "Copying, Moving, and Forwarding", You linked the wrong DIP, your

D Language Foundation August 2022 Monthly Meeting Summary

2022-09-05 Thread Mike Parker via Digitalmars-d-announce
Under normal circumstances, I would have scheduled our August meeting on Friday, August 5th, but as most of us were in London for DConf, August 4th, the day of the Hackathon, was a perfect day for it. So in the afternoon, those of us physically present gathered in the space behind the DConf

Re: DConf '22 Slide Links and Update on Videos

2022-09-02 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 18 August 2022 at 15:26:20 UTC, Mike Parker wrote: I was hoping to start editing those in the next couple of days, but there may be a bit of delay. As of today, I finally have access to the raw footage from the main camera and I've downloaded all of it. I'm a bit busy with life

SAOC 2022 Projects

2022-08-29 Thread Mike Parker via Digitalmars-d-announce
The first milestone for this year's Symmetry Autumn of Code kicks off on September 15. We have three participants this year: ### Teodor Dutu Teo is a repeat offender. In SAOC 2021, he was one of two participants to be awarded the final payment and the trip to DConf '22 (the other being Luís

D Language Foundation July 2022 Quarterly Meeting Summary

2022-08-28 Thread Mike Parker via Digitalmars-d-announce
This summary is quite a bit overdue. Sorry for the delay. The July 8 D Language Foundation meeting was one of our quarterly meetings. In the first part of these meetings, representatives from industry join us to provide us with updates, notify us of issues they're experiencing, and provide us

DConf Online 2022 -- Call For Sumbissions

2022-08-21 Thread Mike Parker via Digitalmars-d-announce
As we were wrapping up DConf '22 in London, I informally announced that DConf Online is taking place in December. Consider this post a semi-formal announcement :-) DConf Online is scheduled for December 17 and 18. I'll have the web page up by the end of this month. For now, I'd like to ask

DIP 1043--Shortened Method Syntax--Formal Assessment Begins

2022-08-21 Thread Mike Parker via Digitalmars-d-announce
I've submitted DIP 1043, "Shortened Method Syntax", to Walter & Atila for their assessment. Normally, they have 30 days to render a verdict, but since I've gotten it to them so long after the end of the Final Review, I've asked them to expedite the decision.

Re: This code completely breaks the compiler:

2022-08-18 Thread Mike Parker via Digitalmars-d-learn
On Friday, 19 August 2022 at 04:25:25 UTC, Ruby The Roobster wrote: So that's why it compiled. Still, I believe that stuff like this ought to be detected at compile time, as supposed to in a unittest or, if someone forgot to write the tests, in production. If the template is never

DConf '22 Slide Links and Update on Videos

2022-08-18 Thread Mike Parker via Digitalmars-d-announce
Now that I'm home on my dev machine, I've resolved the issue preventing the slide links from showing on the DConf page. All the links for the slides we have are now available when you click on a talk's "Show Details". https://dconf.org/2022/index.html#schedule I'm still waiting on the slides

SAOC 2022 Application Deadline Approaching

2022-08-18 Thread Mike Parker via Digitalmars-d-announce
The deadline for Symmetry Autumn of Code 2022 applications is on August 21. If you want to gain some valuable programming experience (as several former participants told me they did) and earn some cash in the process, then get your application to me! All the details are here:

Back to work...

2022-08-17 Thread Mike Parker via Digitalmars-d-announce
I'm back home from my trip for DConf + vacation. DConf was a blast. It was great to hang out in person again with faces familiar and new. I'm already looking forward to meeting up with everyone again next year. The vacation bit was a lot of fun, too. Because I've done very little work over

Re: DConf '22 Livestream Links

2022-08-04 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 3 August 2022 at 09:29:58 UTC, Mike Parker wrote: On Monday, 1 August 2022 at 19:16:42 UTC, jmh530 wrote: On Monday, 25 July 2022 at 13:52:51 UTC, Mike Parker wrote: For those of you who can't join us in person at DConf '22 in London next week, you can join us instead via each

Re: DConf '22 Livestream Links

2022-08-04 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 3 August 2022 at 15:52:31 UTC, matheus wrote: Nice to hear this. By the way I guess you will upload all talks individually later, so when you do *please* get rid of the split screen, i.e.: https://i.imgur.com/1LeGPRd.png https://i.imgur.com/hN6YmG8.png It may seem that's

Re: DConf '22 Livestream Links

2022-08-03 Thread Mike Parker via Digitalmars-d-announce
On Monday, 1 August 2022 at 19:16:42 UTC, jmh530 wrote: On Monday, 25 July 2022 at 13:52:51 UTC, Mike Parker wrote: For those of you who can't join us in person at DConf '22 in London next week, you can join us instead via each day's livestream link: [...] I'm only seeing Walter's slides

Re: DConf '22 Livestream Links

2022-08-03 Thread Mike Parker via Digitalmars-d-announce
On Monday, 1 August 2022 at 21:37:38 UTC, matheus wrote: On Monday, 1 August 2022 at 20:08:52 UTC, Bastiaan Veelo wrote: The first part is missing due to a late click on the “go live” button. I assume the footage is still recorded, and will be part of the edited video. — Bastiaan.

DConf '22 Livestream Links

2022-07-25 Thread Mike Parker via Digitalmars-d-announce
For those of you who can't join us in person at DConf '22 in London next week, you can join us instead via each day's livestream link: * Day 1: https://youtu.be/V6KFtzF2Hx8 * Day 2: https://youtu.be/04gJXpJ1i8M * Day 3: https://youtu.be/ksNGwLTe0Ps Thanks to Symmetry Investments for making

Re: From the D Blog -- Interfacing D with C: Strings Part One

2022-07-25 Thread Mike Parker via Digitalmars-d-announce
On Monday, 25 July 2022 at 02:59:41 UTC, electricface wrote: https://forum.dlang.org/post/gsztclsvxdhnvfhbi...@forum.dlang.org Looking forward to part 2 and part 3 Me, too! I'm hoping to make time for this and a couple of other series that are long overdue for updates before the end of

Re: char* pointers between C and D

2022-07-25 Thread Mike Parker via Digitalmars-d-learn
On Monday, 25 July 2022 at 09:04:29 UTC, pascal111 wrote: I have small C program that uses a pointer to change the start address of a string, and when I tried to do the same code but with D, the D code printed the address of the string after I increased it one step instead of printing the

DConf '22 Guest Keynote Details

2022-07-14 Thread Mike Parker via Digitalmars-d-announce
I've just published the title and abstract of Roberto Ierusalimschy's Day 2 keynote at: https://dconf.org/2022/index.html#day2 **Lua and Pallene** Lua is a scripting language widely used in several fields, with strong niches in games and embedded systems. Pallene is a companion language for

Re: D Community Conversations: Walter Bright on the Origins of D Part 1

2022-07-11 Thread Mike Parker via Digitalmars-d-announce
On Monday, 11 July 2022 at 13:09:37 UTC, matheus wrote: On Sunday, 10 July 2022 at 16:17:11 UTC, Mike Parker wrote: ... Very nice interview, and if you don't mind can I give you a suggestion? I'd like to suggest that you don't make these "micro-cuts" through the interview/discussion, let

Re: D Community Conversations: Walter Bright on the Origins of D Part 1

2022-07-10 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 10 July 2022 at 18:26:13 UTC, bachmeier wrote: On Sunday, 10 July 2022 at 16:17:11 UTC, Mike Parker wrote: [...] This is really good. Thanks! Have you considered uploading the audio to Spotify or somewhere as a podcast? No idea what that would involve, but for a lot of us

D Community Conversations: Walter Bright on the Origins of D Part 1

2022-07-10 Thread Mike Parker via Digitalmars-d-announce
I mentioned a little while back that I planned to start a D Community Conversations series on the Foundation's YouTube channel. In this series, I'll chat in depth with various people from the D community about their their projects, their programming backgrounds, their influences, how they got

Re: The D Programming Language Vision Document

2022-07-04 Thread Mike Parker via Digitalmars-d-announce
On Monday, 4 July 2022 at 07:28:23 UTC, StarCanopy wrote: On Sunday, 3 July 2022 at 08:46:31 UTC, Mike Parker wrote: [...] Given the desire to reduce GC usage in PhobosV2, would it be fair to say this implies changing error handling schemes found therein, i.e. avoiding exceptions as they are

Re: The D Programming Language Vision Document

2022-07-04 Thread Mike Parker via Digitalmars-d-announce
On Monday, 4 July 2022 at 05:30:10 UTC, Andrej Mitrovic wrote: On Sunday, 3 July 2022 at 08:46:31 UTC, Mike Parker wrote: You can find the final draft of the high-level goals for the D programming language at the following link: https://github.com/dlang/vision-document Under 'Memory

Re: The D Programming Language Vision Document

2022-07-03 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 3 July 2022 at 11:13:42 UTC, Ola Fosheim Grøstad wrote: On Sunday, 3 July 2022 at 08:46:31 UTC, Mike Parker wrote: Feedback is welcome. Thank you for putting this in clear terms. I miss an overarching «primary use scenarios» to guide further language evolution. How do you know if

The D Programming Language Vision Document

2022-07-03 Thread Mike Parker via Digitalmars-d-announce
You can find the final draft of the high-level goals for the D programming language at the following link: https://github.com/dlang/vision-document I'll fill out the remaining sections as time allows over the coming weeks. Once it's complete, I'll make sure it's linked in the Community

Re: dlang bug - accessing module variable from method segfaults only when using module reference directly

2022-07-01 Thread Mike Parker via Digitalmars-d-learn
On Friday, 1 July 2022 at 13:44:20 UTC, Chris Katko wrote: It appears module access to a class is broken until the constructor finishes. No, it has nothing to do with the module. It's the reference itself. Until the constructor returns, the reference through which you're constructing the

Re: dlang bug - accessing module variable from method segfaults only when using module reference directly

2022-07-01 Thread Mike Parker via Digitalmars-d-learn
On Friday, 1 July 2022 at 13:20:15 UTC, Mike Parker wrote: r. And that also looks like the source of your original segfault. You've got a circular reference going on in the constructors. In other words, you're constructing a global world instance, which in turn constructs an elf instance,

Re: dlang bug - accessing module variable from method segfaults only when using module reference directly

2022-07-01 Thread Mike Parker via Digitalmars-d-learn
On Friday, 1 July 2022 at 13:01:30 UTC, Chris Katko wrote: Forgot the last line. That's important because world MUST exist by time elf is called... because world... created and called elf. So it's not a memory issue, but some sort of linkage issue. world is null because the constructor

Symmetry Autumn of Code 2022

2022-06-29 Thread Mike Parker via Digitalmars-d-announce
I recently received confirmation from Symmetry that SAOC 2022 is a go! SOAC is open to anyone over 18 who is interested in helping to strengthen the D ecosystem. Preference is given to undergraduate and postgraduate students, but anyone is welcome to apply. Participants are paid a small

Re: D Language Foundation June 2022 Monthly Meeting Summary

2022-06-27 Thread Mike Parker via Digitalmars-d-announce
On Friday, 24 June 2022 at 14:27:17 UTC, Mike Parker wrote: I'm sure someone will ask when it will be published. I'm still holding to my promise that we'll get it done before DConf. My original plan was to wait until the entire document was finalized, but I now intend to publish the

Re: D Language Foundation June 2022 Monthly Meeting Summary

2022-06-24 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 25 June 2022 at 01:39:25 UTC, Paul Backus wrote: Just want to say, thanks for writing up these summaries every month. I'm sure it's not the most exciting work, but the transparency is very much appreciated. Thanks! I don't enjoy writing them, but I am glad someone suggested

Re: D Language Foundation June 2022 Monthly Meeting Summary

2022-06-24 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 25 June 2022 at 01:36:12 UTC, Adam D Ruppe wrote: On Saturday, 25 June 2022 at 01:11:26 UTC, Mike Parker wrote: we took a vote on it and rejected it Who are "we"? Where's the roll call? The list of attendees and a summary of the meeting are here:

Re: D Language Foundation June 2022 Monthly Meeting Summary

2022-06-24 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 25 June 2022 at 00:40:44 UTC, Adam Ruppe wrote: I wrote up a thing in my blog about what I'd like to see from dips and the steering of the language and there might be some overlap with your vision document concepts: http://dpldocs.info/this-week-in-d/Blog.Posted_2022_06_20.html

D Language Foundation June 2022 Monthly Meeting Summary

2022-06-24 Thread Mike Parker via Digitalmars-d-announce
The monthly meeting for June 2022 took place on June 10. The following Foundation staff and D contributors attended: * Walter Bright * Iain Buclaw * Ali Çehreli * Martin Kinkelin * Dennis Korpel * Mathias Lang * Átila Neves * Razvan Nitu * Mike Parker * Robert Schadek The purpose of this

Re: Static Initialization of Structs syntax

2022-06-22 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 22 June 2022 at 11:19:59 UTC, Antonio wrote: I see now: DIP 1033 will solve this (i.e., using named arguments in struct constructor... similar to how dart/flutter works) That would be DIP 1030: https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md Max

DIP1000: Memory Safety in a Modern System Programming Language Pt.1

2022-06-21 Thread Mike Parker via Digitalmars-d-announce
Ate Eskola was inspired to write a series of tutorials about DIP1000 for the D Blog. The first post in the series is live. If you haven't yet dug into DIP1000 much or understood how to use it, this should give you enough to get started. The blog:

DIP 1043--Shortened Method Syntax--Final Review Begins

2022-06-15 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1043, "Shortened Method Syntax", has begun. The Final Review is the last check to make sure everything is in good shape. Generally, we aren't looking for major revisions to the DIP unless someone notices something critical. This is a chance for any revisions made in

Re: Convering strings containing number

2022-06-14 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 15 June 2022 at 04:26:44 UTC, Salih Dincer wrote: Hi, I've been interested in conversion possibilities for a while. I tried to convert a string containing numbers but with no success in single digits. The only solution I found is to subtract 48 from the result: ```d import

Re: ImportC: unresolved external symbol

2022-06-14 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 14 June 2022 at 14:32:50 UTC, ryuukk_ wrote: ``` nk.obj : error LNK2019: unresolved external symbol test referenced in function _Dmain ``` Am i missing something important? (that is a dub project, created with: dub init) DMD: v2.100.0-dirty This works from the command line:

Re: Can I create a package with friendly modules

2022-06-12 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 12 June 2022 at 23:29:29 UTC, forkit wrote: I don't get it. How does this enable one module to access the private parts of another module? It doesn't. But what you were describing in your post is package-level access. By keeping it the cross-module access in a subpackage,

Re: Can I create a package with friendly modules

2022-06-11 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 12 June 2022 at 05:05:46 UTC, forkit wrote: Is it possible to create a package.d, consisting of (for example), two modules, where each module can access private declarations within each other. In essence, declaring 'a module level friendship', or a kind of 'extended module' if you

DConf '22 BeerConf Details (a big thanks to Funkwerk!)

2022-06-11 Thread Mike Parker via Digitalmars-d-announce
I can finally announce that we've secured a space for the DConf '22 BeerConf! If you've registered (or plan to register) for DConf '22, join us from 6:30 to 11:00 on the evenings of August 1-3 at The Fox Pub in Shoreditch. We've secured the roof terrace for our exclusive use. We'll have a

Re: Why allow initializers of non-static members that allocate?

2022-06-11 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 11 June 2022 at 10:37:30 UTC, Bastiaan Veelo wrote: So that’s why I used “why” in the title of this thread, which I haven’t seen an answer to yet. What is the practical case where that warning would be annoying? When would you actually want this behaviour? After actually

Re: Why allow initializers of non-static members that allocate?

2022-06-10 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 11 June 2022 at 01:14:06 UTC, matheus wrote: So, in the case of "int[] arr = new int[](5)", an array of length 5 of type int will be instantiated and its address will be shared among whoever instantiates "S" and be pointed and accessed through arr. In the second case, "int[2]

Re: Why allow initializers of non-static members that allocate?

2022-06-10 Thread Mike Parker via Digitalmars-d-learn
On Friday, 10 June 2022 at 14:56:24 UTC, Steven Schveighoffer wrote: Discovered circa 2009: https://issues.dlang.org/show_bug.cgi?id=2947 It should be illegal to declare a field this way that has mutable references without being `shared`. End of story. -Steve The docs do say that: The

Re: Why allow initializers of non-static members that allocate?

2022-06-10 Thread Mike Parker via Digitalmars-d-learn
On Friday, 10 June 2022 at 07:46:36 UTC, Mike Parker wrote: I think this is a case where having a warning that's on by default, and which can be explicitly disabled, is useful. "Blah blah .init blah blah. See link-to-something-in-docs. Is this what you intended?" And it *is* documented:

Re: Why allow initializers of non-static members that allocate?

2022-06-10 Thread Mike Parker via Digitalmars-d-learn
On Friday, 10 June 2022 at 07:35:17 UTC, Bastiaan Veelo wrote: Is there a use case where this makes sense? I would have much appreciated the compiler slapping me on the fingers, but it doesn't. I understand that it is safe and that the compiler can allow this, but why would anyone want that?

Re: C-like static array size inference - how?

2022-06-07 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 8 June 2022 at 00:43:24 UTC, Ali Çehreli wrote: Do I remember correctly that there were syntax proposals that used $ or _? int[$] arr = [ 1, 2 ]; int[_] arr = [ 1, 2 ]; But I can't find past discussions about that.

D Language Foundation May 2022 Monthly Meeting Summary

2022-06-06 Thread Mike Parker via Digitalmars-d-announce
The monthly meeting for May 2022, took place on May 6th at 14:00 UTC. The meeting lasted a little under an hour. The following people attended: * Walter Bright * Iain Buclaw * Ali Çehreli * Max Haughton * Martin Kinkelin * Mathias Lang * Razvan Nitu * Mike Parker ## Iain Iain gave us an

Re: dlang compilers & licenses.

2022-06-04 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 4 June 2022 at 14:13:08 UTC, Alain De Vos wrote: Do DMD , GDC , LDC have the same or different licenses in use ? DMD https://github.com/dlang/dmd/blob/master/LICENSE.txt LDC https://github.com/ldc-developers/ldc/blob/master/LICENSE GDC

Re: Dynamic Arrays Capacity

2022-06-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 2 June 2022 at 08:24:51 UTC, Mike Parker wrote: And so, `[0]` is the same as `&(*ts.ptr + 0)`, or simply `ts.ptr`. That should be the same as `&(*(ts.ptr + 0))`!

Re: Dynamic Arrays Capacity

2022-06-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 2 June 2022 at 08:14:40 UTC, Mike Parker wrote: More specifically, it points to the starting address of the allocated block of memory. I posted too soon. Given an instance `ts` of type `T[]`, array accesses essentially are this: ```d ts[0] == *(ts.ptr + 0); ts[1] == *(ts.ptr +

Re: Dynamic Arrays Capacity

2022-06-02 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 2 June 2022 at 05:04:03 UTC, Salih Dincer wrote: Hi, Do I misunderstand? A dynamic array is allocated memory according to the `nextpow2()` algorithm(-1 lapse); strings, on the other hand, don't behave like this... ```d string str = "0123456789ABCDEF"; char[] chr = str.dup;

Re: D News April-May - DConf '22 BeerConf Has a Sponsor!

2022-05-30 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 29 May 2022 at 12:41:18 UTC, Mike Parker wrote: I'll have the text version of it up on the blog in a day or so. The blog version is here: https://dlang.org/blog/2022/05/30/d-news-may-22-d-2-100-0-gdc-dconf-22-schedule-published-early-bird-registration-ends/ I've shared it to

Re: D News April-May - DConf '22 BeerConf Has a Sponsor!

2022-05-29 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 29 May 2022 at 19:44:47 UTC, Iain Buclaw wrote: On Sunday, 29 May 2022 at 12:41:18 UTC, Mike Parker wrote: GDC 12.1 (the first GDC release with the D version of the D backend), That should also be frontend, not backend. :-) At least I got it right in the video.

Re: D News April-May - DConf '22 BeerConf Has a Sponsor!

2022-05-29 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 29 May 2022 at 12:41:18 UTC, Mike Parker wrote: hire out space for BeerConf every evening August 1-4. Sorry, that should be August 1-3.

D News April-May - DConf '22 BeerConf Has a Sponsor!

2022-05-29 Thread Mike Parker via Digitalmars-d-announce
If you've been following the Announce forum, then you already know about most of the news in my latest D News video covering April and May: the releases of D 2.100.0, LDC 1.30.0-beta1, and GDC 12.1 (the first GDC release with the D version of the D backend), the publication of the DConf '22

Re: Q & A with Razvan Nitu and Dennis Korpel

2022-05-27 Thread Mike Parker via Digitalmars-d-announce
On Friday, 27 May 2022 at 13:04:08 UTC, Johan wrote: I think it is great to invite two people as you did, instead of interviewing just one person. But it'd be more interesting to watch if you make it a real conversation between 3 people, instead of just question-answer. Thanks! I plan

Re: Q & A with Razvan Nitu and Dennis Korpel

2022-05-25 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 25 May 2022 at 15:56:41 UTC, matheus wrote: There is no subtitle available (Auto-translate), is this because some configuration on the video or is this just a youtube problem? YouTube's subtitle screen says it can take a while for the automatic subtitles to be generated.

Re: Q & A with Razvan Nitu and Dennis Korpel

2022-05-25 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 25 May 2022 at 15:17:05 UTC, Tejas wrote: Very nice!!! Thank! Even though vision documents aren't(again) a thing yet, I feel this is a good enough substitute atleast for the short/medium term, since atleast the present will be communicated precisely to us, if not the

Q & A with Razvan Nitu and Dennis Korpel

2022-05-25 Thread Mike Parker via Digitalmars-d-announce
I've started a new series on our YouTube channel that I'm calling 'D Community Q & A Sessions'. These are short sessions focused on specific topics. For the inaugural episode, Razvan and Dennis joined me to talk about their roles as the foundation's Pull Request and Issue managers. I did go

DConf '22 Schedule

2022-05-24 Thread Mike Parker via Digitalmars-d-announce
The DConf '22 schedule is live here: https://dconf.org/2022/index.html#schedule We've got several first-time DConf speakers this year, all part of what looks to be a great lineup! Thanks to everyone who submitted a talk. Early-bird registration (15% discount) ends on May 31, so don't

Re: Odd construct idea. Splitting arguments inside a parameter list.

2022-05-23 Thread Mike Parker via Digitalmars-d-learn
On Monday, 23 May 2022 at 08:34:21 UTC, Chris Katko wrote: D I'm curious if you can pass a struct of values (a 'tuple'?) with the right subfields, as if those fields occupied a function signature. (As I write this and try to explain it, it probably sounds impossible.) Right now you

Re: template? mixin? template mixins? for modifying a struct setup

2022-05-20 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 May 2022 at 14:54:31 UTC, Christopher Katko wrote: So wait, that means if I have a module with extra stuff like D colors.d auto red = // grey and then in my other file D auto white = grey(1.0); It won't use CTFE? Why is there a local module requirement? I'm

Re: UI Library

2022-05-20 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 May 2022 at 07:05:21 UTC, Tejas wrote: Maybe gtkd? https://code.dlang.org/packages/gtk-d And some corresponding tutorials: https://gtkdcoding.com/

Re: template? mixin? template mixins? for modifying a struct setup

2022-05-19 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 May 2022 at 00:12:44 UTC, Chris Katko wrote: Yeah that occurred to me as I was falling asleep. Though, do I have to a specify ```D static auto myColor = grey(0.5); ``` to ensure it's done at compile time? It's not the end of the world, but ideally, these are static / hardcoded

Re: Question on shapes

2022-05-17 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 17 May 2022 at 05:08:30 UTC, matheus wrote: In D there would be a better way to do such thing? Nothing really specific to D, but for one or two properties, you might just add them as function parameters with default values: ```d void draw(float scale = 1.0f); ``` If you have

Re: Why are structs and classes so different?

2022-05-15 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 15 May 2022 at 20:05:05 UTC, Kevin Bailey wrote: One question is, how should we pass objects - by value or by reference? In C++, you can do either, of course, but you take your chances if you pass by value - both in safety AND PERFORMANCE. The bottom line is that no one passes by

Re: Why are structs and classes so different?

2022-05-15 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 15 May 2022 at 15:26:40 UTC, Kevin Bailey wrote: I'm trying to understand why it is this way. I assume that there's some benefit for designing it this way. I'm hoping that it's not simply accidental, historical or easier for the compiler writer. There's a problem that arises with

DConf '22 Submission Deadline Imminent

2022-05-14 Thread Mike Parker via Digitalmars-d-announce
The deadline is *tomorrow*, Sunday May 15th AOE. All the details are here: https://dconf.org/2022/index.html#schedule I look forward to seeing what the procrastinators among us will send in.

Re: IntelliJ D Language support

2022-05-12 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 12 May 2022 at 21:16:20 UTC, Sergey wrote: Why is it on HN? I don't know. I didn't post it. Any updates or improvements in IntelliJ support? I'm not involved in the project, but it looks active: https://github.com/intellij-dlanguage/intellij-dlanguage The site looks

Re: IntelliJ D Language support

2022-05-12 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 12 May 2022 at 21:16:20 UTC, Sergey wrote: Why is it on HN? The HN user who posted it also recently shared dlang.org there, so it looks like there's no real reason other than "look at this": https://news.ycombinator.com/submitted?id=gjvc

Re: IntelliJ D Language support

2022-05-12 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 12 May 2022 at 06:42:39 UTC, Tejas wrote: Sharing the link explicitly isn't counted as traffic by the website(meaning it won't help the post remain popular on HN), so Walter shares the link to the frontpage of hackernews to still get the extra traffic counted. It's not about

Re: Parameters of overloaded templated function

2022-05-10 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 10 May 2022 at 12:12:13 UTC, Tejas wrote: Using aliases as parameters doesn't work(and the DIP that wanted to have this behaviour was de facto rejected) https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1023.md No, it wasn't rejected. The author decided it needed

Re: How to convert a LPCWSTR aka const(wchar)* to string

2022-05-09 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 10 May 2022 at 00:50:09 UTC, Vinod K Chandran wrote: I want to convert this `pszUserString` to a string. How to do it. Thanks in advance. ```d import std.conv : to; string s = to!string(pszUserString); ```

Re: DConf '22 Submission Deadline Coming Soon

2022-05-08 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 8 May 2022 at 09:25:08 UTC, Mike Parker wrote: The deadline for DConf '22 submissions is next Sunday, May 15th. If you've got an idea for a talk, send it in! All the details are here: https://dconf.org/2022/index.html#schedule

DConf '22 Submission Deadline Coming Soon

2022-05-08 Thread Mike Parker via Digitalmars-d-announce
The deadline for DConf '22 submissions is next Sunday, May 15th. If you've got an idea for a talk, send it in!

D Language Foundation April Quarterly Meeting and Server Meeting Summaries

2022-05-04 Thread Mike Parker via Digitalmars-d-announce
## Quarterly Meeting Summary The quarterly meeting for April, 2022, took place on April 8 at 14:00 UTC. Quarterly meetings include representatives from companies using D in production. __D Language Foundation__ * Iain Buclaw (GDC) * Ali Çehreli * Max Haughton * Martin Kinkelin (LDC) * Dennis

Re: How to use destroy and free.

2022-05-04 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 4 May 2022 at 05:37:49 UTC, forkit wrote: That's not at all what I said. You don't have to care about *when* memory is deallocated, meaning you don't have to manage it yourself. In any case, I disagree that caring about when memory gets deallocted means you shouldn't be using

Re: How to use destroy and free.

2022-05-03 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 4 May 2022 at 04:52:05 UTC, forkit wrote: It is certainly *not* about you not having to care anymore (about memory management). That's not at all what I said. You don't have to care about *when* memory is deallocated, meaning you don't have to manage it yourself.

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