Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Joakim via Digitalmars-d-announce
On Thursday, 3 August 2017 at 04:40:05 UTC, Matt wrote: Also note, one of the main advantages of Eigen is the whole lazy evaluation of expressions for compound operations. Yes, Mir does that too:

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 3 August 2017 at 04:40:05 UTC, Matt wrote: Also note, one of the main advantages of Eigen is the whole lazy evaluation of expressions for compound operations. I haven't dug in the source, but it's my understanding it's done through a lot of compile time C++ template hacking

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 3 August 2017 at 04:37:30 UTC, Matt wrote: That seems like a good start. I'll probably start contributing within a few weeks. Great, http://gitter.im/libmir is probably the best way to get in contact. In the long run the goal should probably be to have a "go-to" set of LA

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Matt via Digitalmars-d-announce
Also note, one of the main advantages of Eigen is the whole lazy evaluation of expressions for compound operations. I haven't dug in the source, but it's my understanding it's done through a lot of compile time C++ template hacking

Re: How do you use D?

2017-08-02 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 3 August 2017 at 03:46:38 UTC, Zwargh wrote: On Monday, 31 July 2017 at 12:32:52 UTC, Nicholas Wilson wrote: On Sunday, 30 July 2017 at 01:53:15 UTC, Zwargh wrote: I am using D to develop a system for rational drug design. The main application for D is for protein 3D structure

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Matt via Digitalmars-d-announce
That seems like a good start. I'll probably start contributing within a few weeks. In the long run the goal should probably be to have a "go-to" set of LA libraries, with appropriate data structures that have friendly bindings to GPU LA computations with DCompute.

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 3 August 2017 at 03:46:11 UTC, Matt wrote: On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ Speakng of D in data science (where I think it can get traction),

gtkD load images

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
How can be use gtkD to load images, I assume through gdkpixbuf? While I am getting errors loading images through glade's image: (test.exe:8188): Gtk-WARNING **: Could not load image 'a.jpg': Couldn't recognize the image file format for file 'test\a.jpg' (loads fine in glade)

[Issue 14793] net.curl.download https broken - windows

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14793 Vladimir Panteleev changed: What|Removed |Added Status|RESOLVED

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Matt via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ Speakng of D in data science (where I think it can get traction), is there a standardized linear algebra library in D?

Re: How do you use D?

2017-08-02 Thread Zwargh via Digitalmars-d
On Monday, 31 July 2017 at 12:32:52 UTC, Nicholas Wilson wrote: On Sunday, 30 July 2017 at 01:53:15 UTC, Zwargh wrote: I am using D to develop a system for rational drug design. The main application for D is for protein 3D structure prediction and statistical analysis using Differential

[Issue 17622] [REG2.075.0-b1] Wrong code with appender and -inline

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17622 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 14793] net.curl.download https broken - windows

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14793 Vladimir Panteleev changed: What|Removed |Added Status|REOPENED

Re: [your code here] HexViewer

2017-08-02 Thread Andre Pany via Digitalmars-d
On Wednesday, 2 August 2017 at 22:02:49 UTC, Vladimir Panteleev wrote: On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev wrote: Good idea! But I think it needs more ranges: The format call can be substituted with writefln directly: void main(string[] args) { import

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 03:00:02 UTC, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

Re: Who maintains the D website?

2017-08-02 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 3 August 2017 at 00:48:41 UTC, Andrej Mitrovic wrote: On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner wrote: On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some

Re: Who maintains the D website?

2017-08-02 Thread Andrej Mitrovic via Digitalmars-d
On Thursday, 3 August 2017 at 00:48:41 UTC, Andrej Mitrovic wrote: On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner wrote: On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some

Re: Who maintains the D website?

2017-08-02 Thread Andrej Mitrovic via Digitalmars-d
On Thursday, 3 August 2017 at 00:26:31 UTC, Moritz Maxeiner wrote: On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a

Re: Who maintains the D website?

2017-08-02 Thread Moritz Maxeiner via Digitalmars-d
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a host at improving it myself, really. AFAIK the website is maintained

Re: Who maintains the D website?

2017-08-02 Thread Andrej Mitrovic via Digitalmars-d
On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a host at improving it myself, really. Sorry that was a weird typo. I

Who maintains the D website?

2017-08-02 Thread Andrej Mitrovic via Digitalmars-d
Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a host at improving it myself, really.

Re: How do you use D?

2017-08-02 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 2 August 2017 at 21:30:11 UTC, SCev wrote: guys don't do your own IDE, i see everyone working on his own IDE, please just make plugin for famous crossplatform IDE.. this will be better for comunity But I'm NIH interested in having my own plugin for Sublime which does exactly

[Issue 14793] net.curl.download https broken - windows

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14793 Yury Korchemkin changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Joakim via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 21:31:19 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ No. 2 liked proggit link of the day, should be no. 1 soon: https://www.reddit.com/r/programming/top/?time=day Not doing

Re: [your code here] HexViewer

2017-08-02 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 2 August 2017 at 22:02:49 UTC, Vladimir Panteleev wrote: On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev wrote: Good idea! https://github.com/dlang/dlang.org/pull/1854

Re: [your code here] HexViewer

2017-08-02 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 2 August 2017 at 21:58:18 UTC, H. S. Teoh wrote: Whoa. This is cool and everything, but it also looks pretty intimidating for a newcomer to D. I'm not sure if we should put this on the front page! Perhaps we should make some examples only available if the user selects them

[Issue 16474] CTFE pow

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #5 from Manu --- True, but that could still be a long way off, and this should have already been working like, 10 years ago... it'd be good to have a default fix in existing ctfe code. --

Re: [your code here] HexViewer

2017-08-02 Thread H. S. Teoh via Digitalmars-d
On Wed, Aug 02, 2017 at 09:59:23PM +, Vladimir Panteleev via Digitalmars-d wrote: > On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote: > > This application opens the file passed as argument and display the > > content in hex and text format: > > Good idea! But I think it needs

Re: Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread bachmeier via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 21:54:51 UTC, Walter Bright wrote: On 8/2/2017 12:01 PM, bachmeier wrote: I was going to submit it to Reddit but someone beat me to it: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ Submit it to Hacker

Re: [your code here] HexViewer

2017-08-02 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 2 August 2017 at 21:59:23 UTC, Vladimir Panteleev wrote: Good idea! But I think it needs more ranges: The format call can be substituted with writefln directly: void main(string[] args) { import std.algorithm, std.format, std.stdio; enum cols = 16;

Re: [your code here] HexViewer

2017-08-02 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote: This application opens the file passed as argument and display the content in hex and text format: Good idea! But I think it needs more ranges: void main(string[] args) { import std.algorithm, std.format, std.stdio; enum

Re: [your code here] HexViewer

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d
On 8/2/17 3:39 PM, Andre Pany wrote: This application opens the file passed as argument and display the content in hex and text format: 00 00 03 00 00 00 64 00 00 00 FF 56 01 00 00 70 ......d... V..p 02 00 FF A6 00 00 00 20 02 00 00 00 00 00 00 00. ª... ... 00 00 00 00 00 00 00 00

Re: Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread Seb via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 18:02:10 UTC, Ali Çehreli wrote: On 08/02/2017 10:40 AM, Benoit Rostykus wrote: Netflix is happy to open-source its first D library. Blog post: https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8 Repo: https://github.com/Netflix/vectorflow

Re: [your code here] HexViewer

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d
On 8/2/17 5:27 PM, Nick B wrote: On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote: This application opens the file passed as argument and display the content in hex and text format: Is this code in GitHub or DUB ? Is there a link ? Here is a link:

Re: [your code here] HexViewer

2017-08-02 Thread H. S. Teoh via Digitalmars-d
On Wed, Aug 02, 2017 at 09:27:07PM +, Nick B via Digitalmars-d wrote: > On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote: > > This application opens the file passed as argument and display the > > content in hex and text format: > > > > Is this code in GitHub or DUB ? > Is there

Re: How do you use D?

2017-08-02 Thread SCev via Digitalmars-d
guys don't do your own IDE, i see everyone working on his own IDE, please just make plugin for famous crossplatform IDE.. this will be better for comunity VSCode/Atom/Xamarin Studio/IntelliJ my team don't want use D cause IDEs are all shit

Netflix opensources its first D library: Vectorflow

2017-08-02 Thread Walter Bright via Digitalmars-d-announce
https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/

Re: [your code here] HexViewer

2017-08-02 Thread Nick B via Digitalmars-d
On Wednesday, 2 August 2017 at 19:39:18 UTC, Andre Pany wrote: This application opens the file passed as argument and display the content in hex and text format: Is this code in GitHub or DUB ? Is there a link ? Nick

[Issue 17192] ParameterDefaults fails when parameter is called "i"

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17192 ag0ae...@gmail.com changed: What|Removed |Added Keywords||pull CC|

Re: [OT] Generative C++

2017-08-02 Thread 12345swordy via Digitalmars-d
On Wednesday, 2 August 2017 at 14:08:21 UTC, jmh530 wrote: On Wednesday, 2 August 2017 at 13:50:49 UTC, 12345swordy wrote: Is it to much to ask for d developers to provide a way to enforce custom coding standards in a similar fashion that @nogc and @safe does? Alex Like the ability to

[Issue 16474] CTFE pow

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16474 --- Comment #4 from uplink.co...@googlemail.com --- newCTFE is eventually going to fix that. and other compile-time floating-point issues as well. --

Re: gtk arch issues(fixed)

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:59:39 UTC, Mike Wey wrote: On 01-08-17 22:50, Johnson Jones wrote: So, the problem is simple(but unfortunately a lot of wasted time). gtkD needs to be updated to work well with x64 and x86. I think all one has to do is be able to specify which path of gtk

[your code here] HexViewer

2017-08-02 Thread Andre Pany via Digitalmars-d
This application opens the file passed as argument and display the content in hex and text format: 00 00 03 00 00 00 64 00 00 00 FF 56 01 00 00 70 .....d... V..p 02 00 FF A6 00 00 00 20 02 00 00 00 00 00 00 00. ª... ... 00 00 00 00 00 00 00 00 00 00 00 00

Re: covered - processes output of code coverage analysis performed by the D programming language compiler

2017-08-02 Thread Anton Fediushin via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 20:37:16 UTC, Anton Fediushin wrote: Thanks! Yes, module "covered.loader" can be used, but it isn't complete yet. I'll start working on v1.0.0 tomorrow, changing current design (get as much information as possible and store it) to a new one (get only required

Re: Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread bachmeier via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 17:40:23 UTC, Benoit Rostykus wrote: Netflix is happy to open-source its first D library. Blog post: https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8 Repo: https://github.com/Netflix/vectorflow I was going to submit it to Reddit but

Re: [OT] Bitcoin's Split Is Good for Progress

2017-08-02 Thread Ali Çehreli via Digitalmars-d
On 08/02/2017 09:21 AM, jmh530 wrote: I was surprised to see a familiar name here: https://www.bloomberg.com/view/articles/2017-08-02/bitcoin-s-split-is-good-for-progress "They -- led by former Facebook developer Amaury Sechet -- moved ahead with new software that would increase the maximum

Re: Using lazy code to process large files

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 2:28 PM, kdevel wrote: On Wednesday, 2 August 2017 at 17:37:09 UTC, Steven Schveighoffer wrote: What is expected? What I see on the screen when I run my code is: [Ü] Upper case? Sorry, should be c3 bc, not c3 9c. I misread the table on that wikipedia entry. What I see when I

Re: Using lazy code to process large files

2017-08-02 Thread ag0aep6g via Digitalmars-d-learn
On 08/02/2017 08:28 PM, kdevel wrote: It's perfectly okay to put any value a octet can take into an octet. I did not claim that the data in the string memory is syntactically valid UTF-8. Read the comment in line 9 of my post of 15:02:22. You're claiming that the data is in UTF-8 when you use

Re: [OT] Alternative to Thunderbird (was: Re: NG technical issues: Is it just me?)

2017-08-02 Thread Schrom, Brian T via Digitalmars-d
On Tue, Aug 01, 2017 at 04:58:43PM -0700, H. S. Teoh via Digitalmars-d wrote: > On Tue, Aug 01, 2017 at 03:50:02PM -0700, Ali Çehreli via Digitalmars-d wrote: > [...] > > Perhaps I should get used to reading news and email with Emacs > > already. :/ > [...] > > I've been using Mutt for years, and

Re: why won't byPair work with a const AA?

2017-08-02 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 02, 2017 at 11:06:03AM -0700, H. S. Teoh via Digitalmars-d-learn wrote: [...] > auto byPair(AA)(inout(AA) aa) > { > alias Modifiers = std.traits.getModifiers!AA; > struct Result { > std.traits.ApplyModifiers!(Slot*,

Re: why won't byPair work with a const AA?

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 2:06 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Wed, Aug 02, 2017 at 01:15:44PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: [...] It's not currently legal, you can't have inout members of a struct. This could be added, but it still wouldn't work, because you

Re: Using lazy code to process large files

2017-08-02 Thread kdevel via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 17:37:09 UTC, Steven Schveighoffer wrote: What is expected? What I see on the screen when I run my code is: [Ü] Upper case? What I see when I run your "working" code is: [?] Your terminal is incapable of rendering the Latin-1 encoding. The program

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-02 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 2 August 2017 at 16:32:44 UTC, Andrei Alexandrescu wrote: import std.algorithm; // I probably wouldn't even define this but use the body as is auto strnlen_safe(in char[] str) { return countUntil(cast(ubyte[]) str, '\0'); } Oh that cast it irks me so. -Steve return

Re: why won't byPair work with a const AA?

2017-08-02 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 02, 2017 at 01:15:44PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: [...] > It's not currently legal, you can't have inout members of a struct. > This could be added, but it still wouldn't work, because you can't > "strip off" the inout part upon return. > > The real

Re: Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread Ali Çehreli via Digitalmars-d-announce
On 08/02/2017 10:40 AM, Benoit Rostykus wrote: Netflix is happy to open-source its first D library. Blog post: https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8 Repo: https://github.com/Netflix/vectorflow Amazing! :) Do we need Netflix's permission to put them on the D

Re: Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 8/2/17 1:40 PM, Benoit Rostykus wrote: Netflix is happy to open-source its first D library. Blog post: https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8 Repo: https://github.com/Netflix/vectorflow Awesome! Can't say I understand most of the blog post, but it looks

Vectorflow: a neural network library for sparse data from Netflix

2017-08-02 Thread Benoit Rostykus via Digitalmars-d-announce
Netflix is happy to open-source its first D library. Blog post: https://medium.com/@NetflixTechBlog/introducing-vectorflow-fe10d7f126b8 Repo: https://github.com/Netflix/vectorflow

Re: Using lazy code to process large files

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 1:16 PM, kdevel wrote: On Wednesday, 2 August 2017 at 15:52:13 UTC, Steven Schveighoffer wrote: If we use the correct code unit sequence (0xc3 0x9c), then [...] If I avoid std.string.stripLeft and use std.algorithm.stripLeft(' ') instead it works as expected: What is expected?

Re: Using lazy code to process large files

2017-08-02 Thread kdevel via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 15:52:13 UTC, Steven Schveighoffer wrote: [...] First, as a tip, please post either a link to a paste site, or don't put the line numbers. It's much easier to copy-paste your code into an editor if you don't have the line numbers. With pleasure. [...] If

Re: why won't byPair work with a const AA?

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 11:52 AM, H. S. Teoh via Digitalmars-d-learn wrote: On Wed, Aug 02, 2017 at 08:20:23AM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote: [...] You can iterate a const AA, but if you want to iterate a non-const

Re: all OS functions should be "nothrow @trusted @nogc"

2017-08-02 Thread Andrei Alexandrescu via Digitalmars-d
import std.algorithm; // I probably wouldn't even define this but use the body as is auto strnlen_safe(in char[] str) { return countUntil(cast(ubyte[]) str, '\0'); } Oh that cast it irks me so. -Steve return str.representation.countUntil('\0'); Andrei

[OT] Bitcoin's Split Is Good for Progress

2017-08-02 Thread jmh530 via Digitalmars-d
I was surprised to see a familiar name here: https://www.bloomberg.com/view/articles/2017-08-02/bitcoin-s-split-is-good-for-progress

[Issue 17665] Win64 atomicLoad for T[] cannot be cast from size_t[2]

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17665 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/1ab473d1314960dfb6a4732fd55218ac2095a663 Fix issue 17665

[Issue 17665] Win64 atomicLoad for T[] cannot be cast from size_t[2]

2017-08-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17665 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: args.d | a command line argument and config file parser

2017-08-02 Thread H. S. Teoh via Digitalmars-d-announce
On Wed, Aug 02, 2017 at 07:29:42AM +, Robert burner Schadek via Digitalmars-d-announce wrote: > On Tuesday, 1 August 2017 at 17:46:57 UTC, H. S. Teoh wrote: [...] > > There's also UDAs for optionally flattening a nested struct, so that > > internally I can have separate structs for

Re: why won't byPair work with a const AA?

2017-08-02 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Aug 02, 2017 at 08:20:23AM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: > On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote: [...] > You can iterate a const AA, but if you want to iterate a non-const AA, > you need a different type. > > For instance, if your AA is

Re: Using lazy code to process large files

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 11:02 AM, kdevel wrote: On Wednesday, 2 August 2017 at 13:45:01 UTC, Steven Schveighoffer wrote: As Daniel said, using byCodeUnit will help. stripLeft seems to autodecode even when fed with CodeUnits. How do I prevent this? 1 void main () 2 { 3import

Re: Access derived type in baseclass static function template

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 11:06 AM, Timoses wrote: On Wednesday, 2 August 2017 at 13:51:01 UTC, Steven Schveighoffer wrote: However, your original code has potential as an enhancement request, as the type is known at compile-time and could certainly be resolved to pass in as the `this` template parameter. I

Re: Access derived type in baseclass static function template

2017-08-02 Thread Timoses via Digitalmars-d-learn
Thanks Arafel, the alias workaround might just be a nice way to put it. On Wednesday, 2 August 2017 at 13:51:01 UTC, Steven Schveighoffer wrote: What you are looking for is virtual static methods, and D doesn't have those. I don't know if there's a way to make it work with existing features.

Re: Using lazy code to process large files

2017-08-02 Thread kdevel via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 13:45:01 UTC, Steven Schveighoffer wrote: As Daniel said, using byCodeUnit will help. stripLeft seems to autodecode even when fed with CodeUnits. How do I prevent this? 1 void main () 2 { 3import std.stdio; 4import std.string;

Re: gtk arch issues(fixed)

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
On 01-08-17 22:50, Johnson Jones wrote: So, the problem is simple(but unfortunately a lot of wasted time). gtkD needs to be updated to work well with x64 and x86. I think all one has to do is be able to specify which path of gtk to use rather than have it search the windows path. While I

Re: Bug in gtkd?

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows. -- Mike Wey

Re: custom drawing with gktd?

2017-08-02 Thread Mike Wey via Digitalmars-d-learn
On 02-08-17 08:35, Johnson Jones wrote: I have a need to draw custom objects with gtkD, is this possible? I see that with drawing area one can use cario, and it seems that gtkD supports this. I'd rather use openGL if possible. I see there is a gtkDGL but no reference to how to use it. I need

Re: How do you use D?

2017-08-02 Thread MGW via Digitalmars-d
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... I use D2 since 2014. I had wide experience of C programming earlier. Now I use only DMD in all projects, except special. At the initial stage there were

Re: Access derived type in baseclass static function template

2017-08-02 Thread Arafel via Digitalmars-d-learn
What you are looking for is virtual static methods, and D doesn't have those. I don't know if there's a way to make it work with existing features. Well, there are interesting things to do: https://dpaste.dzfl.pl/ed826ae21473 I don't know if that's what one would call "virtual static",

Re: [OT] Generative C++

2017-08-02 Thread jmh530 via Digitalmars-d
On Wednesday, 2 August 2017 at 13:50:49 UTC, 12345swordy wrote: Is it to much to ask for d developers to provide a way to enforce custom coding standards in a similar fashion that @nogc and @safe does? Alex Like the ability to run dscanner at compile-time?

Re: [OT] Generative C++

2017-08-02 Thread 12345swordy via Digitalmars-d
On Wednesday, 2 August 2017 at 09:50:41 UTC, Walter Bright wrote: On 8/2/2017 2:24 AM, Russel Winder via Digitalmars-d wrote: And there was me being a great fan of AST macros in those languages that have them. There are many who share your views here :-) Well d have a goto statement

Re: Access derived type in baseclass static function template

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 9:11 AM, Timoses wrote: On Wednesday, 2 August 2017 at 12:49:12 UTC, Steven Schveighoffer wrote: Thanks for the reply! Not sure I understand correctly, though. interface I {} class A : I {} void test(T)(T t) if(is(T: I)) { writeln(T.type.stringof); } void main() { A.test; }

Re: Using lazy code to process large files

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 8:59 AM, Martin Drašar via Digitalmars-d-learn wrote: Thanks Steven for the explanation. Just to clarify - what would be needed to avoid auto-decoding in this case? Process it all as an arrays, using byChunk to read it, etc? As Daniel said, using byCodeUnit will help. I don't know

Re: Compare times: file modification time

2017-08-02 Thread Martin Tschierschke via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 13:32:46 UTC, Adam D. Ruppe wrote: On Wednesday, 2 August 2017 at 13:25:25 UTC, Martin Tschierschke wrote: I get a SysTime, how to check if it is older than an interval (1 day)? D/Phobos idiomatically? if(Clock.currTime - timeLastModified("aa.d") > 1.days) {

Re: How do you use D?

2017-08-02 Thread Meta via Digitalmars-d
On Friday, 28 July 2017 at 14:58:01 UTC, Ali wrote: While the Orgs using D page is very nice ... I hoping to hear more personal stories ... So How do you use D? I've been using D for most of my personal projects since 2011. In work, (key projects or smaller side projects) Unfortunately

Re: Access derived type in baseclass static function template

2017-08-02 Thread Arafel via Digitalmars-d-learn
On 08/02/2017 02:07 PM, Timoses wrote: Hey, wondering whether it's possible to access the derived type from a function template in the base class or interface. this T does not seem to be working, I guess because it's a static function and this does not exists?! [...] Any way I could

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 8/1/17 8:34 PM, Mike wrote: On Tuesday, 1 August 2017 at 14:52:51 UTC, Steven Schveighoffer wrote: Mike, I have to say still your talk in 2014 was one of my favorites. One of the things that was so impressive to me was the way you scraped the PDF to generate all the registers

Re: Compare times: file modification time

2017-08-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 13:25:25 UTC, Martin Tschierschke wrote: I get a SysTime, how to check if it is older than an interval (1 day)? D/Phobos idiomatically? if(Clock.currTime - timeLastModified("aa.d") > 1.days) { // older }

Compare times: file modification time

2017-08-02 Thread Martin Tschierschke via Digitalmars-d-learn
With import std.file:timeLastModified; auto time = timeLastModified(source); I get a SysTime, how to check if it is older than an interval (1 day)? D/Phobos idiomatically? (Currently I am using (Clock.currTime().toUnixTime-time.toUnixTime)< 60*60*24)). Regards mt.

Re: Access derived type in baseclass static function template

2017-08-02 Thread Timoses via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 12:49:12 UTC, Steven Schveighoffer wrote: On 8/2/17 8:07 AM, Timoses wrote: Hey, wondering whether it's possible to access the derived type from a function template in the base class or interface. this T does not seem to be working, I guess because it's a

Re: Using lazy code to process large files

2017-08-02 Thread Daniel Kozak via Digitalmars-d-learn
something like file.byLine.map!(a=>a.byCodeUnit) On Wed, Aug 2, 2017 at 3:01 PM, Daniel Kozak wrote: > using http://dlang.org/phobos/std_utf.html#byCodeUnit could help > > On Wed, Aug 2, 2017 at 2:59 PM, Martin Drašar via Digitalmars-d-learn < >

Re: Using lazy code to process large files

2017-08-02 Thread Daniel Kozak via Digitalmars-d-learn
using http://dlang.org/phobos/std_utf.html#byCodeUnit could help On Wed, Aug 2, 2017 at 2:59 PM, Martin Drašar via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn > napsal(a): > > > The problem is that you are 2

Re: Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn napsal(a): > The problem is that you are 2 ranges deep when you apply splitter. The > result of the map is a range of ranges. > > Then when you apply stringStripleft, you are applying to the map result, > not the splitter result.

Re: Access derived type in baseclass static function template

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 8:07 AM, Timoses wrote: Hey, wondering whether it's possible to access the derived type from a function template in the base class or interface. this T does not seem to be working, I guess because it's a static function and this does not exists?! Yep. Any way I could

Re: Using lazy code to process large files

2017-08-02 Thread kdevel via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 11:44:30 UTC, Martin Drašar wrote: Thank you for any hint. 1 import std.stdio; 2 import std.string; 3 import std.algorithm; 4 import std.conv; 5 6 void main () 7 { 8auto input = File("input.csv"); 9

Re: Using lazy code to process large files

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/2/17 7:44 AM, Martin Drašar via Digitalmars-d-learn wrote: Hi, I am struggling to use a lazy range-based code to process large text files. My task is simple, i.e., I can write a non-range-based code in a really short time, but I wanted to try different approach and I am hitting a wall

Re: why won't byPair work with a const AA?

2017-08-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/17 7:44 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Tue, Aug 01, 2017 at 07:31:41PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote: On 8/1/17 7:15 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Tue, Aug 01, 2017 at 07:09:45PM -0400, Steven Schveighoffer via

Re: Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Dne 2.8.2017 v 14:11 Daniel Kozak via Digitalmars-d-learn napsal(a): > import std.stdio; > import std.algorithm; > > void main() > { > > > auto input = ["... some text, another text", "some,another","...so,an"]; > > auto result = input.filter!(a => a.startsWith("...")) >

Re: Using lazy code to process large files

2017-08-02 Thread Daniel Kozak via Digitalmars-d-learn
import std.stdio; import std.algorithm; void main() { auto input = ["... some text, another text", "some,another","...so,an"]; auto result = input.filter!(a => a.startsWith("...")) .map!(a=>a.splitter(",").map!(a=>a.stripLeft(' '))) .map!(a=>a.joiner(",")); writeln(result); } On

Access derived type in baseclass static function template

2017-08-02 Thread Timoses via Digitalmars-d-learn
Hey, wondering whether it's possible to access the derived type from a function template in the base class or interface. this T does not seem to be working, I guess because it's a static function and this does not exists?! interface I { static void test(this T)() {

Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Hi, I am struggling to use a lazy range-based code to process large text files. My task is simple, i.e., I can write a non-range-based code in a really short time, but I wanted to try different approach and I am hitting a wall after wall. Task: read a csv-like input, take only lines starting

Re: [OT] Generative C++

2017-08-02 Thread Walter Bright via Digitalmars-d
On 8/2/2017 2:24 AM, Russel Winder via Digitalmars-d wrote: And there was me being a great fan of AST macros in those languages that have them. There are many who share your views here :-)

  1   2   >