Re: Is D programming friendly for beginners?

2024-07-25 Thread aberba via Digitalmars-d-announce
the domain, AI is a helpful assistant in research and prototyping code that might eventually be refined for production. It important however to know when you the suggestions are wrong, hence they need to gain some experience. You should try. I recently tried a little D coding using chatgpt

Re: Is D programming friendly for beginners?

2024-07-24 Thread Abdulhaq via Digitalmars-d-announce
On Wednesday, 24 July 2024 at 15:02:04 UTC, Matheus wrote: I work at home, but once I was at the office and I saw someone literally copying a SO answer direct to the project, and many times I saw code there were literally copied as is, I could tell because the way it was written, language etc.

Re: Is D programming friendly for beginners?

2024-07-24 Thread Matheus via Digitalmars-d-announce
I work at home, but once I was at the office and I saw someone literally copying a SO answer direct to the project, and many times I saw code there were literally copied as is, I could tell because the way it was written, language etc. One of the cases was a LIB in Oracle to read JSON, it came

Re: Is D programming friendly for beginners?

2024-07-23 Thread Quirin Schroll via Digitalmars-d-announce
On Monday, 4 March 2024 at 13:37:53 UTC, Fidele wrote: Is D programming friendly for beginners? Only if you use `@safe` on your `main` function and essentially everywhere except templates (those infer `@safe` and you should let them do that). `@system` is an expert tool, unfortunately, it’s

Re: Using FFI to write a std::string to a buffer passed in from D

