6 days ago

On Monday, 21 July 2025 at 16:42:31 UTC, Albert wrote:

>

Sorry to be blunt, but not great first impression so far. I'm still trying to make this work, but stuck with no clue...

I think setting sodlib path in settings helped somewhat. At least errors are gone and seems to have detected the build type and compiler.

How do I build & run the executable though?

6 days ago

On Monday, 21 July 2025 at 17:08:17 UTC, Albert wrote:

>

How do I build & run the executable though?

Anyway with some perseverance I managed to build & run hello world app. Thank you guys for your help.

Though I do think D could do so much better with onboarding first time users...

6 days ago

On Monday, 21 July 2025 at 17:21:58 UTC, Albert wrote:

>

On Monday, 21 July 2025 at 17:08:17 UTC, Albert wrote:

>

How do I build & run the executable though?

Anyway with some perseverance I managed to build & run hello world app. Thank you guys for your help.

Though I do think D could do so much better with onboarding first time users...

which is kinda unusual
you installing LDC (it is going with Dub)
run dub init
then write code
then dub build
and it works

4 days ago

On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote:

>

Hi all,

I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app.

I installed ldc and dub (nowhere on the download page did it even mention that dub should be installed separately!) from home-brew, installed code-d for vscode, used the plugin to create a new project and that is as far as I've gotten.

For example the plugin prompts me to "Compile serve-d", however doing so just fails with:

Error Command failed with exit code 127: rdmd "/Users/albert/.dub/packages/dfmt/0.14.1/dfmt/dubhash.d"
Failed to install serve-d (Error code 2)

And so on and so forth. Am I missing something obvious?

Mhh ... imho the install.sh on the homepage is not pushed enough. For me this is the best (for installing the compiler and dub and the tools that come with it). For Apple Silicon ldc is the best choice (again imho).

After sourcing the activate script in the respective folder (default ~/dlang/COMPILER_VERSION/activate(.fish)) you are setup nicely with dub, so dub init, dub run should work directly.

VSCode I am not so familiar with.

Kind regards,
Christian

4 days ago

On Monday, 21 July 2025 at 13:29:23 UTC, Albert wrote:

>

Hi all,

I am completely new to D, wished to try it out and write a small app in it. However, for the last couple hours I am ready to pull my hair out as I have no idea how to compile even a simplest hello world app.

I installed ldc and dub (nowhere on the download page did it even mention that dub should be installed separately!) from home-brew, installed code-d for vscode, used the plugin to create a new project and that is as far as I've gotten.

For example the plugin prompts me to "Compile serve-d", however doing so just fails with:

Error Command failed with exit code 127: rdmd "/Users/albert/.dub/packages/dfmt/0.14.1/dfmt/dubhash.d"
Failed to install serve-d (Error code 2)

And so on and so forth. Am I missing something obvious?

I know you got things going with LDC, but I use GDC for all my D needs on macOS. I have a tarball that's a simple extract, add to PATH, and done: https://github.com/ibara/aarch64-apple-darwin24.2.0-gcc-14.2.0/releases/tag/20250112

4 days ago

On Wednesday, 23 July 2025 at 14:12:30 UTC, Brian Callahan wrote:

>

I know you got things going with LDC, but I use GDC for all my D needs on macOS. I have a tarball that's a simple extract, add

When I tried it last time - it was magnitude slower than LDC solution

1 2
Next ›   Last »