Re: Preparing for the New DIP Process

2024-01-28 Thread John Thomas via Digitalmars-d-announce
On Sunday, 28 January 2024 at 04:47:30 UTC, FairEnough wrote: module test; @safe: import std; class C { private(this) int x; // intent: other code in this module cannnot mutate this. private(this) int y; // intent: other code in this module cannnot

Re: Preparing for the New DIP Process

2024-01-27 Thread John Thomas via Digitalmars-d-announce
On Saturday, 27 January 2024 at 19:58:55 UTC, Jordan Wilson wrote: On Saturday, 27 January 2024 at 10:42:26 UTC, FairEnough wrote: On Saturday, 27 January 2024 at 08:00:32 UTC, Jordan Wilson I believe we are now in the "there is nothing more to be said" territory (just for the record, I think

Re: Preparing for the New DIP Process

2024-01-27 Thread John Thomas via Digitalmars-d-announce
On Friday, 26 January 2024 at 23:41:51 UTC, FairEnough wrote: On Thursday, 25 January 2024 at 00:19:54 UTC, Jordan Wilson wrote: ... That wasn't what was said. What was said was "causing US problems". I.e. on the whole, the lack of class-level privacy does not appear to be causing widespread

Re: Problem with gfm.math.matrix (some gamedevs out there ?)

2020-09-03 Thread Thomas via Digitalmars-d-learn
On Thursday, 3 September 2020 at 13:31:01 UTC, Mike Parker wrote: On Thursday, 3 September 2020 at 12:36:35 UTC, Thomas wrote: My example code: - import std.stdio; int main() { import gfm.math.matrix; const int width = 800; const int height = 600; auto

Problem with gfm.math.matrix (some gamedevs out there ?)

2020-09-03 Thread Thomas via Digitalmars-d-learn
Hi! I am following some examples in C++ about how OpenGL is working. There are great tutorials out there and most of it works also with D. For my code I am using gfm.math.matrix (Version 8.0.3) to be able to calculate the mouse position in a 3d world. Now I have some problems with the

Re: Just another question about memory management in d from a newbie

2019-06-17 Thread Thomas via Digitalmars-d-learn
On Monday, 17 June 2019 at 20:26:28 UTC, H. S. Teoh wrote: On Mon, Jun 17, 2019 at 07:53:52PM +, Thomas via Digitalmars-d-learn wrote: [...] [...] If x were a heap-allocated object, then your concerns would be true: it would be allocated once every iteration (and also add to the garbage

Re: Just another question about memory management in d from a newbie

2019-06-17 Thread Thomas via Digitalmars-d-learn
First, thank you for your fast reply! On Monday, 17 June 2019 at 20:00:34 UTC, Adam D. Ruppe wrote: No, the compiler will generate code to reuse the same thing each loop. Does this code also work on complex types like structs ?

Just another question about memory management in d from a newbie

2019-06-17 Thread Thomas via Digitalmars-d-learn
Hello! First my background: C++ and Java ages ago. Since then only PLSQL. Now learning D just for fun and personal education on time to time and very pleased about it :-) Now I have to ask a question here, because I could not find a corresponding answer for it. Or I am unable to find it :-)

Re: Windows Service

2018-11-14 Thread Thomas via Digitalmars-d-learn
On Thursday, 15 November 2018 at 04:45:26 UTC, Soulsbane wrote: On Wednesday, 14 November 2018 at 19:38:08 UTC, Thomas wrote: Hi, I want to run a D program as a Windows service. After googl'in, I only found a very old project on github: https://github.com/tylerjensen/WindowsServiceInD

Windows Service

2018-11-14 Thread Thomas via Digitalmars-d-learn
Hi, I want to run a D program as a Windows service. After googl'in, I only found a very old project on github: https://github.com/tylerjensen/WindowsServiceInD Unfortunately, I wasn't able to compile it successfully. Does anybody know of newer approaches or even a template to start from?

How to catch line number of exception without catching it ?

2017-12-13 Thread Thomas via Digitalmars-d-learn
Hi forks! I wanted to ask if there is a way to catch the line position on an exception without setting a try + catch block ? What I want is something like this: module main; import std.stdio; import std.conv; void foo() { scope(failure) { writeln("Got a

Re: Problem getting Cimgui to work

2017-12-07 Thread Thomas via Digitalmars-d-learn
So the steps should be: checkout imgui 1.50 checkout cimgui 1.50 Build both Put them on your system library path Then you should be set to use DerelictIMGUI without the need to modify its package recipe. Thank you for your very very good description what was going on and how everything

Re: Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
Hi folks! I got it to work, but honestly I don't know why.. :-) 1. clone project imgui_d_test with git 2. subloading the base cimgui stuff by command: git submodule update --init --recursive 3. enter cimgui directory and enter make 4. after that dub doesn't work properly, you have to edit

Re: Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 19:37:54 UTC, Thomas wrote: On Wednesday, 6 December 2017 at 19:12:43 UTC, drug wrote: I've check it before posting using old version dmd 2.073 and it works. What dmd version you compile with? Hi. The newest as I know. Version 2.077.0 (64bit Version) But

Re: Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 19:12:43 UTC, drug wrote: I've check it before posting using old version dmd 2.073 and it works. What dmd version you compile with? Hi. The newest as I know. Version 2.077.0 (64bit Version) But the error messages in my last post don't seem to relate to my

Re: Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 18:27:20 UTC, drug wrote: probably this can help you https://github.com/drug007/timespatial this project uses cimgui by means of derelict-imgui Hi, thank you. I tried it and first it seemed to work, but after I entered "dub build config=demo" following error

Re: Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
Could you describe what dub package you tried to build first of all? It helps to reproduce your case. Hello. In my personal project folder I only have: derelict-sdl2 version="~>3.1.0-alpha.2" derelict-imgui version="~>0.9.4" Then I realized that I needed the shared library file cimgui.so

Problem getting Cimgui to work

2017-12-06 Thread Thomas via Digitalmars-d-learn
Hi guys! I need some help or advice about Cimgui (a C-API for Imgui) because I have no idea how to get it working. First, I'm new to D (only a few weeks) and still learning. I have a small C++/C# background, but wanted to try something new. So D got into my focus. I am working on Manjaro

Re: Graillon 1.0, VST effect fully made with D

2015-12-17 Thread Thomas via Digitalmars-d-announce
On Thursday, 26 November 2015 at 15:48:48 UTC, Guillaume Piolat wrote: OT: Readers of this NG probably know me under the name "ponce", however over the year I was made aware that it's an english swear word so I'll post under my IRL name from now on. [...] Hi, Is there a tutorial on how to

Re: Performance

2014-06-02 Thread Thomas via Digitalmars-d
On Sunday, 1 June 2014 at 03:33:36 UTC, Marco Leise wrote: Am Sat, 31 May 2014 17:44:23 + schrieb Thomas t.leich...@arcor.de: Thank you for the help. Which OS is running on your notebook ? For I compiled your source code with your settings with the GCC compiler. The run took 3.1

Re: Performance

2014-05-31 Thread Thomas via Digitalmars-d
On Saturday, 31 May 2014 at 05:12:54 UTC, Marco Leise wrote: Run this with: -O3 -frelease -fno-assert -fno-bounds-check -march=native This way GCC and LLVM will recognize that you alternately add p0 and p1 to the sum and partially unroll the loop, thereby removing the condition. It takes

Performance

2014-05-30 Thread Thomas via Digitalmars-d
I made the following performance test, which adds 10^9 Double’s on Linux with the latest dmd compiler in the Eclipse IDE and with the Gdc-Compiler also on Linux. Then the same test was done with C++ on Linux and with Scala in the Java ecosystem on Linux. All the testing was done on the same