Re: New DUB documentation

2023-11-24 Thread notna via Digitalmars-d-announce

On Thursday, 23 November 2023 at 07:16:59 UTC, WebFreak001 wrote:
the layout is standard from material for mkdocs and widely used 
in other projects, no plans on changing that for now, the 
experience is more efficient for when you get used to it too.


a BIG thanks for the re-work from my side.

I personally do like the new docu and layout and the smart 
move to `mkdocs` because it's the most used technical 
documentation framework out there __AND__ now many more people 
can easily enhance / improve things...




Re: Release D 2.102.0

2023-02-14 Thread notna via Digitalmars-d-announce

On Monday, 13 February 2023 at 20:55:42 UTC, Iain Buclaw wrote:
On Sunday, 5 February 2023 at 01:59:47 UTC, Andrej Mitrovic 
wrote:
On Thursday, 2 February 2023 at 12:30:50 UTC, Iain Buclaw 
wrote:

http://dlang.org/download.html


Seems there's problems with the installer script: 
https://issues.dlang.org/show_bug.cgi?id=23671


Indeed, it's not downloading the *new* version of 
https://dlang.org/d-keyring.gpg


As a workaround remove ~/dlang/d-keyring.gpg and try again.


Well, this seems to happen now and then... since many years

- https://forum.dlang.org/search?q=d-keyring%2Egpg=1
- https://github.com/dlang/installer/pull/457



Re: Download a file into array (using std.net.curl.download)

2021-07-08 Thread notna via Digitalmars-d-learn
On Wednesday, 7 July 2021 at 13:49:50 UTC, MoonlightSentinel 
wrote:

On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:

On Windows:
[...]
Nice and helpful Error messages is on the top of our desires 
list, right?


It's hard to give proper error backtraces without debug 
information (-g).
Anyways, I can reproduce the error when compiling with `-m32` 
(the default), using `-m32mscoff` and `-m64` works as expected. 
You should probably avoid `-m32` in general (as dub does btw).


for what it's worth...

due to license restrictions and costs we are not allowed to have 
the MS toolchain installed on our office clients... tried it now 
@HOME with the '-m64' switch anabled, as suggested by you, and 
can confirm, it also "just works"...


Re: Download a file into array (using std.net.curl.download)

2021-07-07 Thread notna via Digitalmars-d-learn

On Wednesday, 7 July 2021 at 11:54:39 UTC, z wrote:


On 64 bits you don't even get a stack trace or description.
Sad, i know.
If you want better i could recommend you to compile with `-g` 
and hook up a debugger, then just let it run and it should 
triger a breakpoint on 0xC009(access violation).


Well, that's an option, for those who want and are knowledgeable 
to debug ;)


Anyhow, compiling it with ```dmd -v -g``` results in

```
λ  .\curl_get.exe

object.Error@(0): Access Violation

0x028DCA66
0x004211E1 in ref void* 
std.concurrency.initOnce!(std.net.curl.CurlAPI._handle).initOnce(lazy void*)
0x00402449 in char[] std.net.curl.get!(std.net.curl.AutoProtocol, 
char).get(const(char)[], std.net.curl.AutoProtocol) at 
c:\d\dmd2\windows\bin\..\..\src\phobos\std\net\curl.d(588)

0x00402308 in _Dmain at C:\Programming\D_playground\curl_get.d(6)
0x00417E0B in void rt.dmain2._d_run_main2(char[][], uint, extern 
(C) int function(char[][])*).runAll().__lambda1()
0x00417D85 in void rt.dmain2._d_run_main2(char[][], uint, extern 
(C) int function(char[][])*).runAll()

0x00417C20 in _d_run_main2
0x0040FD63 in _d_run_main
0x00402404 in main at 
c:\d\dmd2\windows\bin\..\..\src\druntime\import\core\internal\entrypoint.d(29)

0x0048ADC9 in mainCRTStartup
0x74B96359 in BaseThreadInitThunk
0x773887A4 in RtlGetAppContainerNamedObjectPath
0x77388774 in RtlGetAppContainerNamedObjectPath
```


Re: Download a file into array (using std.net.curl.download)

2021-07-07 Thread notna via Digitalmars-d-learn

On Wednesday, 7 July 2021 at 12:07:26 UTC, rikki cattermole wrote:


With ldc you can turn on address sanitizer which will give you 
that information (and a LOT more!) without a debugger (but you 
still need -g).


http://johanengelen.github.io/ldc/2017/12/25/LDC-and-AddressSanitizer.html


compiling with ldc2 "just works"! thanks for the hint ;)



Re: Download a file into array (using std.net.curl.download)

2021-07-07 Thread notna via Digitalmars-d-learn

On Monday, 5 July 2021 at 15:08:45 UTC, MoonlightSentinel wrote:

On Monday, 5 July 2021 at 14:57:20 UTC, BoQsc wrote:

Let's say I can't store information into files.
Is it possible to download a file into an array.


