Re: Audio file metadata parser?

2025-07-18 Thread Andy Valencia via Digitalmars-d-learn
On Saturday, 19 July 2025 at 00:23:28 UTC, Jonathan M Davis wrote: If you're looking to operate on tags in audio files, then there's https://code.dlang.org/packages/taglib-d, which might do what you need, but I don't know much about it, so I can't say for sure. Thank you! That handles my ne

Re: Didn't take this newbie long to hit the first roadblock

2025-07-18 Thread kp via Digitalmars-d-learn
On Saturday, 19 July 2025 at 03:01:51 UTC, Richard (Rikki) Andrew Cattermole wrote: A quick look for dpq2 shows that by default it is configured to use a static binding to PostgreSQL client library. https://github.com/denizzzka/dpq2/blob/master/dub.json#L20 It explicitly adds a shared library

Re: Didn't take this newbie long to hit the first roadblock

2025-07-18 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
A quick look for dpq2 shows that by default it is configured to use a static binding to PostgreSQL client library. https://github.com/denizzzka/dpq2/blob/master/dub.json#L20 It explicitly adds a shared library dependency on it (``libs`` directive). Which is appropriate if you are on a posix sy

Didn't take this newbie long to hit the first roadblock

2025-07-18 Thread kp via Digitalmars-d-learn
There isn't a pg.lib file in my PG17 installation on Win11 Pro - the closest I see is postgres.lib. What did I miss? - D source code import dpq2; import std.stdio; void main() { // Adjust credentials as needed

Re: Audio file metadata parser?

2025-07-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, July 18, 2025 4:47:04 PM Mountain Daylight Time Andy Valencia via Digitalmars-d-learn wrote: > Is anyone aware of a library like "tinytag" (a Python module)? > > https://github.com/devsnd/tinytag > > I guess I'll wrestle with porting it to dlang if there's nothing > available. > > tinyt

Audio file metadata parser?

2025-07-18 Thread Andy Valencia via Digitalmars-d-learn
Is anyone aware of a library like "tinytag" (a Python module)? https://github.com/devsnd/tinytag I guess I'll wrestle with porting it to dlang if there's nothing available. tinytag is nice, because it handles wav/ogg/flac/opus/mp3 uniformly. Thanks, Andy

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread realhet via Digitalmars-d-learn
On Friday, 18 July 2025 at 16:58:13 UTC, Luna wrote: On Friday, 18 July 2025 at 16:50:07 UTC, realhet wrote: On Friday, 18 July 2025 at 15:42:23 UTC, realhet wrote: On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote: ldc has libs in lib/mingw libcmt and co are a part of the Windows SDK.

python like datastructures as databases code examples

2025-07-18 Thread monkyyy via Digitalmars-d-learn
`shapes.filter(isnt:shapeenum.isstatic)` https://forum.dlang.org/thread/apbcqxiifbsqdlrsl...@forum.dlang.org I know its possible to make complex, datastructure aware filters, but I never done it what patterns do people use? lets say you have an always sorted array and the user is asking for v

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread Luna via Digitalmars-d-learn
On Friday, 18 July 2025 at 16:50:07 UTC, realhet wrote: On Friday, 18 July 2025 at 15:42:23 UTC, realhet wrote: On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote: ldc has libs in lib/mingw Ok I was doing too much: I uninstalled the whole sdk and it turned out It works miraculously just

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread realhet via Digitalmars-d-learn
On Friday, 18 July 2025 at 15:42:23 UTC, realhet wrote: On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote: ldc has libs in lib/mingw Ok I was doing too much: I uninstalled the whole sdk and it turned out It works miraculously just by itself: `ldc2 win32_app.d -L/subsystem:windows` as si

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread realhet via Digitalmars-d-learn
On Friday, 18 July 2025 at 15:25:04 UTC, Kagamin wrote: ldc has libs in lib/mingw Please help me how to use it. Currently I managed to compile a very simple example, after installing win10 sdk: I was happy that I don't even need to pass --m64 --line-internally Because it was defaulted. I onl

Re: Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread Kagamin via Digitalmars-d-learn
ldc has libs in lib/mingw

Minimal environment for linking Win32 windowed 64bit exes usind LDC2

2025-07-18 Thread realhet via Digitalmars-d-learn
Hello, What are the minimal environment to do generate win32 64bit windoswed exe's nowadays? Can I do it with only these two? - LDC2 release - and a few static lib files extracted from the windows 10 sdk Is it right? Is there a way to avoid that 2 gigabytes of SDK somehow? Is it possible to a

Re: void[] vs ubyte[] - differences?

2025-07-18 Thread Nick Treleaven via Digitalmars-d-learn
On Thursday, 17 July 2025 at 18:56:08 UTC, Dukc wrote: - You won't be able to do much anything with `void[]` in `@safe` code. Thanks, I realized that was missing from the docs. Copying into `void[]` is not allowed in @safe code. https://github.com/dlang/dlang.org/pull/4262