Re: What's the best way to find out which exceptions may be thrown ?

2020-05-27 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 May 2020 at 10:30:36 UTC, wjoe wrote: On Wednesday, 27 May 2020 at 10:01:33 UTC, Mike Parker wrote: Could you please elaborate why checked exceptions are more annoying? For me, it's because they require all functions that touch them to either try/catch or include an

Re: What's the best way to find out which exceptions may be thrown ?

2020-05-27 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 May 2020 at 09:56:07 UTC, wjoe wrote: The problem with catch(Exception) is that it's run time whereas I'd like to know compile time which exception may possibly be thrown. So I take it the only way to find out what may be thrown is to read the source code of the called

Re: What's the best way to find out which exceptions may be thrown ?

2020-05-27 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 May 2020 at 09:42:58 UTC, Mike Parker wrote: On Wednesday, 27 May 2020 at 09:40:08 UTC, wjoe wrote: The compiler will complain that bar(int) isn't nothrow. What's the best way to find out which Exceptions aren't handled inside of foo() for foo to be able to be nothrow

Re: What's the best way to find out which exceptions may be thrown ?

2020-05-27 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 May 2020 at 09:40:08 UTC, wjoe wrote: The compiler will complain that bar(int) isn't nothrow. What's the best way to find out which Exceptions aren't handled inside of foo() for foo to be able to be nothrow without using a 'catch (Exception){}' catch-all?

Re: How to target ldc compiler only in dub

2020-05-26 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 27 May 2020 at 01:41:47 UTC, data pulverizer wrote: On Wednesday, 27 May 2020 at 01:06:48 UTC, mw wrote: And you can use option dub -v to verify it's calling the correct compiler cmd. Thanks. Is there anyway to verify that the flags I am passing to the compiler are being

Re: How to get the pointer of "this" ?

2020-05-25 Thread Mike Parker via Digitalmars-d-learn
On Monday, 25 May 2020 at 16:26:31 UTC, Vinod K Chandran wrote: Here is my full code. Please take a look. https://pastebin.com/av3nrvtT The error has nothing to do with taking a pointer to `this`. It's suggesting that somewhere in your code you're attempting to use the `this` reference

Re: How to get the pointer of "this" ?

2020-05-25 Thread Mike Parker via Digitalmars-d-learn
On Monday, 25 May 2020 at 08:39:23 UTC, John Burton wrote: I believe that in D *this* is a reference to the object and not a pointer like in C++. So I think that writing might be what you need? No. A class reference is a pointer under the hood. Getting its address will result in a pointer

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-24 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 24 May 2020 at 06:39:27 UTC, Daniel C wrote: "If you don't use dmd for linking, make sure to add legacy_stdio_definitions.lib to your command line when linking against the VS2015 runtime." Good find. If I was ever aware of that, I had forgotten about it. Anyway, thanks for

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-23 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 24 May 2020 at 04:16:10 UTC, Daniel C wrote: On Saturday, 23 May 2020 at 19:59:51 UTC, Daniel C wrote: I'll be mucking around with it again later. Well, I'm having limited success. I got 32-bit compile/run using basic -m32, and -m64 compiles but crashes lol. Trying out 32-bit

Re: Storing a reference to the calling object

2020-05-23 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 23 May 2020 at 09:27:46 UTC, Tim wrote: Hi all, I'm a little new to D and I'm wondering how I can store a reference to the calling object. I want to create a reference to an object's parent so that each time I go to update the sprite, it is able to grab its position from the

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-22 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 23 May 2020 at 03:29:44 UTC, Daniel C wrote: On Saturday, 23 May 2020 at 03:25:12 UTC, Daniel C wrote: I'm building my app without dub. I've now put all the source files into the same folder as my project and I'm still seeing the same undefined symbol issue. I should say, I put

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-22 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 23 May 2020 at 03:25:12 UTC, Daniel C wrote: On Saturday, 23 May 2020 at 01:23:38 UTC, Mike Parker wrote: What download are you referring to? I don't have any library files in the git repository, and I don't know of any downloads from the duo repository. Huh.. I'm not sure, it

Re: RtlAdjustPrivilege and NtRaiseHardError

