www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Parin + Serg = MacOS Support

reply Kapendev <alexandroskapretsos gmail.com> writes:
The [Parin game engine](https://github.com/Kapendev/parin) now 
works on MacOS thanks to some help from 
[Serg](https://github.com/cyrusmsk/parin_life), our 
self-proclaimed D community manager.
Building with the provided shell scripts is still broken 
(probably), but I am 100% sure that all Apple users are DUB users 
too. So no real issue there.

What else? Umm... The new release has a feature I copy-pasted 
from monkyyy's code. It's a config format that he calls 
"buildinfo." It uses a flat structure, kinda like INI. I like it. 
You can also use it at compile-time. Example:

```d
unittest {
     struct Info {
         const(char)[] compiler;
         const(char)[] name;
         int major;
         int minor;
         int patch;

         int[2] windowStartSize;
         bool hackerMode;
     }

     enum content = "
         compiler: dmd
         name:     Cool Project
         major:    1
         minor:    2
         patch:    420

         windowStartSize: 1280 720
         hackerMode:      true
     ";

     enum info = () {
         auto result = Info();
         parseBuildInfo(content, result);
         return result;
     }();

     static assert(info.name == "Cool Project");
     static assert(info.major == 1);
     static assert(info.minor == 2);
     static assert(info.patch == 420);
     static assert(info.compiler == "dmd");
     static assert(info.windowStartSize[0] == 1280);
     static assert(info.windowStartSize[1] == 720);
     static assert(info.hackerMode == true);
}
```
Jun 16
next sibling parent monkyyy <crazymonkyyy gmail.com> writes:
On Tuesday, 16 June 2026 at 13:27:38 UTC, Kapendev wrote:
 The new release has a feature I copy-pasted from monkyyy's 
 code. It's a config format that he calls "buildinfo."
The format is not the point, where and when it generated is
Jun 16
prev sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Tuesday, 16 June 2026 at 13:27:38 UTC, Kapendev wrote:
 The [Parin game engine](https://github.com/Kapendev/parin) now 
 works on MacOS thanks to some help from 
 [Serg](https://github.com/cyrusmsk/parin_life), our 
 self-proclaimed D community manager.
 Building with the provided shell scripts is still broken 
 (probably), but I am 100% sure that all Apple users are DUB 
 users too. So no real issue there.

 What else? Umm... The new release has a feature I copy-pasted 
 from monkyyy's code. It's a config format that he calls 
 "buildinfo." It uses a flat structure, kinda like INI. I like 
 it. You can also use it at compile-time. Example:
Well-done. Keep up with good work guys!
Jun 16