Re: Memory leak issue between extern (c) and D function

2023-04-14 Thread backtrack via Digitalmars-d-learn
On Friday, 14 April 2023 at 11:15:59 UTC, Guillaume Piolat wrote: On Friday, 14 April 2023 at 04:43:39 UTC, Paul Backus wrote: If you want the GC to clean up your memory, use `new` to allocate it instead of `malloc`. Like this: ```d mystruct* getmystruct() { return new mystruct

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-14 Thread Ki Rill via Digitalmars-d-learn
On Friday, 14 April 2023 at 02:33:18 UTC, Salih Dincer wrote: On Friday, 14 April 2023 at 00:28:53 UTC, Ki Rill wrote: ``` LINK : fatal error LNK1104: cannot open file 'libucrt.lib' Error: linker exited with status 1104 ``` Why does it require this library and where can I find it? Since this

Re: What do you think about using Chat GPT to create functions in D?

2023-04-14 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Monday, 3 April 2023 at 23:38:52 UTC, Marcone wrote: What do you think about using Chat GPT to create functions in D? I asked Chat-GPT to create a function in D that was similar to the rsplit() function in Python. It returned this code to me: import std.algorithm; import std.array; import

Re: Memory leak issue between extern (c) and D function

2023-04-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 14 April 2023 at 11:15:59 UTC, Guillaume Piolat wrote: OP could add another extern(C) D function to free the allocated object. Or another extern(C) D function to call GC.addRoot Or simpler, add that object to a list of object in D DLL __gshared list, then clear the list (or set

Re: Memory leak issue between extern (c) and D function

2023-04-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 14 April 2023 at 04:43:39 UTC, Paul Backus wrote: If you want the GC to clean up your memory, use `new` to allocate it instead of `malloc`. Like this: ```d mystruct* getmystruct() { return new mystruct; } ``` That won't work because the C++ programm calling the D dynlib

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-14 Thread Atila Neves via Digitalmars-d-announce
of the D translations in core.stdc.* import files. [...] I've now lost count of how many times changes in the Python headers break code using it. The only way to consume headers is to parse/translate/etc. them on the fly.

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-13 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 11 April 2023 at 21:53:50 UTC, Mike Parker wrote: __Resolving disagreements__ Well that's disappointing. I guess DMD will just continue to bleed contributors whenever Walter decides to do something that the entire contributor base that is a very bad idea.

Re: Memory leak issue between extern (c) and D function

2023-04-13 Thread Paul Backus via Digitalmars-d-learn
On Friday, 14 April 2023 at 03:50:37 UTC, backtrack wrote: Dear All, I am new to D lang. I have been given a task to consume the .dll generated from a D lang project. I added extern (c) function for call the .dll from CPP file. i have code like below ``` // myfile.d extern(c

Memory leak issue between extern (c) and D function

2023-04-13 Thread backtrack via Digitalmars-d-learn
Dear All, I am new to D lang. I have been given a task to consume the .dll generated from a D lang project. I added extern (c) function for call the .dll from CPP file. i have code like below ``` // myfile.d extern(c) { mystruct* getmystruct() { mystruct* mystruct = cast

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-13 Thread Salih Dincer via Digitalmars-d-learn
On Friday, 14 April 2023 at 00:28:53 UTC, Ki Rill wrote: ``` LINK : fatal error LNK1104: cannot open file 'libucrt.lib' Error: linker exited with status 1104 ``` Why does it require this library and where can I find it? Since this library is a component of the Microsoft C Runtime (CRT)

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-13 Thread Ki Rill via Digitalmars-d-learn
On Wednesday, 12 April 2023 at 10:05:14 UTC, Salih Dincer wrote: On Tuesday, 11 April 2023 at 10:24:09 UTC, Ki Rill wrote: If you wanted static I would add and run libraries easy, like this: ```Json "libs": [ "csfml-audio", "csfml-graphics" ],

[Issue 23402] importc function definitions from includes can cause D name conflicts

2023-04-13 Thread d-bugmail--- via Digitalmars-d-bugs
tions from includes can cause D name conflicts https://github.com/dlang/dmd/pull/15101 --

[Issue 23402] importc function definitions from includes can cause D name conflicts

