std.plugin ?

2013-09-30 Thread FreeSlave
export and load classes at runtime. What's about making such module for phobos in future when D will have good support of dynamic libraries? I'm currenly working on such module now. Here it is https://bitbucket.org/FreeSlave/dido

Re: std.plugin ?

2013-10-01 Thread FreeSlave
On Tuesday, 1 October 2013 at 07:54:18 UTC, Jacob Carlborg wrote: Class loading, how necessary is this? We already have ClassInfo.find and "create". I just checked it on Linux. ClassInfo.find can't find the class from shared library. That's what I did: //dmd rttitest.d baseclass.d -L-ldl m

Re: std.plugin ?

2013-10-01 Thread FreeSlave
On Tuesday, 1 October 2013 at 18:00:34 UTC, Jacob Carlborg wrote: On 2013-10-01 13:36, FreeSlave wrote: I just checked it on Linux. ClassInfo.find can't find the class from shared library. That's what I did: Dynamic libraries are not completely implemented yet in D. I expect th

Re: std.plugin ?

2013-10-01 Thread FreeSlave
On Wednesday, 2 October 2013 at 01:31:42 UTC, Martin Nowak wrote: On 09/30/2013 10:53 PM, FreeSlave wrote: I'm currenly working on such module now. Here it is https://bitbucket.org/FreeSlave/dido https://github.com/D-Programming-Language/druntime/pull/617 http://dconf.org/talks/nowak

std.file.fileType

2013-10-04 Thread FreeSlave
I was suggested to bring this idea up here. fileType should be a function for determining of file type. Example of usage: Suppose application uses special directory for plugins (i.e. dynamic libraries). In graphics user interface it can be reflected like list of checkboxes that show which plug

Re: std.file.fileType

2013-10-04 Thread FreeSlave
On Friday, 4 October 2013 at 08:06:24 UTC, simendsjo wrote: On Friday, 4 October 2013 at 07:39:36 UTC, FreeSlave wrote: I was suggested to bring this idea up here. fileType should be a function for determining of file type. Example of usage: Suppose application uses special directory for

std.linalg

2013-10-11 Thread FreeSlave
There is "Matrices and linear algebra" module in wish list. Let's discuss its design. D is complicated language so it's difficult to choose the right way here. We need to find compromise between efficiency and convenient interface. I'm going to make some suggestions how this module should look

Re: std.linalg

2013-10-11 Thread FreeSlave
3 at 16:10:21 UTC, FreeSlave wrote: Both templates should support all floating point types and moreover user-defined (for example wrappers for GMP library and others). And integers for eg. video processing. Thankfully it's not that much harder. For efficiency in both cases matrices

Re: std.linalg

2013-10-11 Thread FreeSlave
On Friday, 11 October 2013 at 17:49:32 UTC, H. S. Teoh wrote: On Fri, Oct 11, 2013 at 06:10:19PM +0200, FreeSlave wrote: There is "Matrices and linear algebra" module in wish list. Let's discuss its design. D is complicated language so it's difficult to choose the right

Re: std.linalg

2013-10-11 Thread FreeSlave
On Saturday, 12 October 2013 at 05:20:11 UTC, SomeDude wrote: On Friday, 11 October 2013 at 16:10:21 UTC, FreeSlave wrote: There is "Matrices and linear algebra" module in wish list. Let's discuss its design. D is complicated language so it's difficult to choose the right

Re: std.linalg

2013-10-12 Thread FreeSlave
On Saturday, 12 October 2013 at 08:47:33 UTC, SomeDude wrote: On Saturday, 12 October 2013 at 06:24:58 UTC, FreeSlave wrote: For these cases we may let users to choose low-level backend if they need. High-level interface and default implementation are needed anyway. I called it std.linalg

Re: What is the status of dlls on windows?

2013-10-21 Thread FreeSlave
On Monday, 21 October 2013 at 00:05:28 UTC, TheFlyingFiddle wrote: 2. Throw exceptions over dll boundary\ 2. Last time I tried it, exceptions were not thrown over dll boundary. But it works fine on Linux for shared object files.

Re: Graphics Library for D

2014-01-06 Thread FreeSlave
I'm not familiar with Cinder library yet (seems it does not support Linux, so it's not very interesting for me), but I suppose graphics library should provide at least two approaches to build graphic applications. The first one is something that SDL and SFML offer: user has to manually write cy

Re: Where is contribution most needed to the D community?

2014-01-10 Thread FreeSlave
The current state of Phobos documentation is terrible in some moments. Many types and functions are not described how to use. For example, from documentation I don't know how to use ErrnoException. Does it have field for error code copied from errno, or should I use errno directly when I meet t

Re: Practical Problems with distribution D projects