Yes, use 
[`get`](https://dlang.org/phobos/std_net_curl.html#.get):


```d
import std.net.curl;

void main()
{
char[] content = 
get("https://gist.githubusercontent.com/deekayen/4148741/raw/98d35708fa344717d8eee15d11987de6c8e26d7d/1-1000.txt;);

}
```


On Windows:
```
::> dmd curl_get.d
::> .\curl_get.exe

object.Error@(0): Access Violation

0x0283CA66
0x0041DE8D
0x004023A2
0x00402308
0x00414D33
0x00414CAD
0x00414B48
0x0040D41F
0x00402363
0x74B96359 in BaseThreadInitThunk
0x773887A4 in RtlGetAppContainerNamedObjectPath
0x77388774 in RtlGetAppContainerNamedObjectPath
```

Nice and helpful Error messages is on the top of our desires 
list, right?


Re: Release D 2.097.0

2021-06-23 Thread notna via Digitalmars-d-announce

On Monday, 21 June 2021 at 15:21:01 UTC, pilger wrote:

On Sunday, 20 June 2021 at 18:13:56 UTC, notna wrote:
Well, you may want to try [scoop](https://scoop.sh/). The so 
called manifests are updated daily.


thanx for making me aware of this. not only is this my 
favourite way to update dmd/ldc now but i also migrated 
completely from choco to scoop.


thanks for your feedback && happy to hear.

#metoo ;)


Re: Release D 2.097.0

2021-06-20 Thread notna via Digitalmars-d-announce

On Saturday, 19 June 2021 at 13:37:15 UTC, pilger wrote:
windows is my main development platform and personally i have 
no need for the installer at all- i just grab the 7z.


however i would use the chocolatey package exclusively instead 
if it would be maintained more timely.


Well, you may want to try [scoop](https://scoop.sh/). The so 
called manifests are updated daily.


Once installed, just run
```
scoop install dmd
```

and at anytime
```
scoop update dmd
```




Re: LDC 1.24.0-beta1

2020-10-19 Thread notna via Digitalmars-d-announce

On Sunday, 18 October 2020 at 22:40:53 UTC, aberba wrote:


It would be convenient if you provided a .exe installer as 
well. Not sure what to do with the .7z file without manual 
tinkering.


use scoop for Windows package mgmt in a user context. build with 
developers in mind. for installation see:

https://scoop.sh/

simple as:
* scoop install dmd
* scoop install ldc

stay always up to date:
* scoop update
* scoop update *

... and MUCH more, see https://github.com/lukesampson/scoop/wiki



Re: Release D 2.094.0

2020-10-05 Thread notna via Digitalmars-d-announce

On Monday, 5 October 2020 at 09:17:13 UTC, Andrej Mitrovic wrote:
On Monday, 5 October 2020 at 03:27:22 UTC, Andrej Mitrovic 
wrote:
I'm not sure if it's related to 
https://issues.dlang.org/show_bug.cgi?id=21226. But how many 
people will be turned away not being able to install the 
compiler?


This might have come off a bit rude, apologies for that.

That being said, the solution seemed to be to run the `update` 
command on the script. It wasn't really obvious though.


Well, the "signature" topic is a constantly reoccurring issue and 
you can find plenty complains in the news group / forum... some 
examples:
- 
https://forum.dlang.org/post/mailman.3930.1592291554.31109.digitalmars-d-b...@puremagic.com
- 
https://forum.dlang.org/post/mailman.2853.1587904820.31109.digitalmars-d-b...@puremagic.com


- 
https://forum.dlang.org/post/fnaizrmuezxobtxla...@forum.dlang.org
- 
https://forum.dlang.org/post/lwsekmmdlmfkhkahm...@forum.dlang.org
- 
https://forum.dlang.org/post/szvratfzlyfbjeuma...@forum.dlang.org
- 
https://forum.dlang.org/post/hpdxzlxwofpktlaao...@forum.dlang.org



I made a quick enhancement proposal as suggested by Seb before / 
here
- 
https://github.com/dlang/dlang.org/pull/2817#pullrequestreview-425842582

... my pull request was merged but later reverted again:
- https://github.com/dlang/installer/pull/457
- https://github.com/dlang/installer/pull/302

Seb promised to work on it... whenever he finds the need and time 
for it. Mybe someone else can continue / implement / drive this 
"auto update" topic...


regards




Re: Good way to send/receive UDP packets?

2020-07-21 Thread notna via Digitalmars-d-learn

On Tuesday, 21 July 2020 at 13:05:21 UTC, wjoe wrote:

On Sunday, 19 July 2020 at 09:48:24 UTC, notna wrote:
Someone once wrote about a UDP library, which was used to sync 
data to somewhere in APAC (Hongkong?) and by doing so the data 
transfer was magnitudes faster then before (over TCP)...




In the best case scenario, and orders of magnitude more 
unreliable otherwise.


Choosing UDP over TCP because speed is like choosing a hammer 
over a screwdriver to drive in a screw because it works and is 
faster. But it's still the wrong tool for the job.


UDP is a protocol for broadcasting messages which means it's 
connection less, unreliable (as in no guarantees for delivery 
of datagrams or that they'll be delivered only once, order i.e. 
datagrams sent in order A B C D can be delivered like e.g B C A 
D), and data integrity.

It's insecure (as in everyone who listens can receive it).

Once you need any of these features/guarantees you'll lose 
performance just as you would by using TCP, plus you pay the 
cost for re-inventing the wheel, bugs, testing, maintenance, 
support and all.


UDP is the protocol of choice when you want to broadcast, the 
data you send isn't important or the TCP overhead is bigger 
than the transmitted message. Like broadcasting radio/podcasts, 
weather updates for your status bar or some such or DNS queries.


If you need reliable transmission you need to use a reliable 
protocol.


well, I guess all your remarks are true... and irrelevant at the 
same time.


please go back and read his first post starts with "I have a 
project where I need to take and send UDP packets over the 
Internet"...


Re: Good way to send/receive UDP packets?

2020-07-19 Thread notna via Digitalmars-d-learn

On Saturday, 18 July 2020 at 16:00:09 UTC, Dukc wrote:
I have a project where I need to take and send UDP packets over 
the Internet. Only raw UDP - my application uses packets 
directly, with their starting `[0x5a, packet.length.to!ubyte]` 
included. And only communication with a single address, no need 
to communicate with multiple clients concurrently.


I understand that I could do it either with the Curl library 
bundled with Phobos, or use Vibe.D or Hunt instead. But it's 
the first time I'm dealing with low-level networking like this, 
and my knowledge about it is lacking. So seek opinions about 
what library I should use, and more importantly, why.


Other advice about projects like this is also welcome, should 
anyone wish to share it.


Someone once wrote about a UDP library, which was used to sync 
data to somewhere in APAC (Hongkong?) and by doing so the data 
transfer was magnitudes faster then before (over TCP)...


I couldn't find this info now, neither in the forum not something 
meaningful in code.dlang.org...


Maybe the author is still around or someone else has this post at 
hand and could share it?!


Beside this, there is:
- https://dlang.org/blog/2016/10/21/project-highlight-libasync/

Hope this helps...


Re: D IDE Dexed - v3.9.0

2020-05-29 Thread notna via Digitalmars-d-announce

On Friday, 29 May 2020 at 08:04:12 UTC, Basile B. wrote:
I've fixed it yesterday 
(https://gitlab.com/basile.b/dexed/-/commit/730c2a4e6e1ae18d603d91c471bf3b6459ce7b52) using my mom's laptop ^^.
Fortunately I've found an old post from p0nce 
(https://forum.dlang.org/post/mscgsclxwtjcferfx...@forum.dlang.org) that explained in detail how to make dll on win and the error has become obvious.


IMPORTANT: Use `export` for any call you want exported in your 
DLL!


Also in IDA the list of the exports showed nothing... that was 
a huge f**ing clue.


anyway the Windows version is verified to work now.
Only thing is that a msvc140.dll might be necessary, but this 
is not a dexed problem. In this case people can just get it 
from the official microsoft website.


confirmed ;) Thank YOU... and your mom :D


Re: D IDE Dexed - v3.9.0

2020-05-09 Thread notna via Digitalmars-d-announce

On Friday, 8 May 2020 at 00:46:04 UTC, Basile B. wrote:


Sorry, I'm tempted to drop official Windows support good. I 
have an old win7 DVD but I'd prefer if someone who actually 
uses Windows could fix this. For now let's talk here 
https://gitlab.com/basile.b/dexed/-/issues/37, as it is very 
specific.


Thanks... seems like I was the only one interested in using it on 
Windows, so... most of the time I use VSCodium with the great 
code-d plugin by now anyhow, so I will survive also without dexed 
;)




Re: D IDE Dexed - v3.9.0

2020-05-07 Thread notna via Digitalmars-d-announce

On Tuesday, 5 May 2020 at 22:00:30 UTC, Basile B. wrote:


Try the default procedure now. i.e using lazbuild as explained 
in the documentation. As the library is statically linked this 
is mandatory anyway.


pull'ed incl submodules again... re-build everything, DLL is 
there BUT...


- starting dexed.exe in PowerShell doesn't show anything
- starting dexed.exe in CMD brings up an error window, saying 
something like "application couldn't be started, (0xc07b) ..."





Re: D IDE Dexed - v3.9.0

2020-05-05 Thread notna via Digitalmars-d-announce

On Tuesday, 5 May 2020 at 20:03:38 UTC, notna wrote:

On Tuesday, 5 May 2020 at 12:53:29 UTC, Basile B. wrote:


On Win10 64Bit, after compiling as described in 
https://basile.b.gitlab.io/dexed/build.html, I have a 
"dexed.exe" but if I run it, I get "couldn't find 
dexed-d.dll" ...


Can you give a try again after pulling latest changes ?

Actually the library indicated as missing was build by calling 
bash which obviously could not work on Windows. I have pushed 
a change that replaces this by a direct call to dub since the 
script was essentially used to "cd" and that's not required as 
dub has "--root"


Thanks for your changes.

Seems like linking take a bit longer now but the DLL is still 
not build.
Another change => calling "dexed.exe" doesn't shop the error 
popup as it did before...



grrr... doesn't _SHOW_ the error popup as it did before...


Re: D IDE Dexed - v3.9.0

2020-05-05 Thread notna via Digitalmars-d-announce

On Tuesday, 5 May 2020 at 12:53:29 UTC, Basile B. wrote:


On Win10 64Bit, after compiling as described in 
https://basile.b.gitlab.io/dexed/build.html, I have a 
"dexed.exe" but if I run it, I get "couldn't find dexed-d.dll" 
...


Can you give a try again after pulling latest changes ?

Actually the library indicated as missing was build by calling 
bash which obviously could not work on Windows. I have pushed a 
change that replaces this by a direct call to dub since the 
script was essentially used to "cd" and that's not required as 
dub has "--root"


Thanks for your changes.

Seems like linking take a bit longer now but the DLL is still not 
build.
Another change => calling "dexed.exe" doesn't shop the error 
popup as it did before...


```powershell

C:\Temp\Git\dexed\dexed-d [master ≡]

λ  dub.exe --compiler=ldc2
Performing "debug" build using ldc2 for x86_64.
iz ~master: building configuration "library"...
stdx-allocator 2.77.5: building configuration "library"...
libdparse ~master: building configuration "library"...
dexed-d ~master: building configuration "library"...
Linking...
Target is a library. Skipping execution.

​C:\Temp\Git\dexed\dexed-d [master ≡]

λ  ls


Directory: C:\Temp\Git\dexed\dexed-d


ModeLastWriteTime Length Name
- -- 
d-   05.05.2020 21:57.dub
d-   03.05.2020 14:40src
-a   03.05.2020 14:40307 dub.json
-a   05.05.2020 21:48144 
dub.selections.json



​C:\Temp\Git\dexed\dexed-d [master ≡]

λ  ls .\src\


Directory: C:\Temp\Git\dexed\dexed-d\src


ModeLastWriteTime Length Name
- -- 
-a   03.05.2020 14:40   9863 common.d
-a   03.05.2020 14:40897 ddemangle.d
-a   03.05.2020 14:40   6436 ddoc_template.d
-a   03.05.2020 14:40  27235 halstead.d
-a   03.05.2020 14:40   4321 imports.d
-a   03.05.2020 14:40   1663 mainfun.d
-a   03.05.2020 14:40  12663 symlist.d
-a   03.05.2020 14:40   3397 todos.d


​C:\Temp\Git\dexed\dexed-d [master ≡]

λ  cd ..
​C:\Temp\Git\dexed [master ≡]

λ  fd --glob *.dll

​C:\Temp\Git\dexed [master ≡]
```



Re: $750 Bounty: Issue 16416 - Phobos std.uni out of date (should be updated to latest Unicode standard)

2020-05-04 Thread notna via Digitalmars-d-announce

On Monday, 4 May 2020 at 17:01:01 UTC, Robert M. Münch wrote:
Following my "Is it time for a Unicode update of std.uni?" post 
in D group, I would like to try out to sponsor this effort for 
"Issue 16416 - Phobos std.uni out of date (should be updated to 
latest Unicode standard)" [1]




So, I'm offering $750 to get it done.

Besides getting the work done, there is one constraint: The 
work needs to get into Phobos. It doesn't make sense to have it 
sit around, because it's not being merged. I don't have any 
clue who is in charge, who decides this. Or if there need to be 
some conditions full-filled so that the result gets merged.


[1] https://issues.dlang.org/show_bug.cgi?id=16416


Never used std.uni as far as I know ;) _BUT_ I think this is a 
great initiative, thanks!


Maybe you want to add an additional constraint... It would be 
great if this would result in a tool, scripts or at least a 
simple-to-follow to-do (say Wiki?!)... so best case we could use 
this also for the next updates / releases in the future?!




Re: $750 Bounty: Issue 16416 - Phobos std.uni out of date (should be updated to latest Unicode standard)

2020-05-04 Thread notna via Digitalmars-d-announce

On Monday, 4 May 2020 at 19:26:28 UTC, notna wrote:

On Monday, 4 May 2020 at 17:01:01 UTC, Robert M. Münch wrote:
Following my "Is it time for a Unicode update of std.uni?" 
post in D group, I would like to try out to sponsor this 
effort for "Issue 16416 - Phobos std.uni out of date (should 
be updated to latest Unicode standard)" [1]