2024-07-21 Thread Troy via Digitalmars-d-learn
On Sunday, 21 July 2024 at 15:31:47 UTC, Johan wrote: On Sunday, 21 July 2024 at 13:35:46 UTC, Troy wrote: void create(void* b) { std::string s = "engineer again"; *(std::string*)(b) = s;// Segfault here } You have to construct an empty string object first in location `b`

Re: Using FFI to write a std::string to a buffer passed in from D

2024-07-21 Thread Johan via Digitalmars-d-learn
On Sunday, 21 July 2024 at 13:35:46 UTC, Troy wrote: void create(void* b) { std::string s = "engineer again"; *(std::string*)(b) = s;// Segfault here } You have to construct an empty string object first in location `b` (emplacement new). Then you can assign to it as you do.

Using FFI to write a std::string to a buffer passed in from D

2024-07-21 Thread Troy via Digitalmars-d-learn
I have a weird issue I've been running into while trying to write D bindings to some C++ code. I'm trying to call some C++ functions that take in a std::string but don't make a copy of it. To do this, I want to write a std::string to a buffer passed in from D so I can keep it from being

Re: Recommendations on porting Python to D

2024-07-17 Thread rkompass via Digitalmars-d-learn
On Monday, 15 July 2024 at 19:40:01 UTC, mw wrote: On Friday, 12 July 2024 at 18:07:50 UTC, mw wrote: [...] FYI, now merged into the main branch: https://github.com/py2many/py2many/tree/main/pyd This is great and certainly deserves an own discussion contribution in General. Did you try

Re: Recommendations on porting Python to D

2024-07-15 Thread mw via Digitalmars-d-learn
On Friday, 12 July 2024 at 18:07:50 UTC, mw wrote: On Friday, 3 May 2024 at 17:38:10 UTC, Chris Piker wrote: On Thursday, 25 April 2024 at 16:57:53 UTC, mw wrote: On Wednesday, 24 April 2024 at 22:07:41 UTC, Chris Piker wrote: Python-AST to D source converter may already exist? https

Re: Redub v1.7.1 : Even faster dependency resolution and vibe-d support

2024-07-14 Thread aberba via Digitalmars-d-announce
On Tuesday, 9 July 2024 at 21:39:20 UTC, Hipreme wrote: Hello guys, in the last time, I told that I would not support vibe-d. This was purely on how many features I would need to implement to support it. But after a second thought, I saw that it would be a great opportunity to make it way more

[Issue 24659] Memory safe D page lacks information on return ref

2024-07-13 Thread d-bugmail--- via Digitalmars-d-bugs
|--- |FIXED --- Comment #2 from Dlang Bot --- dlang/dlang.org pull request #3878 "[spec/memory-safe-d] Improve `return` attribute docs" was merged into master: - ef99e9317c7642f9ac39a4ef78f2bc110bce0bda by Nick Treleaven: [spec/memory-safe-d] Improve `return` attribute docs Fi

Re: Recommendations on porting Python to D

2024-07-12 Thread Imperatorn via Digitalmars-d-learn
On Wednesday, 24 April 2024 at 19:50:45 UTC, Chris Piker wrote: I can just call my old C code from D, but the old Python is another story. Thanks for any advice you may have, You could also try some AI solution

Re: Recommendations on porting Python to D

2024-07-12 Thread mw via Digitalmars-d-learn
://github.com/mw66/py2many/tree/dlang/tests/expected py2many/ 13:56:23$ ls ./tests/expected/*.d ./tests/expected/bubble_sort.d ./tests/expected/cls.d ./tests/expected/fib.d ./tests/expected/import_tests.d ./tests/expected/classes.d ./tests/expected/dict.d ./tests/expected/hello_world.d ./tests/expected

Re: Recommendations on porting Python to D

2024-07-12 Thread mw via Digitalmars-d-learn
On Friday, 3 May 2024 at 17:38:10 UTC, Chris Piker wrote: On Thursday, 25 April 2024 at 16:57:53 UTC, mw wrote: On Wednesday, 24 April 2024 at 22:07:41 UTC, Chris Piker wrote: Python-AST to D source converter may already exist? https://github.com/joortcom/eiffel_rename/tree/main/yi

[Issue 24659] Memory safe D page lacks information on return ref

2024-07-12 Thread d-bugmail--- via Digitalmars-d-bugs
created dlang/dlang.org pull request #3878 "[spec/memory-safe-d] Improve `return` attribute docs" fixing this issue: - [spec/memory-safe-d] Improve `return` attribute docs Fix Bugzilla 24659 - Memory safe D page lacks information on return ref. Reword `return scope` docs (before thi

[Issue 24659] New: Memory safe D page lacks information on return ref

2024-07-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24659 Issue ID: 24659 Summary: Memory safe D page lacks information on return ref Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: D Language Foundation April 2024 Quarterly Meeting Summary

2024-07-12 Thread Sergey via Digitalmars-d-announce
On Friday, 12 July 2024 at 08:43:50 UTC, Mike Parker wrote: * Dennis Korpel (DLF/SARC) Congrats to Dennis :)

D Language Foundation April 2024 Quarterly Meeting Summary

2024-07-12 Thread Mike Parker via Digitalmars-d-announce
The D Language Foundation's quarterly meeting for April 2024 took place on Friday the 5th at 15:00 UTC. It lasted for about 50 minutes. Our quarterly meetings are where representatives from businesses big and small can bring us their most pressing D issues, status reports on their use of D

Redub v1.7.1 : Even faster dependency resolution and vibe-d support

2024-07-09 Thread Hipreme via Digitalmars-d-announce
Hello guys, in the last time, I told that I would not support vibe-d. This was purely on how many features I would need to implement to support it. But after a second thought, I saw that it would be a great opportunity to make it way more consistent. With that, I announce # [Redub v1.7.1

Re: Is D programming friendly for beginners?

2024-07-05 Thread freda via Digitalmars-d-announce
Lesen Sie hier Bücher online https://xn--el-bcher-95a.com/

wasmtime-d: wasmtime binding for D, with some D-friendly solutions

2024-07-03 Thread solidstate1991 via Digitalmars-d-announce
https://github.com/ZILtoid1991/wasmtime-d See `test_binding/app.d` for some examples! Still under development, but some testcases involving WASM code now works. And yes, I will use some D language code to do some testing.

D Language Foundation March 2024 Monthly Meeting Summary

2024-07-03 Thread Mike Parker via Digitalmars-d-announce
The D Language Foundation's monthly meeting for March 2024 was held on Friday the 8th. It lasted about 90 minutes. ## The Attendees The following people attended: * Paul Backus * Walter Bright * Iain Buclaw * Jonathan M. Davis * Timon Gehr * Martin Kinkelin * Dennis Korpel * Mathais Lang

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-06-18 Thread Mike Shah via Digitalmars-d-announce
On Tuesday, 18 June 2024 at 08:49:57 UTC, cookiewitch wrote: On Friday, 24 May 2024 at 17:45:31 UTC, Lewis wrote: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-06-18 Thread cookiewitch via Digitalmars-d-announce
On Friday, 24 May 2024 at 17:45:31 UTC, Lewis wrote: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). [...] https

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-06-16 Thread Lurker via Digitalmars-d-announce
On Friday, 24 May 2024 at 17:45:31 UTC, Lewis wrote: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). - All code (engine and game

Re: How to use D without the GC ?

2024-06-14 Thread Dukc via Digitalmars-d-learn
bachmeier kirjoitti 14.6.2024 klo 16.48: See the example I posted elsewhere in this thread: https://forum.dlang.org/post/mwerxaolbkuxlgfep...@forum.dlang.org I defined ``` @nogc ~this() {   free(ptr);   printf("Data has been freed\n"); } ``` and that gets called when the reference count

Re: How to use D without the GC ?

2024-06-14 Thread bachmeier via Digitalmars-d-learn
On Friday, 14 June 2024 at 07:52:35 UTC, Dukc wrote: Lance Bachmeier kirjoitti 14.6.2024 klo 4.23: We must be talking about different things. You could, for instance, call a function in a C library to allocate memory at runtime. That function returns a pointer and you pass it to

Re: How to use D without the GC ?

2024-06-14 Thread Dukc via Digitalmars-d-learn
Lance Bachmeier kirjoitti 14.6.2024 klo 4.23: We must be talking about different things. You could, for instance, call a function in a C library to allocate memory at runtime. That function returns a pointer and you pass it to SafeRefCounted to ensure it gets freed. Nothing is known about the

Re: How to use D without the GC ?

2024-06-13 Thread Lance Bachmeier via Digitalmars-d-learn
On Thursday, 13 June 2024 at 07:18:48 UTC, Dukc wrote: Lance Bachmeier kirjoitti 13.6.2024 klo 1.32: Why would it be different from calling malloc and free manually? I guess I'm not understanding, because you put the same calls to malloc and free that you'd otherwise be doing inside this

Re: D Language Foundation February 2024 Monthly Meeting Summary

2024-06-13 Thread Anonymouse via Digitalmars-d-announce
On Thursday, 13 June 2024 at 10:20:03 UTC, Mike Parker wrote: [...] Thanks!

D Language Foundation February 2024 Monthly Meeting Summary

2024-06-13 Thread Mike Parker via Digitalmars-d-announce
The D Language Foundation's monthly meeting for February 2024 took place on Friday the 9th. It lasted around an hour. Razvan was the only member who sent in any agenda items before the meeting. ## The Attendees The following people attended: * Paul Backus * Walter Bright * Iain Buclaw

Re: How to use D without the GC ?

2024-06-13 Thread Dukc via Digitalmars-d-learn
Dukc kirjoitti 13.6.2024 klo 10.18: So for example, if you have a program that sometimes needs 600Mib and sometimes needs 1100MiB, you can in any case allocate all that in one go with one `malloc` or one `new`, but you'll need at least 38/59 `SafeRefCounted` static arrays, and therefore

Re: How to use D without the GC ?

2024-06-13 Thread Dukc via Digitalmars-d-learn
Lance Bachmeier kirjoitti 13.6.2024 klo 1.32: Why would it be different from calling malloc and free manually? I guess I'm not understanding, because you put the same calls to malloc and free that you'd otherwise be doing inside this and ~this. Because with `SafeRefCounted`, you have to

Re: How to use D without the GC ?

2024-06-12 Thread monkyyy via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 16:50:04 UTC, Vinod K Chandran wrote: On Wednesday, 12 June 2024 at 01:35:26 UTC, monkyyy wrote: rather then worring about the gc, just have 95% of data on the stack How's that even possible ? AFAIK, we need heap allocated memory in order to make GUI lib as a

Re: How to use D without the GC ?

2024-06-12 Thread Lance Bachmeier via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 21:59:54 UTC, drug007 wrote: Yes, but you get all the benefits of `double[]` for free if you do it that way, including the more concise foo[10] syntax. I meant you do not need to add `ptr` field at all I see. You're right. I thought it would be easier for

Re: How to use D without the GC ?

2024-06-12 Thread Lance Bachmeier via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 21:36:30 UTC, Dukc wrote: bachmeier kirjoitti 12.6.2024 klo 18.21: You're splitting things into GC-allocated memory and manually managed memory. There's also SafeRefCounted, which handles the malloc and free for you. I suspect `SafeRefCounted` (or `RefCounted`)

Re: How to use D without the GC ?

2024-06-12 Thread drug007 via Digitalmars-d-learn
of `double[]` for free if you do it that way, including the more concise foo[10] syntax. I meant you do not need to add `ptr` field at all ```D import std; import core.stdc.stdlib; struct Foo { @nogc: double[] data; alias data this; this(int n) { auto ptr = cast(double*

Re: How to use D without the GC ?

2024-06-12 Thread Dukc via Digitalmars-d-learn
bachmeier kirjoitti 12.6.2024 klo 18.21: You're splitting things into GC-allocated memory and manually managed memory. There's also SafeRefCounted, which handles the malloc and free for you. I suspect `SafeRefCounted` (or `RefCounted`) is not the best fit for this scenario. The problem with

Re: How to use D without the GC ?

2024-06-12 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 20:37:36 UTC, drug007 wrote: On 12.06.2024 21:57, bachmeier wrote: On Wednesday, 12 June 2024 at 18:36:26 UTC, Vinod K Chandran wrote: On Wednesday, 12 June 2024 at 15:33:39 UTC, bachmeier wrote: A SafeRefCounted example with main marked @nogc: ``` import std;

Re: How to use D without the GC ?

2024-06-12 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 20:31:34 UTC, Vinod K Chandran wrote: On Wednesday, 12 June 2024 at 18:57:41 UTC, bachmeier wrote: Try `foo[10] = 1.5` and `foo.ptr[10] = 1.5`. The first correctly throws an out of bounds error. The second gives `Segmentation fault (core dumped)`. We can use

Re: How to use D without the GC ?

2024-06-12 Thread drug007 via Digitalmars-d-learn
On 12.06.2024 21:57, bachmeier wrote: On Wednesday, 12 June 2024 at 18:36:26 UTC, Vinod K Chandran wrote: On Wednesday, 12 June 2024 at 15:33:39 UTC, bachmeier wrote: A SafeRefCounted example with main marked @nogc: ``` import std; import core.stdc.stdlib; struct Foo {   double[] data;  

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 18:57:41 UTC, bachmeier wrote: Try `foo[10] = 1.5` and `foo.ptr[10] = 1.5`. The first correctly throws an out of bounds error. The second gives `Segmentation fault (core dumped)`. We can use it like this, i think. ``` struct Foo { double * ptr; uint

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 18:58:49 UTC, evilrat wrote: the only problem is that it seems to leak a lot PydObjects so i have to manually free them, even scope doesn't helps with that which is sad. Oh I see. I did some experiments with nimpy and pybind11. Both experiments were resulted

Re: How to use D without the GC ?

2024-06-12 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 18:58:49 UTC, evilrat wrote: On Wednesday, 12 June 2024 at 17:00:14 UTC, Vinod K Chandran wrote: [...] It is probably not that well maintained, but it definitely works with python 3.10 and maybe even 3.11, i use it to interface with pytorch and numpy and PIL,

Re: How to use D without the GC ?

2024-06-12 Thread evilrat via Digitalmars-d-learn
: # NOTE: read the comment on model output = model(image_tensor) index = output.data.numpy() return index ``` and some of D functions ```d ImageData aiGoesB(string path, int strength = 50) { try { if (!pymod) py_stmts("import sy

Re: How to use D without the GC ?

2024-06-12 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 18:36:26 UTC, Vinod K Chandran wrote: On Wednesday, 12 June 2024 at 15:33:39 UTC, bachmeier wrote: A SafeRefCounted example with main marked @nogc: ``` import std; import core.stdc.stdlib; struct Foo { double[] data; double * ptr; alias data this; @nogc

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 15:33:39 UTC, bachmeier wrote: A SafeRefCounted example with main marked @nogc: ``` import std; import core.stdc.stdlib; struct Foo { double[] data; double * ptr; alias data this; @nogc this(int n) { ptr = cast(double*) malloc(n*double.sizeof);

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 15:33:39 UTC, bachmeier wrote: A SafeRefCounted example with main marked @nogc: Thanks for the sample. It looks tempting! Let me check that.

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 15:21:22 UTC, bachmeier wrote: You're splitting things into GC-allocated memory and manually managed memory. There's also SafeRefCounted, which handles the malloc and free for you. Thanks, I have read about the possibilities of "using malloc and free f

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 10:16:26 UTC, Sergey wrote: Btw are you going to use PyD or doing everything manually from scratch? Does PyD active now ? I didn't tested it. My approach is using "ctypes" library with my dll. Ctypes is the fastes FFI in my experience. I tested Cython,

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 09:44:05 UTC, DrDread wrote: also just slap @nogc on your main function to avoid accidential allocations. Thanks for the suggestion. Let me check that idea.

Re: How to use D without the GC ?

2024-06-12 Thread Vinod K Chandran via Digitalmars-d-learn
On Wednesday, 12 June 2024 at 01:35:26 UTC, monkyyy wrote: rather then worring about the gc, just have 95% of data on the stack How's that even possible ? AFAIK, we need heap allocated memory in order to make GUI lib as a DLL. So creating things in heap and modify it, that's the nature of

Re: How to use D without the GC ?

2024-06-12 Thread bachmeier via Digitalmars-d-learn
A SafeRefCounted example with main marked @nogc: ``` import std; import core.stdc.stdlib; struct Foo { double[] data; double * ptr; alias data this; @nogc this(int n) { ptr = cast(double*) malloc(n*double.sizeof); data = ptr[0..n]; printf("Data has been allocated\n"); }

Re: How to use D without the GC ?

2024-06-12 Thread Sergey via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 17:15:07 UTC, Vinod K Chandran wrote: On Tuesday, 11 June 2024 at 16:54:44 UTC, Steven Schveighoffer wrote: Two reasons. 1. I am writting a dll to use in Python. So I am assuming that Btw are you going to use PyD or doing everything manually from scratch?

Re: How to use D without the GC ?

2024-06-12 Thread DrDread via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 17:15:07 UTC, Vinod K Chandran wrote: On Tuesday, 11 June 2024 at 16:54:44 UTC, Steven Schveighoffer wrote: I would instead ask the reason for wanting to write D code without the GC. -Steve Hi Steve, Two reasons. 1. I am writting a dll to use in Python. So I

Re: How to use D without the GC ?

2024-06-11 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 17:15:07 UTC, Vinod K Chandran wrote: On Tuesday, 11 June 2024 at 16:54:44 UTC, Steven Schveighoffer wrote: I would instead ask the reason for wanting to write D code without the GC. -Steve Hi Steve, Two reasons. 1. I am writting a dll to use in Python. So I

Re: How to use D without the GC ?

2024-06-11 Thread Vinod K Chandran via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 16:54:44 UTC, Steven Schveighoffer wrote: I would instead ask the reason for wanting to write D code without the GC. -Steve Hi Steve, Two reasons. 1. I am writting a dll to use in Python. So I am assuming that manual memory management is better

Re: How to use D without the GC ?

2024-06-11 Thread Steven Schveighoffer via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 13:00:50 UTC, Vinod K Chandran wrote: Hi all, I am planning to write some D code without GC. But I have no prior experience with it. I have experience using manual memory management languages. But D has so far been used with GC. So I want to know what pitfalls

Re: How to use D without the GC ?

2024-06-11 Thread drug007 via Digitalmars-d-learn
On 11.06.2024 17:59, Kagamin wrote: 1) arena allocator makes memory manageable with occasional cache invalidation problem 2) no hashtable no problem [OT] could you elaborate what problems they cause? 3) error handling depends on your code complexity, but even in complex C# code I found

Re: How to use D without the GC ?

2024-06-11 Thread Vinod K Chandran via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 14:59:24 UTC, Kagamin wrote: 1) arena allocator makes memory manageable with occasional cache invalidation problem 2) no hashtable no problem 3) error handling depends on your code complexity, but even in complex C# code I found exceptions as boolean: you either

Re: How to use D without the GC ?

2024-06-11 Thread Kagamin via Digitalmars-d-learn
1) arena allocator makes memory manageable with occasional cache invalidation problem 2) no hashtable no problem 3) error handling depends on your code complexity, but even in complex C# code I found exceptions as boolean: you either have an exception or you don't 4) I occasionally use CTFE,

Re: How to use D without the GC ?

2024-06-11 Thread Vinod K Chandran via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 13:35:19 UTC, matheus wrote: On Tuesday, 11 June 2024 at 13:00:50 UTC, Vinod K Chandran wrote: ... Similar posts that may help: https://forum.dlang.org/thread/hryadrwplyezihwag...@forum.dlang.org https://forum.dlang.org/thread/dblfikgnzqfmmglwd...@forum.dlang.org

Re: How to use D without the GC ?

2024-06-11 Thread matheus via Digitalmars-d-learn
On Tuesday, 11 June 2024 at 13:00:50 UTC, Vinod K Chandran wrote: ... Similar posts that may help: https://forum.dlang.org/thread/hryadrwplyezihwag...@forum.dlang.org https://forum.dlang.org/thread/dblfikgnzqfmmglwd...@forum.dlang.org Matheus.

Re: D officially supported on Apache NuttX RTOS

2024-06-10 Thread Matheus Catarino via Digitalmars-d-announce
On Monday, 10 June 2024 at 14:59:53 UTC, Denis Feklushkin wrote: Official esp32 software environment (ESP IDF) internally uses FreeRTOS. Thus, if you write hello_world_LED_blink snippet and compile it by ESP IDF your binary will contain FreeRTOS Exactly! However, NuttX can replace ESP-IDF

Re: D officially supported on Apache NuttX RTOS

2024-06-10 Thread Denis Feklushkin via Digitalmars-d-announce
On Sunday, 9 June 2024 at 23:19:44 UTC, Matheus Catarino wrote: So, I take the opportunity to carry out some tests with the architectures available through NuttX (stm32/esp32/riscv/arm, etc...) Official esp32 software environment (ESP IDF) internally uses FreeRTOS. Thus, if you write

Re: D officially supported on Apache NuttX RTOS

2024-06-09 Thread Sergey via Digitalmars-d-announce
about this system, and which applications it allows to create with D? I suppose only betterC mode is supported, so there is no Phobos on those tiny machines?

Re: How do I install a non-outdated D compiler on Linux? (not in userspace-container)

2024-06-08 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 8 June 2024 at 03:36:05 UTC, bachmeier wrote: For Mint, I'd use the .deb and let it handle that stuff. For LDC, I have a bash alias for ldmd2 that points to the ldmd2 binary. Of course there are multiple ways to handle this, but I don't understand the point of the install script,

Re: How do I install a non-outdated D compiler on Linux? (not in userspace-container)

2024-06-07 Thread bachmeier via Digitalmars-d-learn
On Saturday, 8 June 2024 at 00:21:59 UTC, solidstate1991 wrote: On Friday, 7 June 2024 at 23:19:37 UTC, solidstate1991 wrote: I **need** to link against various system libraries, and otherwise some tools won't be able to access the D compiler unless I start them from a command line after

Re: How do I install a non-outdated D compiler on Linux? (not in userspace-container)

2024-06-07 Thread solidstate1991 via Digitalmars-d-learn
On Friday, 7 June 2024 at 23:19:37 UTC, solidstate1991 wrote: I **need** to link against various system libraries, and otherwise some tools won't be able to access the D compiler unless I start them from a command line after an initialization script. I'm using Linux Mint, it's much more

How do I install a non-outdated D compiler on Linux? (not in userspace-container)

2024-06-07 Thread solidstate1991 via Digitalmars-d-learn
I **need** to link against various system libraries, and otherwise some tools won't be able to access the D compiler unless I start them from a command line after an initialization script. I'm using Linux Mint, it's much more stable than Ubuntu (which started to completely collapse on me

D officially supported on Apache NuttX RTOS

2024-06-07 Thread Matheus Catarino via Digitalmars-d-announce
ref.: https://x.com/MisterTechBlog/status/1798918878350950840 **Note:** Currently, ldc2 compiler only for riscv/arm/sim[ulator]. gdc and dmd need PR! **Preview - qemu-armv7a:nsh** ```bash $ qemu-system-arm -cpu cortex-a7 -nographic -M virt,virtualization=off,gic-version=2 -net none -chardev

Re: Release D 2.109.0

2024-06-03 Thread Nick Treleaven via Digitalmars-d-announce
On Sunday, 2 June 2024 at 15:51:04 UTC, Iain Buclaw wrote: Glad to announce D 2.109.0, ♥ to the 44 contributors. This release comes with 15 major changes and 26 fixed Bugzilla issues, including: Thanks! I've written a changelog entry about reinterpreting a byte as bool being unsafe: https

Re: How does one attach a manifest file to a D executable on Windows?

2024-06-02 Thread John Chapman via Digitalmars-d-learn
On Sunday, 2 June 2024 at 21:46:41 UTC, solidstate1991 wrote: Well, it turns out I used the windres found in mingw instead of `rc.exe` since the latter cannot be found anywhere on my PC, even after reinstalling stuff. I need to hunt it down somehow. rc.exe comes with the Windows SDK - it gets

Re: How does one attach a manifest file to a D executable on Windows?

2024-06-02 Thread solidstate1991 via Digitalmars-d-learn
On Sunday, 2 June 2024 at 19:11:10 UTC, solidstate1991 wrote: Added a few more line to my `resources.rc` file, it seems like the issue is the resource file not being touched at all. I've put `dflags "resources.res" platform="windows"` in my `dub.sdl` file, it doesn't even care if there's a

Re: How does one attach a manifest file to a D executable on Windows?

2024-06-02 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 25 May 2024 at 19:51:25 UTC, John Chapman wrote: Not tested but from memory I do this: 1) Copy that first XML snippet from the page you linked, save to a file called example.exe.manifest 2) Create a resource script file called resources.rc, with this at the top: 1 24

Release D 2.109.0

2024-06-02 Thread Iain Buclaw via Digitalmars-d-announce
Glad to announce D 2.109.0, ♥ to the 44 contributors. This release comes with 15 major changes and 26 fixed Bugzilla issues, including: - In the language, a new function `__ctfeWrite` has been added to allow writing messages from CTFE to console. - `__traits(isBitfeld)`, and the properties

Re: How does one attach a manifest file to a D executable on Windows?

2024-06-02 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 25 May 2024 at 19:51:25 UTC, John Chapman wrote: Not tested but from memory I do this: 1) Copy that first XML snippet from the page you linked, save to a file called example.exe.manifest 2) Create a resource script file called resources.rc, with this at the top: 1 24

