Re: A study on immutability usage

2012-10-05 Thread jdrewsen
On Monday, 1 October 2012 at 12:28:33 UTC, bearophile wrote: I am back. This study regards how "final" is used in Java programs, and generally how immutability is used and is useful: http://whiley.org/2012/09/30/profiling-field-initialisation-in-java/ ... Reminds me of C# 'readonly' http://m

Re: When will we have std.log?

2012-10-07 Thread jdrewsen
This is great news. Really looking forward to a std.log module. /Jonas

C++ to catch up?

2012-11-05 Thread jdrewsen
It seems like the C++ committee is speeding up development adding lots of the goodies from D like Ranges, static if, template contraints etc. Will D still have a case when C++ gets this done? I wonder if Andrei is part of the C++ Ranges Study Group? The Future of C++: http://channel9.msdn.com

Re: DConf 2013 to be recorded

2012-11-06 Thread jdrewsen
That is great! I will not be able to attend the conference but I did go for the lousy tshirt pledge. I live in Europe and wanted to set the shipping address to one of my friends in the US. How do you do that? /Jonas

Re: A new web newsreader

2011-12-10 Thread jdrewsen
On Saturday, 10 December 2011 at 07:07:11 UTC, Vladimir Panteleev wrote: On Saturday, �� December 2011 at 00:10:26 UTC, Jesse Phillips wrote: You do realize that > is a formatting feature, and like it is visible to others. As a language news group having a way to segregate code would be us

Re: Package manager - interacting with the compiler

2011-12-10 Thread jdrewsen
On Saturday, 10 December 2011 at 08:55:57 UTC, Jacob Carlborg wrote: I think I've come so far in my development of a package manager that it's time to think how it should interact with the compiler. Currently I see two use cases: 1. When the package manager installs (and builds) a package 2.

Re: Package manager - interacting with the compiler

2011-12-12 Thread jdrewsen
On Sunday, 11 December 2011 at 21:22:37 UTC, Jacob Carlborg wrote: On 2011-12-10 22:17, jdrewsen wrote: On Saturday, 10 December 2011 at 08:55:57 UTC, Jacob Carlborg wrote: I think I've come so far in my development of a package manager that it's time to think how it should interac

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 10:26:52 UTC, Somedude wrote: Le 05/12/2011 22:36, Jonas Drewsen a écrit : Anyway - I _have_ said that I will add a data availability poll functionality so I guess your initial concern is also covered. /Jonas Just an idea: would it be possible/useful to use the

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 00:53:14 UTC, dsimcha wrote: Here's my review. Remember, review ends on December 16. Overall, this library has massively improved due to the rounds of review it's been put through. I only found a few minor nitpicks. However, a recurring pattern is minor grammar

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 01:05:25 UTC, Jonathan M Davis wrote: On Sunday, December 11, 2011 19:55:28 dsimcha wrote: On 12/11/2011 7:53 PM, dsimcha wrote: > Should the protocol detection be case-insensitive, i.e. > "ftp://"; == > "FTP://"? Oh, one more thing: Factor the protocol detecti

Re: Second Round CURL Wrapper Review

2011-12-13 Thread jdrewsen
On Monday, 12 December 2011 at 14:42:17 UTC, Andrei Alexandrescu wrote: On 12/12/11 6:25 AM, jdrewsen wrote: On Monday, 12 December 2011 at 01:05:25 UTC, Jonathan M Davis wrote: On Sunday, December 11, 2011 19:55:28 dsimcha wrote: On 12/11/2011 7:53 PM, dsimcha wrote: > Should the proto

Re: Second Round CURL Wrapper Review