2020-05-22 Thread Mike Parker via Digitalmars-d-learn
On Friday, 22 May 2020 at 19:19:19 UTC, Arsium wrote: Just I tried to launch those functions from win32 api and seems doesn't work "doesn't work" isn't very helpful. Are you seeing compiler errors? Linker errors? Runtime errors? Please describe your problem.

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-22 Thread Mike Parker via Digitalmars-d-announce
On Friday, 22 May 2020 at 22:20:55 UTC, Daniel C wrote: There is a library file included in the dub repository download: https://code.dlang.org/packages/bindbc-sdl What download are you referring to? I don't have any library files in the git repository, and I don't know of any downloads

Re: DIP1028 - Rationale for accepting as is

2020-05-22 Thread Mike Parker via Digitalmars-d-announce
On Friday, 22 May 2020 at 12:47:04 UTC, matheus wrote: As an end user, I'd like to know if this language will be guided by community or one person, because it seems the "democracy" is very shallow right now. And again why waste time with this process plus 2 rounds of discussion? I mean

DIP 1028--Make @safe the Default--Formal Assessment

2020-05-21 Thread Mike Parker via Digitalmars-d-announce
DIP 1028, "Make @safe the Default", has been accepted without comment. https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1028.md

Re: How to use this forum ?

2020-05-20 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 20 May 2020 at 21:06:35 UTC, welkam wrote: On Wednesday, 20 May 2020 at 20:49:52 This is not a forum but a frontend to a mailing list. Both the forums and the mailing lists are interfaces to newsgroups at news.digitalmars.com.

Re: Why emsi containers have @disabled this(this) ?

2020-05-19 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 19 May 2020 at 20:51:01 UTC, Luis wrote: So, I'm writing my own implementation of sparse sets, and I take as reference emsi_containers for allocator usage. I saw that they have disabled postblit operator... But i don't understand exactly why. In special, when they implement

Re: any chance to get it working on windows xp?

2020-05-17 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 17 May 2020 at 22:30:22 UTC, a beginner wrote: I have searched online for some info, indeed I found something, but not being familiar with the tools it hasn't been terribly useful. Only it confirms that windows support is somewhat disappointing in general, xp or not. I've been

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-17 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 16 May 2020 at 09:00:25 UTC, Andre Pany wrote: A little bit off topic. I wondered whether it is possible to combine dpp and bindbc. Maybe a separate Tool which creates a bindbc packages based on dpp output or even integrates into dpp? Did you already considered s.th. like that?

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-17 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 14 May 2020 at 09:55:15 UTC, Claude wrote: As a user of BindBC (and former Derelict), I really enjoy using those binding libraries. It's some great work, thanks. Thanks!

Re: On the D Blog: Lomuto's Comeback

2020-05-14 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:40:24 UTC, Andrei Alexandrescu wrote: On 5/14/20 9:26 AM, Mike Parker wrote: The right way to share something on hackernews is to send people to https://news.ycombinator.com/newest and mention the time of sharing. Okay everyone, please use this link or search

On the D Blog: Lomuto's Comeback

2020-05-14 Thread Mike Parker via Digitalmars-d-announce
After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his results. Blog: https://dlang.org/blog/2020/05/14/lomutos-comeback/

Re: BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-13 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 13 May 2020 at 14:39:13 UTC, Mike Parker wrote: It's up to the caller to ensure the path is valid. For example, if the executable is run from a different directory, then "libs" will not be relative to the current working directory. `SDL_GetBasePath` can help there:

BindBC Updates: new loader function, SDL_net, streamlined SDL_* version indentifiers

2020-05-13 Thread Mike Parker via Digitalmars-d-announce
I've recently implemented some improvements centered on bindbc-sdl. == New Loader Function I've added a function to bindbc-loader (on Windows only) to allow adding a single path to the default DLL search path. This is to solve the problem that some of the SDL satellite libraries would fail

DIP 1030--Named Arguments--Final Review Begins

2020-05-11 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1030, "Named Arguments", has begun. The purpose of the Final Review is a 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

Re: XMM Intrinsics

