Re: Blog Post: Beating std::visit Without Really Trying

2019-10-07 Thread Arredondo via Digitalmars-d-announce

On Sunday, 6 October 2019 at 03:47:25 UTC, Seb wrote:
Phobos is amazing and stable, but exactly because of these 
attributes there isn't much active development happening.


I thought that the work on dip1000 and the current push for 
borrow semantics and other lifetime related issues that have 
certainly been receiving a lot of attention were partly motivated 
because Andrei could not write the containers library that he 
wanted to write, and that one of the first applications that 
those things would see is a proper containers library in Phobos.


Re: libmir: recent updates

2018-09-10 Thread Arredondo via Digitalmars-d-announce

On Sunday, 9 September 2018 at 17:24:49 UTC, 9il wrote:
Mir Algorithm http://mir-algorithm.dub.pm  - v2.0.0, new 
ndslice API,


Does new API mean that it's not backwards compatible? if so, 
where can we find the documentation for this new API?


Arredondo.


Re: Encouraging preliminary results implementing memcpy in D

2018-06-13 Thread Arredondo via Digitalmars-d-announce

On Wednesday, 13 June 2018 at 10:17:10 UTC, Mike Franklin wrote:
Well, actually, I probably should divide that time by 
10,000,000 to make a more accurate representation.



For rigorous benchmarking, check out the first part of Andrei's 
Writing Fast Code:


https://www.youtube.com/watch?v=vrfYLlR8X8k

One takeaway is that taking the average of many runtimes is not 
the best use of your dataset.


Re: DConf 2018 Ex Post Facto

2018-05-31 Thread Arredondo via Digitalmars-d-announce

On Thursday, 31 May 2018 at 17:23:56 UTC, Arredondo wrote:

On Thursday, 31 May 2018 at 16:59:52 UTC, Mike Parker wrote:

On Thursday, 31 May 2018 at 16:32:06 UTC, Joakim wrote:

On Thursday, 31 May 2018 at 15:49:47 UTC, Ali Çehreli wrote:
Only the Vang's picture shows for me. All the others show 
the "no entry" icon with both Firefox and Chrome. 
Permissions issue?


Yep, same here.


Thanks, guys. Should work now.


Now Vang Le's picture is the one not showing :)


Actually Vang Le's picture shows in Chrome but not in Firefox for 
me. Maybe it's because of the file extension: .jpg_large


Arredondo.


Re: DConf 2018 Ex Post Facto

2018-05-31 Thread Arredondo via Digitalmars-d-announce

On Thursday, 31 May 2018 at 16:59:52 UTC, Mike Parker wrote:

On Thursday, 31 May 2018 at 16:32:06 UTC, Joakim wrote:

On Thursday, 31 May 2018 at 15:49:47 UTC, Ali Çehreli wrote:
Only the Vang's picture shows for me. All the others show the 
"no entry" icon with both Firefox and Chrome. Permissions 
issue?


Yep, same here.


Thanks, guys. Should work now.


Now Vang Le's picture is the one not showing :)
Also, typo: With out -> Without

Great post!


Re: Complicated Types: Prefer “alias this” Over “alias” For Easier-To-Read Error Messages

2018-05-21 Thread Arredondo via Digitalmars-d-announce

Nice tip!

One typo:


1. Although the alias this means MyType...


should be


2. Although the alias this means MyType...



Arredondo.


Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-05 Thread Arredondo via Digitalmars-d-announce

On Wednesday, 4 April 2018 at 09:06:31 UTC, WebFreak001 wrote:
I now provide a precompiled DCD for windows, you can download 
it off the serve-d release page and just extract into 
%APPDATA%/code-d/bin (where the serve-d.exe is) and it will 
automatically find it. I am going to release a new release 
later which does this automatically.


I can confirm that it seems to be working for me now. I installed 
git, downloaded the precompiled binaries and cleared the 
%APPDATA%/code-d/bin.


I feel like this informations needs to be readily accessible for 
newcomers, or just people trying out VS Code for the first time. 
For instance, I could not find anywhere in the Wiki the fact that 
in Windows, you either need to have git installed, or download 
some binaries yourself and paste them in a very specific location 
of your file system.


On the other hand, this page is two clicks away (Resources menu > 
Visual D) from the homepage and describes in full detail the 
Visual-D plugin for Visual Studio:

http://rainers.github.io/visuald/visuald/StartPage.html