So, I'm offering $750 to get it done.

Besides getting the work done, there is one constraint: The 
work needs to get into Phobos. It doesn't make sense to have 
it sit around, because it's not being merged. I don't have any 
clue who is in charge, who decides this. Or if there need to 
be some conditions full-filled so that the result gets merged.


[1] https://issues.dlang.org/show_bug.cgi?id=16416


Never used std.uni as far as I know ;) _BUT_ I think this is a 
great initiative, thanks!


Maybe you want to add an additional constraint... It would be 
great if this would result in a tool, scripts or at least a 
simple-to-follow to-do (say Wiki?!)... so best case we could 
use this also for the next updates / releases in the future?!


sorry, think this is what you want with 2) :O So just great, BIG 
thanks!




Re: D IDE Dexed - v3.9.0

2020-05-03 Thread notna via Digitalmars-d-announce

On Saturday, 25 April 2020 at 06:55:19 UTC, Basile B. wrote:
Despite of the mini drama last year I've continued developping 
dexed.

The changelog since last announce here is a bit long, check

  https://gitlab.com/basile.b/dexed/-/releases

for more information and get the releases (linux only).


On Win10 64Bit, after compiling as described in 
https://basile.b.gitlab.io/dexed/build.html, I have a "dexed.exe" 
but if I run it, I get "couldn't find dexed-d.dll" ...


Re: sort a string

2020-05-02 Thread notna via Digitalmars-d-learn

On Friday, 1 May 2020 at 19:25:43 UTC, Steven Schveighoffer wrote:


Nice! Yeah, I was sloppy in my newsgroup coding, sorry.

One minor nit here, the to!(dchar[])(word.dup), the dup is not 
necessary, you are going to end up allocating a temporary array 
and throwing it away.


Just do word.to!(dchar[]). `to` takes care of all the 
formalities.


-Steve


THANK YOU for all the great hints and explanations here and in 
general in this NG, Steve!


No blaming for the "sloopy code" at all. I should have seen the 
missing [] by myself, but...


_AND_ btw. your hint with the "release" was key to the discussion 
/ solution anyhow! :)


Re: sort a string

2020-05-01 Thread notna via Digitalmars-d-learn

On Friday, 1 May 2020 at 15:17:53 UTC, drug wrote:

01.05.2020 18:04, notna пишет:


hmmm, whích results in:
  Error: cannot use [] operator on expression of type dchar



try this:
```D
import std;
void main()
{
string word = "Привет";
dchar[] line3 = to!(dchar[])(word.dup) // make a copy to 
get a range of mutable char
   // and convert char 
to dchar

.sort  // sort it
.release;  // get the sorted 
range

assert(line3 == "Пвеирт");
}
```


THANKS, this looks even cleaner :)


Re: sort a string

2020-05-01 Thread notna via Digitalmars-d-learn

On Friday, 1 May 2020 at 15:15:29 UTC, bachmeier wrote:

On Friday, 1 May 2020 at 15:04:01 UTC, notna wrote:
On Friday, 1 May 2020 at 12:29:26 UTC, Steven Schveighoffer 
wrote:



    dchar[] line3 = sort(line2.to!(dchar[]));


dchar[] line3 = sort(line2.to!dchar[]).release;

https://dlang.org/phobos/std_range.html#.SortedRange.release



hmmm, whích results in:
 Error: cannot use [] operator on expression of type dchar


Working program:

import std.algorithm, std.conv, std.string, std.stdio;

void main() {
  string word = "bar";
  string line2 = toLower!(string)(word);
  dchar[] line3 = sort(line2.to!(dchar[])).release;
  writeln(line3);
}

You need to add parens.


well, this makes very much sense ;)
THANKS a lot, works and helped to adopt some old code



Re: sort a string

2020-05-01 Thread notna via Digitalmars-d-learn

On Friday, 1 May 2020 at 12:29:26 UTC, Steven Schveighoffer wrote:


    dchar[] line3 = sort(line2.to!(dchar[]));


dchar[] line3 = sort(line2.to!dchar[]).release;

https://dlang.org/phobos/std_range.html#.SortedRange.release



hmmm, whích results in:
 Error: cannot use [] operator on expression of type dchar



Re: DCD 0.11.0 released

2019-02-12 Thread notna via Digitalmars-d-announce

On Tuesday, 12 February 2019 at 21:03:30 UTC, notna wrote:

On Tuesday, 12 February 2019 at 19:48:25 UTC, Seb wrote:

On Tuesday, 12 February 2019 at 19:46:29 UTC, notna wrote:

On Tuesday, 12 February 2019 at 17:55:46 UTC, Basile B. wrote:

