Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote: Could anybody make Sublime plugin please? Same person made one https://github.com/Pure-D/sublime-d. Although it looks like it hasn't yet been updated to take advantage of the latest features.
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 07:18:18 UTC, Soulsbane wrote: On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote: Could anybody make Sublime plugin please? Same person made one https://github.com/Pure-D/sublime-d. Although it looks like it hasn't yet been updated to take advantage of the latest features. There was one update to workspace-d recently which removed the need for dfmt, so I guess it got a little better. But it needs more work to implement all features, the issue with implementing it is always only figuring out a way to display all the features in the editor UI.
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 05:38:28 UTC, Dmitry wrote: On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: try out the new version please uninstall code-d and install code-d-beta (https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it. Failed to install serve-d (Error code 2) https://pastebin.com/EMgV1tR2 Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc --build=release --combined dub build --compiler=ldc --combined dub build --compiler=ldc --build=release dub build --compiler=ldc
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote: On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: You might remember the blog post from a while back about workspace-d and serve-d, I just released a beta version on the visual studio marketplace that allows you to try out the latest features of serve-d. Note that this version might easily break in the future, but for the next few days I am trying to gain some feedback. If you are a user of code-d and if you want to try out the new version please uninstall code-d and install code-d-beta I'm getting this error: "Could not initialize dub. Falling back to limited functionality!". I don't get this error in the other version and dub is installed: DUB version 1.4.0, built on Jul 19 2017. There is a new output log at the bottom now, can you try it out on a project with no personal information and send me the debug log per pastebin? To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and paste it somewhere.
Re?? Visual Studio Code code-d serve-d beta release
I use dub build --compiler=ldc2 and get these error messages below: Installing DCD Installing into C:\Users\admin\AppData\Roaming\code-d\bin Deleting old installation from C:\Users\admin\AppData\Roaming\code-d\bin\DCD Failed to install DCD std.file.FileException@C:\temp\LDC-BUILDx86\src\ldc\runtime\phobos\std\file.d(733): C:\Users\admin\AppData\Roaming\code-d\bin\DCD\.git\modules\dsymbol\objects\pack\pack-8e9b49e6972937fb54fdb5f64365e3c1e41f39ca.idx: Access Denied?? 0x016C9F58 in ulong[] core.sys.windows.stacktrace.StackTrace.traceNoSync(uint, core.sys.windows.winnt.CONTEXT*) 0x016C9D02 in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor(uint, core.sys.windows.winnt.CONTEXT*) 0x016C2B2C in object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*) Installing dscanner Installing into C:\Users\admin\AppData\Roaming\code-d\bin Deleting old installation from C:\Users\admin\AppData\Roaming\code-d\bin\Dscanner Failed to install Dscanner std.file.FileException@C:\temp\LDC-BUILDx86\src\ldc\runtime\phobos\std\file.d(733): C:\Users\admin\AppData\Roaming\code-d\bin\Dscanner\.git\modules\containers\objects\pack\pack-d03772eb5ea7715bd99bec2a2491e7062f8f6062.idx: Access Denied?? 0x016C9F58 in ulong[] core.sys.windows.stacktrace.StackTrace.traceNoSync(uint, core.sys.windows.winnt.CONTEXT*) 0x016C9D02 in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor(uint, core.sys.windows.winnt.CONTEXT*) 0x016C2B2C in object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*) -- -- On Sunday, 6 August 2017 at 05:38:28 UTC, Dmitry wrote: > On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: >> try out the new version please uninstall code-d and install >> code-d-beta >> (https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, >> it's version 0.16.1) and just try to use it. > > Failed to install serve-d (Error code 2) > https://pastebin.com/EMgV1tR2 Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc --build=release --combined dub build --compiler=ldc --combined dub build --compiler=ldc --build=release dub build --compiler=ldc
Re: Visual Studio Code code-d serve-d beta release
https://pastebin.com/3hp2b5qy On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote: > >> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: >> >>> You might remember the blog post from a while back about workspace-d and >>> serve-d, I just released a beta version on the visual studio marketplace >>> that allows you to try out the latest features of serve-d. Note that this >>> version might easily break in the future, but for the next few days I am >>> trying to gain some feedback. If you are a user of code-d and if you want >>> to try out the new version please uninstall code-d and install code-d-beta >>> >> >> I'm getting this error: "Could not initialize dub. Falling back to >> limited functionality!". I don't get this error in the other version and >> dub is installed: DUB version 1.4.0, built on Jul 19 2017. >> > > There is a new output log at the bottom now, can you try it out on a > project with no personal information and send me the debug log per pastebin? > > To access it open the panel at the bottom (F1 -> View: Toggle Output / > Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just > select everything, copy it and paste it somewhere. >
Re: Visual Studio Code code-d serve-d beta release
It does not select compiler correctly: [kozak@kleopatra dbsync]$ dub build --config= --arch=x86_64 --build=debug --compiler= Error processing arguments: Missing value for argument --compiler=. Run 'dub help' for usage information. On Sun, Aug 6, 2017 at 11:48 AM, Daniel Kozak wrote: > https://pastebin.com/3hp2b5qy > > On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce < > digitalmars-d-announce@puremagic.com> wrote: > >> On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote: >> >>> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: >>> You might remember the blog post from a while back about workspace-d and serve-d, I just released a beta version on the visual studio marketplace that allows you to try out the latest features of serve-d. Note that this version might easily break in the future, but for the next few days I am trying to gain some feedback. If you are a user of code-d and if you want to try out the new version please uninstall code-d and install code-d-beta >>> >>> I'm getting this error: "Could not initialize dub. Falling back to >>> limited functionality!". I don't get this error in the other version and >>> dub is installed: DUB version 1.4.0, built on Jul 19 2017. >>> >> >> There is a new output log at the bottom now, can you try it out on a >> project with no personal information and send me the debug log per pastebin? >> >> To access it open the panel at the bottom (F1 -> View: Toggle Output / >> Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just >> select everything, copy it and paste it somewhere. >> > >
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote: Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc --build=release --combined dub build --compiler=ldc --combined dub build --compiler=ldc --build=release dub build --compiler=ldc Sure. https://pastebin.com/FN7EezJV
Re: D books - 3 eBooks, videos, and courses for $25 right now
On Thursday, 3 August 2017 at 15:49:06 UTC, Martin Tschierschke wrote: On Thursday, 27 July 2017 at 08:29:14 UTC, Martin Tschierschke wrote: On Friday, 16 December 2016 at 05:43:02 UTC, Kai Nacke wrote: Hi all, Packt Publishing offers eBooks for $5 for a limited time. If your collection of D eBooks is still incomplete then this is a great chance for you. :-) D Cookbook by Adam D. Ruppe (https://www.packtpub.com/application-development/d-cookbook) Learning D by Michael Parker (https://www.packtpub.com/application-development/learning-d) D Web Development by myself (https://www.packtpub.com/web-development/d-web-development) Regards, Kai 3 eBooks, videos, and courses for $25 right now Not as cheap as in December but a good opportunity to take them all... And now as well, for $10 each. Do you know if the books are up to date with the language's MO? I don't think the language has changed much since the books were published, but maybe the idioms did...
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote: https://pastebin.com/3hp2b5qy [...] oh right you still have the old version. Remove the serve-d directory (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or cd into it, git pull and dub build (on windows with --compiler=ldc2) and reload
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 12:22:43 UTC, Dmitry wrote: On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote: Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d and then try the following commands in this order and tell me if one of them worked: dub build --compiler=ldc --build=release --combined dub build --compiler=ldc --combined dub build --compiler=ldc --build=release dub build --compiler=ldc Sure. https://pastebin.com/FN7EezJV hm seems like libdparse doesn't like LDC on the bottom 2 issues. If you fix that one line and try to compile again I think it will crash with a windows error that it can't access that path though, that's the reason why I added --combined to workspace-d IIRC. But if you could try and fix it and recompile without --combined and tell me if it worked that would be great, so I can change it inside code-d.
Re: Visual Studio Code code-d serve-d beta release
No I have none of those directories in my system (ArchLinux), I have install this aur package https://aur.archlinux.org/packages/serve-d-git and then code-d serve-d Beta from extensions On Sun, Aug 6, 2017 at 4:19 PM, WebFreak001 via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote: > >> https://pastebin.com/3hp2b5qy >> >> [...] >> > > oh right you still have the old version. Remove the serve-d directory > (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or > cd into it, git pull and dub build (on windows with --compiler=ldc2) and > reload >
Re: Visual Studio Code code-d serve-d beta release
After reinstaling serve-d-git it is working ok for me now On Sun, Aug 6, 2017 at 4:28 PM, Daniel Kozak wrote: > No I have none of those directories in my system (ArchLinux), I have > install this aur package https://aur.archlinux.org/packages/serve-d-git > and then code-d serve-d Beta from extensions > > On Sun, Aug 6, 2017 at 4:19 PM, WebFreak001 via Digitalmars-d-announce < > digitalmars-d-announce@puremagic.com> wrote: > >> On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote: >> >>> https://pastebin.com/3hp2b5qy >>> >>> [...] >>> >> >> oh right you still have the old version. Remove the serve-d directory >> (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or >> cd into it, git pull and dub build (on windows with --compiler=ldc2) and >> reload >> > >
Re: d_to_html.d
On 2017-08-05 21:07, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Here an example what you pass in: string page = html( head( title("wtf is this"), style( html( font-family = "Roboto", background = 0xEFEFEF ), div.content( max-width = 800.px, margin = auto_, margin-top = 32.px, box-shadow = "0 2px 5px rgba(0, 0, 0, 0.3)", background = white, padding = 32.px ), div.footer( text-"align" = center ) ) ), body( div.content( h1("The most crappy HTML generator ever"), div.teaser( p("Super fast") ), hr, p("Reasons why you should use d_to_html:"), ul( li("TODO: no reason yet") * 5 ) ), div.footer( p(raw!"© 2017 webfreak.org") ) ) ).toString; Which generates: https://i.webfreak.org/fStzn0.html Full source: https://gist.github.com/WebFreak001/6a1916779e48898c7ababc47a3113829 Though some things (like min and max for example) won't work correctly, so you need to manually write `attr!"min" = 4` if you wanted to add that to an input element. btw this is just a joke project, it's totally abusing operator overloading just to show what is possible with it. The idea came up in Wild's discord server, you can join us too, we have a programming and a dplug channel: https://discordapp.com/invite/bMZk9Q4 Wow, that's pretty cool :). One downside I see is that all tags are currently hard coded. This won't work for XML or if using new/custom tags that the library doesn't know about yet. -- /Jacob Carlborg
Re: Calling D from Ruby for GPU computing
On Saturday, 5 August 2017 at 01:15:19 UTC, Michael wrote: On Saturday, 29 July 2017 at 06:54:47 UTC, Prasun Anand wrote: Hi, I wrote a Linear Mixed Model tool for Genome Wide Association Studies(GWAS) called [faster_lmm_d](https://github.com/prasunanand/faster_lmm_d). It is built on LDC and is faster than its Python alternative. Also, its the only GWAS tool with a GPU backend. I am interested in porting ` faster_lmm_d` to Ruby. Though, it is still a work in progress, I have written a blog about my findings. Blog: http://www.prasunanand.com/gpu-computing/2017/07/25/gsoc17-calling-d-from-ruby-for-gpu-computing.html I would love to hear your feedback. Regards, Prasun [Previously posted on LDC thread: http://forum.dlang.org/thread/rzrawenyssbiidsgt...@forum.dlang.org] I don't know much about your work but it sounds like an interesting application for D. How easy was it interfacing with cuda? It was easy interfacing CUDA. I used `dstep` to create the bindings and for CUDA and CUBLAS headers. I got interesting results but would be working on improving the performance. Was it just cuda you targeted or would it also work with OpenCL? Yes, OpenCL is supported using ArrayFire. I have targeted CUDA specifically for better performance. What made you choose D over going straight to C to work directly with cuda? `faster_lmm_d`
Re: Calling D from Ruby for GPU computing
What made you choose D over going straight to C to work directly with cuda? `faster_lmm_d` was written in D. Since, I needed to use CUDA, I had to create the D bindings. I found using CUDA for GPU computing in D as easy as doing it in C. Regards, Prasun
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote: To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and paste it somewhere. I tried with a fresh dub init project and the same thing happens: dub version: DUB version 1.4.0, built on Jul 19 2017 serve-d version: 2017-08-06T13:30:00.496:app.d:main:195 Features fulfilled 2017-08-06T13:30:00.496:app.d:main:198 Started reading from stdin 2017-08-06T13:30:00.496:app.d:main:201 RPC started 2017-08-06T13:30:00.506:app.d:main:209 Has Message 2017-08-06T13:30:00.506:app.d:main:211 Message: RequestMessage(0, "initialize", {"capabilities":{"textDocument":{"codeAction":{"dynamicRegistration":true},"codeLens":{"dynamicRegistration":true},"completion":{"completionItem":{"snippetSupport":true},"dynamicRegistration":true},"definition":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"hover":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true},"signatureHelp":{"dynamicRegistration":true},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true}},"workspace":{"applyEdit":true,"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"symbol":{"dynamicRegis! tration":true},"workspaceEdit":{"documentChanges":true}}},"processId":4751,"rootPath":"\/home\/soulsbane\/Projects\/D\/coded","rootUri":"file:\/\/\/home\/soulsbane\/Projects\/D\/coded","trace":"off"}) 2017-08-06T13:30:00.517:app.d:__lambda10:217 Processing as request 2017-08-06T13:30:00.517:app.d:processRequest:49 Initializing 2017-08-06T13:30:00.517:extension.d:initialize:136 Initializing serve-d for /home/soulsbane/Projects/D/coded 2017-08-06T13:30:00.517:extension.d:initialize:141 Starting dub... 2017-08-06T13:30:00.517:jsonrpc.d:showErrorMessage:310 Error message: Could not initialize dub. Falling back to limited functionality! 2017-08-06T13:30:00.517:jsonrpc.d:send:66 {"jsonrpc":"2.0","method":"window/showMessage","params":{"message":" Could not initialize dub. Falling back to limited functionality!","type":1}} 2017-08-06T13:30:00.517:extension.d:initialize:174 Starting dfmt 2017-08-06T13:30:00.517:extension.d:initialize:176 Starting dlangui 2017-08-06T13:30:00.517:extension.d:initialize:178 Starting importer 2017-08-06T13:30:00.517:extension.d:initialize:180 Starting moduleman 2017-08-06T13:30:00.517:app.d:processRequest:51 Initialized 2017-08-06T13:30:00.517:app.d:__lambda10:219 Responding with: ResponseMessage(0, {"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}, null(ResponseError)) 2017-08-06T13:30:00.517:jsonrpc.d:send:66 {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}} 2017-08-06T13:30:00.527:app.d:main:209 Has Message 2017-08-06T13:30:00.527:app.d:main:211 Message: RequestMessage(none, "initialized", {}) 2017-08-06T13:30:00.537:app.d:__lambda11:233 Processing as notification 2017-08-06T13:30:00.537:app.d:main:209 Has Message 2017-08-06T13:30:00.537:app.d:main:211 Message: RequestMessage(none, "$/setTraceNotification", {"value":"off"}) 2017-08-06T13:30:00.547:app.d:__lambda11:233 Processing as notification 2017-08-06T13:30:00.547:app.d:main:209 Has Message 2017-08-06T13:30:00.547:app.d:main:211 Message: RequestMessage(none, "workspace/didChangeConfiguration", {"settings":{"d":{"aggressiveUpdate":true,"dcdClientPath":"dcd-client","dcdServerPath":"dcd-server","dfmtPath":"dfmt","dsca
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 18:32:35 UTC, Soulsbane wrote: On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote: To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and paste it somewhere. I tried with a fresh dub init project and the same thing happens: Update pls, there was a bug for a few hours after the initial release which caused this. Remove the code-d directory and reload the extension.
Re: d_to_html.d
On Sunday, 6 August 2017 at 00:22:32 UTC, David Gileadi wrote: On 8/5/17 12:07 PM, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. [snip] That is amazing! I can't decide whether it's the best thing I've ever seen or a horrible hack, The best thing for Olympic programming, horrible hack for production code. :)
Re: d_to_html.d
On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote: Hi, I made a D to HTML generator which is basically diet, but fully using the D compiler as generator and not some complicated parser, etc. Finally! I can have a footing in frontend development!
Re: d_to_html.d
On Saturday, 5 August 2017 at 19:07:50 UTC, WebFreak001 wrote: snip Man, this is absolutely nuts. Overriding opBinary to catch hyphens, aliasing opAssign to opCall... Just evil, haha! Amazing job!