[Issue 15587] Enable use of D keywords as identifiers when interfacing to C/C++

2024-06-01 Thread d-bugmail--- via Digitalmars-d-bugs
--- Using `pragma(mangle)` is also annoying for type names, because every function using the renamed type needs to use the changed mangling. This is for example necessary for `std::function`, because `function` is a keyword in D. It would be nice if you could change the mangled name of a type once

Re: The D Programming Language and Its Role in Cybersecurity

2024-05-26 Thread Dukc via Digitalmars-d-announce
Dukc kirjoitti 26.5.2024 klo 21.39: I hope he/she hasn't earned his/her position with opinion pieces like this. Stupid me, his name is on your post. So "he" and "his" obviously.

Re: The D Programming Language and Its Role in Cybersecurity

2024-05-26 Thread Dukc via Digitalmars-d-announce
aberba kirjoitti 25.5.2024 klo 10.58: On Friday, 24 May 2024 at 19:54:16 UTC, Steven Schveighoffer wrote: On Monday, 20 May 2024 at 21:21:24 UTC, aberba wrote: Found this article by Raymond Andrè Hagen: https://www.linkedin.com/pulse/d-programming-language-its-role-cybersecurity-raymond-andr

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-05-26 Thread Dukc via Digitalmars-d-announce
Lewis kirjoitti 24.5.2024 klo 20.45: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). - All code (engine and game) written in D

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-05-26 Thread Bastiaan Veelo via Digitalmars-d-announce
On Friday, 24 May 2024 at 17:45:31 UTC, Lewis wrote: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). Seems worthy of a DConf