On Monday, 11 February 2019 at 20:40:32 UTC, notna wrote:

Installing DCD
Downloading from 
https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.10.2-windows-x86.zip to C:\Users\\AppData\Roaming\code-d\bin


Failed installing: 
std.net.curl.CurlException@std\net\curl.d(4340): Peer 
certificate cannot be authenticated with given CA 
certificates on handle


I don't know what you are talking about, how are you 
installing DCD ? What is the installer you talk about ?


Also the version number of this release is 0.11.0, not 0.10.2


Thats the errors vscode, better code-d, shows... seems like 
you want to update dcd and use the curl lib for that, which 
throws an error because the download (GitHub?) certificate 
cannot be validated. Just check the news group (or the 
"forum") for this code-d error and you should find a couple 
of similar complains.


Have your ever considered reporting it at the code-d 
repository?


https://github.com/Pure-D/code-d/issues

It should drastically increase the chances of the maintainers 
of code-d actually seeing your problems.


Hi Seb.

Well, I'm one of those idiots stopped going to GitHub since M$ 
swallowed them, so... anyhow, it was just a reminder as 
WebFreak is aware of that issue --> 
https://forum.dlang.org/post/brqtuehpglwuudaem...@forum.dlang.org


btw.: 
https://github.com/Pure-D/code-d/issues/182#issuecomment-450714344




Re: DCD 0.11.0 released

2019-02-12 Thread notna via Digitalmars-d-announce

On Tuesday, 12 February 2019 at 19:48:25 UTC, Seb wrote:

On Tuesday, 12 February 2019 at 19:46:29 UTC, notna wrote:

On Tuesday, 12 February 2019 at 17:55:46 UTC, Basile B. wrote:

On Monday, 11 February 2019 at 20:40:32 UTC, notna wrote:

Installing DCD
Downloading from 
https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.10.2-windows-x86.zip to C:\Users\\AppData\Roaming\code-d\bin


Failed installing: 
std.net.curl.CurlException@std\net\curl.d(4340): Peer 
certificate cannot be authenticated with given CA 
certificates on handle


I don't know what you are talking about, how are you 
installing DCD ? What is the installer you talk about ?


Also the version number of this release is 0.11.0, not 0.10.2


Thats the errors vscode, better code-d, shows... seems like 
you want to update dcd and use the curl lib for that, which 
throws an error because the download (GitHub?) certificate 
cannot be validated. Just check the news group (or the 
"forum") for this code-d error and you should find a couple of 
similar complains.


Have your ever considered reporting it at the code-d repository?

https://github.com/Pure-D/code-d/issues

It should drastically increase the chances of the maintainers 
of code-d actually seeing your problems.


Hi Seb.

Well, I'm one of those idiots stopped going to GitHub since M$ 
swallowed them, so... anyhow, it was just a reminder as WebFreak 
is aware of that issue --> 
https://forum.dlang.org/post/brqtuehpglwuudaem...@forum.dlang.org




Re: DCD 0.11.0 released

2019-02-12 Thread notna via Digitalmars-d-announce

On Tuesday, 12 February 2019 at 17:55:46 UTC, Basile B. wrote:

On Monday, 11 February 2019 at 20:40:32 UTC, notna wrote:

Installing DCD
Downloading from 
https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.10.2-windows-x86.zip to C:\Users\\AppData\Roaming\code-d\bin


Failed installing: 
std.net.curl.CurlException@std\net\curl.d(4340): Peer 
certificate cannot be authenticated with given CA certificates 
on handle


I don't know what you are talking about, how are you installing 
DCD ? What is the installer you talk about ?


Also the version number of this release is 0.11.0, not 0.10.2


Thats the errors vscode, better code-d, shows... seems like you 
want to update dcd and use the curl lib for that, which throws an 
error because the download (GitHub?) certificate cannot be 
validated. Just check the news group (or the "forum") for this 
code-d error and you should find a couple of similar complains.


Re: DCD 0.11.0 released

2019-02-11 Thread notna via Digitalmars-d-announce

On Monday, 11 February 2019 at 13:09:50 UTC, Basile B. wrote:

DCD, the best companion of your IDE is updated to v0.11.0 [1]

Important changes in this release are enhancements from me on 
template parameters and ddoc, also fix on arrays semantic by 
CyberShadow.
A little thanks would be welcome, either for me [2] or 
CyberShadow [3]


[1] https://github.com/dlang-community/DCD/releases/tag/v0.11.0
[2] 
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick_button_id=AQDJVC39PJF7J
[3] 
https://forum.dlang.org/thread/ldhflkowunjguzgop...@forum.dlang.org


Reported so many times & still there (Win10 here);

Installing DCD
Downloading from 
https://github.com/dlang-community/DCD/releases/download/v0.10.2/dcd-v0.10.2-windows-x86.zip to C:\Users\\AppData\Roaming\code-d\bin


Failed installing: 
std.net.curl.CurlException@std\net\curl.d(4340): Peer certificate 
cannot be authenticated with given CA certificates on handle


Re: smile.amazon.com Promotion

2018-11-21 Thread notna via Digitalmars-d-announce

On Monday, 29 October 2018 at 16:01:38 UTC, Mike Parker wrote:
One of the easiest ways to support the D Language Foundation is 
using smile.amazon.com when you make a purchase. Until Nov 2, 
they're running a special where they're donating 5% (10 times 
the usual amount) you buy through AmazonSmile.


smile.amazon.com/ch/47-5352856


Hmmm... cannot register for the "D Language Foundation" at 
smile.amazon.<<< DE >>>
... and on __COM__ I'm note getting some things even it shows 
"qualified for smile.amazon.DE"...


automatically closing stale pull requests

2018-10-16 Thread notna via Digitalmars-d
another interesting discussion [1]... and old/stale pull requests 
are also discussed here now and then... not sure if this [2] is 
known to many ppl?!


- [1] https://marc.info/?t=15392665871=1=2
- [2] https://github.com/probot/stale


fork vs. posix_spawn (vfork)

2018-10-14 Thread notna via Digitalmars-d

Hi D gurus.

Did read an interesting post form GitLab [1] how they improved 
performance by 30x by just going to go_v1.9... because they again 
went from "fork" to "posix_spawn"...


I've searched the GitHub DLANG org for "posix_spawn" and didn't 
find a hit... so asking myself and you is DLANG still on 
"fork" and could there be some performance improvement potential?


[1] 
https://about.gitlab.com/2018/01/23/how-a-fix-in-go-19-sped-up-our-gitaly-service-by-30x/




Re: Whats wrong with the forum.dlang.org???

2018-04-29 Thread notna via Digitalmars-d
On Sunday, 29 April 2018 at 14:13:01 UTC, Vladimir Panteleev 
wrote:
On Sunday, 29 April 2018 at 13:14:35 UTC, Steven Schveighoffer 
wrote:
In the newsgroups, there was a post in March on "ost to pst 
convertes", which looks like it could have been flagged with 
spam (it no longer appears on the forum), with two "ad-like" 
responses, and a third is from notna, which looks more like a 
real response, even though it just has a URL in it. His 
history of posts that I've seen have been legitimate.


Yes, that's exactly it. It was a post in an off-topic thread 
with nothing but a link to a commercial product, so in fact it 
is indistinguishable from spam. It is also very similar to the 
common setup where someone posts an off-topic but otherwise 
unspammy question (generally seeking advice or a product 
recommendation), and is followed-up by actual spam. It was 
flagged by someone too, which is how it got deleted. All facts 
considered it's a bit hard to call this a false positive :)


notna: You are now unbanned, but I suggest to avoid doing this 
again.


Hi all.

Ok, understood, will not post "URLs only" in the future ;)

What is still strange 2 me... the forum was reachable for days 
after my mentioned post... AND I was banned then from home and 
also from our company networks, even after removing the cookies...


Nevertheless, let's say, the "banning" works pretty well, once 
someone decided to do it, but a little hint whom to contact to 
get un-banned in case of mis-banning would be helpful ;)