2023-04-12 Thread d-bugmail--- via Digitalmars-d-bugs
--- @WalterBright created dlang/dmd pull request #15101 "fix Issue 23402 - importc function definitions from includes can caus…" fixing this issue: - fix Issue 23402 - importc function definitions from includes can cause D name conflicts https://github.com/dlang/dmd/pull/15101 --

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-12 Thread Walter Bright via Digitalmars-d-announce
be available for download, and if you want to use a system .h file, you have to use the modified version instead? It's a seductive idea, and I've considered that (and variations on it) many times. We have done this, after a fashion, in having our own versions of the .h files in the form of the D

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-12 Thread Dukc via Digitalmars-d-announce
On Tuesday, 11 April 2023 at 21:53:50 UTC, Mike Parker wrote: The language shouldn't support by default making a storage allocator pure. It's doing its job, saying you can't do this because you're changing state. So you have to fake it by doing a dirty cast in there somewhere. The reason why D

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-12 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 11 April 2023 at 10:24:09 UTC, Ki Rill wrote: My `dub.json`: ```Json { "authors": [ "rillki" ], "copyright": "Copyright © 2023, rillki", "dependencies": { "bindb

Re: learning D as your first language but having difficulty in making or logic building in order to make software

2023-04-12 Thread Dom DiSc via Digitalmars-d-learn
On Tuesday, 11 April 2023 at 14:13:17 UTC, slectr wrote: I want to make software like krita inkscape and my own language using D Although i previosly learned C and C++ i left it in the middle and for some reasons i dont want to learn those so i searched for alternatives and found D

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-12 Thread Dukc via Digitalmars-d-announce
thinks that's a reasonable proposition. I disagree: it makes sense as is. Consider: ```D @safe pure int fun() { int result = void; return result; } @safe void gun() { int a = fun(), b = fun(); [a, b].each!writeln; } ``` What are values of `a` and `b`? They are unspecified. Since `fun

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-12 Thread Dukc via Digitalmars-d-announce
On Tuesday, 11 April 2023 at 21:53:50 UTC, Mike Parker wrote: The monthly meeting for March took place on March 3rd, 2023, at 14:30 UTC, and lasted about an hour and fifteen minutes. The following people attended: As before, a great deal of interesting stuff here. Also useful: with these we

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-11 Thread bachmeier via Digitalmars-d-announce
On Tuesday, 11 April 2023 at 21:53:50 UTC, Mike Parker wrote: ImportC was slowly grinding along. His priority was getting all the standard header files to compile on all the platforms. A lot of the system `.h` files on the various platforms have made a feeble attempt to be usable by different

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-11 Thread Ki Rill via Digitalmars-d-learn
On Tuesday, 11 April 2023 at 11:55:50 UTC, Richard (Rikki) Andrew Cattermole wrote: I have to ask this since nothing else has worked and the dll's on the site don't depend on a MSVC dll: What are you compiling your program as? 32bit/64bit x86? ARM? Which DLL's are you downloading? 32bit,

Re: D Language Foundation March 2023 Monthly Meeting Summary

