Re: Bug with writeln?

2018-09-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, September 9, 2018 8:30:12 AM MDT Saurabh Das via Digitalmars-d- learn wrote: > Thank you for explaining all this. > > It is frustrating because the behaviour is very counterintuitive. > > I will use a workaround for now. Ranges are fantastic, and the basic concept is solid, but a

Re: [vibe-d/dub] Lin

2018-09-10 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 7 September 2018 at 16:37:18 UTC, MamoKupe wrote: On Friday, 7 September 2018 at 16:20:40 UTC, MamoKupe wrote: marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe Package recipe format (sdl/json) [json]: d Invalid format, "d", enter either "sdl" or "json". Package recipe format

Re: GTKD for android?

2018-09-10 Thread Joakim via Digitalmars-d-learn
On Saturday, 8 September 2018 at 02:59:48 UTC, Josphe Brigmo wrote: I have an app I'm writing using GtkD on windows. Eventually I'd like to port it to android. Since I have never been able to actually get anything to work on android I'm curious if there are any demos with gtkD for android? I'm

DlangUI and android

2018-09-10 Thread Josphe Brigmo via Digitalmars-d-learn
Is there an emulator that can run the apks? Android emulator does not work, I suppose, because it isn't java. Complains about a missing classes.dex file. I'd rather have an emulator version if possible for quicker dev.

Re: Is there websocket client implementation for D

2018-09-10 Thread Heromyth via Digitalmars-d-learn
On Tuesday, 24 March 2015 at 17:55:38 UTC, Ilya Korobitsyn wrote: Hello! Is there any websocket client implementation in D? I know there is WS server as a part of vibe.d, but it does not seem to include client. Maybe there are some library bindings that I've missed? We just implemented one

dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-10 Thread SuperPrower via Digitalmars-d-learn
dub was working nice until I updated my system (I run ArchLinux32) just now. dmd was updated from version 1:2.081.2-1.0 to 1:2.082.0-1.0 (according to pacman package manager). After that, I couldn't invoke dub for anything. Here is the attempt to run `dub --vverbose`: ``` Using dub registry

Re: traits getOverload of a template method

2018-09-10 Thread Timoses via Digitalmars-d-learn
On Thursday, 6 February 2014 at 23:06:03 UTC, QAston wrote: How do i get aliases to overloads of a template method like Class A { int a(T)(T tq,T tw); int a(T)(T tq); } __traits(getOverloads, A, "a(int)")doesnt work Is there any way to "select" overloaded template functions? I

Re: traits getOverload of a template method

2018-09-10 Thread aliak via Digitalmars-d-learn
On Monday, 10 September 2018 at 12:57:25 UTC, Timoses wrote: On Thursday, 6 February 2014 at 23:06:03 UTC, QAston wrote: [...] Is there any way to "select" overloaded template functions? I require to select one of `std.bitmanip.peek` import std.bitmanip : peek; import std.system :

Re: traits getOverload of a template method

2018-09-10 Thread aliak via Digitalmars-d-learn
On Monday, 10 September 2018 at 13:46:08 UTC, aliak wrote: On Monday, 10 September 2018 at 12:57:25 UTC, Timoses wrote: How to "select" one? Can you either: alias myPeek = () => peek!(int, Endian.bigEndian, immutable(ubyte)[])(); Or alias myPeek = (size_t *index) => peek!(int,

Re: Making mir.random.ndvariable.multivariateNormalVar create bigger data sets than 2

2018-09-10 Thread 9il via Digitalmars-d-learn
On Tuesday, 27 February 2018 at 09:23:49 UTC, kerdemdemir wrote: I need a classifier in my project. Since it is I believe most easy to implement I am trying to implement logistic regression. [...] Mir Random v1.0.0 has new `range` overloads that can work NdRandomVariable. Example:

Re: Process in parallel and output result to stdout theread-safely

2018-09-10 Thread Dr.No via Digitalmars-d-learn
On Saturday, 8 September 2018 at 14:26:45 UTC, ag0aep6g wrote: On 09/03/2018 08:13 PM, Dr.No wrote: But it in the middle of output, I got output like this: outjson = {"barCode":"20","ade":"20"}♪◙outjson = {"barCode":"X21","ade":"21"} also there's that extra ♪◙ character. Thos sounds