2011-12-13 Thread jdrewsen
On Tuesday, 13 December 2011 at 00:47:26 UTC, David Nadlinger wrote: On 12/12/11 1:18 PM, jdrewsen wrote: On Monday, 12 December 2011 at 10:26:52 UTC, Somedude wrote: Just an idea: would it be possible/useful to use the signals/slots mechanism for this kind of synch ? This would be most

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis wrote: On Friday, December 02, 2011 23:26:10 dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Thursday, 15 December 2011 at 08:51:29 UTC, Jonathan M Davis wrote: Line# 235 is identical to line# 239. Shouldn't line# 235 be creating an Http object, not an Ftp object? That mistake definitely makes it look like download hasn't been properly tested. It has been tested as you can see by

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Saturday, 17 December 2011 at 20:38:46 UTC, Jakob Ovrum wrote: On Saturday, 17 December 2011 at 11:56:04 UTC, jdrewsen wrote: AutoConnect sounds like a command to connection automatically which might be confusing since that is not what it does. Therefore I went with AutoConnection which I

Re: Second Round CURL Wrapper Review

2011-12-18 Thread jdrewsen
On Sunday, 18 December 2011 at 01:30:10 UTC, Jonathan M Davis wrote: On Saturday, December 17, 2011 09:21:42 Justin C Calvarese wrote: On Sat, Dec 17, 2011 at 5:56 AM, jdrewsen wrote: > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M > Davis wrote: >>> ... > &g

Re: d future or plans for d3

2011-12-18 Thread jdrewsen
On Sunday, 18 December 2011 at 17:19:33 UTC, Andrei Alexandrescu wrote: On 12/18/11 6:19 AM, Alex Rønne Petersen wrote: On 18-12-2011 12:45, Somedude wrote: Le 18/12/2011 12:13, Ruslan Mullakhmetov a écrit : I do not want to make a flame over D vs C++11. Walter and I are both interested i

Re: Incubated modules for Phobos

2011-12-18 Thread jdrewsen
On Sunday, 18 December 2011 at 14:18:34 UTC, Piotr Szturmaj wrote: Hi all, Normal Phobos submission procedure is usually like that: 1. write entire module from scratch by oneself 2. submit for voting 3. rewrite wrong parts, if there are none then add it to Phobos 4. otherwise goto 2 It is hard

Re: Second Round CURL Wrapper Review

2011-12-18 Thread jdrewsen
On Sunday, 18 December 2011 at 01:27:45 UTC, Jonathan M Davis wrote: On Saturday, December 17, 2011 23:10:00 jdrewsen wrote: On Thursday, 15 December 2011 at 08:51:29 UTC, Jonathan M Davis wrote: > Line# 235 is identical to line# 239. Shouldn't line# 235 be > creating an Http obj

Re: [Deimos] Request repositories for mediainfo, systemd, libev

2011-12-23 Thread jdrewsen
On Friday, 23 December 2011 at 11:47:46 UTC, Johannes Pfau wrote: I have the following libraries that I'd like to contribute to deimos: libmediainfo: MediaInfo supplies technical and tag information about your video or audio files. systemd: systemd is a system and service manager for Linux,

Re: Reference counted containers prototype

2011-12-26 Thread jdrewsen
On Monday, 26 December 2011 at 17:25:12 UTC, Andrei Alexandrescu wrote: Hello, I've been playing with a new approach to reference counting, in particular for the containers library. A small prototype is at http://pastebin.com/WnSQY1Jw. The prototype features a simple doubly-linked list impl

Re: CURL Wrapper: Congratulations Next up: std.serialize

2011-12-27 Thread jdrewsen
On Tuesday, 27 December 2011 at 02:01:51 UTC, dsimcha wrote: By a vote of 14-0, Jonas Drewsen's CURL wrapper (std.net.curl) has been accepted into Phobos. Thanks to Jonas for his hard work and his persistence through the multiple rounds of review that it took to get this module up to Phobos's

Re: CURL Wrapper: Congratulations Next up: std.serialize

2011-12-28 Thread jdrewsen
On Wednesday, 28 December 2011 at 16:01:50 UTC, Jacob Carlborg wrote: On 2011-12-27 03:01, dsimcha wrote: By a vote of 14-0, Jonas Drewsen's CURL wrapper (std.net.curl) has been accepted into Phobos. Thanks to Jonas for his hard work and his persistence through the multiple rounds of review tha