Thanks again



Whats wrong with the forum.dlang.org???

2018-04-29 Thread notna via Digitalmars-d

Hi folks.

I'm wondering... is no one else using it or did I miss that someone 
already raised the same question...


Since days I get a

"""
403(Forbidden)

You have tried to access a restricted or unavailable resource, or 
attempted to circumvent server security.


Error details:

You're banned!

"""

from https://forum.dlang.org/. Please fix it either or remove the site 
and all references (like in "learn") to it...


Thanks


Re: ost to pst convertes

2018-03-26 Thread notna via Digitalmars-d

On Monday, 26 March 2018 at 08:36:42 UTC, Blackwellwalker wrote:

Hi,

My user used exchange in the past and now uses pop3 client... 
exchange doesn't exist anymore. her new pop client only has one 
pst data file... one can't import the ost files.  How convert 
ost to pst?


Need OST to PST Converter recommendations

Due to hard drive fails, i lost my data. But i need to recover 
mail data from office 365 outlook 2013. So, i need a some OST 
to PST converter recommendation, if you have used a good one. 
Thanks in advance for your time and recommendations!

---


https://www.softaken.com/ost-file-exporter



Re: Anybody still using the chm docs

2018-02-24 Thread notna via Digitalmars-d

On Thursday, 16 June 2016 at 02:32:05 UTC, Jack Stouffer wrote:

On Wednesday, 15 June 2016 at 10:58:04 UTC, Martin Nowak wrote:
So I'm wondering if in 2016 someone really needs an offline 
copy of a website shipped with a binary release?


For offline browsing, Windows and Linux users can use Zeal [1] 
which is FOSS, and macOS users can use Dash[2], which is free 
as in beer. Both of which can use this D docset [3].


So no, there's no reason to maintain the chm docs.

[1] https://zealdocs.org/
[2] https://kapeli.com/dash
[3] 
https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/D#readme


thanks... great community... everyday something new to learn... 
even in 2+ years old posts ;)


Re: Anybody still using the chm docs

2018-02-24 Thread notna via Digitalmars-d

On Sunday, 18 February 2018 at 21:44:54 UTC, Jordi Sayol wrote:

El 17/02/18 a les 22:19, Manu via Digitalmars-d ha escrit:

I like the CHM docs.
I have encountered the same maintenance problem before, where 
build infra is linux based, and the CHM docs need a windows 
machine to build... I solved this problem by building the CHM 
via WINE ;)

Maybe this is a possible solution?


I build a CHM doc file for every dmd release, available on 
d-apt , and built on Linux :-)


Downloaded... shows the index (in the left window) but doesn't 
show any content (in the right window)


Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread notna via Digitalmars-d
On Sunday, 4 February 2018 at 09:04:41 UTC, rikki cattermole 
wrote:

On 04/02/2018 8:49 AM, Robert M. Münch wrote:

On 2018-02-04 08:41:04 +, rikki cattermole said:

"It doesn't need to be concurrent, since Lua states are 
completely independent."


Single threaded simplifies a lot. So no, not useful.


Well, I wouldn't be able to judge that fast from a single line 
in the text, if the concept can/can't be tweaked/extended. 
That's why I added "for inspiration" to the subject...


Really we ought to use Boehm, as the newer versions can be 
generational


It is potentially quite a lot better than our version of it.


... found this a nice read some time ago... 
https://blog.plan99.net/modern-garbage-collection-911ef4f8bd8e


Re: Time to move logger from experimental to std ?

2017-11-29 Thread notna via Digitalmars-d

On Wednesday, 29 November 2017 at 14:32:54 UTC, Basile B. wrote:
Hello, most of the changes made during the current year to the 
std.experimental.logger package are related to the cosmetic 
style. Isn't this a sign showing that the experimentation is 
achieved ?


[...]


+1


Re: DConf 2018 Logo

2017-11-17 Thread notna via Digitalmars-d
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei 
Alexandrescu wrote:
Hello, for all of you with expertise in graphics, we'd be in 
your debt if you could create a logo for DConf 2018. Proposals 
would be appreciated!


Thanks,

Andrei


If you really want to use a new logo, which fits to Munich, you 
should use the one from 
https://www.meetup.com/de-DE/Munich-D-Programmers ...  and then 
maybe replace the "old fashioned" laptop with a "Mass beer" ;)


Greetings from Munich :)


Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-10-31 Thread notna via Digitalmars-d-announce

On Tuesday, 31 October 2017 at 11:30:00 UTC, Bastiaan Veelo wrote:

On Tuesday, 31 October 2017 at 11:02:23 UTC, notna wrote:

ImportError: No module named 'SublimeLinter'


Looks like you did not install the SublimeLinter package. You 
need both.


Thanks, seems to work now ;)


Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-10-31 Thread notna via Digitalmars-d-announce

On Monday, 30 October 2017 at 22:22:42 UTC, Bastiaan Veelo wrote:
SublimeLinter-contrib-dmd [1] is a plug-in for the Sublime Text 
3 editor [2]. Unlike linters that are based on DScanner, it 
actually invokes dmd on the file that is being edited, as you 
edit. If dmd finds anything to complain about, an annotation is 
shown in the editor: warnings and deprecations in orange, 
errors in red. If SublimeLinter (a plug-in dependency) is 
configured to show tool tips, the error message pops up after a 
click on the annotation (see screen shots [1]). SublimeLinter 
offers shortcuts for jumping to errors and it is possible to 
postpone on-the-fly linting or lint only on request.


[...]



My console says:

File "linter in C:\Users\anton\AppData\Roaming\Sublime Text 
3\Installed Packages\SublimeLinter-contrib-dmd.sublime-package", 
line 13, in 

ImportError: No module named 'SublimeLinter'


Re: readln of german Umlaute (terminal.d) / readln)

2017-10-17 Thread notna via Digitalmars-d-learn

On Tuesday, 17 October 2017 at 15:02:29 UTC, Adam D. Ruppe wrote:
Or try this newest commit 
https://github.com/adamdruppe/arsd/blob/master/terminal.d and 
see if it works better for you.


- Here is what I use in one of my tools... and I never had 
problems with German password so far ;)


string getPassword(char mask = '*')
{
import std.stdio;
import libs.terminal;
auto term = Terminal(ConsoleOutputType.linear);
auto input = RealTimeConsoleInput(, ConsoleInputFlags.raw);
string pass;
dchar ch;
ch = input.getch();
while(ch != '\r' && ch != '\n')
{
import std.range;
if(ch == '\b' && !pass.empty)
{
pass = pass[0..$-1];
write('\b');
stdout.flush;
}
else
{
pass ~= ch;
write(mask);
stdout.flush();
}
ch = input.getch();
}
return pass;
}


Weka.IO in the news... but not mentioning Dlang... why?

2017-08-03 Thread notna via Digitalmars-d
What a missed marketing opportunity for Dlang... nevertheless, 
good news as sooner or later people will get it... and congrats 
to Weka.IO on "going public"...


https://www.theregister.co.uk/2017/07/13/wekaio_surfaces_after_swimming_submerged_against_the_current/



Re: Phobos PR in need of review/merge

2017-07-01 Thread notna via Digitalmars-d

On Tuesday, 27 June 2017 at 01:35:31 UTC, Meta wrote:
Recently, a pull request was closed out of frustration by the 
submitter: https://github.com/dlang/phobos/pull/5309


I have asked them to re-submit the PR[1] in question so we can 
try to get it through. It's a mostly trivial change that could 
do with some eyes, comments, and most importantly, somebody 
with merge privileges to actually merge it.


On this topic, I feel like we've been falling behind lately in 
responding to PRs promptly, communicating with submitters on 
what changes (if any) are needed to get the PR into merge 
shape, and actually getting stuff merged (this isn't anything 
new of course). I don't have the data to back me up yet, but I 
am going to try to gather what I can and make a post about it 
sometime within the next month. Any ideas or insights are 
welcome.


1. https://github.com/dlang/phobos/pull/5515


