Re: Can i watch folders/files for changes with D language?

2018-10-09 Thread Daniel Kozak via Digitalmars-d-learn
You can use vibed: http://vibed.org/api/vibe.core.file/DirectoryWatcher Or just vibe-core https://code.dlang.org/packages/vibe-core Or https://code.dlang.org/packages/eventcore As a bonus you can use it for networking too. About GUI I do not know what is the best solution. I have some experience

Re: Can i watch folders/files for changes with D language?

2018-10-09 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 17:20:25 UTC, Ephrahim wrote: So i need your help guys, can you point me to any documentation or libraries i can use to watch files/folders for changes (delete, edit, new content)? This package seems to do what you need: https://code.dlang.org/packages/fswatch Al

Can i watch folders/files for changes with D language?

2018-10-09 Thread Ephrahim via Digitalmars-d-learn
Hi Everyone, i'm planning on developing a software for synchronizing folder contents across multiple computers. The software will evolve very quickly into virtual Remote Desktop Access system. So i've been considering C++ for this, its the best in the market of all things fast at the moment (Co

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread jmh530 via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is th

Copy parameters from function passed as an alias

2018-10-09 Thread bauss via Digitalmars-d-learn
Is there a way to copy parameters from a passed function as an alias. Ex: void foo(alias fun)(...); where ... should be the parameters of fun. Of course std.traits.Parameters works like: void foo(alias fun)(Parameters!fun); But the catch is that you don't get the identifiers. So what is th

Re: Is there an efficient byte buffer queue?

2018-10-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/8/18 6:31 AM, Nicholas Wilson wrote: On Monday, 8 October 2018 at 09:39:55 UTC, John Burton wrote: My use case is sending data to a socket. One part of my program generates blocks of bytes, and the socket part tries to send them to the socket and then removes from the queue the number t

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Stanislav Blinov via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: 1 - Is there a way to foreach vertically through that? (that is, rotated 90 degrees from the usual iteration.) 2 - Is there a way to send that "vertical slice" to a function? Not built-in in the language, no.

Re: Linking with a non-default druntime

2018-10-09 Thread Per Nordlöw via Digitalmars-d-learn
On Tuesday, 2 October 2018 at 13:07:04 UTC, Basile B. wrote: On Monday, 1 October 2018 at 11:10:07 UTC, Per Nordlöw wrote: On Monday, 1 October 2018 at 08:27:54 UTC, Basile B. wrote: I think so. Apparently it's registered with a string, e.g "manual" and you pass a special druntime option with y

Re: How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Chris Katko via Digitalmars-d-learn
On Tuesday, 9 October 2018 at 10:52:47 UTC, Chris Katko wrote: I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is th

How do you iterate "vertically" over a 2-D array?

2018-10-09 Thread Chris Katko via Digitalmars-d-learn
I have a 2-D array: int[5][5] data = [ [1, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 0, 0, 1, 0], [1, 1, 1, 1, 0] ]; 1 - Is there a way to foreach vertically through that? (that is, rotated

Process Pipes

2018-10-09 Thread Gorker via Digitalmars-d-learn
Hi all, I'm on macOS 10.11.6 with dmd 2.081.2 and I've a problem with std.process. --- gork ():foo gorker$ gcc -c -Iinclude -o foo.cpp.o src/foo.cpp In file included from src/foo.cpp:2: include/foo/foo.hpp:22:10: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions] enu