www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - On the D Blog: A Gas Dynamics Toolkit in D

reply Mike Parker <aldacron gmail.com> writes:
The University of Queensland's Centre for Hypersonics has [a gas 
dynamics toolkit](https://gdtk.uqcloud.net/) that, since 1994, 
has evolved from C, to C++, and now to D. Peter Jacobs, Rowan 
Gallon, and Kyle Damm wrote a little about it for the D Blog.

The blog:
https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


Reddit:
https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
Feb 02 2022
next sibling parent reply Paulo Pinto <pjmlp progtools.org> writes:
On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
And HN, https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/
Feb 02 2022
parent Paulo Pinto <pjmlp progtools.org> writes:
On Wednesday, 2 February 2022 at 12:53:50 UTC, Paulo Pinto wrote:
 On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker 
 wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
And HN, https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/
Sorry, copy-paste gone wrong, right URL. https://news.ycombinator.com/item?id=30176778
Feb 02 2022
prev sibling next sibling parent reply Abdulhaq <alynch4047 gmail.com> writes:
On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
I thought this was a great example of a sweet spot for D. I had similar work in mind way back when, and started writing a Qt and VTK (data visualisation) wrapper to work towards this. I'm wondering what they used for the visualisation in the blog post.
Feb 02 2022
next sibling parent Sergey <kornburn yandex.ru> writes:
On Wednesday, 2 February 2022 at 14:35:42 UTC, Abdulhaq wrote:
 On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker 
 wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
I thought this was a great example of a sweet spot for D. I had similar work in mind way back when, and started writing a Qt and VTK (data visualisation) wrapper to work towards this. I'm wondering what they used for the visualisation in the blog post.
Screen looks like made with Paraview for visualisation.
Feb 02 2022
prev sibling parent reply Kyle <kyle.damm uqconnect.edu.au> writes:
On Wednesday, 2 February 2022 at 14:35:42 UTC, Abdulhaq wrote:
 On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker 
 wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
I thought this was a great example of a sweet spot for D. I had similar work in mind way back when, and started writing a Qt and VTK (data visualisation) wrapper to work towards this. I'm wondering what they used for the visualisation in the blog post.
To confirm, I used the open-source visualization software, Paraview (https://www.paraview.org/), to generate the image from the blog post.
Feb 02 2022
parent Abdulhaq <alynch4047 gmail.com> writes:
On Wednesday, 2 February 2022 at 23:03:57 UTC, Kyle wrote:

 I thought this was a great example of a sweet spot for D. I 
 had similar work in mind way back when, and started writing a 
 Qt and VTK (data visualisation) wrapper to work towards this. 
 I'm wondering what they used for the visualisation in the blog 
 post.
To confirm, I used the open-source visualization software, Paraview (https://www.paraview.org/), to generate the image from the blog post.
interesting, thanks Kyle
Feb 03 2022
prev sibling next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 2/2/22 3:14 AM, Mike Parker wrote:
 The University of Queensland's Centre for Hypersonics has [a gas 
 dynamics toolkit](https://gdtk.uqcloud.net/) that, since 1994, has 
 evolved from C, to C++, and now to D. Peter Jacobs, Rowan Gallon, and 
 Kyle Damm wrote a little about it for the D Blog.
 
 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/
 
 
 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dy
amics_toolkit_in_d/ 
 
So cool. I love reading success stories like this. More evidence that people who are not high-performance developers can approach D and find it a good fit! -Steve
Feb 02 2022
prev sibling next sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Feb 02, 2022 at 08:14:32AM +0000, Mike Parker via
Digitalmars-d-announce wrote:
[...]
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/
[...] Favorite quote: "Good error messages from the compiler. We often used to be overwhelmed by the C++ template error messages that could run to hundreds of lines. The D compilers have been much nicer to us and we have found the “did you mean” suggestions to be quite useful." Interesting that the author(s) found D error messages better than C++, in spite of frequent complaints about error messages here in the forums. :-P T -- Famous last words: I *think* this will work...
Feb 02 2022
next sibling parent Adam D Ruppe <destructionator gmail.com> writes:
On Wednesday, 2 February 2022 at 16:32:26 UTC, H. S. Teoh wrote:
 Interesting that the author(s) found D error messages better 
 than C++, in spite of frequent complaints about error messages 
 here in the forums. :-P
No incompatibility there: "better than C++" is a very low bar.
Feb 02 2022
prev sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 2/2/22 11:32 AM, H. S. Teoh wrote:
 On Wed, Feb 02, 2022 at 08:14:32AM +0000, Mike Parker via
Digitalmars-d-announce wrote:
 [...]
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/
[...] Favorite quote: "Good error messages from the compiler. We often used to be overwhelmed by the C++ template error messages that could run to hundreds of lines. The D compilers have been much nicer to us and we have found the “did you mean” suggestions to be quite useful." Interesting that the author(s) found D error messages better than C++, in spite of frequent complaints about error messages here in the forums. :-P
D error messages can be bad. Especially when you are using lots of range wrappers. It all depends on what you use. But C++ is a low bar ;) -Steve
Feb 02 2022
prev sibling next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Feb 02, 2022 at 11:40:09AM -0500, Steven Schveighoffer via
Digitalmars-d-announce wrote:
[...]
 D error messages can be bad. Especially when you are using lots of
 range wrappers. It all depends on what you use.
[...] True. I've had my fair share of WAT moments with D error messages. The worst IME are the ones coming from nested templates with lambdas, like when you use lots of range wrappers like you said. No thanks to the way dmd handles speculative compilation by gagging errors, a single typo in a lambda causes an error that gets gagged, then no thanks to D's equivalent of SFINAE the compiler then proceeds to attempt to instantiate completely unintended, unrelated template overloads, going deep into a rabbit hole that ultimately ends with an obscure error deep inside a totally unrelated overload that doesn't give the slightest clue as to what the real error is. I've often had to resort to manually instantiating templates, or worse, rewriting the lambda as an actual function and instantiating it manually, in order to discern what the error is. There's of course -verrors=spec, but that ungags ALL gagged errors, which in a non-trivial program results in the actual error being drowned in an ocean of totally unrelated errors.
 But C++ is a low bar ;)
[...] On Wed, Feb 02, 2022 at 04:40:04PM +0000, Adam D Ruppe via Digitalmars-d-announce wrote: [...]
 No incompatibility there: "better than C++" is a very low bar.
No argument there. :-P T -- Heads I win, tails you lose.
Feb 02 2022
prev sibling parent Dukc <ajieskola gmail.com> writes:
On Wednesday, 2 February 2022 at 08:14:32 UTC, Mike Parker wrote:
 The University of Queensland's Centre for Hypersonics has [a 
 gas dynamics toolkit](https://gdtk.uqcloud.net/) that, since 
 1994, has evolved from C, to C++, and now to D. Peter Jacobs, 
 Rowan Gallon, and Kyle Damm wrote a little about it for the D 
 Blog.

 The blog:
 https://dlang.org/blog/2022/02/02/a-gas-dynamics-toolkit-in-d/


 Reddit:
 https://www.reddit.com/r/programming/comments/sij99d/they_wrote_a_gas_dynamics_toolkit_in_d/
This reminds me about SARC. They use D for hydrodynamics software because (among other reasons) it's approachable enough for naval engineers. Now it's revealed that D is used for aerodynamic software because it's approachable enough for aeronautical engineers. Might it have anything to do with that D is designed by one?
Feb 02 2022