Re: Sokol now has official D bindings

2024-05-14 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 14 May 2024 at 12:36:27 UTC, ryuukk_ wrote: - float nan default Complaints from C and C++ programmers could mention that at least stack variables gets initialized to something.

Re: Release: console-colors v1.0.0

2024-02-25 Thread Guillaume Piolat via Digitalmars-d-announce
New in console-colors v1.3.1: - Possibility to enable UTF-8 codepage in Windows terminal: call `enableConsoleUTF8()` at start-up. - Use VT100 escaped codes when supported in Windows (some Windows 10+and later). It's a bit faster. - Bold text with `text`, `text` or `.in_bold()` call (VT-100

Re: Preparing for the New DIP Process

2024-01-18 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 18 January 2024 at 07:19:19 UTC, Mike Parker wrote: And by "quality" I'm not referring to the quality of the DIP's language. In the new process, the focus will be entirely on the details of the proposal and not on the language in which they're presented. I'm happy to clean that

Re: NuMem - safe(r) nogc memory managment

2024-01-03 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 2 January 2024 at 10:30:52 UTC, Sergey wrote: On Saturday, 30 December 2023 at 15:17:36 UTC, Luna wrote: NuMem 0.5.4 has been released, numem is a new library Any meaningful comparison with another similar library will be highly appreciated

Re: Happy New Year!

2024-01-03 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 3 January 2024 at 01:25:29 UTC, Walter Bright wrote: Along with my best wishes for a happy and prosperous 2024 to all the DLF community members, and their families and friends. Thanks!

Re: NuMem - safe(r) nogc memory managment

2023-12-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 30 December 2023 at 16:36:38 UTC, ryuukk_ wrote: What D really is missing _right now_, and will hopefully get _before_ phobosv3 is a good and minimalistic Allocator API, i modeled mine around zig's, no RAII, just a simple struct with 3 function ptr FWIW it's possible to do a

Re: NuMem - safe(r) nogc memory managment