2023-04-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
Finally, he asked what everyone thought about including Phobos in the dmd/druntime mono repository. He said he'd seen no good reason not to [in the forum thread he'd started](https://forum.dlang.org/thread/kdgcznersjetunkvo...@forum.dlang.org). Iain said that from his perspective, DRuntime and

D Language Foundation March 2023 Monthly Meeting Summary

2023-04-11 Thread Mike Parker via Digitalmars-d-announce
* Robert Schadek ## The summary ### Dennis Dennis had nothing for us this time. ### Robert Robert had nothing other than to say that the compiler is still too slow and he still likes D. ### Razvan __Preview Switches__ Razvan had been looking at the reported issues for `-preview=nosharedaccess

learning D as your first language but having difficulty in making or logic building in order to make software

2023-04-11 Thread slectr via Digitalmars-d-learn
I want to make software like krita inkscape and my own language using D Although i previosly learned C and C++ i left it in the middle and for some reasons i dont want to learn those so i searched for alternatives and found D but there are not a lot of resources like cookbooks and videos

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
I have to ask this since nothing else has worked and the dll's on the site don't depend on a MSVC dll: What are you compiling your program as? 32bit/64bit x86? ARM? Which DLL's are you downloading? 32bit, 64bit?

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-11 Thread Ki Rill via Digitalmars-d-learn
](https://github.com/rillki/d-glfw-opengl-project-template) example as well for Windows 10. **Even this fails: `loadSFMLGraphics("libs/csfml-graphics.dll")`** I have the following structure: ``` - bin/ - libs/ - source/ - dub.json - dub.selections.json ``` My `dub.jso

[Issue 23402] importc function definitions from includes can cause D name conflicts

2023-04-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23402 --- Comment #5 from Lance Bachmeier --- (In reply to Walter Bright from comment #4) > foo.c -- > #include > > int main() {} > - > > Now compiles without error. Though this has nothing to do with Adam's report. Yes. My problem

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-09 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 9 April 2023 at 09:54:26 UTC, Ki Rill wrote: Why can't it find these libraries? I tell where to look for them: ```D version(Windows) { import bindbc.loader; setCustomLoaderSearchPath("libs"); // tried using absolute path as well } ``` That is strange...

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-09 Thread Ki Rill via Digitalmars-d-learn
On Saturday, 8 April 2023 at 23:40:32 UTC, Mike Parker wrote: On Saturday, 8 April 2023 at 11:31:40 UTC, Ki Rill wrote: How do I set up a D and SFML project using the `bindbc-sfml` package? I tried following the instructions, it builds successfully, but fails to load the SFML library

[Issue 23402] importc function definitions from includes can cause D name conflicts

2023-04-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23402 --- Comment #4 from Walter Bright --- foo.c -- #include int main() {} - Now compiles without error. Though this has nothing to do with Adam's report. --

[Issue 21938] importC: Support __attribute__ specifiers that could be mapped to D attributes

2023-04-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21938 --- Comment #3 from Walter Bright --- Some of them: https://github.com/dlang/dmd/pull/15048 https://github.com/dlang/dmd/pull/15047 --

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Salih Dincer via Digitalmars-d-learn
], "subConfigurations": { "bindbc-sfml": "staticBC" }, "versions": [ "SFML_Audio", "SFML_Graphics" ], ``` 5. dub **app.d** ```d import bindbc.sfml; void main(

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 8 April 2023 at 11:31:40 UTC, Ki Rill wrote: How do I set up a D and SFML project using the `bindbc-sfml` package? I tried following the instructions, it builds successfully, but fails to load the SFML library at runtime. In particular, `loadSFML, loadSFMLGraphics, loadSFMLXXX

How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Ki Rill via Digitalmars-d-learn
How do I set up a D and SFML project using the `bindbc-sfml` package? I tried following the instructions, it builds successfully, but fails to load the SFML library at runtime. In particular, `loadSFML, loadSFMLGraphics, loadSFMLXXX` fails. Here is [link](https://github.com/rillki/d-sfml

Re: short guide on getting started with D

2023-04-06 Thread cgenie via Digitalmars-d-learn
an it OK. No need for a reply, just my obvservations from someone who knows a little D and less meson. scot Well, I added sample `deps`. Basically this is something like: ``` phobos = dependency('phobos', version: '2.100.2', method: 'dub', static: true) boilerplate = dependency('boilerpl

[Issue 21374] [ICE] cod2.d(4675): Assertion failure compiling druntime with -fPIE

2023-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21374 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #1 from

Re: short guide on getting started with D

2023-04-04 Thread thinkunix via Digitalmars-d-learn
cgenie via Digitalmars-d-learn wrote: Hello, I created a short guide on getting started with D: https://blog.mmksoft.uk/#A%20short%20guide%20on%20getting%20started%20with%20D%20programming This is because I recently I started to explore the language and, having read the forum, I see DUB

Re: Release D 2.103.0

2023-04-04 Thread jmh530 via Digitalmars-d-announce
On Tuesday, 4 April 2023 at 12:01:23 UTC, Iain Buclaw wrote: On Monday, 3 April 2023 at 17:56:25 UTC, jmh530 wrote: The changelog doesn't list the fix to log1p https://github.com/dlang/phobos/pull/8712 Was there a bugzilla issue for it? Must have been missed. I think I just commented on one

Re: Release D 2.103.0

2023-04-04 Thread Iain Buclaw via Digitalmars-d-announce
On Monday, 3 April 2023 at 17:56:25 UTC, jmh530 wrote: The changelog doesn't list the fix to log1p https://github.com/dlang/phobos/pull/8712 Was there a bugzilla issue for it? Must have been missed.

Re: What do you think about using Chat GPT to create functions in D?

2023-04-04 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 3 April 2023 at 23:38:52 UTC, Marcone wrote: What do you think about using Chat GPT to create functions in D? Well you can use GitHub Copilot in VSCode, and it is kind of interesting but at the current time seems like a distracting waste of time. It will probably get more useful

Re: Release D 2.103.0

2023-04-03 Thread Walter Bright via Digitalmars-d-announce
On 4/3/2023 9:41 AM, Iain Buclaw wrote: Glad to announce D 2.103.0, ♥ to the 43 contributors. And a special thanks to you, Iain, for deftly managing the releases!

Re: What do you think about using Chat GPT to create functions in D?

2023-04-03 Thread cgenie via Digitalmars-d-learn
I once tested ChatGPT to generate Common Lisp code (a simple Redis client). They had a warning that this is not a code generation tool nevertheless it tried to do so. All the code it had was incorrect: it imported foreign libraries that didn't exist and when I complained about it, it

What do you think about using Chat GPT to create functions in D?

2023-04-03 Thread Marcone via Digitalmars-d-learn
What do you think about using Chat GPT to create functions in D? I asked Chat-GPT to create a function in D that was similar to the rsplit() function in Python. It returned this code to me: import std.algorithm; import std.array; import std.string; string[] rsplit(string input, string

Re: Release D 2.103.0

2023-04-03 Thread ryuukk_ via Digitalmars-d-announce
On Monday, 3 April 2023 at 16:41:25 UTC, Iain Buclaw wrote: Glad to announce D 2.103.0, ♥ to the 43 contributors. This release comes with 9 major changes, including: - In the compiler, `-preview=dip25` is now enabled by default. - In the standard library, std.uni Grapheme functions have been

Re: Release D 2.103.0

2023-04-03 Thread jmh530 via Digitalmars-d-announce
On Monday, 3 April 2023 at 16:41:25 UTC, Iain Buclaw wrote: Glad to announce D 2.103.0, ♥ to the 43 contributors. This release comes with 9 major changes, including: - In the compiler, `-preview=dip25` is now enabled by default. - In the standard library, std.uni Grapheme functions have been

Re: Release D 2.103.0

2023-04-03 Thread Salih Dincer via Digitalmars-d-announce
On Monday, 3 April 2023 at 16:41:25 UTC, Iain Buclaw wrote: Glad to announce D 2.103.0, ♥ to the 43 contributors. I think the most radical change is DIP25 being the default. Thanks to everyone involved. SDB@79

Re: Release D 2.103.0

2023-04-03 Thread M.M. via Digitalmars-d-announce
On Monday, 3 April 2023 at 16:41:25 UTC, Iain Buclaw wrote: Glad to announce D 2.103.0, ♥ to the 43 contributors. This release comes with 9 major changes, including: - In the compiler, `-preview=dip25` is now enabled by default. - In the standard library, std.uni Grapheme functions have been

Release D 2.103.0

2023-04-03 Thread Iain Buclaw via Digitalmars-d-announce
Glad to announce D 2.103.0, ♥ to the 43 contributors. This release comes with 9 major changes, including: - In the compiler, `-preview=dip25` is now enabled by default. - In the standard library, std.uni Grapheme functions have been updated to conform to Unicode 15 - In dub, the `--color

Re: Is it possible to make a library (dll/so) from separated .d files?

2023-04-03 Thread dog2002 via Digitalmars-d-learn
On Monday, 3 April 2023 at 11:29:12 UTC, Hipreme wrote: On Monday, 3 April 2023 at 09:08:42 UTC, dog2002 wrote: Hello. The title sounds weird, but I try to explain it better. In Unreal Engine and Unity, source code files don't use main() and other important functions. They have only a class.

Re: Is it possible to make a library (dll/so) from separated .d files?

2023-04-03 Thread Hipreme via Digitalmars-d-learn
++. Is it possible to do so in D? Yes, actually, this is the very same approach I've done for my engine, since holding the main function I can take care of boring platform details. For doing that you'll need some way to make your main program know about your class. The way I do that is by defining

Re: Is it possible to make a library (dll/so) from separated .d files?

2023-04-03 Thread dog2002 via Digitalmars-d-learn
++. Is it possible to do so in D? There are examples of code here https://docs.unrealengine.com/5.1/en-US/unreal-engine-for-unity-developers/

Is it possible to make a library (dll/so) from separated .d files?

2023-04-03 Thread dog2002 via Digitalmars-d-learn
() { } AFunctionFromTheInterface2() { } } ``` And then all the source code files will be compiled into a single .dll/.so library, so the game engine can use one in a game. I don't know what compiler does Unreal Engine use, but it uses C++. Is it possible to do so in D?

Re: short guide on getting started with D

2023-04-03 Thread Salih Dincer via Digitalmars-d-learn
On Monday, 3 April 2023 at 07:29:01 UTC, cgenie wrote: Thanks, you got my attention... It has come to my attention that you talked about this: https://mesonbuild.com/Dlang-module.html SDB@79

short guide on getting started with D

2023-04-03 Thread cgenie via Digitalmars-d-learn
Hello, I created a short guide on getting started with D: https://blog.mmksoft.uk/#A%20short%20guide%20on%20getting%20started%20with%20D%20programming This is because I recently I started to explore the language and, having read the forum, I see DUB being discouraged quite often. I would

[Issue 22926] importC: cast to D type alias in array length gives syntax error

2023-04-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22926 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 22926] importC: cast to D type alias in array length gives syntax error

2023-04-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22926 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 22926] importC: cast to D type alias in array length gives syntax error

2023-04-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22926 --- Comment #5 from Walter Bright --- (In reply to duser from comment #0) > struct S { int x, y; }; > char cs[ ((size_t)((char *)&((struct S *)0)->y - (char *)0)) ]; > > dmd v2.099.0: > Error: dereference of invalid pointer `cast(S*)0LU` >

Re: Step by step tutorials for using bindings in D

2023-03-30 Thread Inkrementator via Digitalmars-d-learn
On Monday, 27 March 2023 at 00:45:28 UTC, Salih Dincer wrote: Likes **17** Views **265** Released on March **8, 2023** I'm surprised that you can get 300 views in a month on a primarily D video, but it's nice to see

Re: Step by step tutorials for using bindings in D

2023-03-28 Thread eXodiquas via Digitalmars-d-learn
"bindbc-lua": "~>1.0.0" }, "lflags": ["-L/usr/local/lib/liblua.a"], "versions": ["LUA_53"], "description": "A minimal D application.", "license": "proprietar