2014-02-24 Thread FreeSlave
You can use hack in Makefile to find out whether the current platform is Windows or not. Check for SystemRoot environment variable in this way: ifdef SystemRoot SYSTEM=Windows else ifdef SYSTEMROOT SYSTEM=Windows else SYSTEM=Other endif In non-Windows case use Unix un

Re: readln() blocks file operations on windows

2014-07-31 Thread FreeSlave via Digitalmars-d
Note that output to stdout is not good choice to check event order, because it's buffered. Try to flush stdout or write to stderr. Maybe it's actual problem.

Re: C++ interop - class vs struct

2014-09-10 Thread FreeSlave via Digitalmars-d
On Wednesday, 10 September 2014 at 20:43:44 UTC, Walter Bright wrote: C++ name mangling distinguishes between a class and a struct. This distinction has no semantic meaning, but there it is in the name mangling. In order to interop, we have to have a way to tell D to mangle a struct as a 'class

Re: For Chuck Allison: possible homework in D

2014-06-08 Thread FreeSlave via Digitalmars-d
The good exercise would be implementing some traversal (walk) algorithms for the generic tree structures. There are many tree traversal algorithms (some kinds of depth search and breadth-first search) and they may have range interface, so you can use them just like other ranges and don't need t

Re: extern(Windows) behavior on non-Windows systems

2014-06-12 Thread FreeSlave via Digitalmars-d
On Wednesday, 11 June 2014 at 23:19:43 UTC, Iain Buclaw via Digitalmars-d wrote: Honestly, I'd first deprecate/remove extern(Pascal), then think about deprecating extern(Windows) later. I agree. Does anyone use extern(Pascal)? It's piece of old history, and now it's more discouraging than use

Icons for .d and .di files

2014-06-19 Thread FreeSlave via Digitalmars-d
Is there any good icon for D source files? Now .d files look like plain text files. I changed mime on my Debian to use dlang site logo for .d files, but it looks weird among with others (C, C++, etc.) I'm not artist, but I see there are some on this forum. Maybe someone would make such icon.

Re: Icons for .d and .di files

2014-06-20 Thread FreeSlave via Digitalmars-d
On Friday, 20 June 2014 at 05:34:06 UTC, Suliman wrote: http:///dynamic.dlang.ru/Files/2014/Dlang_logos.png Thanks, but they are still logos, not icons for files. File icon should appear as document. Like this http://th04.deviantart.net/fs70/200H/f/2012/037/1/a/c___programming_language_dock_i

Re: D for project in computational chemistry

2015-08-03 Thread FreeSlave via Digitalmars-d
On Sunday, 2 August 2015 at 16:25:18 UTC, Yura wrote: Dear D coders/developers, I am just thinking on one project in computational chemistry, and it is sort of difficult for me to pick up the right language this project to be written. The project is going to deal with the generation of the mo

Re: What keeps you from using gtkd or dlangui

2015-10-05 Thread FreeSlave via Digitalmars-d
On Sunday, 4 October 2015 at 13:24:23 UTC, karabuta wrote: For some time now I have been trying various GUIs options in D. I came to settle on gtkd and dlangui(stability is not my current priority). In YHO, what keeps you from using any of those fully(mostly)? Gtkd first, followed by dlangui

Re: Is dlangui dead?

2015-11-05 Thread FreeSlave via Digitalmars-d
On Thursday, 5 November 2015 at 06:36:13 UTC, Vadim Lopatin wrote: Hi! I'm back on DlangUI project. Fixed some issues recently, and got it working with recent DMD beta and latest versions of dependency libraries. That's good news!

Re: Is D so powerfull ??

2015-11-08 Thread FreeSlave via Digitalmars-d
On Saturday, 7 November 2015 at 14:49:05 UTC, ZombineDev wrote: basically you don't have technical reasons not to use D :D What about the lack of proper support for dynamic libraries on Windows and OSX? I mean, GC merging is still not implemented, right?

Re: Pseudo namespaces

2015-12-03 Thread FreeSlave via Digitalmars-d
On Thursday, 3 December 2015 at 20:51:02 UTC, Andrei Alexandrescu wrote: I vaguely remembered I saw something like this a while ago: http://dpaste.dzfl.pl/f11894a098c6 The trick could be more fluent, but it might have merit. Has anyone explored it? Is it a viable candidate for becoming a D id

Re: Dub and shared filestores

2016-01-11 Thread FreeSlave via Digitalmars-d
On Monday, 11 January 2016 at 15:15:24 UTC, Russel Winder wrote: Is there a separate Dub list? I have a single filestore shared between three operating systems. Each of the operating systems does though have a different version of DMD installed. As I understand it all dependencies are downloa

Re: the most D-ish GUI library

