Re: Best way to convert between GBK/GB18030 to utf8 ?

2023-05-23 Thread WebFreak001 via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 02:58:21 UTC, John Xu wrote: What is the best way to convert a GBK/GB18030 file contents, i.e. read via: std.stdio.read(gbkFile).to!string , to utf8 encoding ? I don't think we have any implementation of that encoding yet. If you decide to make your own, don't forget

Re: Log rotation in std.logger.filelogger

2023-05-23 Thread apz28 via Digitalmars-d-learn
On Wednesday, 17 May 2023 at 21:11:41 UTC, Vitalii wrote: Hello! Please tell me how to enable log rotation in std.logger.filelogger? Without log rotation, it seems that the std.logger.filelogger is useless, because it will quickly take up all the free space on the hard drive. Or can try m

Re: Log rotation in std.logger.filelogger

2023-05-23 Thread Andrew via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 11:21:07 UTC, apz28 wrote: On Wednesday, 17 May 2023 at 21:11:41 UTC, Vitalii wrote: Hello! Please tell me how to enable log rotation in std.logger.filelogger? Without log rotation, it seems that the std.logger.filelogger is useless, because it will quickly take up

Re: Best way to convert between GBK/GB18030 to utf8 ?

2023-05-23 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 02:58:21 UTC, John Xu wrote: What is the best way to convert a GBK/GB18030 file contents, i.e. read via: std.stdio.read(gbkFile).to!string , to utf8 encoding ? https://github.com/lytsing/gbk-utf8/blob/master/utf8.c Here, it is C, but porting this to D is easy There

Re: How to use Dub and Digger to build Pull Requests?

2023-05-23 Thread Quirin Schroll via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 13:50:09 UTC, Quirin Schroll wrote: The dlang-bot writes a message to every PR: Testing this PR locally If you don't have a local development environment setup, you can use Digger to test this PR: ```bash dub run digger -- build "master + dmd#<>" ``` I instal

How to use Dub and Digger to build Pull Requests?

2023-05-23 Thread Quirin Schroll via Digitalmars-d-learn
The dlang-bot writes a message to every PR: Testing this PR locally If you don't have a local development environment setup, you can use Digger to test this PR: ```bash dub run digger -- build "master + dmd#<>" ``` I installed the current DMD (version 2.103.1) and executed the above co

Re: How to use Dub and Digger to build Pull Requests?

2023-05-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 13:50:09 UTC, Quirin Schroll wrote: ``` object.Exception@%LOCALAPPDATA%\dub\packages\ae-0.0.3236\ae\sys\d\manager.d(898): Command ["make", "-f", "win32.mak", "MODEL=32", "HOST_DC=C:\\Users\\qschroll\\Documents\\d\\mydmd\\work\\dl\\dmd-2.079.0\\dmd2/windows/bin\\dmd.ex

Re: Log rotation in std.logger.filelogger

2023-05-23 Thread apz28 via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 13:13:18 UTC, Andrew wrote: On Tuesday, 23 May 2023 at 11:21:07 UTC, apz28 wrote: On Wednesday, 17 May 2023 at 21:11:41 UTC, Vitalii wrote: Hello! Please tell me how to enable log rotation in std.logger.filelogger? Without log rotation, it seems that the std.logger

Re: Lockstep iteration in parallel: Error: cannot have parameter of type `void`

2023-05-23 Thread kdevel via Digitalmars-d-learn
On Saturday, 20 May 2023 at 18:27:47 UTC, Ali Çehreli wrote: [...] And I've just discovered something. Me2! The serial version using array indexing void vec_op_naive0 (double [] outp, const double [] inp, double function (double) fp) { enforce (inp.length == outp.length);

Re: Log rotation in std.logger.filelogger

2023-05-23 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 14:10:52 UTC, apz28 wrote: On Tuesday, 23 May 2023 at 13:13:18 UTC, Andrew wrote: On Tuesday, 23 May 2023 at 11:21:07 UTC, apz28 wrote: [...] Please don't take this as an insult, as I've also written my own logging library lol. But I have a feeling that our efforts