Re: CURL Wrapper: Congratulations Next up: std.serialize

2011-12-29 Thread jdrewsen
On Wednesday, 28 December 2011 at 22:21:09 UTC, Jacob Carlborg wrote: On 2011-12-28 22:19, jdrewsen wrote: On Wednesday, 28 December 2011 at 16:01:50 UTC, Jacob Carlborg wrote: On 2011-12-27 03:01, dsimcha wrote: By a vote of 14-0, Jonas Drewsen's CURL wrapper (std.net.curl) has been acc

Re: Second Round CURL Wrapper Review

2011-12-30 Thread jdrewsen
On Friday, 16 December 2011 at 09:42:50 UTC, Jonathan M Davis wrote: Please make sure that you remove trailing whitespace from the file. A lot of the lines have trailing whitespace. Also, make sure that you don't have any tabs in the file. There are a few places where you used tabs. ok Line#

Re: Second Round CURL Wrapper Review

2011-12-30 Thread jdrewsen
On Saturday, 17 December 2011 at 20:01:04 UTC, Jakob Ovrum wrote: The docs for onReceiveHeader, http://freeze.steamwinter.com/D/web/phobos/etc_curl.html#onReceiveHeader explicitly says that the const string parameters are not valid after the function returns. This is all well and good; but a

Re: Second Round CURL Wrapper Review

2011-12-30 Thread jdrewsen
On Monday, 19 December 2011 at 18:14:29 UTC, Somedude wrote: Le 19/12/2011 19:05, Somedude a écrit : Le 03/12/2011 05:26, dsimcha a écrit : I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a larg

Re: Second Round CURL Wrapper Review

2011-12-30 Thread jdrewsen
On Saturday, 17 December 2011 at 22:25:07 UTC, Andrei Alexandrescu wrote: On 12/2/11 10:26 PM, dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor issues were fi

Re: Happy New Year in 2012....

2012-01-03 Thread jdrewsen
On Tuesday, 3 January 2012 at 02:45:20 UTC, Walter Bright wrote: On 12/31/2011 9:34 PM, Andrei Alexandrescu wrote: to the entire D community! New Zealand Tanzania Japan Russia France U.S. D is taking over zee vorld!!! Mua-hah-ha-ha! Add Denmark to the list. Happy new year!

Andrei's castle located

2012-01-12 Thread jdrewsen
Map of C++ http://herbsutter.com/2012/01/10/map-of-c/ /Jonas

ref const array error

2012-01-18 Thread jdrewsen
Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(string[] args) { auto e = EncodingScheme.create("utf-8"); auto a = new byte[100]; e.safeDecode(a); } Results in: Error: function std.encoding

Re: ref const array error

2012-01-18 Thread jdrewsen
On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(string[] args) { auto e

Re: ref const array error

2012-01-18 Thread jdrewsen
On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code

Re: ref const array error

2012-01-19 Thread jdrewsen
On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08

Re: ref const array error

2012-01-19 Thread jdrewsen
On Thursday, 19 January 2012 at 17:00:59 UTC, Timon Gehr wrote: On 01/19/2012 03:47 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08

Re: Message-Passing

2012-01-20 Thread jdrewsen
On Friday, 20 January 2012 at 13:10:37 UTC, Manu wrote: On 20 January 2012 00:36, Sean Kelly wrote: Thanks :-) If you have ideas on how it could be improved, please let me know. On Jan 19, 2012, at 12:58 PM, Nathan M. Swan wrote: > I want to applaud Sean Kelly and everyone who worked on

Bug tracking and assigned to

2012-01-20 Thread jdrewsen
So I've been thinking about helping out with fixing some bugs in dmd. I made search in the bug tracker for bugs with NEW state but quickly noticed that a lot of them are actually already being worked on or have a pending pull request. It would be great if the state was changed to ASSIGNED. I

Re: Bug tracking and assigned to

