Re: Silent error when using hashmap

2017-07-26 Thread FoxyBrown via Digitalmars-d
On Thursday, 27 July 2017 at 02:30:17 UTC, FatalCatharsis wrote: On Thursday, 27 July 2017 at 01:21:40 UTC, Steven Schveighoffer wrote: [...] This appears to be it. When an error is thrown, stdout does not flush. When I put stdout.flush() immediately after the writeln("start") at the beginni

Why is dlang.org having so many problems lately? I constantly have issues connecting.

2017-07-13 Thread FoxyBrown via Digitalmars-d
? Pretty much at least several times a day I cannot connect. Either stalls, forum is down, etc.

.NET Library In D

2017-07-10 Thread FoxyBrown via Digitalmars-d
I was able to get my C# to D convert to convert about 25% of the .net library v4.6 It converts the following libs: // System.CodeDom // System.CodeDom.Compiler // System.Collections.Concurrent // System.Collections.Generic // System.Collections.ObjectModel // System.Collections.Specialized // S

.NET Library In D

2017-07-10 Thread FoxyBrown via Digitalmars-d
I was able to get my C# to D convert to convert about 25% of the .net library v4.6 It converts the following libs: // System.CodeDom // System.CodeDom.Compiler // System.Collections.Concurrent // System.Collections.Generic // System.Collections.ObjectModel // System.Collections.Specialized // S

Variadic Template Pattern

2017-07-09 Thread FoxyBrown via Digitalmars-d
Hi, I have a proposal, wondering about your opinions. Suppose one has a template function foo that accepts a variable number of parameters: auto foo(T...)(); Suppose we actually want to have some type of order and type info instead: auto foo(int, string)(); but we need a "variable" number

Why is phobos so wack?

2017-07-09 Thread FoxyBrown via Digitalmars-d
import string. ... return str.join(" "); gives Error: template std.array.join cannot deduce function from argument types !()(string, string), candidates are: \..\..\src\phobos\std\array.d(1591):std.array.join(RoR, R)(RoR ror, scope R sep) if (isInputRange!RoR && isInputRange!(Unqual

Re: All asserts need to have messages attached! Explicit as possible!

2017-07-07 Thread FoxyBrown via Digitalmars-d
On Saturday, 8 July 2017 at 02:23:53 UTC, Jonathan M Davis wrote: On Saturday, July 8, 2017 12:55:46 AM MDT FoxyBrown via Digitalmars-d wrote: I came across some error in heap sort. Was erroring out on the wrong. A few lines below the assert existed but no error message associated, why is it

All asserts need to have messages attached! Explicit as possible!

2017-07-07 Thread FoxyBrown via Digitalmars-d
I came across some error in heap sort. Was erroring out on the wrong. A few lines below the assert existed but no error message associated, why is it so hard to not write a few extra EXTREMELY helpful error messages? assert(isHeap(r), "This is an ERROR AT THIS LOCATION"~__FILE__~"("~__LINE__~

Re: Vibe.d - very low performance

2017-07-07 Thread FoxyBrown via Digitalmars-d
On Thursday, 6 July 2017 at 10:57:31 UTC, Sönke Ludwig wrote: Am 06.07.2017 um 09:27 schrieb Marek: https://www.techempower.com/benchmarks/#section=data-r14&hw=ph&test=plaintext C++, Java and Go frameworks have very high performance. Vibe.d is supposed to have similar performance, but in fact

Re: auto*

2017-07-06 Thread FoxyBrown via Digitalmars-d
On Thursday, 6 July 2017 at 18:11:13 UTC, H. S. Teoh wrote: On Thu, Jul 06, 2017 at 06:10:57PM +, FoxyBrown via Digitalmars-d wrote: Create an auto pointer, handy in some cases and fits in the language as a natural generalization. What's an auto pointer? T is it not obvious? a

auto*

2017-07-06 Thread FoxyBrown via Digitalmars-d
Create an auto pointer, handy in some cases and fits in the language as a natural generalization.

Re: Let's paint those bikesheds^Werror messages!

2017-06-27 Thread FoxyBrown via Digitalmars-d
On Tuesday, 27 June 2017 at 14:32:28 UTC, Vladimir Panteleev wrote: As has been announced, DMD now has colorized syntax highlighting in error messages: http://forum.dlang.org/post/of9oao$230j$1...@digitalmars.com With 2.075's release near, now would be a good time to decide on a nice color pa

Re: D error messages for function call mismatches

2017-06-27 Thread FoxyBrown via Digitalmars-d
On Tuesday, 27 June 2017 at 15:01:41 UTC, Adam D. Ruppe wrote: On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote: D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: I agree, that error message is terrible, and that's why I have a

D error messages for function call mismatches

2017-06-27 Thread FoxyBrown via Digitalmars-d
D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: arsd\stb_truetype.d(1246): Error: function core.stdc.stdlib.qsort (scope void* base, uint nmemb, uint size, extern (C) int function(scope const(void*), scope const(void*)) @system compar)

Re: Windows/Android/Mac/RaspberryPi/Linux/ARM/FPGA/ASIC/DSP/uC

2017-06-24 Thread FoxyBrown via Digitalmars-d
On Saturday, 24 June 2017 at 18:51:44 UTC, Johan Engelen wrote: On Saturday, 24 June 2017 at 18:16:46 UTC, FoxyBrown wrote: [...] Yes indeed. LDC will output the IR when you use the `-output-ll` (human readable) or `-output-bc` (binary representation) compile switches. [...] In theory,

Re: Windows/Android/Mac/RaspberryPi/Linux/ARM/FPGA/ASIC/DSP/uC

2017-06-24 Thread FoxyBrown via Digitalmars-d
On Friday, 23 June 2017 at 19:56:17 UTC, Joakim wrote: On Friday, 23 June 2017 at 19:03:01 UTC, FoxyBrown wrote: [...] The ldc wiki page has a rudimentary version of what you're looking for, listing all platforms worked on and some idea of how well they're supported: https://wiki.dlang.org

Windows/Android/Mac/RaspberryPi/Linux/ARM/FPGA/ASIC/DSP/uC

2017-06-23 Thread FoxyBrown via Digitalmars-d
Hi, I will be developing some hardware and software that will need to be portable across a multitude of systems. At first, I will develop some of the non-specific infrastructural code base on windows for convenience. These involve the GUI, overall structure, etc. I think will need to move