Re: There is Dlang Telegram Bot based on the official Telegram Bot API?

2020-04-05 Thread Denis Feklushkin via Digitalmars-d-learn
On Friday, 3 April 2020 at 16:10:55 UTC, Baby Beaker wrote: I create Bots for Telegram using Python or PHP. But I love Dlang and would like to create my Bots in Dlang. Is there any support for Dlang to create Telegram Bots? My bots use https://code.dlang.org/packages/telega without any

Re: Fixing race issues the right way

2020-04-05 Thread Mathias LANG via Digitalmars-d-learn
On Sunday, 5 April 2020 at 22:24:27 UTC, solidstate1991 wrote: My game engine is currently broken due to some race issue I don't really know how to resolve. It seems that the compiler tries to skip instructions that are not locked with a `writeln()` or something similar. Usually I can safely

Cross module inline, LDC, dub dependencies.

2020-04-05 Thread NaN via Digitalmars-d-learn
OK so I am using the intel intrinsics library, I ws just copying it into my source tree. So in the interests of automation I added it as a dependency in dub, but now my code is anywhere up to 3 times slower. So I figure maybe as its being compiled as a library, it's not getting inlined because

Re: Fixing race issues the right way

2020-04-05 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 5 April 2020 at 22:24:27 UTC, solidstate1991 wrote: My game engine is currently broken due to some race issue I don't really know how to resolve. It seems that the compiler tries to skip instructions that are not locked with a `writeln()` or something similar. Usually I can safely

Fixing race issues the right way

2020-04-05 Thread solidstate1991 via Digitalmars-d-learn
My game engine is currently broken due to some race issue I don't really know how to resolve. It seems that the compiler tries to skip instructions that are not locked with a `writeln()` or something similar. Usually I can safely remove the writeln after compiling it once with that way.

Re: CT BitArray

2020-04-05 Thread Johan via Digitalmars-d-learn
On Wednesday, 31 October 2018 at 23:14:08 UTC, Bastiaan Veelo wrote: Currently, BitArray is not usable at compile time, so you cannot do ``` enum e = BitArray([1, 1, 1, 0]); ``` This gives /dlang/dmd/linux/bin64/../../src/phobos/std/bitmanip.d(1190): Error: `bts` cannot be interpreted at

Re: Linear array to matrix

2020-04-05 Thread p.shkadzko via Digitalmars-d-learn
On Sunday, 5 April 2020 at 18:58:17 UTC, p.shkadzko wrote: On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria wrote: [...] Why not use "chunks" from std.range? import std.range: chunks; void main() { int[] arr = [10,20,30,40,50,60,70,80,90,100,110,120]; auto matrix1 =

Re: Linear array to matrix

2020-04-05 Thread p.shkadzko via Digitalmars-d-learn
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria wrote: Hi. Is there a Built-in function (no code, only a built-in function) that transform a linear array to a Matrix? For example: From [10,20,30,40,50,60,70,80,90,100,110,120]; To [ [10,20,30], [40,50,60], [70,80,90],

Re: D on android and d_android

2020-04-05 Thread burt via Digitalmars-d-learn
On Thursday, 2 April 2020 at 17:16:56 UTC, burt wrote: On Thursday, 2 April 2020 at 12:13:27 UTC, Adam D. Ruppe wrote: On Thursday, 2 April 2020 at 11:29:24 UTC, burt wrote: Anyway, I don't think this fails to work because of an error in the d_android library. If you find anything else that

Re: How user dub packages in dmd without dub.exe ?

2020-04-05 Thread WebFreak001 via Digitalmars-d-learn
On Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote: On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote: On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote: [...] [...] If you can copy the D packages from the Dub packages into your main source folder, the command

Re: How user dub packages in dmd without dub.exe ?

2020-04-05 Thread Baby Beaker via Digitalmars-d-learn
On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote: On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote: I want import modules from dub packages in my program.d and run using dmd.exe without dub.exe. How can I make it? Becouse when I try to import it says that can not found. Ag

Re: How user dub packages in dmd without dub.exe ?

2020-04-05 Thread Marcone via Digitalmars-d-learn
On Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote: On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote: On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote: [...] Ag the end dub is calling DMD/LDC with some arguments. You can run dub with verbose output and check the

Re: Vibe-d Error Message and failed with exit code 1

2020-04-05 Thread WebFreak001 via Digitalmars-d-learn
On Saturday, 4 April 2020 at 14:40:16 UTC, Baby Beaker wrote: Program.d #!/usr/bin/env dub /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.vibe; import std; [...] First of all try using the latest vibe.d release instead: /+ dub.sdl: name

Re: There is Dlang Telegram Bot based on the official Telegram Bot API?

2020-04-05 Thread Dan Cirnat via Digitalmars-d-learn
On Friday, 3 April 2020 at 16:10:55 UTC, Baby Beaker wrote: I create Bots for Telegram using Python or PHP. But I love Dlang and would like to create my Bots in Dlang. Is there any support for Dlang to create Telegram Bots? Hi, A quick search yielded this dub package: