Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 19:46:17 UTC, WebFreak001 wrote: On Saturday, 8 October 2016 at 19:43:07 UTC, bitwise wrote: On Saturday, 8 October 2016 at 19:10:22 UTC, WebFreak001 wrote: git clone g...@github.com:Pure-D/workspace-d.git Done, but had to use this instead(some permission error): git clone https://github.com/Pure-D/workspace-d dub build --build=release and set the folder path to that executable The build seems to have worked, but I don't see any build output, and the console gives no indication of where it went. Sorry, I expected a "./bin" folder or something. "workspace-d" was sitting in the root folder. I've set "d.workspacedPath" to the path of the new file and it seems to have suppressed the error, but completion still isn't working. When I open a single file, I get no errors, but when I put a d file in a folder and opened the folder with VSCode, I got this: "Could not initialize DCD. See console for details!" I've checked all the consoles I could find in VSCode, and can't find any details. Also I'm on the D as WebFreak001 if you want a more direct chat I assume you mean #d? I'm there. Thanks
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 19:43:07 UTC, bitwise wrote: On Saturday, 8 October 2016 at 19:10:22 UTC, WebFreak001 wrote: git clone g...@github.com:Pure-D/workspace-d.git Done, but had to use this instead(some permission error): git clone https://github.com/Pure-D/workspace-d dub build --build=release and set the folder path to that executable The build seems to have worked, but I don't see any build output, and the console gives no indication of where it went. Can you make some recording of whats wrong with the developer tools open? (ctrl-shift-p -> developer tools) Also I'm on the D as WebFreak001 if you want a more direct chat
tanya event loop v0.1.0
A month ago I announced the first pre-alpha release of tanya, a general purpose library with an event loop. After a month of almost every day work, I think I can make a second announcement. https://github.com/caraus-ecms/tanya The bad news is that most probably I'm stopping my development of the library. The good news is that almost everything is now merged into dlib by Timur Gafarov: https://github.com/gecko0307/dlib. My first contribution to dlib was in May 2016 and I decided that I would profit from extending an existing library and I can say that I had only positive experience from the work with Timur. * dlib uses manual memory management aswell. * there containers I can use without developing my own. * there are some modules like zlib and huffman algorithm implementation I will need later for a web server. You can find the event loop in dlib.async. The most noticeable change since the first release is that I think I can say now that the event loop is now cross-platform. dlib.memory.mmappool (memory.ullocator before) works now under Windows as well. The event loop itself supports epoll (linux), kqueue (developed and tested on FreeBSD) and IOCP (Windows). Because I need for Windows different sockets, I created own socket implementation. Anyway the work with the event loop and the sockets is now much easier than in the first version. UDP is still isn't supported. Basic error handling was added. dlib has now a "crypto" branch aswell, where I'm working on a light weight TLS package. Another thing is that I changed my mind about @nogc. I still don't rely on the GC, but I think now that my understanding of @nogc was completely wrong. I thought that the missing @nogc means "it uses GC". But it seems to mean only "it can use GC" and @nogc means "it never uses GC". So I go now with allocators and give the user of the library the chance to decide if he wants to use the GC or not. Please understand that the async package is still very simple. But I'm working hard on it in my free time. In the next step I want ot adapt it to a web framework I've started before (https://github.com/caraus-ecms/caraus). Echo server example with the new version: import dlib.async; import dlib.network.socket; class EchoProtocol : TransmissionControlProtocol { private DuplexTransport transport; void received(ubyte[] data) { transport.write(data); } void connected(DuplexTransport transport) { this.transport = transport; } void disconnected(SocketException exception = null) { } } void main() { auto address = new InternetAddress("127.0.0.1", cast(ushort) 8192); version (Windows) { auto sock = new OverlappedStreamSocket(AddressFamily.INET); } else { auto sock = new StreamSocket(AddressFamily.INET); sock.blocking = false; } sock.bind(address); sock.listen(5); auto io = new ConnectionWatcher(sock); io.setProtocol!EchoProtocol; defaultLoop.start(io); defaultLoop.run(); sock.shutdown(); } There is still no online documentation. But I almost ready to begin to test the event loop and publish "self-hosted" documentation based on it. Like always I welcome any feedback ).
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 19:08:10 UTC, bitwise wrote: On Saturday, 8 October 2016 at 18:05:58 UTC, WebFreak001 wrote: Try deleting the executable from /Users/me/.vscode/extensions/code-d.../bin/workspace-d and then try to reinstall it again using code-d I did. then try deleting at and manually installing it using git clone g...@github.com:Pure-D/workspace-d.git dub build --build=release and set the folder path to that executable
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 18:05:58 UTC, WebFreak001 wrote: Try deleting the executable from /Users/me/.vscode/extensions/code-d.../bin/workspace-d and then try to reinstall it again using code-d I did.
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 17:27:03 UTC, bitwise wrote: On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote: * detection of missing tools & installation I'm trying to use VSCode/mac-os and getting some errors. First, I tried to install all the required tools, and got an error because the installation/compilation couldn't find the new experimental allocators. Updating dmd fixed this, but there didn't seem to be any explicit check/message that dmd was out of date IIRC. After updating DMD, 3 of the tools seemed to have installed correctly, but I am still getting this error: "workspace-d is not installed or points to a folder" I tried setting "d.workspacedPath" in user settings to the executable in the /Users/me/.vscode/extensions/... folder, but it still doesn't work. Also, unrelated to the above, I've set"d.stdlibPath" to the appropriate paths, but completion still doesn't work. I'm guessing workspace-d not being found has something to do with this..? Anyways, thanks for the good work. Can't wait to get this thing up and running. auto completion won't appear when workspace-d is not installed, workspace-d is the thing that calls all of the other executables. Try deleting the executable from /Users/me/.vscode/extensions/code-d.../bin/workspace-d and then try to reinstall it again using code-d
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote: * detection of missing tools & installation I'm trying to use VSCode/mac-os and getting some errors. First, I tried to install all the required tools, and got an error because the installation/compilation couldn't find the new experimental allocators. Updating dmd fixed this, but there didn't seem to be any explicit check/message that dmd was out of date IIRC. After updating DMD, 3 of the tools seemed to have installed correctly, but I am still getting this error: "workspace-d is not installed or points to a folder" I tried setting "d.workspacedPath" in user settings to the executable in the /Users/me/.vscode/extensions/... folder, but it still doesn't work. Also, unrelated to the above, I've set"d.stdlibPath" to the appropriate paths, but completion still doesn't work. I'm guessing workspace-d not being found has something to do with this..? Anyways, thanks for the good work. Can't wait to get this thing up and running.
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Saturday, 8 October 2016 at 00:30:32 UTC, Soulsbane wrote: On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote: I've been working a lot on the new features for code-d to improve the user experience for new users and lower the barrier of creating D projects. Will there be support for looking for dscanner.ini in .config rather than in project directory? good idea, added it as an issue to workspace-d: https://github.com/Pure-D/workspace-d/issues/47