Re: New beginnings - looking for part-time D programming help

2023-03-28 Thread Andrej Mitrovic via Digitalmars-d-announce
On Thursday, 23 March 2023 at 16:02:46 UTC, Laeeth Isharc wrote: Hi. For those that didn't hear, I resigned from Symmetry in September and my last day was a couple of weeks back. Do you believe Symmetry will continue to invest in D after your departure?

Re: Is there a -Dmacro like option for D compilers?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
I just remembered you can do something like this! ``` import std.stdio; enum FEATURE_A_AVAILABLE() { version(FEATURE_A) return true; else return false; } void main() { static if (!FEATURE_A_AVAILABLE) { writeln("feature A not available"); } } ``` It's evaluated

Re: Is there a -Dmacro like option for D compilers?

2023-03-27 Thread ryuukk_ via Digitalmars-d-learn
On Monday, 27 March 2023 at 22:22:26 UTC, Jeremy wrote: Is there a way I can define a manifest constant from the compiler command-line, like the -Dmacro option for C compilers? You can do this way: ``` dmd -version=FEATURE_A ``` ```D import std.stdio; void main() { version(FEATURE_A

Is there a -Dmacro like option for D compilers?

2023-03-27 Thread Jeremy via Digitalmars-d-learn
Is there a way I can define a manifest constant from the compiler command-line, like the -Dmacro option for C compilers?

Re: Step by step tutorials for using bindings in D

2023-03-26 Thread Salih Dincer via Digitalmars-d-learn
articles ([for example](https://forum.dlang.org/post/qnzmxceqesmcsmfmz...@forum.dlang.org), in my own language), it would not be enough! Even writing is not enough... What era are we living in? There is something called YouTube: [How to set up D and GLFW/OpenGL project on MacOS, Linux

Re: Step by step tutorials for using bindings in D

2023-03-26 Thread Inkrementator via Digitalmars-d-learn
lib1 file.d`. See: https://stackoverflow.com/questions/6578484/telling-gcc-directly-to-link-a-library-statically (gcc is a C compiler, but many concepts will map to D compilers, and almost all to [gdc](https://wiki.dlang.org/GDC) ) Sidenote: If you use this, you have to always make sure you have

