Re: DVM - D Version Manager 0.4.3
On 02/09/14 22:05, eles wrote: Thank you. I see that you provide packages for Debian (albeit they are BIN files). Would it be a huge effort to add DVM to this repository of D?: I have no idea. Linux is not my main platform. I only chose Debian because it's a stable/old system with a high chance of being binary compatible with other distributions. Perhaps you would like to contact the maintainer of that repository? -- /Jacob Carlborg
Recent download statistics
I recently got the access logs for dmd downloads through August (and Sep 1st). They show a sharp increase since July, probably following the Wired coverage and the recent release. This is raw data so it does not correct for failed downloads etc, but I assume it is a good proxy for the actual numbers and also good for looking at trends. The relevant makefile rules are: $(OUT)/downloads: grep -o 'GET [^ ]* ' \ $(DATADIR)/downloads/2013-* $(DATADIR)/downloads/2014-* \ | grep 'dmd' | sed -e 's/:GET//' -e 's|^.*downloads/||' \ | sed -e 's/ .*dmd/ dmd/' | sort $@.tmp mv $@.tmp $@ $(OUT)/downloads.monthly: $(OUT)/downloads sed -e 's/-.. .*//' $^ | uniq -c $@.tmp mv $@.tmp $@ The log lines follow the pattern (some numbers changed for privacy): f0a5c47d9741bd8c3fffbfc3dacfaeb7 downloads.dlang.org [31/Dec/2013:23:04:13 +] 181.16.226.282 - 61ED358EF78C3B10 WEBSITE.GET.OBJECT releases/2013/dmd.2.064.2.zip GET /releases/2013/dmd.2.064.2.zip HTTP/1.1 200 - 33349115 33349115 331564 266 - NSIS_Inetc (Mozilla) - Going forward I think we should publish the logs and run a cron job on the server that updates them periodically. July's 34979 is a 19 months (and possibly all-time) high. Congratulations to everybody involved in pushing the D language forward! Andrei 5886 2013-01 5525 2013-02 22799 2013-03 11717 2013-04 6214 2013-05 9614 2013-06 11455 2013-07 16803 2013-08 20835 2013-09 19009 2013-10 20569 2013-11 15742 2013-12 18002 2014-01 20191 2014-02 18651 2014-03 19600 2014-04 21015 2014-05 20962 2014-06 34979 2014-07 34288 2014-08 1088 2014-09-01
Re: Recent download statistics
On Wednesday, 3 September 2014 at 09:20:44 UTC, Andrei Alexandrescu wrote: I recently got the access logs for dmd downloads through August (and Sep 1st). [snip] Nice! Will be interesting to see how much the recent increase contributes to sustained activity/growth. Any idea what caused the spike in March last year?
String to binary conversion
I would like to write binary data to a file for an ancillary hash table operation and then read it back using stream.rawRead(). How would I go about converting a string to binary in D. I would prefer not to use any third party libraries if I can. Thank You
Re: Recent download statistics
On Wednesday, 3 September 2014 at 09:47:45 UTC, Peter Alexander wrote: Any idea what caused the spike in March last year? Dconf 2013?
Re: DVM - D Version Manager 0.4.3
On 03/09/14 11:08, Chris wrote: If I install dmd 2.066 with dvm, it won't overwrite or change anything? No, the whole idea is to have multiple compilers installed simultaneous. I'll soon be moving my code from 2.065 to 2.066, but I want to keep 2.065 around for a while to maintain existing code till the transition is complete. Yes, that's the whole idea. And how do I integrate it with dub? It doesn't have a direct integration with Dub. But that's the other part of the idea. Just run dvm use compiler_version to set the version you want to use. When Dub runs DMD it will use the one you chose earlier. It works with any tool invoking DMD in the same session as you run dvm use. This all works on the command line. If you have some form of IDE chose the location where DVM installs the compilers. On Posix this will be ~/.dvm and on Windows this will be C:\Users\username\AppData\Roaming\dvm. Then either pick any of the following: * path_to_dvm/bin/dmd-version - for a specific compiler version * path_to_dvm/bin/dvm-current-dc - the compiler you chose last time with dvm use version * path_to_dvm/bin/dvm-default-dc - the default compiler, set with dvm use version -d -- /Jacob Carlborg
Re: DVM - D Version Manager 0.4.3
On Wednesday, 3 September 2014 at 13:10:28 UTC, Jacob Carlborg wrote: On 03/09/14 11:08, Chris wrote: If I install dmd 2.066 with dvm, it won't overwrite or change anything? No, the whole idea is to have multiple compilers installed simultaneous. I'll soon be moving my code from 2.065 to 2.066, but I want to keep 2.065 around for a while to maintain existing code till the transition is complete. Yes, that's the whole idea. And how do I integrate it with dub? It doesn't have a direct integration with Dub. But that's the other part of the idea. Just run dvm use compiler_version to set the version you want to use. When Dub runs DMD it will use the one you chose earlier. It works with any tool invoking DMD in the same session as you run dvm use. Thanks. I thought so, I just wanted to be 100% sure it really works this way, before doing anything. Hit-and-miss can cause some serious headaches when dealing with different dmd compilers. Thanks also for the great tool. This will make the transition a lot easier. This all works on the command line. If you have some form of IDE chose the location where DVM installs the compilers. On Posix this will be ~/.dvm and on Windows this will be C:\Users\username\AppData\Roaming\dvm. Then either pick any of the following: * path_to_dvm/bin/dmd-version - for a specific compiler version * path_to_dvm/bin/dvm-current-dc - the compiler you chose last time with dvm use version * path_to_dvm/bin/dvm-default-dc - the default compiler, set with dvm use version -d
Re: My D book is now officially coming soon
On Thursday, 29 May 2014 at 12:39:23 UTC, Adam D. Ruppe wrote: On Thursday, 29 May 2014 at 07:51:30 UTC, Andrei Alexandrescu wrote: Looks like this got junked. -- Andrei hmm, that was my first time ever posting to reddit so maybe that's why. Regardless, when the dconf talks come around I'll post the link in those comments too and that'll hopefully make up for it. @ Adam D. Ruppe: Where should we ask questions and post spotted issues regarding your pretty great book?
Re: My D book is now officially coming soon
On Wednesday, 3 September 2014 at 13:34:11 UTC, Szymon Gatner wrote: @ Adam D. Ruppe: Where should we ask questions and post spotted issues regarding your pretty great book? Packt's website has an errata section somewhere, I can't find it now because they redesigned the site, but a lot of chapter 1 errors are on that (typos and stuff). If you can find that, that's one option, but I'd say just discuss it here or in the main dm.D newsgroup.
Re: String to binary conversion
On 9/3/2014 8:32 AM, clearion wrote: I would like to write binary data to a file for an ancillary hash table operation and then read it back using stream.rawRead(). How would I go about converting a string to binary in D. I would prefer not to use any third party libraries if I can. Thank You This D.announce forum is for announcements. Questions about using D go in D.learn.
Re: My D book is now officially coming soon
On Wednesday, 3 September 2014 at 13:38:42 UTC, Adam D. Ruppe wrote: On Wednesday, 3 September 2014 at 13:34:11 UTC, Szymon Gatner wrote: @ Adam D. Ruppe: Where should we ask questions and post spotted issues regarding your pretty great book? Packt's website has an errata section somewhere, I can't find it now because they redesigned the site, but a lot of chapter 1 errors are on that (typos and stuff). If you can find that, that's one option, but I'd say just discuss it here or in the main dm.D newsgroup. Asking because I noticed few minor things like multiple commas or too many brackets etc, but also because I am trying to go through Interfacing with C++ chapter and I am having some problems (VC++ x64, Win7): 1st I managed to solve and I think it could be useful for other that try to follow this chapter: http://forum.dlang.org/thread/ugkpqprobonorbdun...@forum.dlang.org 2nd I am now stuck with and not much idea how to continue. http://forum.dlang.org/thread/hsglkscatlniiuacp...@forum.dlang.org I am actually very much interested in this because of COFF support for Win32 in DMD merged recently.
Re: DVM - D Version Manager 0.4.3
On Wednesday, 3 September 2014 at 13:18:50 UTC, Chris wrote: On Wednesday, 3 September 2014 at 13:10:28 UTC, Jacob Carlborg wrote: On 03/09/14 11:08, Chris wrote: If I install dmd 2.066 with dvm, it won't overwrite or change anything? No, the whole idea is to have multiple compilers installed simultaneous. I'll soon be moving my code from 2.065 to 2.066, but I want to keep 2.065 around for a while to maintain existing code till the transition is complete. Yes, that's the whole idea. And how do I integrate it with dub? It doesn't have a direct integration with Dub. But that's the other part of the idea. Just run dvm use compiler_version to set the version you want to use. When Dub runs DMD it will use the one you chose earlier. It works with any tool invoking DMD in the same session as you run dvm use. Thanks. I thought so, I just wanted to be 100% sure it really works this way, before doing anything. Hit-and-miss can cause some serious headaches when dealing with different dmd compilers. Thanks also for the great tool. This will make the transition a lot easier. This all works on the command line. If you have some form of IDE chose the location where DVM installs the compilers. On Posix this will be ~/.dvm and on Windows this will be C:\Users\username\AppData\Roaming\dvm. Then either pick any of the following: * path_to_dvm/bin/dmd-version - for a specific compiler version * path_to_dvm/bin/dvm-current-dc - the compiler you chose last time with dvm use version * path_to_dvm/bin/dvm-default-dc - the default compiler, set with dvm use version -d Methinks DVM doesn't get it right. 2.065.zip is available here: ftp://ftp.digitalmars.com/dmd.2.065.0.zip (cf. http://forum.dlang.org/thread/ebvumaoniuukgjbow...@forum.dlang.org) But DVM tries to access it via http: Fetching: http://ftp.digitalmars.com/dmd.2.065.zip An unknown error occurred: tango.core.Exception.IOException@/home/doob/development/d/tango/tango/core/Exception.d(59): The resource with URL http://ftp.digitalmars.com/dmd.2.065.zip; could not be found.
Re: DVM - D Version Manager 0.4.3
On Wednesday, 3 September 2014 at 15:55:47 UTC, Chris wrote: Methinks DVM doesn't get it right. 2.065.zip is available here: ftp://ftp.digitalmars.com/dmd.2.065.0.zip (cf. http://forum.dlang.org/thread/ebvumaoniuukgjbow...@forum.dlang.org) But DVM tries to access it via http: Fetching: http://ftp.digitalmars.com/dmd.2.065.zip An unknown error occurred: tango.core.Exception.IOException@/home/doob/development/d/tango/tango/core/Exception.d(59): The resource with URL http://ftp.digitalmars.com/dmd.2.065.zip; could not be found. The link for 2.065 on http://dlang.org/changelog.html is broken as well. I don't think this particular issue can be blamed on DVM.
Re: DVM - D Version Manager 0.4.3
On Wednesday, 3 September 2014 at 19:02:05 UTC, Sean Kelly wrote: On Wednesday, 3 September 2014 at 15:55:47 UTC, Chris wrote: Methinks DVM doesn't get it right. 2.065.zip is available here: ftp://ftp.digitalmars.com/dmd.2.065.0.zip (cf. http://forum.dlang.org/thread/ebvumaoniuukgjbow...@forum.dlang.org) But DVM tries to access it via http: Fetching: http://ftp.digitalmars.com/dmd.2.065.zip An unknown error occurred: tango.core.Exception.IOException@/home/doob/development/d/tango/tango/core/Exception.d(59): The resource with URL http://ftp.digitalmars.com/dmd.2.065.zip; could not be found. The link for 2.065 on http://dlang.org/changelog.html is broken as well. I don't think this particular issue can be blamed on DVM. I know, but I thought maybe DVM tries different addresses, if one is not working. Anyway it should be on dlang.org/changelog.html.
Re: Dutyl - a Vim plugin for running D tools
Version 1.1.0 is out now. It provides the :DUjump command for jumping to the declaration of the symbol under the cursor. If DCD is not running, Dscanner will be used instead. You can also give :DUjump the symbol as an argument - in this case it'll always use Dscanner(since DCD only supports getting the symbol by byte position). GitHub repo: https://github.com/idanarye/vim-dutyl vim.org page: http://www.vim.org/scripts/script.php?script_id=5003
Re: DVM - D Version Manager 0.4.3
On Wednesday, 3 September 2014 at 19:34:26 UTC, Chris wrote: I know, but I thought maybe DVM tries different addresses, if one is not working. Anyway it should be on dlang.org/changelog.html. For what it's worth, if you do dvm install 2.065.0 it will find it. Not sure if DVM should try alternates or not though.
Damncheck - a property-based testing library
Hey everyone, As my first take on D after spending around 2 weeks learning it I thought I should write something useful that sort of encompasses everything interesting about D (for me it was the flexibility of working with types and lazy arguments). After looking at dashcheck (https://github.com/mcandre/dashcheck) I thought I'd improve it. While improving it I noticed that my program is much different and decided to release my code as another project; Damncheck (http://github.com/geezee/damncheck). I was hoping to get some feedback from the community regarding the quality of the code and if something can be written the D-way. I have also written a blog post about the process (http://blog.zakhour.me/post/d/damncheck-on-building-a-property-based-testing-library-for-d/) Thank you for your time, George.