Re: How does one attach a manifest file to a D executable on Windows?

2024-05-25 Thread John Chapman via Digitalmars-d-learn
On Saturday, 25 May 2024 at 13:13:08 UTC, solidstate1991 wrote: No, I meant something like this: https://learn.microsoft.com/en-us/windows/win32/controls/cookbook-overview Not tested but from memory I do this: 1) Copy that first XML snippet from the page you linked, save to a file called

Re: How does one attach a manifest file to a D executable on Windows?

2024-05-25 Thread solidstate1991 via Digitalmars-d-learn
On Friday, 24 May 2024 at 21:26:12 UTC, Ferhat Kurtulmuş wrote: I think this is what you need https://github.com/aferust/doitlater/tree/master/views/res No, I meant something like this: https://learn.microsoft.com/en-us/windows/win32/controls/cookbook-overview

Re: The D Programming Language and Its Role in Cybersecurity

2024-05-25 Thread Dom DiSc via Digitalmars-d-announce
On Saturday, 25 May 2024 at 07:58:35 UTC, aberba wrote: On Friday, 24 May 2024 at 19:54:16 UTC, Steven Schveighoffer wrote: On Monday, 20 May 2024 at 21:21:24 UTC, aberba wrote: Found this article by Raymond Andrè Hagen: https://www.linkedin.com/pulse/d-programming-language-its-role

