Re: How to use D on M2 macOS?

2025-08-13 Thread Brian Callahan via Digitalmars-d-learn
On Thursday, 31 July 2025 at 10:19:43 UTC, IchorDev wrote: I'd love if you could get that added to the install.sh script. I've attempted and failed to build GDC on macOS ~4 times. It's such a huge pain because you need a functioning copy of GDC9, and finding one that the GCC build system reco

Re: How to use D on M2 macOS?

2025-08-06 Thread Brian Callahan via Digitalmars-d-learn
On Thursday, 31 July 2025 at 10:19:43 UTC, IchorDev wrote: On Wednesday, 23 July 2025 at 14:12:30 UTC, Brian Callahan wrote: On Monday, 21 July 2025 at 13:29:23 UTC, Albert 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

Re: How to use D on M2 macOS?

2025-07-23 Thread Brian Callahan via Digitalmars-d-learn
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

Re: What's the latest GDC stable release version?

2024-06-17 Thread Brian Callahan via Digitalmars-d-learn
On Monday, 17 June 2024 at 16:20:55 UTC, mw wrote: On Monday, 17 June 2024 at 15:33:46 UTC, Dejan Lekic wrote: On Sunday, 16 June 2024 at 16:26:08 UTC, mw wrote: Hi, What's the latest GDC stable release version? Stable release version is the same as stable GCC release version. Find it here:

Re: dmd for Haiku OS

2022-10-31 Thread Brian Callahan via Digitalmars-d-learn
On Monday, 31 October 2022 at 17:31:58 UTC, Sergey wrote: Story about porting to OpenBSD: https://briancallahan.net/blog/20210320.html Following up on my own blog post, I would definitely recommend using GCC 11.2 as the version to use to bootstrap GDC to Haiku. I think that's the last one b

Re: Write UTF-8 bytes directly to stack buffer

2022-03-13 Thread Brian Callahan via Digitalmars-d-learn
On Sunday, 13 March 2022 at 07:55:01 UTC, Chris Piker wrote: Hey thanks! That does work with recent versions of dmd+phobos, but doesn't work in gdc-10. For some reason it produces this error: ```d error: static assert "Cannot put a const(char)[] into a char[]." ``` Is there a work arou

Re: how to print "111000" out into 0b111000

2022-01-19 Thread Brian Callahan via Digitalmars-d-learn
On Wednesday, 19 January 2022 at 15:01:29 UTC, michaelbi wrote: as captioned... thx. ```d import std.stdio; import std.conv; void main() { writefln("0b%b", to!int("111000", 2)); } ```

Re: Possible runtime bug in preprocessing of command line arguments passed to the D main

2021-10-24 Thread Brian Callahan via Digitalmars-d-learn
On Sunday, 24 October 2021 at 14:38:44 UTC, jfondren wrote: With nothing to the contrary, I'd take "must be terminated by a null pointer" as "can't itself be a null pointer". The execve(2) is more explicit: "The argument argv is a pointer to a null-terminated array of character pointers to