Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
On Thursday, 17 February 2022 at 01:17:51 UTC, kinke wrote: On Wednesday, 16 February 2022 at 20:40:02 UTC, Fry wrote: A lot of unresolved references to just CPU_COUNT. The confusing part is that it has undefined referenced to parts of in `core`, which I am linking the druntime as well. If yo

Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread kinke via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 20:40:02 UTC, Fry wrote: A lot of unresolved references to just CPU_COUNT. The confusing part is that it has undefined referenced to parts of in `core`, which I am linking the druntime as well. If you're linking manually, make sure that `-ldruntime-ldc` comes

Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 22:50:09 UTC, H. S. Teoh wrote: On Wed, Feb 16, 2022 at 08:40:02PM +, Fry via Digitalmars-d-learn wrote: I'm getting a ton of linker errors when building with LDC with the aarch64 release from here: [...] Is anyone able to build for android? I adapted th

Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Feb 16, 2022 at 08:40:02PM +, Fry via Digitalmars-d-learn wrote: > I'm getting a ton of linker errors when building with LDC with the > aarch64 release from here: [...] > Is anyone able to build for android? I adapted the instructions from: https://wiki.dlang.org/Build_D_for_A

Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
I'm getting a ton of linker errors when building with LDC with the aarch64 release from here: https://github.com/ldc-developers/ldc/releases ``` Lib/Android/arm64-v8a/libphobos2-ldc.a(concurrency.o):(.data._D3std11concurrency12__ModuleInfoZ+0x20): undefined reference to `_D4core4sync9condition

Re: Strange behavior of iota

2022-02-16 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 19:35:00 UTC, jmh530 wrote: [snip] Step 1: In the integral overloads, use allSatisfy!(isSigned, B, E) || allSatisfy!(isUnsigned, T, U) for the current behavior Step 2: When !(allSatisfy!(isSigned, B, E) || allSatisfy!(isUnsigned, T, U)), then convert to narrow

Re: GtkD on macOS Monterey

2022-02-16 Thread Joel via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 15:54:26 UTC, Ron Tarrant wrote: On Monday, 14 February 2022 at 00:39:30 UTC, Joel wrote: My GtkD programs compile and run (on Monterey - works on earlier versions), but not GUI displayed?! I asked on the GtkD forum, but they said about not having a mac or so

Re: Offline D documentation/tutorial

2022-02-16 Thread Christian Köstlin via Digitalmars-d-learn
On 2022-02-13 01:16, LorenDB wrote: Is there a way to download tour.dlang.org, the D spec, and/or the Phobos spec as an offline HTML site? I like the ability of cppreference.com to be saved as an offline HTML archive and I'd like to have that for D as well. In addition to the already mentioned

Re: Strange behavior of iota

2022-02-16 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 15:55:55 UTC, bachmeier wrote: On Wednesday, 16 February 2022 at 15:21:11 UTC, jmh530 wrote: On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote: [snip] After looking at the documentation and seeing CommonType!(int, uint) is uint, I have to say that

Re: split Error - no overload matches

2022-02-16 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Feb 15, 2022 at 06:37:44PM +, meta via Digitalmars-d-learn wrote: > A trick i use often: > > ```D > import std; > > void main() > { > import uni = std.uni; > writeln("Learning D is fun".split!(uni.isWhite)); > } > > ``` > > Under-rated way of importing things, you don't blo

Re: Strange behavior of iota

2022-02-16 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 15:21:11 UTC, jmh530 wrote: On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote: [snip] After looking at the documentation and seeing CommonType!(int, uint) is uint, I have to say that iota's behavior doesn't make much sense. What do you propose a

Re: GtkD on macOS Monterey

2022-02-16 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 14 February 2022 at 00:39:30 UTC, Joel wrote: My GtkD programs compile and run (on Monterey - works on earlier versions), but not GUI displayed?! I asked on the GtkD forum, but they said about not having a mac or something. Check this out: https://gitlab.gnome.org/GNOME/gtk/-/issu

Re: Strange behavior of iota

2022-02-16 Thread jmh530 via Digitalmars-d-learn
On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote: [snip] After looking at the documentation and seeing CommonType!(int, uint) is uint, I have to say that iota's behavior doesn't make much sense. What do you propose as an alternative? What about the narrowest type that fits both

Re: Strange behavior of iota

2022-02-16 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 02:51:32 UTC, Era Scarecrow wrote: On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote: On Tuesday, 15 February 2022 at 22:02:13 UTC, Adam D Ruppe wrote: for(a = v.length; a > cast(size_t) -1, a += -1) After looking at the documentation and seeing C

Re: How to work with hashmap from memutils properly?

2022-02-16 Thread ikod via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 10:31:38 UTC, Siarhei Siamashka wrote: On Friday, 11 February 2022 at 19:04:41 UTC, Sergey wrote: Is this an attempt to implement a high performance solution for the Benchmarks Game's LRU problem in D language? Yes. There is no D version there. And I'm just cu

Re: How to work with hashmap from memutils properly?

2022-02-16 Thread Siarhei Siamashka via Digitalmars-d-learn
On Friday, 11 February 2022 at 19:04:41 UTC, Sergey wrote: Is this an attempt to implement a high performance solution for the Benchmarks Game's LRU problem in D language? Yes. There is no D version there. And I'm just curious how fast is D in those problems. Dlang (LDC), Crystal, Rust and C