Given that VS Code is the favorite D editor according to the 
recent D Community Survey (#1 with 25% market share :) I feel 
like there should be a similar page explaining the several D 
extensions for VS Code, their relationships, and how to 
download/configure them, including the information in this thread.


Anyway, thanks for the amazing work.
Cheers,
Arredondo.


Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-04 Thread Arredondo via Digitalmars-d-announce
Thanks for all the feedback you guys. I'll try the different 
suggestions when I get home tonight and I'll let you know.


Cheers,
Arredondo.


Re: code-d 0.17.0 + serve-d 0.1.2

2018-04-03 Thread Arredondo via Digitalmars-d-announce
I could not get this to work for me in the past (I'm using 
Windows 10). I saw this announcement so I decided to try again. 
After reinstalling code-d I got this in the OUTPUT console:


Installing DCD
Installing into C:\Users\Wulfrick\AppData\Roaming\code-d\bin
 > git clone --recursive --depth=1 
https://github.com/Hackerpilot/DCD.git DCD

Failed to install DCD
std.process.ProcessException@std\process.d(753): Failed to spawn 
new process (The system cannot find the file specified.)


0x00384D1F
0x00384AD2
0x00382ADD

The syntax coloring seems wrong, go to definition doesn't work, 
and there are no completition suggestions (Ctr+Space just 
displays "Loading...").


Moreover, the extension is completely SPAMMING the output 
console, making it pop up constantly with endless messages like:



2018-04-04T01:33:46.184:source\served\jsonrpc.d:send:66 
{"id":27,"jsonrpc":"2.0","result":{"command":{"arguments":[],"command":"","title":"~30ms for importing this"},"data":{"code":"import std.algorithm.iteration : sum;","module":"std.algorithm.iteration","type":"importcompilecheck"},"range":{"end":{"character":4,"line":245},"start":{"character":4,"line":245

2018-04-04T01:33:46.184:source\app.d:main:226 Has Message
2018-04-04T01:33:46.184:source\app.d:main:228 Message: 
RequestMessage(28, "codeLens/resolve", {"data":{"code":"import 
std.algorithm.comparison : 
max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250}}})
2018-04-04T01:33:46.200:source\app.d:__lambda10:234 Processing as 
request
2018-04-04T01:33:46.200:source\app.d:processRequest:77 Calling 
resolveCodeLens
2018-04-04T01:33:46.200:source\app.d:__lambda10:236 Responding 
with: ResponseMessage(28, 
{"command":{"arguments":[],"command":"","title":"~280ms for 
importing this"},"data":{"code":"import std.algorithm.comparison 
: 
max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250}}}, null(ResponseError))
2018-04-04T01:33:46.200:source\served\jsonrpc.d:send:66 
{"id":28,"jsonrpc":"2.0","result":{"command":{"arguments":[],"command":"","title":"~280ms for importing this"},"data":{"code":"import std.algorithm.comparison : max;","module":"std.algorithm.comparison","type":"importcompilecheck"},"range":{"end":{"character":4,"line":250},"start":{"character":4,"line":250

2018-04-04T01:33:46.200:source\app.d:main:226 Has Message
2018-04-04T01:33:46.200:source\app.d:main:228 Message: 
RequestMessage(29, "codeLens/resolve", {"data":{"code":"import 
std.range : 
iota;","module":"std.range","type":"importcompilecheck"},"range":{"end":{"character":4,"line":251},"start":{"character":4,"line":251}}})
2018-04-04T01:33:46.216:source\app.d:__lambda10:234 Processing as 
request
2018-04-04T01:33:46.216:source\app.d:processRequest:77 Calling 
resolveCodeLens
2018-04-04T01:33:46.216:source\app.d:__lambda10:236 Responding 
with: ResponseMessage(29, 
{"command":{"arguments":[],"command":"","title":"~290ms for 
importing this"},"data":{"code":"import std.range : 
iota;","module":"std.range","type":"importcompilecheck"},"range":{"end":{"character":4,"line":251},"start":{"character":4,"line":251}}}, null(ResponseError))






... and it goes like this for a while. This is at the very bottom:





[Info  - 1:33:54 AM] Connection to server got closed. Server will 
restart.

[Error - 1:33:54 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire 
(C:\Users\Wulfrick\.vscode\extensions\webfreak.code-d-0.17.0\node_modules\vscode-jsonrpc\lib\events.js:135:36)

[Error - 1:33:54 AM] Request textDocument/codeAction failed.
Error: 

Re: The Expressive C++17 Coding Challenge in D

2018-02-14 Thread Arredondo via Digitalmars-d-announce

On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote:
Someone revived the Expressive C++17 Coding Challenge thread 
today and I thought this is an excellent opportunity to revive 
my blog and finally write an article showing why I like D so 
much:


https://seb.wilzba.ch/b/2018/02/the-expressive-c17-coding-challenge-in-d

It's mostly targeted at beginners as I explain many basic D 
features, but maybe it's helpful for beginners looking into D.


Down in the 'Other cool D features' you have:


* Inline documentation
* Contracts
...
* Built-in documentation
* Contracts and invariants


Nice read!