Re: The D Programming Language and Its Role in Cybersecurity

2024-05-25 Thread aberba via Digitalmars-d-announce
On Friday, 24 May 2024 at 19:54:16 UTC, Steven Schveighoffer wrote: On Monday, 20 May 2024 at 21:21:24 UTC, aberba wrote: Found this article by Raymond Andrè Hagen: https://www.linkedin.com/pulse/d-programming-language-its-role-cybersecurity-raymond-andr%C3%A8-hagen-nfvgf/ My goodness

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-05-24 Thread Lewis via Digitalmars-d-announce
On Friday, 24 May 2024 at 19:22:32 UTC, Jonathan Gerlach wrote: I'm impressed. Are you using DirectX "11 on 12" or standard DirectX11? Did you need to avoid the GC at all? I imagine the GC could ruin your framerate if you're not careful. Thanks for sharing and congrats on finishing (close

Re: How does one attach a manifest file to a D executable on Windows?

2024-05-24 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 24 May 2024 at 21:04:53 UTC, Ferhat Kurtulmuş wrote: On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote: I have tried resource compiling, then using `dflags` in dug to add the resulting obj file, but I still get the issue of the old GUI style. I did that before, but I

Re: How does one attach a manifest file to a D executable on Windows?

2024-05-24 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 24 May 2024 at 19:07:24 UTC, solidstate1991 wrote: I have tried resource compiling, then using `dflags` in dug to add the resulting obj file, but I still get the issue of the old GUI style. I did that before, but I don't remember now. Probably you will figure that out based on

Re: The D Programming Language and Its Role in Cybersecurity

2024-05-24 Thread Steven Schveighoffer via Digitalmars-d-announce
On Monday, 20 May 2024 at 21:21:24 UTC, aberba wrote: Found this article by Raymond Andrè Hagen: https://www.linkedin.com/pulse/d-programming-language-its-role-cybersecurity-raymond-andr%C3%A8-hagen-nfvgf/ My goodness this is a terrible article. Almost no substance. Is this AI generated

Re: Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-05-24 Thread Jonathan Gerlach via Digitalmars-d-announce
On Friday, 24 May 2024 at 17:45:31 UTC, Lewis wrote: Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). - All code (engine and game

Demo for The Art of Reflection released (a 3D game and engine fully written in D)

2024-05-24 Thread Lewis via Digitalmars-d-announce
Hello! Not sure if it's of interest, but I've been developing a 3D game and engine in D for a few years, and finally have a demo up on Steam for anyone interested in poking around (Windows only unfortunately). - All code (engine and game) written in D. Shaders in HLSL. External libraries

Re: Recommendations on porting Python to D

2024-05-23 Thread mw via Digitalmars-d-learn
: https://github.com/py2many/py2many It already has support for C++, Go and others. Since I have mountains of python code created over many years, maybe it would be worth contributing to this project out of self interest. Can you take a look at py2many and see what you think about it? Getting D

The D Programming Language and Its Role in Cybersecurity

2024-05-20 Thread aberba via Digitalmars-d-announce
Found this article by Raymond Andrè Hagen: https://www.linkedin.com/pulse/d-programming-language-its-role-cybersecurity-raymond-andr%C3%A8-hagen-nfvgf/

Re: D Language Foundation January 2024 Monthly Meeting Summary

2024-05-18 Thread Dukc via Digitalmars-d-announce
Mike Parker kirjoitti 14.5.2024 klo 16.23: The D Language Foundation's monthly meeting for January 2024 was held on Friday the 12th. There were two things of particular note about this meeting. Thanks for the write-up once again! Always nice to know what is cooking, even when the news come

Re: My interest in contributing to the D language and participation in the Symmetry Autumn of code

2024-05-16 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
On 16/05/2024 11:43 PM, Dennis wrote: just in case I've worked on an issue, how do I communicate with the community/mentors about it? Is there a discord/slack community I can join? On the main website under Community there is an invite link to the community Discord. Many people are there

Re: My interest in contributing to the D language and participation in the Symmetry Autumn of code

2024-05-16 Thread Dennis via Digitalmars-d-announce
On Wednesday, 15 May 2024 at 14:23:32 UTC, RazvanN wrote: On Tuesday, 14 May 2024 at 18:42:56 UTC, Dennis wrote: Hello everyone, My name is Dennis and I’m from Nigeria and I want to contribute to the D language, perhaps engage in the upcoming Symmetry Autumn of code, and contribute immensely

Re: My interest in contributing to the D language and participation in the Symmetry Autumn of code

2024-05-15 Thread Dennis via Digitalmars-d-announce
On Wednesday, 15 May 2024 at 14:23:32 UTC, RazvanN wrote: On Tuesday, 14 May 2024 at 18:42:56 UTC, Dennis wrote: Hello everyone, My name is Dennis and I’m from Nigeria and I want to contribute to the D language, perhaps engage in the upcoming Symmetry Autumn of code, and contribute immensely

Re: My interest in contributing to the D language and participation in the Symmetry Autumn of code

2024-05-15 Thread RazvanN via Digitalmars-d-announce
On Tuesday, 14 May 2024 at 18:42:56 UTC, Dennis wrote: Hello everyone, My name is Dennis and I’m from Nigeria and I want to contribute to the D language, perhaps engage in the upcoming Symmetry Autumn of code, and contribute immensely to the D language and beyond. I’m open to anyone directing

Re: My interest in contributing to the D language and participation in the Symmetry Autumn of code

2024-05-14 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 14 May 2024 at 18:42:56 UTC, Dennis wrote: Hello everyone, My name is Dennis and I’m from Nigeria and I want to contribute to the D language, perhaps engage in the upcoming Symmetry Autumn of code, and contribute immensely to the D language and beyond. I’m open to anyone directing

  1   2   3   4   5   6   7   8   9   10   >