2020-05-08 Thread Mike Parker via Digitalmars-d-learn
On Friday, 8 May 2020 at 20:14:05 UTC, Simen Kjærås wrote: The intel-intrinsics dub package aims to provide a compiler-independent layer: https://code.dlang.org/packages/intel-intrinsics TIL, thanks! :) -- Simen DConf 2019: Not intrinsically about intrinsics -- Guillaume Piolat

Discussion Thread: DIP 1034--Add a Bottom Type (reboot)--Community Review Round 1 Begins

2020-05-06 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1034, "Add a Bottom Type (reboot)", is now underway. Please discuss the DIP (its merits, its implementation, peripheral topics, etc.) in the Discussion Thread and save all review feedback (critiques on the content of the DIP: what to change, how to

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 11:55:54 UTC, Sam E. wrote: I cannot find a D example using Win32 and the normal main function, and while it is working for simple message boxes, as soon as I want to do something slightly more complex (using a window), an hInstance has to be provided (as far

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 11:55:54 UTC, Sam E. wrote: On Wednesday, 29 April 2020 at 10:46:30 UTC, Mike Parker wrote: On Wednesday, 29 April 2020 at 10:44:48 UTC, Mike Parker wrote: Yeah, it says "WinMain is needed", which has never been true. THere's no need for the def file either.

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 10:44:48 UTC, Mike Parker wrote: On Wednesday, 29 April 2020 at 10:26:40 UTC, Sam E. wrote: I took the WinMain from https://wiki.dlang.org/D_for_Win32, should that documentation be updated to use a normal main function instead? Also the details regarding

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 10:27:35 UTC, Sam E. wrote: To be honest, I haven't yet found the way to switch between -m32 and -m64 (or other) via dub :) Pass the -a flag on the dub command line with the appropriate argument: For -m32: -ax86 For -m32mscoff: -ax86_mscoff For -m64:

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 10:26:40 UTC, Sam E. wrote: I took the WinMain from https://wiki.dlang.org/D_for_Win32, should that documentation be updated to use a normal main function instead? Also the details regarding linker flags may be a good addition to that wiki page. Yeah, it

Re: Building Win32 application via dub

2020-04-29 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 April 2020 at 09:43:53 UTC, Sam E. wrote: Though the program built with dub is now crashing at runtime when calling `writeln` within the `WinMain` block. The exception error is: Exception has occurred: W32/0xc096 Unhandled exception at 0x7FF643C5AFE4 in

Re: Interfacing D with C: Arrays and Functions (Arrays Part 2)

2020-04-28 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 28 April 2020 at 15:26:49 UTC, David Gileadi wrote: Another great article! Nit: in the following paragraph, did you really mean to say *are*? But again, even D’s safety features are 100% foolproof when calling C functions from D. Thanks and thanks!

Interfacing D with C: Arrays and Functions (Arrays Part 2)

2020-04-28 Thread Mike Parker via Digitalmars-d-announce
I've finally gotten around to publishing the next article in my D and C series on the D blog. This is the second post about arrays, focusing on properly declaring in D functions from C that accept array parameters. The blog:

Re: DConf 2017 Videos

2020-04-24 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 25 April 2020 at 04:11:02 UTC, Ali Çehreli wrote: On 4/24/20 2:11 PM, Steven Schveighoffer wrote:> On 4/24/20 4:24 PM, matheus wrote: > whomever controlled the sociomantic youtube account took down > all the videos. I think it's unintentional because the same thing happened to

Re: DConf 2017 Videos

2020-04-24 Thread Mike Parker via Digitalmars-d-learn
On Friday, 24 April 2020 at 21:25:11 UTC, matheus wrote: On Friday, 24 April 2020 at 21:11:48 UTC, Steven Schveighoffer wrote: ... and whomever controlled the sociomantic youtube account took down all the videos... First of all thanks for replying and... Ouch! After that I hope D Foundation

Discussion Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Community Review Round 1 Begins

2020-04-22 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review of DIP 1033, "Implicit Conversion of Expressions to Delegates", has begun. Feedback Thread: https://forum.dlang.org/post/nxahrsukobybkezib...@forum.dlang.org Discussion Thread: https://forum.dlang.org/post/ecxdylguqkhtmdoml...@forum.dlang.org

Re: bindbc-sdl Updates

2020-04-18 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 18 April 2020 at 15:31:02 UTC, aberba wrote: There's this level of convenience that is triggered when you see a sample demo. It seems some library authors don't get it. loadSDL(); That's it. It's in the readme.

DIP 1029--Add throw as Function Attribute--Final Review Begins

2020-04-17 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1029, "Add throw as Function Attribute", has begun. Please use the Feedback thread for all feedback targeted specifically at the contents of the DIP: https://forum.dlang.org/post/qhtqeavhyzjfamhgc...@forum.dlang.org All posts in that thread must adhere to the rules

Re: bindbc-sdl Updates

2020-04-16 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 16 April 2020 at 18:55:21 UTC, Luis wrote: On Wednesday, 15 April 2020 at 22:19:06 UTC, Mike Parker wrote: On Wednesday, 15 April 2020 at 21:54:16 UTC, Luis wrote: There isn't a "hello world" example with bindbc-sdl ? Would very usefull Everything you need to know that's

Re: bindbc-sdl Updates

2020-04-15 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 15 April 2020 at 21:54:16 UTC, Luis wrote: There isn't a "hello world" example with bindbc-sdl ? Would very usefull Everything you need to know that's specfic to the binding is in the readme.

Re: Github vs Bugzilla for submitting a PR/issue.

2020-04-13 Thread Mike Parker via Digitalmars-d-learn
On Monday, 13 April 2020 at 21:32:43 UTC, Adnan wrote: On Monday, 13 April 2020 at 21:31:49 UTC, Adnan wrote: I'm a bit confused about D's development process. I've seen people discussing DIPs in Github. I've also seen people discuss internal issues in bugzilla. How do these to correlate?

Re: DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Mike Parker via Digitalmars-d-announce
On Monday, 13 April 2020 at 13:06:30 UTC, Mike Parker wrote: Vladimir has contributed to the blog an article on the evolution of DustMite, looking at some of the challenges he had to overcome along the way. The blog:

DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Mike Parker via Digitalmars-d-announce
Vladimir has contributed to the blog an article on the evolution of DustMite, looking at some of the challenges he had to overcome along the way. The blog: https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/ Reddit:

Re: bindbc-sdl Updates

2020-04-10 Thread Mike Parker via Digitalmars-d-announce
On Friday, 10 April 2020 at 14:53:25 UTC, aberba wrote: On Wednesday, 8 April 2020 at 06:32:39 UTC, Mike Parker wrote: I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following: [...] Mike have you considered a

bindbc-sdl Updates

2020-04-08 Thread Mike Parker via Digitalmars-d-announce
I've updated the BindBC bindings (to the Simple Direct Media Layer (SDL) library and its satellite libraries to support the following: SDL 2.0.12 SDL_image 2.0.5 SDL_mixer 2.0.4 This is available in bindbc-sdl 0.16.0: http://bindbc-sdl.dub.pm/ A few notes: The SDL maintainers have moved to

DIP 1032--Function pointers and Delegate Parameters...--Community Review Round 1 Begins

2020-04-03 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review of DIP 1032, "Function pointers and Delegate Parameters Inherit Attributes from Function", has begun. Feedback Thread: https://forum.dlang.org/post/tkosvxedhztfjxsxt...@forum.dlang.org Discussion Thread:

Re: Allocating an empty non null associative arary

2020-03-30 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 02:51:11 UTC, Superstar64 wrote: I want to be modify an associative array by reference from another function. However null associative arrays are pass by value. How do I generically create an empty associative array? --- import std.stdio; void addElement(int[int]

Discussion Thread: DIP 1028--Make @safe the Default--Final Review Begins

2020-03-25 Thread Mike Parker via Digitalmars-d-announce
The Final Review for DIP 1028, "Make @safe the Default", has begun. Please use the Feedback thread for all feedback targeted specifically at the contents of the DIP: https://forum.dlang.org/post/wkdpnzarkbtqryigh...@forum.dlang.org All posts in that thread must adhere to the rules summarized

Re: return val if

2020-03-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 22 March 2020 at 19:04:40 UTC, Mike Parker wrote: ``` T returnValIfFail(T)(bool expr, T val) { if(expr) return val; else assert(0); } ``` Heh, of course, as Dennis pointed out, that's essentialy assert(expr). ``` assert(expr); x = val; ```

Re: return val if

2020-03-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 22 March 2020 at 18:48:32 UTC, Abby wrote: Is there a way to create a template that would do the same is glib g_return_val_if_fail() (https://developer.gnome.org/glib/stable/glib-Warnings-and-Assertions.html#g-return-val-if-fail) I was hoping something like this would work

DIP 1031--Deprecate Brace-Style Struct Initializers--Withdrawn

2020-03-22 Thread Mike Parker via Digitalmars-d-announce
Walter has decided to withdraw DIP 1031, "Deprecate Brace-Style Struct Initializers", from the review process. Anyone who chooses to do so may take over the DIP at any time. Anyone who decides to take over an Abandoned or Withdrawn DIP should contact me to determine how to proceed.

Re: Why are class variables public, when marked by the 'private' keyword?

2020-03-20 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 21 March 2020 at 04:45:29 UTC, Kirill wrote: I was playing around with visibility attributes in D. I created a class with private variables. Then I tried to access those variables through the class object. It compiled without any errors. However, ... Shouldn't the compiler

Re: Release D 2.091.0

2020-03-17 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 10 March 2020 at 13:24:41 UTC, Martin Nowak wrote: Glad to announce D 2.091.0, ♥ to the 55 contributors. This release comes with 64-bit Windows binaries, improvements on C++ integrations, a @safe std.bigint, and various bugfixes. http://dlang.org/download.html

Re: Tracing D Applications

2020-03-17 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 17 March 2020 at 16:13:24 UTC, Steven Schveighoffer wrote: On 3/13/20 3:00 PM, Mike Parker wrote: This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. Blog: https://dlang.org/blog/2020/03/13/tracing-d-applications/ Reddit:

Re: Release D 2.091.0

2020-03-17 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 17 March 2020 at 10:29:45 UTC, Anonymouse wrote: Looking forward to it, but curiously still no updates to the Arch Linux package repositories... https://www.archlinux.org/packages/community/x86_64/dmd/ Please contact the folks who maintain it.

Re: DConf 2020 Canceled

2020-03-16 Thread Mike Parker via Digitalmars-d-announce
On Monday, 16 March 2020 at 19:36:20 UTC, Walter Bright wrote: On 3/16/2020 9:15 AM, bachmeier wrote: "Have an online conference" isn't especially helpful. There haven't been any detailed proposals, and Walter hasn't said anything one way or the other about doing something online. Oh, I'm

Re: Best way to learn 2d games with D?

2020-03-16 Thread Mike Parker via Digitalmars-d-learn
On Monday, 16 March 2020 at 16:19:26 UTC, Arine wrote: There's no need for someone learning 2D games to even bother with SDL2 to begin with. If you use SDL2 you are going to be using something no one else uses, you'll be wasting your by using something that isn't that good and what you learn

Re: Best way to learn 2d games with D?

2020-03-16 Thread Mike Parker via Digitalmars-d-learn
On Monday, 16 March 2020 at 05:45:52 UTC, bauss wrote: Please don't recommend Derelict to anyone :-) bindbc-sdl is what folks should be using now. I'm not maintaining Derelict anymore. Haven't even heard of that! Does it work in similar fashion? Yes. The loader is @nog and betterC

Re: Best way to learn 2d games with D?

2020-03-15 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 15 March 2020 at 21:33:29 UTC, Arine wrote: I wouldn't use SDL2 for rendering. It is really just there for legacy. The only thing people use SDL2 is for setting up a window and creating a render context for OpenGL/Vulkan/Directx, along with handling input/events. There's no

Re: Best way to learn 2d games with D?

2020-03-15 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 15 March 2020 at 18:14:44 UTC, bauss wrote: I would recommend using Derelict and SDL with D since it's the most mature. Please don't recommend Derelict to anyone :-) bindbc-sdl is what folks should be using now. I'm not maintaining Derelict anymore.

Re: exporting function from betterc to windows dll

2020-03-14 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 14 March 2020 at 20:53:45 UTC, Abby wrote: I would like to export some functions from my bettec dll for dotnet core application in windows. Right now I have compiled dll using dmd v2.091.0-dirty simply by ´dub build´ this is the function I have extern(C) char*

Tracing D Applications

2020-03-13 Thread Mike Parker via Digitalmars-d-announce
This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. Blog: https://dlang.org/blog/2020/03/13/tracing-d-applications/ Reddit: https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/

Re: Is it possible to dynamically load a @safe function from a shared library ?

2020-03-13 Thread Mike Parker via Digitalmars-d-learn
On Friday, 13 March 2020 at 16:11:53 UTC, wjoe wrote: On Friday, 13 March 2020 at 16:04:06 UTC, Mike Parker wrote: On Friday, 13 March 2020 at 15:16:06 UTC, wjoe wrote: bindSymbol(, "VersionOfAPI"); } Is it possible to convince the compiler to look the other way while binding @safe

Re: Is it possible to dynamically load a @safe function from a shared library ?

2020-03-13 Thread Mike Parker via Digitalmars-d-learn
On Friday, 13 March 2020 at 15:16:06 UTC, wjoe wrote: bindSymbol(, "VersionOfAPI"); } Is it possible to convince the compiler to look the other way while binding @safe functions from the plugin ? It probably has nothing to do with @safe, but is because of the void**.

DConf 2020 Canceled

2020-03-07 Thread Mike Parker via Digitalmars-d-announce
I really wish I didn't have to make this announcement, but in light of the COVID-19 outbreak and with an abundance of caution, the D Language Foundation and Symmetry Investments have agreed to cancel DConf 2020. Though it's possible that things will have cleared up by June, we can't be sure

Re: DConf Invited Keynote Speaker, Formal Call for Submissions & Early-bird Registration

2020-03-04 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 3 March 2020 at 19:34:45 UTC, Dibyendu Majumdar wrote: Hi, I checked my emails again and spam folder as well - I did not receive an acknowledgment. Anyway, if you have received then its fine. It’s possible I didn’t see it. I replied to someone over the weekend. It was a

Re: DConf Invited Keynote Speaker, Formal Call for Submissions & Early-bird Registration

2020-03-02 Thread Mike Parker via Digitalmars-d-announce
On Monday, 2 March 2020 at 20:29:15 UTC, Dibyendu Majumdar wrote: On Thursday, 6 February 2020 at 14:19:13 UTC, Mike Parker wrote: I've just published the blog post that serves as the public launch (outside of this community) of early-bird registration and the call for submissions. I'm also

Re: GSOC 2020 projects

2020-02-24 Thread Mike Parker via Digitalmars-d-announce
On Monday, 24 February 2020 at 18:00:15 UTC, rikki cattermole wrote: Limited spots, somebody had to go. That’s the only reason they ever give for rejection AFAIK.

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-24 Thread Mike Parker via Digitalmars-d-announce
On Monday, 24 February 2020 at 08:43:57 UTC, Robert M. Münch wrote: Out of curiosity, how and who makes such a decision? Is there a voting? Is there a committee? Is there a structured pro/con overview and highlight of blocking-points that need to be resolved? The DIP review process is

DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Mike Parker via Digitalmars-d-announce
DIP 1027, "String Interpolation", has been rejected. The decision was primarily influenced by the lack of consensus over the implementation and the syntax demonstrated in the two review threads. As the DIP author, Walter also rejected the suggestion to go with an implementation that resolves

D Blog News Roundup

2020-02-17 Thread Mike Parker via Digitalmars-d-announce
There's new swag in the DLang Swag Emporium, work continues on porting DRuntime to WebAssembly and bringing D to iOS, and we need help preparing for a potentially upcoming documentation event. The blog: https://dlang.org/blog/2020/02/17/news-update-swag-platforms-documentation-help-and-more/

DIP 1031--Deprecate Brace-Style Struct Initializers--Community Review Round 1 Begins

2020-02-12 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1031, "Deprecate Brace-Style Struct Initializers", has begun. Please use the Feedback thread for all feedback targeted specifically at the contents of the DIP: https://forum.dlang.org/post/iywiuqqmevdghgbyr...@forum.dlang.org All posts in that

Re: total newbie + IDE

2020-02-09 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 9 February 2020 at 22:10:57 UTC, solnce wrote: Personally I feel this is more about lack of the vision, as Alexandrescu once said. Now it feels like D is mostly the compiler, but I think, that having one big mega project (like IDE+RAD) could give a new breath and significance to D

Re: DConf Invited Keynote Speaker, Formal Call for Submissions & Early-bird Registration

2020-02-08 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 6 February 2020 at 16:54:50 UTC, Les De Ridder wrote: On Thursday, 6 February 2020 at 14:19:13 UTC, Mike Parker wrote: Typo: On behalf of the D Language Foundation and Symmetry Investments, I want to thank everyone who participated in SAOC __2020__. Thanks!

DConf Invited Keynote Speaker, Formal Call for Submissions & Early-bird Registration

2020-02-06 Thread Mike Parker via Digitalmars-d-announce
I've just published the blog post that serves as the public launch (outside of this community) of early-bird registration and the call for submissions. I'm also very happy that I was able to include the announcement that our invited keynote speaker has been confirmed! Blog:

DIP 1030--Named Arguments--Community Review Round 1 Begins

2020-02-05 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1030, "Named Arguments", has begun. Please use the Feedback thread for all feedback targeted specifically at the contents of the DIP: https://forum.dlang.org/post/bizqhxszbobynrims...@forum.dlang.org All posts in that thread must adhere to the rules

Re: DConf 2020 Early-Bird Registration & Submission Deadlines

2020-02-05 Thread Mike Parker via Digitalmars-d-announce
On Monday, 27 January 2020 at 12:00:32 UTC, Mike Parker wrote: I'll open registration through PayPal once the official announcement goes out on the blog and social media. Both registration options will be available at dconf.org. The PayPal links are live:

Re: readline / Gnu readline

2020-01-30 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 30 January 2020 at 06:27:36 UTC, Michael wrote: On Thursday, 30 January 2020 at 06:15:54 UTC, Mike Parker wrote: Is your source file named rl.d? And are you running dmd in the source file's directory? No, I did not. Changed it now and it works with dmd. Great! Tried the same

Re: readline / Gnu readline

2020-01-29 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 30 January 2020 at 06:12:32 UTC, Michael wrote: When 'dmd rl -L-lreadline' in the command line. I do get the following error: Error: module rl is in file 'rl.d' which cannot be read. So probably I'm missing something unfortunately I don't know what. Is your source file named

Re: How change window Backgound Color when press a Button when using "ResEdit Resource Editor" to design?

2020-01-29 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 30 January 2020 at 04:31:46 UTC, Marcone wrote: I am very noob. Can you send me the code? You've been asking a lot of questions about the Win32 API. This is a D programming forum, not a Win32 API forum. I'm sure people are generally happy to help point you in the right

wc in D: 712 Characters Without a Single Branch

2020-01-28 Thread Mike Parker via Digitalmars-d-announce
Robert Schadek was inspired by a post he saw on Hacker News a while back showing an implementation of wc in Haskell totaling 80 lines. He decided he could do better in D. So he did. This post on the D blog shows what he came up with and also provides a brief introduction to ranges. The

Re: D For Data Science: Calling R from D

2020-01-27 Thread Mike Parker via Digitalmars-d-announce
On Monday, 27 January 2020 at 14:20:20 UTC, Adam D. Ruppe wrote: On Monday, 27 January 2020 at 14:16:47 UTC, Mike Parker wrote: https://dlang.org/blog/2020/01/27/d-for-data-science-calling-r-from-d/ "D [...] interoperability with C (in many cases as simple as adding an #include directive to

Re: DConf 2020 Early-Bird Registration & Submission Deadlines

2020-01-27 Thread Mike Parker via Digitalmars-d-announce
On Monday, 27 January 2020 at 13:30:20 UTC, Rory McGuire wrote: There is a typo at: *while enhanching the D ecosystem * R Thanks, Rory!

D For Data Science: Calling R from D

2020-01-27 Thread Mike Parker via Digitalmars-d-announce
You've seen Lance Bachmeier posting in the forums under the bachmeier handle. He's put together a post for the D Blog showing how to integrate R into a D program. The Blog: https://dlang.org/blog/2020/01/27/d-for-data-science-calling-r-from-d/ Reddit:

DConf 2020 Early-Bird Registration & Submission Deadlines

2020-01-27 Thread Mike Parker via Digitalmars-d-announce
I'm currently planning to officially launch early-bird registration for DConf 2020 in early February, hopefully in tandem with news that we have confirmed our invited keynote speaker. Consider this announcement a "soft launch". Those of you eager to get your registrations squared away can do

DIP Reviews: Discussion vs. Feedback

2020-01-26 Thread Mike Parker via Digitalmars-d-announce
I'm making a change to the way we solicit feedback during DIP review rounds. The goal is to separate explicit feedback from discussion. Discussion is vital to the process, but it also makes it difficult to find the actionable feedback buried in the 20+ pages that some DIP reviews generate

Re: weekly news?

2020-01-23 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote: Or delete all that wordpress junk and make something in D :P I intend to delete all that Wordpress junk and go completely static eventually.

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 23 January 2020 at 06:27:31 UTC, Mike Parker wrote: Apparently so. Firefox shows me a 404 for the URL with the parameter ?relatedposts=1. Must be something in the Wordpress settings triggering the fetch. Maybe with Jetpack. I wonder why Chrome doesn't show it. I'll look into

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 23 January 2020 at 06:23:14 UTC, Mike Parker wrote: I'm not getting any 404s in the network tab in Chrome's dev tools. Even on a reload. Most everything is 200, with a handful of 204s. A couple are 302 or 304, and there's one 101. Am I missing something? Apparently so.

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 23 January 2020 at 00:58:10 UTC, Adam D. Ruppe wrote: On Thursday, 23 January 2020 at 00:52:10 UTC, Mike Parker wrote: Got any examples? No one has reported this to me before and I haven’t encountered a 404 in a while. Almost all of them! Hit F12 to open browser tools and notice

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 23:08:09 UTC, Russel Winder wrote: On Wed, 2020-01-22 at 22:48 +, Mike Parker via Digitalmars-d-learn wrote: […] To D Blog has an RSS feed: http://dlang.org/blog/index.php/feed/ […] This URL doesn't seem to work for me. It redirects to: https

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 23:23:41 UTC, Adam D. Ruppe wrote: Several pages on the official blog give code 404 even though they work. Your RSS reader probably just isn't checking the code, but the browser is. These should all be fixed on the server... could be hurting seo too. Got

Re: weekly news?

2020-01-22 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 18:53:49 UTC, mark wrote: Is there a "D weekly news" I could do an email subscription to? Or at least a way to get notified by email when a new item appears on https://dlang.org/blog/ ? This Week in D linked above is great for a weekly summary. To D Blog has

Re: Some comments on learning D using the tour

2020-01-15 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 15 January 2020 at 20:06:01 UTC, mark wrote: However, what I really miss is a contents page so that I can look at each topic and jump back when I want to recap something. Please submit an enhancement request: https://github.com/dlang-tour/core/issues For example, I haven't

DIP 1029---Add throw as Function Attribute---Community Review Round 1 Begins

2020-01-14 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1029, "Add throw as Function Attribute", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/sbdrybtyfkxfhxxjg...@forum.dlang.org *Please leave all feedback in the review thread rather than here!*

Re: books for learning D

2020-01-13 Thread Mike Parker via Digitalmars-d-learn
On Monday, 13 January 2020 at 11:58:51 UTC, mark wrote: Both those books are published by Packt who normally have no quality control at all as I've discovered to my cost. However It's hit and miss in my experience. I've picked up some utter crap from them, but I've also found some real

Re: DConf 2020: Double Decker Edition

2020-01-10 Thread Mike Parker via Digitalmars-d-announce
On Friday, 10 January 2020 at 21:58:27 UTC, Murilo wrote: On Saturday, 4 January 2020 at 12:23:40 UTC, Mike Parker wrote: The announcement is on the blog and dconf.org is up to date. Read all about it! https://dlang.org/blog/2020/01/04/dconf-2020-double-decker-edition/

<    4   5   6   7   8   9   10   11   12   13   >