"closed out of frustration" reminds me on one of my 2-3 pull 
requests some time ago - https://github.com/dlang/phobos/pull/3601


If I remember correct, I've just copied one of the already 
existing "Example" entries in that D module and added some text 
PLUS the the forum link... and later was surprised about the 
upcoming discussion where an example should go


Btw., dfmt (or what ever the tools name was/is), did not compile 
on my Windows box at that time. Not sure if if would have done 
the "blank line" and "Example goes somewhere else" magic the 
right/desired way?!


PS., don't get me wrong, no blaming here, but I had no intention 
to learn Git or Github and just thought it would be a pity if the 
given example by Vladimir, which btw at that time saved my day, 
would be lost in the dark holes of the internet ;)


PPS., never made a pull again and keep all the found forum 
treasures in a private places since then :|




Re: "Rolling Hash computation" or "Content Defined Chunking"

2017-05-09 Thread notna via Digitalmars-d-learn

On Saturday, 6 May 2017 at 07:21:51 UTC, Johannes Pfau wrote:

Am Mon, 01 May 2017 21:01:43 +
schrieb notna :


Hi Dlander's.

Found some interesting reads ([1] [2] [3]) about the $SUBJECT 
and wonder if there is anything available in the Dland?!


If yes, pls. share.
If not, how could it be done (D'ish)

[1] -
https://moinakg.wordpress.com/2013/06/22/high-performance-content-defined-chunking/
 -
https://github.com/moinakg/pcompress/blob/master/rabin/rabin_dedup.c

[2] - 
https://restic.github.io/blog/2015-09-12/restic-foundation1-cdc


[3] - http://www.infoarena.ro/blog/rolling-hash

Thanks & regards


Interesting concept. I'm not aware of any D implementation but 
it shouldn't be difficult to implement this in D: 
https://en.wikipedia.org/wiki/Rolling_hash#Cyclic_polynomial


There's a BSD licensed haskell implementation, so a BSD 
licensed port

would be very easy to implement:
https://hackage.haskell.org/package/optimal-blocks-0.1.0
https://hackage.haskell.org/package/optimal-blocks-0.1.0/docs/src/Algorithm-OptimalBlocks-BuzzHash.html

To make an implementation D'ish it could integrate with either 
std.digest or process input ranges. If you want to use it 
exclusively for chunking your code can be more efficient 
(process InputRange until a boundary condition is met). When 
using input ranges, prefer some kind of buffered approach, 
Range!ubyte[] instead of Range!ubyte for better performance.


If you really want the rolling hash value for each byte in a 
sequence this will be less efficient as you'll have to enter 
data byte-by-byte. In this case it's extremely important for 
performance that your function can be inlined, so use templates:


ubyte[] data;
foreach(b; data)
{
// This needs to be inlined for performance reasons
rollinghash.put(b);
}

-- Johannes


Thanks for the feedback, Johannes.

I hoped there may already be something in Mir or Weka.io or 
somewhere else... Will read the Golang, C and C++ source and see 
if my Dlang is good enough for ranges and the like magic...




"Rolling Hash computation" or "Content Defined Chunking"

2017-05-01 Thread notna via Digitalmars-d-learn

Hi Dlander's.

Found some interesting reads ([1] [2] [3]) about the $SUBJECT and 
wonder if there is anything available in the Dland?!


If yes, pls. share.
If not, how could it be done (D'ish)

[1] - 
https://moinakg.wordpress.com/2013/06/22/high-performance-content-defined-chunking/
- 
https://github.com/moinakg/pcompress/blob/master/rabin/rabin_dedup.c


[2] - 
https://restic.github.io/blog/2015-09-12/restic-foundation1-cdc


[3] - http://www.infoarena.ro/blog/rolling-hash

Thanks & regards


Re: Separate IP parts

2016-12-11 Thread notna via Digitalmars-d-learn
On Saturday, 10 December 2016 at 13:25:13 UTC, Nicholas Wilson 
wrote:

On Saturday, 10 December 2016 at 13:21:40 UTC, notna wrote:

Those statements need to be inside a function.


Feel free to post a working example or, even better, a pull 
request with one ;)


Re: Separate IP parts

2016-12-10 Thread notna via Digitalmars-d-learn

On Saturday, 10 December 2016 at 08:03:00 UTC, biozic wrote:

This would do the same. I wouldn't say it's a trick.

import std.format : formattedRead;
import std.stdio : writefln;

string ipAddr = "192.168.1.54";
int a, b, c, d;
formattedRead(ipAddr, "%d.%d.%d.%d", , , , );
writefln("%s %s %s %s", a, b, c, d);


Well, you know, that's one of the not so great things about 
Dlang... you cannot even trust the provided examples, if there 
are any:


C:\Temp\D>more formattedReadIps.d
import std.format;
string s = "hello!124:34.5";
string a;
int b;
double c;
formattedRead(s, "%s!%s:%s", , , );
assert(a == "hello" && b == 124 && c == 34.5);

C:\Temp\D>dmd -v formattedReadIps.d
binaryC:\D\dmd2\windows\bin\dmd.exe
version   v2.072.1
configC:\D\dmd2\windows\bin\sc.ini
parse formattedReadIps
formattedReadIps.d(6): Error: unexpected ( in declarator
formattedReadIps.d(6): Error: basic type expected, not "%s!%s:%s"
formattedReadIps.d(6): Error: found '"%s!%s:%s"' when expecting 
')'
formattedReadIps.d(6): Error: no identifier for declarator 
formattedRead(s, _error_)
formattedReadIps.d(6): Error: semicolon expected following 
function declaration

formattedReadIps.d(6): Error: declaration expected, not ','
formattedReadIps.d(7): Error: declaration expected, not 'assert'




Re: Release D 2.072.1

2016-12-02 Thread notna via Digitalmars-d-announce

On Friday, 2 December 2016 at 12:20:38 UTC, kink wrote:



Yeah, and neither do the change logs for 2.072 and 2.072.1 show 
up in the left-hand-side list of change logs, and neither on 
http://dlang.org/changelog/. :/


It also not shown on dlang.org


Re: Why can't static arrays be sorted?

2016-10-08 Thread notna via Digitalmars-d-learn

On Thursday, 6 October 2016 at 09:23:19 UTC, pineapple wrote:

On Thursday, 6 October 2016 at 09:17:08 UTC, pineapple wrote:
On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis 
wrote:
Would just like to point out that this is design weirdness 
on Phobos' part - the library I've been writing does not 
have this problem.


It doesn't even make conceptual sense for a static array to 
be a range, because you can't remove elements from it.


- Jonathan M Davis


Just because the static array itself isn't a range doesn't 
mean that it should be necessary to do unintuitive gymnastics 
with it just to pass it to functions like `sort`.


I mean, people post here how often asking why static or dynamic 
arrays aren't being accepted by Phobos' range functions in 
their code?


Maybe Phobos really ought to consider another approach. 
Accepting things that are _valid_ as ranges and not only things 
that are ranges themselves has proven to be an effective 
strategy in mach.


+1000


Re: Request assistance binding to Windows dsound.{lib, dll}

2016-05-27 Thread notna via Digitalmars-d-learn

On Friday, 27 May 2016 at 12:26:19 UTC, Andrew Edwards wrote:

http://ftp.dlang.org/ctg/implib.html

The above URL suggests that, on Windoze, I can create a D 
compatible lib from a dll file by issuing the command:


[...]


If you haven't done so, you need to copy your resulting LIB file 
to your standard LIBs folder, which under Windows_X86 should be:

- C:\D\dmd2\windows\lib

regards


Re: New D book available for pre-order: D Web Development

2016-01-24 Thread notna via Digitalmars-d-announce

On Thursday, 17 December 2015 at 08:08:26 UTC, Kai Nacke wrote:
Hi Kai.

Any news? Just some days left until "January 2016" is over ;)

Regards
Anton


On Monday, 30 November 2015 at 03:36:29 UTC, Nick B wrote:

On Sunday, 29 November 2015 at 18:24:38 UTC, Kai Nacke wrote:

On Wednesday, 25 November 2015 at 04:35:47 UTC, Nick_B wrote:




Hi Nick!

Yes, the book will be available in hardcopy.

Proposed publication date is January 2016.

Regards,
Kai



Kai - Are you saying that the hardcopy will be available Jan 
2016 ?


Nick


Yes, it should. I finished all my rework. The book is now in 
the production phase...


Regards,
Kai




Re: Programming in D paper book is available for purchase

2015-08-20 Thread notna via Digitalmars-d-announce

On Wednesday, 19 August 2015 at 00:57:32 UTC, Ali Çehreli wrote:

I am very happy! :)



