Re: code.dlang.org is offline?

2017-09-23 Thread Bogdan via Digitalmars-d

On Friday, 22 September 2017 at 22:13:20 UTC, Seb wrote:
On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan 
wrote:

Hi,

Is there a reason why code.dlang.org is offline?

Thanks,
Bogdan


It's an ongoing process to make the registry more reliable.
However, since a couple of months we run multiple mirrors.
At the moment there is:

https://code-mirror.dlang.io (EU)
https://code-mirror2.dlang.io (US)
http://code-mirror3.dlang.io (Heroku, US)

- You can run one yourself with --mirror
- The next DUB release will contain default fallbacks to these 
mirrors


Awesome!

This week I could not connect to code.dlang.org on Wednesday and 
Friday, I think... usually it was in the morning around 10-11 AM 
GMT... But it happened to have some failing builds on travis too, 
for the same reason.


It would be awesome if there would be a configuration that allows 
you to select the default mirror.


Thanks,
Bogdan





Re: A potential danger to dub

2017-09-22 Thread Szabo Bogdan via Digitalmars-d
On Saturday, 16 September 2017 at 17:09:34 UTC, David Gileadi 
wrote:
Let me preface this by saying I love package managers and think 
dub is one of the best things with dlang. However they can also 
sometimes be dangerous, as this PyPI incident[1] shows: several 
Python packages were uploaded that contained names similar to 
the standard library, and had an extra semi-malicious payload. 
They are apparently now part of live software.


You could of course expect developers to do due diligence with 
the things they download, but of course they don't. It's 
probably worth paying attention to what the PyPI devs do to 
help mitigate this, and perhaps repeat some of those things 
with dub.


[1] 
https://arstechnica.com/information-technology/2017/09/devs-unknowingly-use-malicious-modules-put-into-official-python-repository/


maybe we should have an option to add a hash with the package 
version, to be able to check the integrity of the code that it's 
downloaded?


Re: code.dlang.org is offline?

2017-09-22 Thread Szabo Bogdan via Digitalmars-d

On Friday, 22 September 2017 at 08:14:43 UTC, Szabo Bogdan wrote:

Hi,

Is there a reason why code.dlang.org is offline?

Thanks,
Bogdan


it looks like http://dlang.org/ is down too...


```
traceroute to dlang.org (162.217.114.56), 30 hops max, 60 byte 
packets

 1  ...   0.434 ms  0.402 ms  0.382 ms
 2  5.2.192.1 (5.2.192.1)  1.512 ms  2.454 ms  2.816 ms
 3  10.220.131.53 (10.220.131.53)  5.856 ms  5.849 ms  5.834 ms
 4  10.220.131.53 (10.220.131.53)  5.803 ms  5.785 ms  5.733 ms
 5  10.220.131.49 (10.220.131.49)  6.083 ms  6.447 ms  6.046 ms
 6  62.115.36.116 (62.115.36.116)  29.286 ms 83.217.233.9 
(83.217.233.9)  25.977 ms 62.115.36.116 (62.115.36.116)  28.749 ms
 7  ae-6.r02.frnkge04.de.bb.gin.ntt.net (129.250.3.62)  28.320 ms 
62.115.122.226 (62.115.122.226)  28.019 ms  26.878 ms

 8  * * 62.115.113.67 (62.115.113.67)  30.460 ms
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
```


code.dlang.org is offline?

2017-09-22 Thread Szabo Bogdan via Digitalmars-d

Hi,

Is there a reason why code.dlang.org is offline?

Thanks,
Bogdan


Re: The XML and JSON library

2016-09-29 Thread Szabo Bogdan via Digitalmars-d
On Thursday, 29 September 2016 at 14:46:10 UTC, Nick Sabalausky 
wrote:

On 09/28/2016 05:40 PM, Szabo Bogdan wrote:


How about Json... there is something that is stopping the D 
community to

move the `vibe.data.json` to `phobos`?



Why does it need to be in phobos? It's already usable as-is. 
Only libraries within a std lib are valid?


Well... the json format can be used in a lot of cases not only 
for the web and I think it does not make much sense to include a 
web framework in order to use this format.  Since it a a general 
purpose format, I don't see why it could not be included in 
phobos.  Phobos has already a json library, which is barely 
usable. I guess that a lot of people are using the vibe.d's json 
instead of the one from Phobos.


Anyway... right now vibe.d it's split in sub packages and I can 
include only the data package if I need it... I'm asking because 
it would be nice if there would be a json structure in Phobos 
with an interface at least as good as the one from vibe.





Re: The XML and JSON library

2016-09-28 Thread Szabo Bogdan via Digitalmars-d
On Sunday, 25 September 2016 at 09:12:03 UTC, Lodovico Giaretta 
wrote:

On Sunday, 25 September 2016 at 08:26:58 UTC, Basile B. wrote:
On Sunday, 25 September 2016 at 08:19:22 UTC, Szabo Bogdan 
wrote:

Hi!

I think that there are a few years since, the phobos support 
for XML and JSON were kind of drooped. The xml library it's 
deprecated and I am not sure if I should use it... I guess 
not... I guess there is nobody working for a replacement.


Wrong. Someone worked on a replacement this summer, in the 
context of the gsoc:


https://github.com/dlang/phobos/pull/4741


And... It's almost ready. I just have to find some time to 
finish up some bits and add more documentation.


Awesome!

I guess the interface of the `std.experimental.xml` package will 
not change too soon... and I guess that I can assume that I can 
try to use it in my projects...


How about Json... there is something that is stopping the D 
community to move the `vibe.data.json` to `phobos`?






The XML and JSON library

2016-09-25 Thread Szabo Bogdan via Digitalmars-d

Hi!

I think that there are a few years since, the phobos support for 
XML and JSON were kind of drooped. The xml library it's 
deprecated and I am not sure if I should use it... I guess not... 
I guess there is nobody working for a replacement.


Related to Json... I guess that I am not the only one that thinks 
that the interface of that library it's quite bad... and when I 
also want to use Json, I use the vibe.d structures... I like what 
it's done there, but I think it's sad that I have to include 
vibe.d just to have a Json serialiser.


Does anyone know what it's the status of these libraries?

Thanks,
Bogdan