December 22, 2021

On Wednesday, 22 December 2021 at 08:41:56 UTC, eugene wrote:

>

Both these files are just copies from DMD distribution.

Forget to mention...
installation instructions are complete mess
I just copied right things to right places manually.

December 22, 2021

On Wednesday, 22 December 2021 at 00:43:16 UTC, Johan wrote:

>

When you run ldc2 -v test.d (some arbitrary d file), you should see "predefs" at the top, followed by a bunch of predefined versions by the compiler. FreeBSD_xx should be on that list, and the number should correspond to your OS version. If it does not, then that's a bug in LDC.

Forget about LDC :)
I used outdated version of LDC (the one installed with pkg),
which does not have struct kevent_t for 12+ at all.

>

I was wrong: LDC is using its own code to determine the OS version, and it should already do that correctly.

And I am not going to install up to date version of LDC,
because I prefer to use packages supplied by
repository maintainers (usually)

FreeBSD has ldc2 (old, but it is in the repo)
Linux has both gdc (also old) and ldc.

It looks strange - leading D compiler is not in Linux/FreeBSD repos :)

December 22, 2021

On Wednesday, 22 December 2021 at 09:49:59 UTC, eugene wrote:

>

It looks strange - leading D compiler is not in Linux/FreeBSD repos :)

Well no so much. The only official compiler is DMD and when it comes to that, Digital Mars, has pre-built binaries for most Linux distros and for FreeBSD. Now the repos are another thing like I told you in a previous reply. The repos are managed by the distro maintainers and not the developers individual. D is a very unpopular language so it makes sense that not every distro (and freeBSD) have up to date packages. Some distros are not rolling release in general. FreeBSD (if I'm not mistaken) never promoted themselves as bleeding edge either. However, both DMD and LDC2 developers have up to date binaries for every platform they support. GDC is part of GCC so it's another story.... Also I prefer to use my distro's repos too for everything (and I can do that because I use Arch btw) but this is not possible every time. Downloading and installing binaries from other sites should be do some times, especially if you use non-bleeding edge distros or *BSD.

December 22, 2021

On Wednesday, 22 December 2021 at 10:05:25 UTC, rempas wrote:

>

On Wednesday, 22 December 2021 at 09:49:59 UTC, eugene wrote:

>

It looks strange - leading D compiler is not in Linux/FreeBSD repos :)

Well no so much.

Well, ok. Now the only thing I can "do" is to wait until
the issue will be solved.

And just in case - the topic was started due to my
exersises with kqueue and if it is interesting for
anybody, see EDSM

EDSM stands for 'event driven state machines'

NOTE: despite the topic, those programs (echo client/server pair)
work perfectly, but this is not suprisingly, because:

  • I am not using ext field in struct kevent_t
  • most likely I never get more than one event from kqueue()
  • buffer is 8 events long, so I always have extra space for that ext field.
1 2 3 4
Next ›   Last »