2012-01-20 Thread jdrewsen
On Friday, 20 January 2012 at 22:42:59 UTC, Nick Sabalausky wrote: "jdrewsen" wrote in message news:ybillabaoehmexgjo...@dfeed.kimsufi.thecybershadow.net... So I've been thinking about helping out with fixing some bugs in dmd. I made search in the bug tracker for bugs with

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-13 Thread jdrewsen
A first quick observation: I vote for a debug severity level. Then make that default to the template parameter for log: template log(Severity severity = Severity.debug) That would make it nice for good old print debugging. log("This is a dbg message"); /Jonas

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-14 Thread jdrewsen
On Tuesday, 14 February 2012 at 02:28:11 UTC, Jose Armando Garcia wrote: On Mon, Feb 13, 2012 at 6:44 PM, jdrewsen wrote: A first quick observation: I vote for a debug severity level. Then make that default to the template parameter for log: template log(Severity severity = Severity.debug

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-14 Thread jdrewsen
On Monday, 13 February 2012 at 15:50:05 UTC, David Nadlinger wrote: There are several modules in the review queue right now, and to get things going, I have volunteered to manage the review of Jose's std.log proposal. Barring any objections, the review period starts now and ends in three weeks,

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-14 Thread jdrewsen
On Tuesday, 14 February 2012 at 17:48:06 UTC, so wrote: On Tuesday, 14 February 2012 at 16:21:42 UTC, Jose Armando Garcia wrote: On Tue, Feb 14, 2012 at 8:42 AM, jdrewsen wrote: On Tuesday, 14 February 2012 at 02:28:11 UTC, Jose Armando Garcia wrote: On Mon, Feb 13, 2012 at 6:44 PM

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-14 Thread jdrewsen
On Tuesday, 14 February 2012 at 16:12:57 UTC, Jose Armando Garcia wrote: On Mon, Feb 13, 2012 at 1:50 PM, David Nadlinger wrote: There are several modules in the review queue right now, and to get things going, I have volunteered to manage the review of Jose's std.log proposal. Barring any obj

Re: Review of Jose Armando Garcia Sancio's std.log

2012-02-14 Thread jdrewsen
On Tuesday, 14 February 2012 at 18:51:20 UTC, Jose Armando Garcia wrote: On Tue, Feb 14, 2012 at 4:44 PM, jdrewsen wrote: On Tuesday, 14 February 2012 at 16:12:57 UTC, Jose Armando Garcia wrote: On Mon, Feb 13, 2012 at 1:50 PM, David Nadlinger wrote: There are several modules in the

receiveOnly behavior

2011-05-04 Thread jdrewsen
import std.concurrency; void main(string[] args) { receiveOnly!bool(); } This simple program results in segmentation fault. I know i does not spawn a thread to receive anything from but is this the expected behavior? /Jonas

Curl wrapper

2011-05-16 Thread jdrewsen
Hi, I've been working on a wrapper for the etc.c.curl module. It is now pretty stable and I would very much like some feedback on the API. http://freeze.steamwinter.com/D/web/phobos/etc_curl.html BTW I use template mixins which doesn't seem to get included in the generated docs. Is there

Re: Curl wrapper

2011-05-17 Thread jdrewsen
Please see comments below. Den 17-05-2011 16:42, Andrei Alexandrescu skrev: Thanks for the response! A few more answers and comments within (everything deleted counts as "sounds great"). On 5/17/11 3:50 AM, Jonas Drewsen wrote: 14. Isn't the max redirect configurable via a parameter? Yes. It

Re: Curl wrapper

2011-05-17 Thread jdrewsen
Den 17-05-2011 16:57, Robert Jacques skrev: On Tue, 17 May 2011 07:24:16 -0400, Jonas Drewsen wrote: On 17/05/11 08.03, Robert Jacques wrote: On Mon, 16 May 2011 17:07:57 -0400, jdrewsen wrote: Hi, I've been working on a wrapper for the etc.c.curl module. It is now pretty stable

Re: Curl wrapper

2011-05-18 Thread jdrewsen
Den 18-05-2011 14:52, Johannes Pfau skrev: Jonas Drewsen wrote: On 18/05/11 10.09, Johannes Pfau wrote: jdrewsen wrote: Please see comments below. Den 17-05-2011 16:42, Andrei Alexandrescu skrev: Thanks for the response! A few more answers and comments within (everything deleted counts as

Re: Curl wrapper

2011-05-18 Thread jdrewsen
Den 18-05-2011 16:53, Andrei Alexandrescu skrev: On 5/18/11 6:07 AM, Jonas Drewsen wrote: Select will wait for data to be ready and ask curl to handle the data chunk. Curl in turn calls back to a registered callback handler with the data read. That handler fills the buffer provided by the user.

Re: libcurl

2011-05-18 Thread jdrewsen
Den 18-05-2011 19:59, Walter Bright skrev: On 5/18/2011 10:50 AM, Andrei Alexandrescu wrote: I sat down to write an announcement to the libcurl mailing list that we have support for it starting with 2.053. To my surprise, when I tried to provide a link to the documentation, there wasn't any avai

Re: Curl wrapper

2011-05-19 Thread jdrewsen
Den 19-05-2011 00:54, Andrei Alexandrescu skrev: On 5/18/11 5:29 PM, jdrewsen wrote: Den 18-05-2011 16:53, Andrei Alexandrescu skrev: On 5/18/11 6:07 AM, Jonas Drewsen wrote: Select will wait for data to be ready and ask curl to handle the data chunk. Curl in turn calls back to a registered

Re: libcurl

2011-05-19 Thread jdrewsen
Den 19-05-2011 00:46, Andrei Alexandrescu skrev: On 5/18/11 5:34 PM, jdrewsen wrote: Den 18-05-2011 19:59, Walter Bright skrev: On 5/18/2011 10:50 AM, Andrei Alexandrescu wrote: I sat down to write an announcement to the libcurl mailing list that we have support for it starting with 2.053. To

Re: libcurl

2011-05-20 Thread jdrewsen
Den 19-05-2011 22:50, Andrei Alexandrescu skrev: On 5/19/11 3:28 PM, jdrewsen wrote: [snip] Speaking of which, what's the status on recycling them buffers? :o) I'm slowly going through all the suggestions I received in the "Curl wrapper" thread. I still haven't fi

Re: Curl wrapper

2011-05-23 Thread jdrewsen
Den 23-05-2011 21:02, Masahiro Nakagawa skrev: > On Wed, 18 May 2011 20:07:01 +0900, Jonas Drewsen > wrote: > >> On 18/05/11 10.09, Johannes Pfau wrote: >>> jdrewsen wrote: >>>> >>>> But I would rather stop here feature wise and wrap >>&

Re: Handy API examples for HTTP requests

2011-05-28 Thread jdrewsen
Den 28-05-2011 00:43, bearophile skrev: I've seen this with some examples of handy API for HTTP requests, useful for the Phobos devs that want to add a Phobos module to perform such things: http://pydanny.blogspot.com/2011/05/python-http-requests-for-humans.html http://pypi.python.org/pypi/requ

Re: Curl wrapper

2011-05-30 Thread jdrewsen
Den 30-05-2011 01:16, Jimmy Cao skrev: Is there any reason why this code (using SMTP + Curl): https://gist.github.com/998214 segfaults on Windows but not on Fedora 15? I found an easy fix, but it looks like a bug somewhere that I can't figure out. etc.curl is currently a moving target. The las

std.concurrency extension

2011-06-07 Thread jdrewsen
Hi, Currently each thread spawned has an associated Tid when using std.concurrency. When calling receive() this is always the Tid (and associated messagebox) that you receive from. This becomes a problem when you spawn several worker threads that send messages to the main thread since eac

Re: std.concurrency extension

2011-06-08 Thread jdrewsen
Den 08-06-2011 16:47, Sean Kelly skrev: On Jun 7, 2011, at 3:07 PM, jdrewsen wrote: Hi, Currently each thread spawned has an associated Tid when using std.concurrency. When calling receive() this is always the Tid (and associated messagebox) that you receive from. This becomes a problem

Re: Historical moment: D2 is now D

2011-06-10 Thread jdrewsen
Den 10-06-2011 19:06, Andrei Alexandrescu skrev: I think we all agree that it is appropriate to characterize D2 to mean "The D Programming Language". From here on, we have changed the website http://d-programming-language.org to reflect that reality. D simply refers to what was formerly known a

Re: Flag proposal

2011-06-11 Thread jdrewsen
Den 11-06-2011 03:26, David Nadlinger skrev: On 6/11/11 3:21 AM, bearophile wrote: Andrei: This module won't compile in today's D, but not for a matter of principles; it's just a random limitation of the language. (It does work if you import from within a class or struct.) You can insert most

Re: htod converts C long to int?

2011-06-12 Thread jdrewsen
Den 12-06-2011 20:05, David Nadlinger skrev: While having a look at etc.curl which has a »converted by htod« comment in its header, I noticed that values having type »long« in the original C headers are declared as »int« there – shouldn't this rather be c_long from core.stdc.config to avoid probl

Re: What remains to be done for D2?

2011-06-18 Thread jdrewsen
Den 14-06-2011 15:17, Andrei Alexandrescu skrev: On 6/14/11 4:07 AM, Don wrote: Petr Janda wrote: Hi, Can someone please explain what needs to be done (other than fixing the plethora of bugs) to call D2 final? And if someone can provide an approximate estimate of when? There are a couple of

Curl wrapper round two

2011-06-18 Thread jdrewsen
Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/phobos/tree/curl-wrapper And the generated docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.

Re: Curl wrapper round two

2011-06-18 Thread jdrewsen
no plans of adding more protocols to the curl wrapper. Patches are welcome :) I would rather do some work on native async net support since I believe that would give better performance. /Jonas This looks great, thanks for you work. On Sat, Jun 18, 2011 at 3:36 PM, jdrewsen mailto:jdrew

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 11:12, Johannes Pfau skrev: Jimmy Cao wrote: Also, why the bool dummy argument in the Curl struct constructor? I guess that's because structs can't have default constructors. Is there a better solution to this problem? That is why yes. I could just make a static "create()" fu

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 11:08, Johannes Pfau skrev: jdrewsen wrote: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/phobos/tree/curl-wrapper An

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 05:16, Jimmy Cao skrev: On Sat, Jun 18, 2011 at 4:16 PM, jdrewsen mailto:jdrew...@nospam.com>> wrote: Den 18-06-2011 22:52, Jimmy Cao skrev: Would an SMTP protocol struct be beneficial? My immediate goal is to provide HTTP support and basic FTP s

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 14:52, Jacob Carlborg skrev: On 2011-06-19 11:44, jdrewsen wrote: Den 19-06-2011 11:12, Johannes Pfau skrev: Jimmy Cao wrote: Also, why the bool dummy argument in the Curl struct constructor? I guess that's because structs can't have default constructors. Is ther

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 13:26, Max Klyga skrev: On 2011-06-19 12:44:57 +0300, jdrewsen said: Den 19-06-2011 11:12, Johannes Pfau skrev: Jimmy Cao wrote: Also, why the bool dummy argument in the Curl struct constructor? I guess that's because structs can't have default constructors.

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 14:03, David Nadlinger skrev: Does curl_global_init really have to be called for every thread? If not, invoke it in a shared static constructor. I should indeed only be called once for all threads. Thanks. David On 6/18/11 10:36 PM, jdrewsen wrote: Hi, I've finall

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 14:00, Jacob Carlborg skrev: On 2011-06-18 22:36, jdrewsen wrote: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/phobos/tree

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 17:43, Johannes Pfau skrev: jdrewsen wrote: Den 19-06-2011 11:08, Johannes Pfau skrev: jdrewsen wrote: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github b

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 19:42, David Nadlinger skrev: On 6/19/11 7:34 PM, jdrewsen wrote: I guess that I can initialize variables in the opCall and that way the user should not have to remember to initialize variables? Yes, you can just do: --- struct Foo { Foo static opCall() { Foo result; result

Re: Curl wrapper round two

2011-06-19 Thread jdrewsen
Den 19-06-2011 17:57, Jimmy Cao skrev: On Sun, Jun 19, 2011 at 5:29 AM, jdrewsen mailto:jdrew...@nospam.com>> wrote: Very nice. A couple of things I believe would help: 1, Get rid of MailMessageData and use curl.onSend() and a delegate that keeps a reference to the message. Th

Re: Curl wrapper round two

2011-06-20 Thread jdrewsen
Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/phobos/tree/curl-wrapper And the generated docs:

Re: Curl wrapper round two

2011-06-21 Thread jdrewsen
Den 21-06-2011 02:52, Jose Armando Garcia skrev: On Mon, Jun 20, 2011 at 8:33 PM, jdrewsen wrote: Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here i

Re: Curl wrapper round two

2011-06-21 Thread jdrewsen
Den 21-06-2011 12:49, Johannes Pfau skrev: jdrewsen wrote: Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/p

Re: Curl wrapper round two

2011-06-21 Thread jdrewsen
Den 21-06-2011 12:55, Johannes Pfau skrev: jdrewsen wrote: Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/p

Re: State of curl wrapper?

2011-06-22 Thread jdrewsen
Den 22-06-2011 05:05, Jonathan M Davis skrev: Is the curl wrapper at about the point that we could look at doing a formal review of it followed by voting for inclusion in Phobos, or does it need more bake time? It's fine either way. I'd just like to know where it sits. If it's ready for review,

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 10:25, Johannes Pfau skrev: jdrewsen wrote: Den 21-06-2011 12:55, Johannes Pfau skrev: jdrewsen wrote: Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the n

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 17:34, Jose Armando Garcia skrev: Em 22/06/2011, às 07:02, Jonas Drewsen escreveu: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 12:08, Dmitry Olshansky skrev: On 22.06.2011 14:02, Jonas Drewsen wrote: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but what about

Re: RAII implementation for Socket and Selector

2011-06-23 Thread jdrewsen
Den 20-06-2011 22:38, Jose Armando Garcia skrev: Hi everyone, For the past few of days I have been working on a RAII implementation for Socket and Selector. Sockets are a ref counted wrapper around the socket handle which closes the handle once the ref count goes to zero. It provides safe method

Re: [OT] GitHub pull request automation

2011-06-23 Thread jdrewsen
Den 23-06-2011 12:05, Johann MacDonagh skrev: Found this on reddit: http://www.splitbrain.org/blog/2011-06/19-automate_github_pull_requests Adds a new "git pull-request" command. Without any arguments, it lists all the pull requests for your repo. If you give it the pull request number, it will

Expected behavior?

2011-07-04 Thread jdrewsen
I was just about to send the curl wrapper I've been working on for RFC and did a git pull from upstream to be in sync. After that I got a new error that may be a dmd bug. The following is some minimal code that triggers the error. private mixin template A() { void foo() {} } void bar() {

Re: Expected behavior?

2011-07-05 Thread jdrewsen
Den 05-07-2011 13:21, Jacob Carlborg skrev: On 2011-07-05 09:51, Jonas Drewsen wrote: Found a matching bug report. http://d.puremagic.com/issues/show_bug.cgi?id=2458 Doesn't seem to have caught any attention so it seems I have to hack around it :( /Jonas Just declare the struct outside of t

Review

2011-07-05 Thread jdrewsen
Hi, I believe the curl wrapper is ready for a review now. Is there anything else in the review queue or can we schedule the curl wrapper now? /Jonas

Re: Orbit - Package Manager - Specification/ideas

2011-07-13 Thread jdrewsen
Den 13-07-2011 21:19, Jacob Carlborg skrev: I've written a more formal specification of my ideas for a package manager for D. https://github.com/jacob-carlborg/orbit/wiki/Orbit-Package-Manager-for-D Note that I am exploring the possibility of using D as the language for all the files mentioned

Re: Prototype buildsystem "Drake"

2011-07-13 Thread jdrewsen
Den 13-07-2011 03:02, Nick Sabalausky skrev: The recent discussions about package managers and buildsystems has prompted me to get off my ass (or rather, *on* my ass as per how programming is usually performed...) and start on the D-based rake-inspired buildtool I've been meaning to make for awhi

Re: Std.path: Final Vote

2011-08-06 Thread jdrewsen
Yes!

Re: std.concurrency wrapper over MPI?

2011-08-06 Thread jdrewsen
Den 06-08-2011 05:51, dsimcha skrev: I've finally bitten the bullet and learned MPI (http://en.wikipedia.org/wiki/Message_passing_interface) for an ultra computationally intensive research project I've been working on lately. I wrote all the MPI-calling code in D against the C API, using a very q

Re: DB ORM

2011-08-09 Thread jdrewsen
Den 09-08-2011 21:15, Robert Clipsham skrev: On 09/08/2011 08:30, Jonas Drewsen wrote: Just stumbled upon this db orm for c++ that uses the gcc frontend to rewrite c++ code to make classes suitable for database access. http://www.codesynthesis.com/products/odb/ They are using pragmas to accomp

DIP11

2011-08-10 Thread jdrewsen
What is the status of DIP11 http://www.wikiservice.at/d/wiki.cgi?LanguageDevel/DIPs/DIP11 Has anyone started implementing it? Has it been rejected? /Jonas

Re: std.path Accepted 22-0

2011-08-12 Thread jdrewsen
Den 12-08-2011 14:45, dsimcha skrev: Lars Kyllingstad's new std.path has been approved by the D community by a vote of 22-0. Congratulations, Lars! I look forward to seeing this in the next release Grats to you Lars. /Jonas

Re: Next to review: Curl Wrapper? (Was: Review Queue Update?)

2011-08-15 Thread jdrewsen
Den 15-08-2011 20:19, dsimcha skrev: I say give Jonas one more day to post the official review request for the Curl wrapper, and if he doesn't then we can move CSV parser ahead. 1. We've got an embarrassment of riches with how long the review queue is getting. It's a shame to have so many bubb

Re: CURL review request

2011-08-16 Thread jdrewsen
Den 16-08-2011 14:57, Jacob Carlborg skrev: On 2011-08-16 13:48, Jonas Drewsen wrote: Hi all, This is a review request for the curl wrapper. Please read the "known issues" in the top of the source file and if possible suggest a solution. We also need somebody for running the review process. An

Re: CURL review request

2011-08-16 Thread jdrewsen
Den 16-08-2011 15:13, dsimcha skrev: On 8/16/2011 7:48 AM, Jonas Drewsen wrote: Hi all, This is a review request for the curl wrapper. Please read the "known issues" in the top of the source file and if possible suggest a solution. We also need somebody for running the review process. Anyone?

Re: CURL review request

2011-08-16 Thread jdrewsen
Den 16-08-2011 18:55, Martin Nowak skrev: On Tue, 16 Aug 2011 15:13:40 +0200, dsimcha wrote: On 8/16/2011 7:48 AM, Jonas Drewsen wrote: Hi all, This is a review request for the curl wrapper. Please read the "known issues" in the top of the source file and if possible suggest a solution. We

Re: CURL review request

2011-08-16 Thread jdrewsen
Den 16-08-2011 15:54, kennytm skrev: Jonas Drewsen wrote: Hi all, This is a review request for the curl wrapper. Please read the "known issues" in the top of the source file and if possible suggest a solution. We also need somebody for running the review process. Anyone? Code: ht

  1   2   >