Re: Step by step tutorials for using bindings in D

2023-03-26 Thread eXodiquas via Digitalmars-d-learn
On Sunday, 26 March 2023 at 14:09:19 UTC, Inkrementator wrote: # Practical Walkthrough Two ways to go about this: 1. Get SFML dynamic library somewhere 2. Create a project called sfmltest 3. Add BindBC-SFML dependency via dub 4. Put SFML dynamic library files into the directory where you will

Re: Step by step tutorials for using bindings in D

2023-03-26 Thread Inkrementator via Digitalmars-d-learn
On Friday, 24 March 2023 at 23:45:15 UTC, eXodiquas wrote: Hello everyone, once again, I am here for your help. My last questions were answered really competently so I try again. :P So, maybe this is a stupid question, but I have read a lot about Bindings to C and C++ libraries for D

Re: better video rendering in d

2023-03-25 Thread Ogi via Digitalmars-d-learn
://code.dlang.org/packages/ffmpeg-d).

Re: New beginnings - looking for part-time D programming help

2023-03-24 Thread Adam Wilson via Digitalmars-d-announce
On Friday, 24 March 2023 at 09:01:21 UTC, Sergey wrote: On Friday, 24 March 2023 at 07:54:06 UTC, Monkyyy wrote: On Thursday, 23 March 2023 at 16:02:46 UTC, Laeeth Isharc wrote: Hi. For those that didn't hear, I resigned from Symmetry in September and my last day was a couple of weeks back.