So am I! Finally I'll have it in my hands soon, thanks! Maybe 
I'll get a more frequent D user with your help ;)




And the book will always be freely available as well but I 
haven't updated the web site yet.




Another great reason for me to buy it :O


Enjoy, and go buy some books! ;)



Did it the other way around :P Ordered and now wait for the joy ;)


Ali


THANKS Ali!




Re: New D book available for pre-order: D Web Development

2015-07-22 Thread notna via Digitalmars-d-announce

On Wednesday, 22 July 2015 at 15:29:20 UTC, Kai Nacke wrote:

The reason is my book D Web Development, available now for 
pre-order: 
https://www.packtpub.com/web-development/d-web-development



~~~ snip ~~~


Regards,
Kai


Hi Kai.

As I have all the books/hardcopies from 
http://wiki.dlang.org/Books, I had to  pre-order your coming book 
as well... and did so just now.


It's not like I'm a Dlang programmer and I guess I'll never do 
real world D [Web] Development, but buying the D books is my 
way of supporting Dlang and especially those of this great 
community who spend their valuable time for the hardest part of 
programming/development... which is writing usable documentation 
and/or books!


From now on, I'm waiting for my Christmas 2015 gift ;) Thanks for 
doing this!



Btw., @Ali: I'm would still love to buy the best ever Dlang 
book/documentation/reference, which for me is your (and/or the 
Turkish Dlang communities) Programming in D bible! Well, if you 
could make it my birthday present (end of May ;) )...


Regards
 notna



Re: DUB RC 0.9.24-rc.1 ready for testing

2015-07-21 Thread notna via Digitalmars-d

If we want to accelerate D2 adoption, we need too:

- have more and better WORKING examples. More or less, a workable 
copy-paste approach for (almost) every module and function...

- make D2 easy2use for not C++/Java/whatever gurus again
  - all this different types, which are either required as an 
input for functions or are returned from those and need to be 
casted/converted all the time... frustrating for real new comers
  - it all starts with string and char[] stuff, but is 
really a nightmare with all the ranges and things which need to 
be converted all the time, i.e. like with .array... I couldn't 
convince colleagues to use D2 because it's just to complicate 
already for the low level things like those!


In short, I would:
- NOT include VIBE.D and such things into the core lang, but make 
it a breeze to integrate such modules with DUB
- make every D2 function accept and return strings and 
[dw]char[] (THAT would be a radical new thing for D2, maybe!)



On Tuesday, 21 July 2015 at 13:17:36 UTC, Andrei Alexandrescu 
wrote:
It all starts with a high level thought. We want to accelerate 
D adoption rate way beyond what it is now. Radically, like 10x. 
We've done a number of things, many of which helped. But 
there's this thought - if we keep on doing what we've been 
doing, we'll keep on getting the results we've been getting. 
(There could be changes of phase, synergy, cumulative effects 
etc. but just waiting for those to happen doesn't sound like 
the best tactics.)


So I keep an eye on radical new things we could try - things we 
have not done before, and that have worked for others. Some 
might just not work, but we don't know if we don't just try.



 ~~~ snip ~~~


Andrei


Re: DUB RC 0.9.24-rc.1 ready for testing

2015-07-21 Thread notna via Digitalmars-d

On Tuesday, 21 July 2015 at 15:36:56 UTC, wobbles wrote:

On Tuesday, 21 July 2015 at 14:59:21 UTC, notna wrote:
[...snip...]

- make D2 easy2use for not C++/Java/whatever gurus again
  - all this different types, which are either required as 
an input for functions or are returned from those and need to 
be casted/converted all the time... frustrating for real new 
comers

[...snip...]

Huh? Whats frustrating about it?
It's a statically typed language, there's always going to be 
types.
We have the 'auto' keyword for type inference though, which 
really makes it feel like a scripting language.
Honestly, the biggest advice I can give to real new-comers is 
to use auto for a while till you get a feel for it.


I think you miss the point... maybe my confusing wording...

auto is fantastic, no doubt, but already not always 
usable/working. I think there are plenty ppl out there, who want 
to be sure what will be returned and prefer to specify the return 
type they want/expect. And yes, again, I also like and use 
auto, as it can make life easy... or not... but only if I know 
what will be returned or I just don't care (like for write and 
friends) ;) And auto is a good example that auto-conversions 
enhance the user experience, exactly what i want and try to 
suggest/explain here...


What I say is, we should try to make the usage of string and 
friends a comfortable no-brainer for all functions and by this 
minimize the cast|convert hell by either having always all 
functions accepting and returning basic types like [dw]char, 
[dw]char[], string... or at least forcing the different range 
types to do so. Just remember, most of the data out there is 
still lines, strings, words and/or just a bunch of chars ;)


What i mean with the cast|convert hell.. Just go to the Phobos 
modules and check out how many casts|conversions are there... or 
search the forum.dlang.org for threads which include the 
suggestion to use the UFCS.array hack ;) and so on...


example:
   $ egrep -w 
to\!char|to\!\(char|to\!string|to\!\(string|cast\(char|cast\(string -c datetime.d

43

or more general:

   $ egrep -w 'to!|cast' -c *.d
   array.d:52
   ascii.d:9
   base64.d:47
   bigint.d:14
   bitmanip.d:66
   compiler.d:0
   complex.d:1
   concurrency.d:15
   conv.d:176
   cstream.d:8
   csv.d:6
   datetime.d:250
   demangle.d:4
   encoding.d:105
   exception.d:29
   file.d:21
   format.d:125
   functional.d:13
   getopt.d:7
   json.d:2
   math.d:142
   mathspecial.d:0
   metastrings.d:0
   mmfile.d:31
   numeric.d:40
   outbuffer.d:22
   parallelism.d:34
   path.d:19
   process.d:24
   random.d:31
   signals.d:3
   socket.d:85
   socketstream.d:4
   stdint.d:0
   stdio.d:79
   stdiobase.d:0
   stream.d:72
   string.d:98
   syserror.d:1
   system.d:0
   traits.d:3
   typecons.d:65
   typelist.d:0
   typetuple.d:1
   uni.d:79
   uri.d:27
   utf.d:146
   uuid.d:35
   variant.d:57
   xml.d:42
   zip.d:44
   zlib.d:28

I hope it's clearer now what I was trying to say before :O


[OT] build system rules and algorithms

2015-06-10 Thread notna via Digitalmars-d
... as there are so many discussions in the various groups... 
maybe this PDF is useful for anything/anyone/something ;)


http://gittup.org/tup/build_system_rules_and_algorithms.pdf


GSOC 2015 - GNU dmd

2015-03-03 Thread notna via Digitalmars-d-announce
not sure if someone should inform them about the DMD name 
clash... or just enjoy the popularity ;)


http://www.gnu.org/software/dmd



Pull Request Challenge for D

2015-01-29 Thread notna via Digitalmars-d

Hi all

1) found this and somehow like that idea. maybe it's also a way 
forward for us ;)
   
https://huntingbears.nl/2015/01/11/cpan-pull-request-challenge-for-january-datetimeformatepoch/


2) as D upload/download statistics are always in the forums, I 
also like this page and hope it can be inspiring ;)

   http://stats.cpantesters.org/uploads.html

regards
 anton oks


Re: Visual D 0.3.40 released

2015-01-01 Thread notna via Digitalmars-d-announce