2016-03-13 Thread FreeSlave via Digitalmars-d
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: Hello, After long pause and trying some other languages, I've decided to try (again) with D for writing open-source multi-platform desktop (GUI) application. I've selected three different libraries: a) dlangui (https://github.com

dub coverage analysis weirdness

2016-03-21 Thread FreeSlave via Digitalmars-d
I made example and described issue in github repository: https://github.com/MyLittleRobo/dub-coverage-test

Re: dub coverage analysis weirdness

2016-03-22 Thread FreeSlave via Digitalmars-d
On Tuesday, 22 March 2016 at 07:35:37 UTC, Sebastiaan Koppe wrote: On Monday, 21 March 2016 at 22:34:50 UTC, FreeSlave wrote: I made example and described issue in github repository: https://github.com/MyLittleRobo/dub-coverage-test When doing -b unittest-cov dub only builds the current

Passing private functions to template algorithms

2016-06-07 Thread FreeSlave via Digitalmars-d
I want to bring up this unpleasant topic for discussion, because I'm really tired of hacks I need to do in my code. Look at this snippet: private bool isFileNothrow(string path) { import std.file : isFile; import std.exception : collectException; bool ok; collectException(path.i

Re: Which D IDE do you use?(survey)

2015-04-09 Thread FreeSlave via Digitalmars-d
On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0 thanks : ) I use Kate. Although it's not IDE but text editor,

Re: Request for Features/Ideas: A std.archive package

2015-05-22 Thread FreeSlave via Digitalmars-d
On Thursday, 21 May 2015 at 09:16:47 UTC, John Colvin wrote: On Thursday, 21 May 2015 at 08:55:05 UTC, Jacob Carlborg wrote: On 2015-05-21 00:46, Walter Bright wrote: Clearly, we need a Deimos entry for libarchive. https://github.com/d-programming-deimos No, it needs to be a Dub package. Ca

Status of Deimos bindings

2015-05-25 Thread FreeSlave via Digitalmars-d
What's the current status of Deimos? I don't think that this kind of bindings is useless, since not everyone always wants dynamic bindings. E.g. for the sake of simplicity or static linking. Actually Walter even fixes issues in these bindings time by time, so I guess the idea is still alive. Bu

Re: Extern Linkage Type

2015-06-18 Thread FreeSlave via Digitalmars-d
On Wednesday, 17 June 2015 at 20:33:04 UTC, Rodney wrote: On Tuesday, 16 June 2015 at 07:47:21 UTC, Kagamin wrote: implib works for C calling convention only. Thank you for your reply. So if I am understanding correctly (feel free to admit my ignorance): 1. implib is required to generate a

Re: Support for 2.064.2

2015-07-13 Thread FreeSlave via Digitalmars-d
On Sunday, 12 July 2015 at 13:51:46 UTC, Iain Buclaw wrote: Hi, Out of curiosity, how many projects are still supporting D 2.064.2 compiler/runtime? Granted that this is the version shipped in the current Debian Stable and Ubuntu LTS (which will be supported until 2020). I'm both interest

Erroneous usage of variable capture in loops

2017-06-02 Thread FreeSlave via Digitalmars-d
As known this code will not work as we may expect: import std.stdio; void main(string[] args) { void delegate ()[] delegates; foreach(i; 0..10) { int j = i; delegates ~= delegate() { writeln(j); }; } foreach(dlgt; delegates) { dlgt();

Avoid zombie processes with std.process

2016-08-24 Thread FreeSlave via Digitalmars-d
Are there plans on adding something like spawnProcessDetached that would start processes completely independent from parent? I.e. in other process group and, what is important, with no need for wait. On Posix that could be done via double fork technique. Not sure about Windows.

Re: Avoid zombie processes with std.process

2016-08-25 Thread FreeSlave via Digitalmars-d
On Wednesday, 24 August 2016 at 15:48:24 UTC, eugene wrote: On Wednesday, 24 August 2016 at 11:04:58 UTC, FreeSlave wrote: Are there plans on adding something like spawnProcessDetached that would start processes completely independent from parent? I.e. in other process group and, what is

Re: Avoid zombie processes with std.process

2016-08-25 Thread FreeSlave via Digitalmars-d
On Thursday, 25 August 2016 at 07:32:29 UTC, Shachar Shemesh wrote: On 24/08/16 14:04, FreeSlave wrote: Are there plans on adding something like spawnProcessDetached that would start processes completely independent from parent? I.e. in other process group and, what is important, with no need

Re: Avoid zombie processes with std.process

2016-08-25 Thread FreeSlave via Digitalmars-d
On Thursday, 25 August 2016 at 14:53:30 UTC, Shachar Shemesh wrote: On 25/08/16 11:46, FreeSlave wrote: On Thursday, 25 August 2016 at 07:32:29 UTC, Shachar Shemesh wrote: On 24/08/16 14:04, FreeSlave wrote: Are there plans on adding something like spawnProcessDetached that would start