Step by step tutorials for using bindings in D

2023-03-24 Thread eXodiquas via Digitalmars-d-learn
Hello everyone, once again, I am here for your help. My last questions were answered really competently so I try again. :P So, maybe this is a stupid question, but I have read a lot about Bindings to C and C++ libraries for D. For example the Derelict project (or now [BindBC](https

Re: better video rendering in d

2023-03-24 Thread Guillaume Piolat via Digitalmars-d-learn
it embeds the metadata unlike .yuv See: https://github.com/p0nce/y4m-tools/blob/master/shader-capture/example.sh Fixed the URLs. How to output .y4m => https://github.com/p0nce/y4m-d/blob/master/source/y4md/package.d

Re: better video rendering in d

2023-03-24 Thread Guillaume Piolat via Digitalmars-d-learn
On Tuesday, 21 March 2023 at 16:57:49 UTC, monkyyy wrote: My current method of making videos of using raylib to generate screenshots, throwing those screenshots into a folder and calling a magic ffmpeg command is ... slow. Does anyone have a demo or a project that does something smarter (or

Re: New beginnings - looking for part-time D programming help

2023-03-24 Thread Paolo Invernizzi via Digitalmars-d-announce
On Friday, 24 March 2023 at 09:01:21 UTC, Sergey wrote: On Friday, 24 March 2023 at 07:54:06 UTC, Monkyyy wrote: On Thursday, 23 March 2023 at 16:02:46 UTC, Laeeth Isharc wrote: Hi. For those that didn't hear, I resigned from Symmetry in September and my last day was a couple of weeks back.

Re: New beginnings - looking for part-time D programming help

2023-03-24 Thread Sergey via Digitalmars-d-announce
On Friday, 24 March 2023 at 07:54:06 UTC, Monkyyy wrote: On Thursday, 23 March 2023 at 16:02:46 UTC, Laeeth Isharc wrote: Hi. For those that didn't hear, I resigned from Symmetry in September and my last day was a couple of weeks back. [...] "Not hedge fund" and "scripting" doesn't seem

Re: New beginnings - looking for part-time D programming help

2023-03-24 Thread Monkyyy via Digitalmars-d-announce
On Thursday, 23 March 2023 at 16:02:46 UTC, Laeeth Isharc wrote: Hi. For those that didn't hear, I resigned from Symmetry in September and my last day was a couple of weeks back. [...] "Not hedge fund" and "scripting" doesn't seem like enough of a job description to me

[Issue 23775] Visual D filter right-click crash

2023-03-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23775 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23734] Visual Studio crashes when right clicking a newly added folder in a D project

2023-03-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23734 Rainer Schuetze changed: What|Removed |Added CC||johnch_a...@hotmail.com --- Comment #2

New beginnings - looking for part-time D programming help

2023-03-23 Thread Laeeth Isharc via Digitalmars-d-announce
your goals. But I am not sure I would recommend most jobs in finance. What kind of work? Initially some scripting in D to integrate things and a little bit of work with LLM embeddings and fine tuning, STT transcription, classifiers, parsing. Some presentation work - gui or web I don't mind

Re: better video rendering in d

2023-03-21 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Tuesday, 21 March 2023 at 17:46:00 UTC, H. S. Teoh wrote: On Tue, Mar 21, 2023 at 05:29:22PM +, monkyyy via Digitalmars-d-learn wrote: On Tuesday, 21 March 2023 at 17:18:15 UTC, H. S. Teoh wrote: > [...] I vaguely remember an hour and half for 5 minutes of video when its extrem

Re: better video rendering in d

2023-03-21 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Mar 21, 2023 at 05:29:22PM +, monkyyy via Digitalmars-d-learn wrote: > On Tuesday, 21 March 2023 at 17:18:15 UTC, H. S. Teoh wrote: > > On Tue, Mar 21, 2023 at 04:57:49PM +, monkyyy via > > Digitalmars-d-learn wrote: > > > My current method of makin

Re: better video rendering in d

2023-03-21 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 21 March 2023 at 17:18:15 UTC, H. S. Teoh wrote: On Tue, Mar 21, 2023 at 04:57:49PM +, monkyyy via Digitalmars-d-learn wrote: My current method of making videos of using raylib to generate screenshots, throwing those screenshots into a folder and calling a magic ffmpeg command

Re: better video rendering in d

2023-03-21 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Mar 21, 2023 at 04:57:49PM +, monkyyy via Digitalmars-d-learn wrote: > My current method of making videos of using raylib to generate screenshots, > throwing those screenshots into a folder and calling a magic ffmpeg command > is ... slow. [...] How slow is it now, and how fa

better video rendering in d

2023-03-21 Thread monkyyy via Digitalmars-d-learn
My current method of making videos of using raylib to generate screenshots, throwing those screenshots into a folder and calling a magic ffmpeg command is ... slow. Does anyone have a demo or a project that does something smarter (or willing to do the busy work of finding the right combo of

Re: How to set up D and GLFW/OpenGL project on MacOS, Linux and Windows | [video]

2023-03-15 Thread Dejan Lekic via Digitalmars-d-announce
On Wednesday, 8 March 2023 at 16:45:02 UTC, Ki Rill wrote: ![D and GLFW/OpenGL project](https://github.com/rillki/d-glfw-opengl-project-template/blob/main/imgs/d-glfw-opengl.jpg?raw=true) Here is the [link](https://youtu.be/wG6OG6uWyDw) Amazing! Thanks!

Re: Directly compiling a D program with other libraries

2023-03-13 Thread Jeremy via Digitalmars-d-learn
That's a linker error, meaning the missing symbol isn't available to link into the executable. You need to compile the source of all the libraries you use and make sure the resultant binaries are available for the linker to link into the executable. The -I switch you've passed tells the

Re: Directly compiling a D program with other libraries

2023-03-13 Thread Mike Parker via Digitalmars-d-learn
On Monday, 13 March 2023 at 05:05:27 UTC, Jeremy wrote: Hello, I am new to this forum and to D. I am trying to compile a basic D program with libraries (`requests` which requires `cachetools` and `automem`) without using dub. I have never used dub before, only a compiler. The folders

Directly compiling a D program with other libraries

2023-03-12 Thread Jeremy via Digitalmars-d-learn
Hello, I am new to this forum and to D. I am trying to compile a basic D program with libraries (`requests` which requires `cachetools` and `automem`) without using dub. I have never used dub before, only a compiler. The folders containing the libraries are in the same folder as main.d

[Issue 23775] New: Visual D filter right-click crash

2023-03-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23775 Issue ID: 23775 Summary: Visual D filter right-click crash Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major Priority

[Issue 23734] Visual Studio crashes when right clicking a newly added folder in a D project

2023-03-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23734 Rainer Schuetze changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
thing in principle. Pass the D files to the compiler (including the bindings, dynamic bindings are not like headers, they load the DLL at runtime not during linking like static bindings), tell it the versions needed for the bindings and it should work. When you do a successful build

Re: Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
: ''' Starting Performing "debug" build using C:\D\dmd2\windows\bin64\dmd.exe for x86_64. Building bindbc-sdl 1.3.0: building configuration [staticBC] failed launching cl.exe /P /Zc:preprocessor /PD /nologo C:\Users\idoug\AppData\Local\dub\packages\bindbc-sdl-1.

Re: Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:52:27 UTC, ryuukk_ wrote: On Sunday, 12 March 2023 at 02:12:45 UTC, idsize wrote: [...] Hello, and welcome! Looks like the new version of that library is broken, i am having the same issue [...] Thanks! It compiled and ran your example successfully.

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 4:01 PM, ryuukk_ wrote: So this is a dub issue? Nope, dub is doing everything ok, this is for ImportC. It is able to find the linker, why can't it find the preprocessor? Its probably not installed. We don't ship a C toolchain, it uses the system one (MSVC, which you would

Re: Using bindbc-sdl with D

2023-03-11 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:59:20 UTC, Richard (Rikki) Andrew Cattermole wrote: On 12/03/2023 3:24 PM, Richard (Rikki) Andrew Cattermole wrote: But ugh that error looks weird. That would imply its trying to run the C preprocessor for ImportC. That does not sound right at all, I don't see

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 3:24 PM, Richard (Rikki) Andrew Cattermole wrote: But ugh that error looks weird. That would imply its trying to run the C preprocessor for ImportC. That does not sound right at all, I don't see any C headers/code in bindbc-sdl repo (not that it needs it). Gonna need to see the

Re: Using bindbc-sdl with D

2023-03-11 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 12 March 2023 at 02:12:45 UTC, idsize wrote: I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. From my understanding, I'll need to use 'dub fetch bindbc-sdl' to download

Re: Using bindbc-sdl with D

2023-03-11 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 12/03/2023 3:12 PM, idsize wrote: I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. Welcome! From my understanding, I'll need to use 'dub fetch bindbc-sdl' to download

Using bindbc-sdl with D

2023-03-11 Thread idsize via Digitalmars-d-learn
I started learning D a few weeks ago and am enjoying it so far. I would like to use SDL with D and found bindbc-sdl, but I cannot figure out how to make it work. From my understanding, I'll need to use 'dub fetch bindbc-sdl' to download it, and then run 'dub build bindbc-sdl' to build

Re: Objective-C D metal binding

2023-03-11 Thread max haughton via Digitalmars-d-announce
On Saturday, 11 March 2023 at 13:08:49 UTC, Steven Schveighoffer wrote: On 3/10/23 4:10 PM, ryuukk_ wrote: On Friday, 10 March 2023 at 20:53:23 UTC, Hipreme wrote: Hello guys. I have been working for some time into binding Metal to D. This has been quite an interesting journey and today I've

[Issue 23772] Compiler Paths & Microsoft Visual Studio support for D

2023-03-11 Thread d-bugmail--- via Digitalmars-d-bugs
Rainer Schuetze --- Please report Dexed issues here: https://gitlab.com/basile.b/dexed Regarding Visual D: can you be more specific? Do you mean https://issues.dlang.org/show_bug.cgi?id=23043 ? --

<    5   6   7   8   9   10   11   12   13   14   >