2023-12-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 30 December 2023 at 15:17:36 UTC, Luna wrote: * C++ style smart pointers (unique_ptr, shared_ptr, weak_ptr) * C++ style vector type (with support for moving unique_ptr's in!) Indeed with numem you can have a relatively "C++11" experience with scoped ownership, which we intend

Re: macOS Sonoma Linker Issue

2023-12-22 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 21 December 2023 at 23:25:55 UTC, Renato wrote: ld: symbol(s) not found for architecture x86_64 Make sure you're using the "osx-universal" package in order to have both arch. https://github.com/ldc-developers/ldc/releases/tag/v1.35.0 That said, for consumer software it may be a

Re: macOS Sonoma Linker Issue

2023-12-21 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 21 December 2023 at 18:06:51 UTC, Renato wrote: Unless silly is completely broken, it seems like this is a linker issue again. Hello, why not use ldc instead of dmd for macOS? sudo ln -f -s /path/to/ldc/compiler/bin/ldc2 /usr/local/bin/ldc2 sudo ln -f -s

Re: D Language Foundation October 2023 Quarterly Meeting Summary

2023-12-11 Thread Guillaume Piolat via Digitalmars-d-announce
On Sunday, 10 December 2023 at 15:08:05 UTC, Bastiaan Veelo wrote: We are looking forward to being able to safely use LDC, because tests show that it has the potential to at least double the performance. Yes, and that's before you its excellent SIMD capabilities :)

Re: New DUB documentation

2023-11-24 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 22 November 2023 at 21:35:34 UTC, WebFreak001 wrote: the revamped DUB documentation I started a while ago is now deployed on https://dub.pm Thanks for this!

Re: DLF September 2023 Planning Update

2023-11-21 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 14 November 2023 at 08:18:20 UTC, Mike Parker wrote: * The default edition, meaning the code you have now, should compile forever. Should we want that? I think I really don't like even the concept of Editions. The reason for that it stems from an incorrect assumption about how

Re: What parser generator can let me run arbitrary code in its match rules?

2023-11-20 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 20 November 2023 at 23:56:36 UTC, Dmitry Ponyatov wrote: Or maybe someone advice me some set of books deeply targets for learning of binary and symmetric parsing (such as binpac), DCG in C or using generators in D, etc to let me write my own lib. 'Crafting Interpreters' book

Re: DLF September 2023 Planning Update

2023-11-14 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 14 November 2023 at 15:05:34 UTC, Steven Schveighoffer wrote: When considering how this should work, I would strongly suggest it be the default to work with the current edition of the language. Nobody wants to always have to attribute their module (or whatever other opt-in

Re: DLF September 2023 Monthly Meeting Summary

2023-11-13 Thread Guillaume Piolat via Digitalmars-d-announce
On Sunday, 12 November 2023 at 19:50:02 UTC, Mike Parker wrote: https://gist.github.com/mdparker/f28c9ae64f096cd06db6b987318cc581 Thanks for the detailed summary, I'm reading them all!

Re: performance issues with SIMD function

2023-11-04 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 3 November 2023 at 15:11:31 UTC, Bogdan wrote: Can anyone help me to understand what I am missing? Your loop is likely dominated by sin() calls, And the rest of the loop isn't complicated enough to outperform the compiler. What you could do is use the intrinsics to implement a

Re: implicit-context v0.0.1

2023-10-03 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 2 October 2023 at 19:04:19 UTC, MrSmith33 wrote: On Thursday, 28 September 2023 at 23:28:02 UTC, Guillaume Piolat wrote: - manual push/pop I wonder if `with` statement is helpful here to reduce verbosity Do you mean with: with(scopedContext()) { set!int("myVar",

Re: implicit-context v0.0.1

2023-10-03 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 30 September 2023 at 15:02:16 UTC, Max Samukha wrote: When is it useful? You can use it to troll Jonathan Blow. OT: Apart from being marketed more like a game (streaming videos, and similarly "finished" at launch?) I was striked that Jai has already many... perlisms in the

Re: implicit-context v0.0.1

2023-09-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 September 2023 at 16:56:47 UTC, Imperatorn wrote: Sounds a bit like dependency injection but for state Possibly, I'm not familiar with dependency injection. When is it useful?

Re: implicit-context v0.0.1

2023-09-29 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote: I think for this to be truly valuable, it would require being part of the language. Only if proven on DUB. I admit I haven't really thought about implicit parameters before your post, so I might be missing something. Think

Re: implicit-context v0.0.1

2023-09-29 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 September 2023 at 08:33:56 UTC, Imperatorn wrote: Interesting, what are the benefits of using this instead of global variables? Thinking about this, it's more vs TLS variable. __gshared would require synchronization. Changing the theAllocator (a TLS variable) in

implicit-context v0.0.1

2023-09-28 Thread Guillaume Piolat via Digitalmars-d-announce
Hi, Ever had a bit of feature-envy about Odin's "context" feature [1]? It is something used to pass "contextual" parameters, like a logger, an allocator, to callees. It is akin to Scala's "implicit parameters", or Jai contexts [2]. So I went ahead and implement a proof-of-concept library

Re: D DLL crashes if not run on the main thread

2023-09-05 Thread Guillaume Piolat via Digitalmars-d-learn
On Tuesday, 5 September 2023 at 22:45:28 UTC, raven09 wrote: I *assume* that this has something to do with D's GC? But I tried calling GC.disable() and nothing changed. Any help or insight would be appreciated. Thanks in advance If you want to have a D DLL called from elsewhere, and don't

Re: LDC 1.34.0-beta2

2023-08-26 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 26 August 2023 at 14:29:32 UTC, jmh530 wrote: On Friday, 18 August 2023 at 13:40:54 UTC, drug007 wrote: 18.08.2023 01:32, Guillaume Piolat пишет: [...] Let me improve it a little bit (some form of procrastination) [...] Sorry, but what are you improving here? Some people

Cool pattern or tragic?

2023-08-25 Thread Guillaume Piolat via Digitalmars-d-learn
The idea is to deliberately mark @system functions that need special scrutiny to use, regardless of their memory-safety. Function that would typically be named `assumeXXX`. ```d class MyEncodedThing { Encoding encoding; /// Unsafe cast of encoding. void assumeEncoding (Encoding

Re: Spec for the ‘locality’ parameter to the LDC and GDC builtin magic functions for accessing special CPU prefetch instructions

2023-08-22 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 19 August 2023 at 19:23:38 UTC, Cecil Ward wrote: I’m trying to write a cross-platform function that gives access to the CPU’s prefetch instructions such as x86 prefetch0/1/2/prefetchnta and AAarch64 too. I’ve found that the GDC and LDC compilers provide builtin magic functions

Re: LDC 1.34.0-beta2

2023-08-17 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 17 August 2023 at 18:24:41 UTC, kinke wrote: Glad to announce the second beta for LDC 1.34. Major change since beta1: LLVM 16 support, incl. v16.0.6 for the prebuilt packages. Full release log and downloads: https://github.com/ldc-developers/ldc/releases/tag/v1.34.0-beta2

Re: std.experimental.allocator

2023-08-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 13 August 2023 at 16:10:32 UTC, ryuukk_ wrote: Core API should subscribe to the premise: give memory allocation control (and therefore dealocation) back to the user I'm not sure about why RAII is an issue, but I fully agree with your stance about a simpler allocator, and one we

Re: Is it possible to make an Linux Executable Binary using a Windows Operating System? [compiling and linking]

2023-07-25 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 24 July 2023 at 11:57:11 UTC, 4 wrote: Could someone share a step by step way to compile and link a x86-64 Linux Binary using Windows 10? (Without virtual machine or "Linux Subsystem for Windows") I want to compile and link a Hello World program for both Linux and Windows.

Re: Which D compiler is the most maintained and future-proof? [DMD GDC and LDC]

2023-07-24 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 24 July 2023 at 09:20:05 UTC, BoQsc wrote: There are three compilers present in the Dlang website: DMD GDC and LDC DMD can build much faster than LDC. In some cases it is quite extreme, for example the product I work on has a 3.6x faster debug build time with DMD (well, only with

Re: Evolving the D Language

2023-07-07 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 7 July 2023 at 13:01:53 UTC, Nick Treleaven wrote: Possibly obsolete features could become deprecations before they are actually removed. It just seems to me, instead of complaining when features become deprecated, people will complain when obsolete feature becomes deprecated

Re: Evolving the D Language

2023-07-07 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 7 July 2023 at 09:35:14 UTC, Paolo Invernizzi wrote: I respectfully disagree, and prefer to keep going on with the current deprecation and cleanup policy: Scott Meyers' DConf 2014 keynote all the way down. +1 I've always agreed with the deprecation in the end, even complex

Re: DasBetterR

2023-06-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 29 June 2023 at 23:51:44 UTC, bachmeier wrote: If you try it and have problems, you can [create a discussion](https://github.com/bachmeil/betterr/discussions). You can also post in this forum, but I won't guarantee I'll see it. Super cool, congrats!

Re: SIMD c = a op b

2023-06-19 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 18 June 2023 at 05:01:16 UTC, Cecil Ward wrote: On Sunday, 18 June 2023 at 04:54:08 UTC, Cecil Ward wrote: Is it true that this doesn’t always work (in either branch)? float4 a,b; static if (__traits(compiles, a/b)) c = a / b; else c[] = a[] / b[]; It's because SIMD stuff

Re: Running LDC on a recent MacOS

2023-06-17 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 16 June 2023 at 15:56:30 UTC, Dmitry Olshansky wrote: So I've got my hands on one of 'em MacPros. Great machine, nice build quality. Next order of business is to run D on the box, so I've downloaded universal binaries off ldc's release page. When I try to run any of the binaries

Re: Best way to use C library

2023-05-22 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 19 May 2023 at 18:31:45 UTC, Maximilian Naderer wrote: Hello guys, So what’s currently the best way to use a big C library? Let’s assume something like cglm assimp glfw - Some big libraries are translated, for example https://code.dlang.org/packages/glfw-d was created with both

Re: DCV is @nogc nothrow now.

2023-05-12 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 12 May 2023 at 08:41:56 UTC, Ferhat Kurtulmuş wrote: On Friday, 12 May 2023 at 07:40:54 UTC, Salih Dincer wrote: On Friday, 28 April 2023 at 13:50:35 UTC, Ferhat Kurtulmuş wrote: Please give it a try and destroy me :) I've been pushing myself to try DCV for about a week now. But

Re: Tutorial on LDC's -ftime-trace

2023-05-02 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 1 May 2023 at 17:56:21 UTC, Johan wrote: Two additions: - You forgot about the `--ftime-trace-granularity=` option ;-P - The timetrace can also tell you which parts of your program to separate into separate files + separate compilation. More tips: - `--ftime-trace` was

Re: A Programmer's Dilema: juggling with C, BetterC, D, Macros and Cross Compiling, etc.

2023-04-30 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 30 April 2023 at 17:51:15 UTC, Eric P626 wrote: So what language do you recommend: * Keep everything in plain C * Use C patched with macros to gain some language features like Foreach * Use BetterC for everything * Use D for the games, and better C or C for the libraries(To keep

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

2023-04-16 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 14 April 2023 at 17:31:02 UTC, backtrack wrote: however the memory is not releasing. With the D GC, your object can have three state: - reachable by GC. If D code can see the reference, then it's "alive", kept alive by GC scanning. The GC finds the reference and doesn't touch

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: 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: Why are globals set to tls by default? and why is fast code ugly by default?

2023-04-01 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 1 April 2023 at 08:47:54 UTC, IGotD- wrote: TLS by default is mistake in my opinion and it doesn't really help. TLS should be discouraged as much as possible as it is complicated and slows down thread creation. It looks like a mistake if we consider none of the D-inspired

Re: Why are globals set to tls by default? and why is fast code ugly by default?

2023-04-01 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 31 March 2023 at 19:43:42 UTC, bachmeier wrote: Those of us that have been scarred by reading FORTRAN 77 code would disagree. I use global mutables myself (and even the occasional goto), but if anything, it should be `__GLOBAL_MUTABLE_VARIABLE` to increase the pain of using them.

Re: Hipreme Engine is fully ported to MacOS

2023-03-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 29 March 2023 at 21:29:20 UTC, Hipreme wrote: - Linux - Windows - MacOS - Android - PS Vita - WebAssembly - Xbox Series Check it out on the GitHub: https://github.com/MrcSnm/HipremeEngine I also made the game example available now on a separate repo:

Re: Why are globals set to tls by default? and why is fast code ugly by default?

2023-03-27 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 26 March 2023 at 18:07:03 UTC, ryuukk_ wrote: Even C does it better: https://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html Honestly I find TLS-by-default to be a bad idea, it has become a trap to be avoided, and TLS does occasionally speed up things but it should be opt-in.

Re: better video rendering in d

2023-03-24 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 24 March 2023 at 15:41:36 UTC, Guillaume Piolat wrote: Hi, The idea to pipe stdout to ffmpeg is sound. In the following dead repo: https://github.com/p0nce/y4m-tools you will find a tool that capture a shader, format it into Y4M and output on stdout. Y4M output is useful because

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: Can nice D code get a bit slow?

2023-03-08 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 8 March 2023 at 10:49:32 UTC, Markus wrote: Uh, hope you understand my vague question, sorry about that. I found D to be the right place because it's not missing any essential feature I know of. Well, bounds check often cost a few percent, and you can disable it or use .ptr

Re: compile x64 .dll and .so without dependencies

2023-03-05 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 5 March 2023 at 06:36:05 UTC, novice2 wrote: It there any recipe to compile x64 .dll without dependencies? I mean it shoud be used without installing things like msvcr120.dll. Dependencies on system dll (advapi32.dll, kerner32.dll) is ok. I don't experiment on linux yet. But

Re: Hipreme Engine is fully ported to PS Vita

2023-03-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 4 March 2023 at 03:43:16 UTC, Hipreme wrote: After doing the WebAssembly port, I thought: This D Runtime must be very flexible, so, I thought to myself that maybe this could be a time to try again a very old hobby I had: Doing homebrew games for PS Vita. Thanks! Glad the

Re: D Language Foundation January 2023 Quarterly Meeting Summary

2023-03-01 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 27 February 2023 at 14:27:25 UTC, bachmeier wrote: Is there a replacement? If not, why is this even being discussed? I'm all for breaking changes if there's a benefit and an easy path to maintain the existing functionality. This fails on both counts. If you want to enforce that

Re: Big struct/class and T.init

2023-02-19 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 19 February 2023 at 18:29:05 UTC, Steven Schveighoffer wrote: On 2/19/23 1:26 PM, Steven Schveighoffer wrote: Testing with run.dlang.io, switching between `char` and `int` changes the ASM output to show whether it's stored or not. And BTW, you can override this by assigning a zero

Big struct/class and T.init

2023-02-19 Thread Guillaume Piolat via Digitalmars-d-learn
If my understanding is correct, the mere fact of having a: struct S { char[16384] array; } And then using it anywhere, will necessarily lead to a S.init being created and linked, leading to a binary size inflation of 16kb. This is not a super high concern, but can inform

Re: Debugging memory leaks

2023-02-19 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 15 February 2023 at 18:21:34 UTC, Hipreme wrote: I want to know if there is some way to debug memory leaks in runtime. I have been dealing with that by using a profiler and checking D runtime function calls. Usually those which allocates has high cpu usage so it can be easy for

Re: ImportC "no include path set"

2023-02-09 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 14:08:47 UTC, bachmeier wrote: this looks like one of those "death by paper cut" things. It has the smell of a rough edge that needs fixing. It's the one reason I haven't even tried ImportC. I still wonder why I need to provide those headers while for linking

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-09 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 12:10:59 UTC, zjh wrote: On Wednesday, 8 February 2023 at 12:07:35 UTC, zjh wrote: they are always unwilling to add facilities useful to others, `D`'s community is small, this is the reason! yeah right let's implement everything that people propose

Re: Hipreme Engine is fully ported to WebAssembly

2023-02-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 3 February 2023 at 13:41:35 UTC, Hipreme wrote: ![Hipreme Engine Match3 sample game on web](https://user-images.githubusercontent.com/10136262/216611608-aebcb31b-a5f3-4153-ac41-44777f19896a.png) This custom runtime is a most welcome development.

Re: Which TOML package, or SDLang?

2023-01-30 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 30 January 2023 at 06:38:46 UTC, Daren Scot Wilson wrote: I just realized - it's been ages since I've dealt with config files, beyond editing them as an end user. I work on existing software where someone else made the choiced and wrote the code, or it's a small specialized project

Re: LDC 1.31.0-beta1

2023-01-30 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 27 January 2023 at 20:35:01 UTC, kinke wrote: Glad to announce the first beta for LDC 1.31. Major changes: * Based on D 2.101.2. * ImportC: The C preprocessor isn't invoked yet. * mac/iOS arm64: Linking with `-g` is working again without unaligned pointer warnings/errors. *

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-07 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 6 January 2023 at 12:52:43 UTC, Hipreme wrote: Hello people. I have tried working again with adam's wasm minimal runtime, and yesterday I was able to make a great progress on it. Awesome! To think that custom druntime can get you out of platform situations is great risk

Re: Poll for D Game Dev

2023-01-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 4 January 2023 at 02:54:51 UTC, Hipreme wrote: 1: Would you be interested in participating in a D game jam? I'm going to promote those in near future with paid prizes (though those are going to require using my engine as its main purpose is making it better). Maybe. 2: Why

Re: Idiomatic D using GC as a library writer

2022-12-05 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 4 December 2022 at 21:55:52 UTC, Siarhei Siamashka wrote: Is it possible to filter packages in this list by @nogc or @safe compatibility? You can list DUB packages for "@nogc usage" https://code.dlang.org/?sort=score=20=library.nogc

Re: Idiomatic D using GC as a library writer

2022-12-05 Thread Guillaume Piolat via Digitalmars-d-learn
There are legitimate uses cases when you can't afford the runtime machinery (attach/detach every incoming thread in a shared library), more than not being able to afford the GC from a performance point of view. GC gives you higher productivity and better performance with the time gained.

Re: Release D 2.101.0

2022-12-05 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 3 December 2022 at 19:17:59 UTC, zoujiaqing wrote: Thank you!!! When will it support Apple M1 processors? My macbook has been unable to use D for months. We've been shipping to M1 users for the last 2 years.

Re: My first game done in my engine is finally running on Xbox Series!

2022-11-16 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 15 November 2022 at 18:42:15 UTC, Hipreme wrote: If you wish to take a look into the current code development, here it is: https://github.com/MrcSnm/HipremeEngine Congrats! It was impressing to see you advance that quickly on difficult ground.

Re: blog post about how you can make your gc code faster

2022-11-09 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 7 November 2022 at 14:34:38 UTC, Adam D Ruppe wrote: Putting aside new GC implementation tweaks like I discussed last week, and not just switching to other functions, this week I wanted to lecture a bit about how you can reduce your GC pause times in stock D today:

Re: Makefiles and dub

2022-11-05 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 5 November 2022 at 12:17:14 UTC, rikki cattermole wrote: But yes, it has two others (although idk how much they get used, or how complete). Using the first two all the time. IIRC VisualD projects respect --combined

Re: Hipreme's #4 Tip of the day - Don't use package.d

2022-11-04 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 4 November 2022 at 19:53:01 UTC, Adam D Ruppe wrote: This isn't that hard; in the old days you'd have `pkg.foo` then `import pkg.all` instead of `import pkg;`. It was worse, you would do import mylib.all; and now it's just: import mylib; Also the "all" concept is bad, it

Re: Release D 2.100.2

2022-11-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 4 November 2022 at 14:14:43 UTC, Guillaume Piolat wrote: One could perhaps use a self-signed certificate that will allow to reuse that Authenticode reputation, I'm not sure. Now, to be very clear: there is a chance that even a non-CA certificate would accumulate trust, since

Re: Release D 2.100.2

2022-11-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 4 November 2022 at 13:01:09 UTC, Iain Buclaw wrote: What does in a hardware token mean for us? Is it required to have it to hand every time we have to sign a beta, rc, final release binary? Does it bound us to a specific OS because of locked in proprietary tools?

Re: Release D 2.100.2

2022-11-04 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 4 November 2022 at 02:44:57 UTC, Iain Buclaw wrote: On Tuesday, 1 November 2022 at 21:56:39 UTC, Ruby The Roobster wrote: On Tuesday, 1 November 2022 at 19:57:11 UTC, JN wrote: Windows is showing SmartScreen warnings when trying to run the Windows installer. Also, the installed

Re: Beta 2.101.0

2022-10-27 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 17 October 2022 at 11:35:22 UTC, Iain Buclaw wrote: Glad to announce the first beta for the 2.101.0 release, ♥ to the 299 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.101.0.html As usual please report any bugs at https://issues.dlang.org -Iain

Re: parserino 0.2.0

2022-10-21 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 19 October 2022 at 08:30:57 UTC, Andrea Fontana wrote: Hello! Finally I released the public version of parserino, a html5 parser for linux, macos and windows. Link: https://github.com/trikko/parserino Nice, thanks for this!

Re: parallel is slower than serial

2022-10-18 Thread Guillaume Piolat via Digitalmars-d-learn
On Tuesday, 18 October 2022 at 11:56:30 UTC, Yura wrote: What I am doing wrong? The size of your task are way too small. To win something with OS threads, you must think of tasks that takes on the order of milliseconds rather than less than 0.1ms. Else you will just pay extra in

Re: How do I correctly install packages for use with Visual Studio?

2022-10-17 Thread Guillaume Piolat via Digitalmars-d-learn
On Sunday, 16 October 2022 at 11:09:31 UTC, Decabytes wrote: I'm trying to set up Visual Studio 2022 with Visual D, and I'm running into issues trying to get my project to build correctly. Some recommendation to use Visual Studio: - tutorial for installation here:

Is it possible? branching on debug info

2022-10-16 Thread Guillaume Piolat via Digitalmars-d-learn
I'd like to have: version (D_DebugInfo) {} else { version = enableFeatureThatIsAnnoyingWhenDebugging; } Is there a way to know if debug info is being emitted when compiling? "debug is not cutting it because sometimes you really need to

Re: DIP 1043---Shortened Method Syntax---Accepted

2022-09-25 Thread Guillaume Piolat via Digitalmars-d-announce
On Saturday, 24 September 2022 at 08:45:33 UTC, Dukc wrote: Good reasoning from Max. Thanks Max for the DIP!

Meanwhile on the audio front

2022-09-22 Thread Guillaume Piolat via Digitalmars-d-announce
September was a great month for the D sub-community around #Dplug & #audio. We got no less than 3 releases using D and Dplug: - **OneTrick Simian**, your synthwave drum synth by Punk Labs. An algo perc synth, there aren't too many of those, it is on the level of Microtonic... first

Re: Inochi2D - Realtime 2D Animation written in D

2022-09-11 Thread Guillaume Piolat via Digitalmars-d-announce
On Sunday, 11 September 2022 at 23:00:24 UTC, Luna wrote: Hey folks, I have for the (almost) past 2 years been working on a real-time 2D animation library called [Inochi2D](https://github.com/Inochi2D/inochi2d) and tooling for it. Recently I went full time on the project due to generous

Re: Beta 2.100.2

2022-09-01 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 1 September 2022 at 04:34:40 UTC, Iain Buclaw wrote: No one has raised an issue so far for all DMD releases since that occurred in the last 12 months, so either lack of signing isn't an problem, or people are just ignoring/working around whatever warning messages you might get

Re: how to install the new dmd on Mac M1?

2022-08-29 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 25 August 2022 at 14:19:47 UTC, MichaelBi wrote: I downloaded the new dmd 2.1 on Mac, but with fail message of "unsupported Arch arm64". how can I do? thanks. ## Step 1 Get LDC here: https://github.com/ldc-developers/ldc/releases - If you are running on Apple Silicon, be sure

Announcing audio-formats v1.0.0

2022-08-26 Thread Guillaume Piolat via Digitalmars-d-announce
https://forum.dlang.org/post/xziwukcfzhsgahpjo...@forum.dlang.org On Friday, 18 June 2021 at 09:29:35 UTC, Guillaume Piolat wrote: Update in v1.3.0: - MOD decoding - XM decoding Update in v2.0.0 - no more dependencies

Re: Basic D Game For New D Gamedevs (glfw 3.3 + openal soft 1.1 + opengl 4.1 )

2022-08-26 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 26 August 2022 at 02:45:39 UTC, jordan4ibanez wrote: Here is the repository, it is very bare bones: https://github.com/jordan4ibanez/d_glfw_test/tree/v1.0.0 Nice work. I get a crash on Windows though. Running d_glfw_test.exe automatically half sizing the window Program exited

Re: New WIP DUB documentation

2022-08-18 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 18 August 2022 at 10:23:35 UTC, Bastiaan Veelo wrote: ## Hacking on a local copy of a package If your project depends on a package in which you have found a problem, or you would like to experiment with changes to it, you can force Dub to use a local copy of the package by

Re: my d blog has idea of effect system to replace @nogc etc

2022-08-16 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 16 August 2022 at 15:01:05 UTC, rikki cattermole wrote: But one key difference is it is designed to work with the GC even if it is -betterC @nogc @safe nothrow. How do you do that?

Re: my d blog has idea of effect system to replace @nogc etc

2022-08-16 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 15 August 2022 at 15:08:01 UTC, Adam D Ruppe wrote: In my blog this week, I described an idea I've had percolating in my brain for a bit about a user-defined effect system that could potentially move nogc, safe, pure, etc to library aliases - which would let you combine them as a

Re: gamut v0.0.7 ask for what you want

2022-08-11 Thread Guillaume Piolat via Digitalmars-d-announce
On Thursday, 11 August 2022 at 11:06:43 UTC, wjoe wrote: I imagined you could allocate internal buffers for encoding/decoding on the stack but your reply suggests otherwise. Yes. For example, the QOI-10b codec needs an pallete of 256 16-bit RGBA, that's 2 kb. Is that portable? There is

Re: gamut v0.0.7 ask for what you want

2022-08-09 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 8 August 2022 at 16:07:54 UTC, wjoe wrote: your lib would not just be @nogc but @no_allocation. All image decoders in gamut need to malloc more than just for pixel data. Even STB allocates for format conversion, zlib buffers, 16-bit <-> 8-bit, etc. it's not just pixel data. Single

Re: gamut v0.0.7 ask for what you want

2022-07-31 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 29 July 2022 at 14:28:55 UTC, ryuukk_ wrote: One suggestion, have a little struct with function pointers for malloc/free/realloc, so that we can plug our own allocator Hello, thanks for the heads-up! A few question about your use case (I believe you are using WebASM), to better

gamut v0.0.7 ask for what you want

2022-07-29 Thread Guillaume Piolat via Digitalmars-d-announce
Using D and images I ended up with a problem. The problem was that parts of my code wanted to decode just specific image metadata, other just pixels. Others were interested in 10-bit, and others in this or that format. Finally, some were concerned about aligned layout and others just wanted

Re: Blog post on extending attribute inference to more functions

2022-07-19 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 18 July 2022 at 22:48:27 UTC, Bastiaan Veelo wrote: I abuse `@deprecated` for that purpose in my own code, to remind myself of some holes that need patching. — Bastiaan. I put tags in comments, to text search later. Usually: ``` // TODO: actually blocks a release //

Re: Fetching licensing info for all dependencies of a DUB project

2022-06-28 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote: I played around with the idea and came up with a small dub package, that is not (yet) uploaded to the dub registry. Source is available at https://github.com/gizmomogwai/packageinfo, feedback very welcome. I've done

Re: Consuming D libraries from other languages

2022-06-15 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 15 June 2022 at 19:36:34 UTC, Guillaume Piolat wrote: BindBC bindings are multi-platform and can be both static and dynamic linking. My bad I understood the reverse, consuming C libraries from D. I think what you are seeking is described in the D blog.

Re: Consuming D libraries from other languages

2022-06-15 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 15 June 2022 at 17:37:32 UTC, Templated Person wrote: It there any resources on how to build D static (`.lib` / `.a`) and dynamic libraries (`.dll` / `.so`), and then use them from C? Do I need to link and initialize phobos somehow? What if I don't want to use the D runtime?

Re: want to confirm: gc will not free a non-gc-allocated field of a gc-allocated object?

2022-06-06 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 6 June 2022 at 22:24:45 UTC, Guillaume Piolat wrote: My understanding is that while scanning, the GC will see the data.ptr pointer, but will not scan the area it points to since it's not in a GC range (the runtime can distinguish managed pointer and other pointers). After

Re: want to confirm: gc will not free a non-gc-allocated field of a gc-allocated object?

2022-06-06 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 6 June 2022 at 22:18:08 UTC, mw wrote: So when `obj` is cleanup by the GC, obj.data won't be freed by the GC: because the `data` is non-gc-allocated (and it's allocated on the non-gc heap), the GC scanner will just skip that field during a collection scan. Is this understanding

Re: How to map machine instctions in memory and execute them? (Aka, how to create a loader)

2022-06-06 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 6 June 2022 at 15:13:45 UTC, rempas wrote: Any ideas? See: https://github.com/GhostRain0/xbyak https://github.com/MrSmith33/vox/blob/master/source/vox/utils/mem.d

Re: D Language Foundation May 2022 Monthly Meeting Summary

2022-06-06 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 6 June 2022 at 08:44:32 UTC, Mike Parker wrote: ## The next meeting Our next monthly meeting is scheduled for Friday, June 10, at 14:00 UTC. The vision document is the main item on the agenda, and I expect it to take up most of the oxygen. We'll review the current draft and decide

  1   2   3   4   5   6   7   8   9   >