Thanks Rainer

As VisualD is now part of D-Programming-Language, it would be 
great if it would have the same releases/tags. Would i.e. 
simplify the maintenance of the DMD Windows installer and also 
make it clear with which D version VisualD keeps pace ;)



Keep the great stuft rollin' and habe a great 2015!


On Thursday, 1 January 2015 at 22:00:03 UTC, Rainer Schuetze 
wrote:

Happy new year!

Just the right time for a new release of Visual D!
This version features

* Win32/COFF support for dmd 2.067+

* basic support to compile C/C++ files as part of the D project

* dparser: updated Alex Bothes semantic analyzer to a recent 
version (the engine that also powers Mono-D)


* goto file/line for mixin errors and exception dumps

* link dependency monitor now uses tracker.exe from MSBuild or 
WinSDK


Please grab the installer at 
http://rainers.github.io/visuald/visuald/StartPage.html


The full version history can be read here: 
http://rainers.github.io/visuald/visuald/VersionHistory.html


Visual D is a Visual Studio extension that adds D language 
support to VS2005-2015 and is written in D.


Its source code can be found on github: 
https://github.com/D-Programming-Language/visuald, pull 
requests are welcome.


Happy coding,
Rainer




Re: curl and proxy

2014-10-04 Thread notna via Digitalmars-d-learn

Cool,thanks.
Btw., there could be more special chars to encode...replace 
beside :... like / @ and so on... see also 
http://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/ 
for the background


Regards
 notna

On Friday, 3 October 2014 at 11:13:11 UTC, Marc Schütz wrote:

On Friday, 3 October 2014 at 10:53:27 UTC, Marc Schütz wrote:

On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote:

auto http = HTTP(dlang.org);
http.onReceive = (ubyte[] data)
{
  writeln(cast(string) (data));
  return data.length;
};
http.proxy = 192.168.111.111;
http.proxyPort = 1788;

WHAT HERE ?

http.perform();
//
how to make Сurl authorize on a proxy.
I specify proxyUser and proxyPassword?


I think there's currently no way. curl provides this as an 
option (CurlOption.proxyuserpwd):


   curl.set(CurlOption.proxyuserpwd, myuser:mypasswd);

But unfortunately the `curl` struct is a private member of 
`HTTP`...


https://github.com/D-Programming-Language/phobos/pull/2581

If you're able to build Phobos, could you give this PR a try? I 
cannot test it myself, because I don't know of a proxy 
requiring authentication.




Re: core.exception.UnicodeException@src\rt\util\utf.d(400): illegal UTF-16 value

2014-09-16 Thread notna via Digitalmars-d-learn

Thanks Ali.

As always, your examples and explanations are amazingly clear and 
easy to understand.



On Monday, 15 September 2014 at 23:57:59 UTC, Ali Çehreli wrote:
You must make use of the returned value to slice your wstring. 
Something like this (not compiled):


auto actualLength = GetUserNameW(lpwszUsername.ptr, 
dUsername2);

auto userName = lpwszUsername[0..actualLength];

Otherwise, D knows that lpwszUsername is a 254-char string and 
will try to print all of it.


Ali




Re: core.exception.UnicodeException@src\rt\util\utf.d(400): illegal UTF-16 value

2014-09-16 Thread notna via Digitalmars-d-learn

Thanks AsmMan,

Found 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724432%28v=vs.85%29.aspx 
and with your help, now understand :)


The syntax below prints a blank after my username, so the slice 
seems a bit too long :O So my final solution looks like:


 module main;

 import std.stdio;
 import std.c.windows.windows;

 pragma(lib, user32.lib);
 pragma(lib, Advapi32);

 void main(string[] args)
 {
WCHAR lpwszUsername[254];
DWORD dUsername2 = 254;
GetUserNameW(lpwszUsername.ptr, dUsername2);
writefln(Welcome userW %s, lpwszUsername[0..(dUsername2 - 
1));

writeln();
  }

THANKS again!!!

On Tuesday, 16 September 2014 at 00:03:55 UTC, AsmMan wrote:


GetUserNameW() return a zero on error and non-zero on success. 
The actual number of bytes copied into lpwszUsernam is in 
dUsername2.


auto userName = lpwszUsername[0..dUsername2];




core.exception.UnicodeException@src\rt\util\utf.d(400): illegal UTF-16 value

2014-09-15 Thread notna via Digitalmars-d-learn

Hi all.

somehow, for me, the following is against the DMD philosophy, 
because this code builds successfully with DMD and the executable 
gives the expected result... but also the below strange 
messages...


CODE:
-

module main;

import std.stdio;
import std.c.windows.windows;

pragma(lib, user32.lib);
pragma(lib, Advapi32);


void main(string[] args)
{
WCHAR lpwszUsername[254];
	debug writefln(lpwszUsername.sizeof is %s, WCHAR.sizeof is 
%s, lpwszUsername.sizeof, WCHAR.sizeof);

// DWORD dUsername2 = lpwszUsername.sizeof / WCHAR.sizeof;
DWORD dUsername2 = 254;
GetUserNameW(lpwszUsername.ptr, dUsername2);
writefln(Welcome userW %s, lpwszUsername);
writeln();
}

build command:
--
- dmd -v -w  main.d

OUTPUT incl. ERROR:
-

core.exception.UnicodeException@src\rt\util\utf.d(400): 
illegal UTF-16 value


0x0041022C
0x004074B7
0x004074A1
0x00406E66
0x00406DCF
0x00406D28
0x00406C41
0x00406828
0x0040678C
0x0040B66E
0x0040B643
0x0040B559
0x00408737
0x754D338A in BaseThreadInitThunk
0x7714BF32 in RtlInitializeExceptionChain
0x7714BF05 in RtlInitializeExceptionChain
Welcome userW my account name here

environment:

- DMD32 D Compiler v2.066.0
- Win7 Enterprise, SP1, 64bit


Any ideas?


Re: How do I properly exit from a D program (outside main)?

2014-09-15 Thread notna via Digitalmars-d-learn

how about return? :)

there is also assert... and pls note, scope could also be your 
friend :O


On Monday, 15 September 2014 at 23:36:56 UTC, AsmMan wrote:
Someone said somewhere that call std.c.process.exit() isn't the 
proper way to exit from a D program since it doesn't terminate 
some phobos stuff. So what should I use instead of? or there's 
no a replacement?


Re: core.exception.UnicodeException@src\rt\util\utf.d(400): illegal UTF-16 value

2014-09-15 Thread notna via Digitalmars-d-learn
btw., thats the only thing I found for the given error... which 
is +10years old:

http://forum.dlang.org/thread/ccto20$18bq$1...@digitaldaemon.com


On Monday, 15 September 2014 at 23:36:53 UTC, notna wrote:

Hi all.


 ...


OUTPUT incl. ERROR:
-

core.exception.UnicodeException@src\rt\util\utf.d(400): 
illegal UTF-16 value


0x0041022C
0x004074B7
0x004074A1
0x00406E66
0x00406DCF
0x00406D28
0x00406C41
0x00406828
0x0040678C
0x0040B66E
0x0040B643
0x0040B559
0x00408737
0x754D338A in BaseThreadInitThunk
0x7714BF32 in RtlInitializeExceptionChain
0x7714BF05 in RtlInitializeExceptionChain
Welcome userW my account name here






Re: dmd dub from git master

2014-09-07 Thread notna via Digitalmars-d-learn

I had the same problem just now... on  Win8.1 with
- DMD32 D Compiler v2.066.0
- DUB version 0.9.21

The workaround is to manually update the dub.json file of your 
project, which was written from dub init, to the latest vibe-d 
info on http://code.dlang.org/packages/vibe-d;, so



dependencies: {
vibe-d: =0.7.21-beta.1
},

Regards
 Anton Oks


On Monday, 7 July 2014 at 17:00:30 UTC, Nordlöw wrote:


I got things to work after some cleanups of the DUB 
installations. I don't know exactly how...but no things work :)