Re: Discord bot written in D

2020-04-07 Thread Meta via Digitalmars-d-learn
On Monday, 6 April 2020 at 21:23:22 UTC, Quantium wrote: Are there any libraries to creade a simple discord bot using D? And if you know these libraries, could you day me their pros and cons? I've used https://github.com/b1naryth1ef/dscord to build a Discord bot, a little over a year ago. How

To get memory from another process.

2020-04-07 Thread Quantium via Digitalmars-d-learn
Could you advise me how to do these steps on D? Which libs should I import? 1. My programm gets a path to exe file 2. My programm starts that exe file and writes into it 2 commands 3. Programm gets access to exe file memory 4. Programm gets data from process memory and writes it into data.bin fi

Re: D on android and d_android

2020-04-07 Thread burt via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 12:29:57 UTC, Adam D. Ruppe wrote: On Tuesday, 7 April 2020 at 11:45:24 UTC, burt wrote: I managed to get it to compile. I had to add __bss_end__ symbol myself and set the value to the value of the `_end` symbol or it wouldn't work. A PR to the LDC druntime is wat c

Re: D on android and d_android

2020-04-07 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Apr 07, 2020 at 03:06:16PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: > > 1) Follow LDC wiki to build an Android cross-compiler and > >cross-compiled LDC libraries (this may already be prepackaged > >with the la

Re: Discord bot written in D

2020-04-07 Thread Quantium via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 11:43:46 UTC, JN wrote: On Monday, 6 April 2020 at 21:23:22 UTC, Quantium wrote: Are there any libraries to creade a simple discord bot using D? And if you know these libraries, could you day me their pros and cons? There are four Discord API related libraries on c

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: 1) Follow LDC wiki to build an Android cross-compiler and cross-compiled LDC libraries (this may already be prepackaged with the latest LDC releases). They are - this is all automatic just-works now (if you download the right

Re: D on android and d_android

2020-04-07 Thread Jan Hönig via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: On Tue, Apr 07, 2020 at 12:43:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: > Is there some "Hello World!" example for D on Android? [...] > However there is just so

Re: D on android and d_android

2020-04-07 Thread Jan Hönig via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 12:43:20 UTC, Adam D. Ruppe wrote: On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: Is there some "Hello World!" example for D on Android? So I did a tiny thing in the repo: https://github.com/adamdruppe/d_android/tree/master/android-dub-test if you open

Re: D on android and d_android

2020-04-07 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Apr 07, 2020 at 12:43:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: > > Is there some "Hello World!" example for D on Android? [...] > > However there is just so much to know. > > It is really overwhelming. > > no kidd

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: Is there some "Hello World!" example for D on Android? So I did a tiny thing in the repo: https://github.com/adamdruppe/d_android/tree/master/android-dub-test if you open that in android studio it should load up, and the makefile is c

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 11:45:24 UTC, burt wrote: I managed to get it to compile. I had to add __bss_end__ symbol myself and set the value to the value of the `_end` symbol or it wouldn't work. A PR to the LDC druntime is wat caused the __bss_end__ symbol to be missing [0]. Blargh it was

Re: D on android and d_android

2020-04-07 Thread burt via Digitalmars-d-learn
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 may cause it, I am glad to know, but thank you for your he

Re: Discord bot written in D

2020-04-07 Thread JN via Digitalmars-d-learn
On Monday, 6 April 2020 at 21:23:22 UTC, Quantium wrote: Are there any libraries to creade a simple discord bot using D? And if you know these libraries, could you day me their pros and cons? There are four Discord API related libraries on code.dlang.org. Have you checked those?

Vibe.d and shared data synchronization

2020-04-07 Thread Christian Köstlin via Digitalmars-d-learn
Hi, I wrote a very small vibe.d based URL-shortener. It has an in memory database that is in theory shared across request threads. At the moment I do not distribute over the vibe.d threadpool (https://vibed.org/features#multi-threading), but I would like to. What would be the best way to shar