Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 06:35, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:iquopl$1l9u$1...@digitalmars.com... I just released a new version of DVM, 0.2.0. For installation instructions see: https://bitbucket.org/doob/dvm Changelog: Version 0.2.0 New/Change Features *

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:iqvpon$6p0$1...@digitalmars.com... On 2011-05-18 06:35, Nick Sabalausky wrote: Sounds cool, but dvm-0.2.0-linux-32 is just giving me Illegal instruction on Kubuntu 10.04 x86-32. And I don't see any instructions for how to build it anywhere

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:iqvru7$cnu$1...@digitalmars.com... Jacob Carlborg d...@me.com wrote in message news:iqvpon$6p0$1...@digitalmars.com... On 2011-05-18 06:35, Nick Sabalausky wrote: Sounds cool, but dvm-0.2.0-linux-32 is just giving me Illegal instruction on

Re: Goldie Parsing System v0.5 - Speed

2011-05-18 Thread Stephan
On 18.05.2011 05:47, Nick Sabalausky wrote: Goldie Parsing System v0.5 is now out. This version focuses mainly on speed improvements. == Links: == Homepage and Documentation: http://www.semitwist.com/goldie/ Prepackaged Downloads:

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Jonas Drewsen
On 17/05/11 23.15, Jacob Carlborg wrote: I just released a new version of DVM, 0.2.0. For installation instructions see: https://bitbucket.org/doob/dvm Changelog: Version 0.2.0 New/Change Features * 64bit version now available on Linux * It's now possible to update an already existing DVM

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 09:15, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:iqvpon$6p0$1...@digitalmars.com... On 2011-05-18 06:35, Nick Sabalausky wrote: Sounds cool, but dvm-0.2.0-linux-32 is just giving me Illegal instruction on Kubuntu 10.04 x86-32. And I don't see any

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 10:21, Nick Sabalausky wrote: Nick Sabalauskya@a.a wrote in message news:iqvru7$cnu$1...@digitalmars.com... Jacob Carlborgd...@me.com wrote in message news:iqvpon$6p0$1...@digitalmars.com... On 2011-05-18 06:35, Nick Sabalausky wrote: Sounds cool, but dvm-0.2.0-linux-32 is

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Daniel Gibson
Am 18.05.2011 14:21, schrieb Steven Schveighoffer: On Wed, 18 May 2011 03:15:50 -0400, Nick Sabalausky a@a.a wrote: But the bottom line seems to be: Linux is in a bigger DLL hell than windows has ever been, and I don't think *anyone* actually knows how to do it. This is one of the side

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 14:21, Steven Schveighoffer wrote: On Wed, 18 May 2011 03:15:50 -0400, Nick Sabalausky a@a.a wrote: But the bottom line seems to be: Linux is in a bigger DLL hell than windows has ever been, and I don't think *anyone* actually knows how to do it. This is one of the side effects

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 10:47:02 -0400, Daniel Gibson metalcae...@gmail.com wrote: Am 18.05.2011 14:21, schrieb Steven Schveighoffer: At my previous company, we integrated software from pure software companies into their required OSes and hardware, and did all the OS/hardware dirty work for

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Daniel Gibson
Am 18.05.2011 17:20, schrieb Steven Schveighoffer: On Wed, 18 May 2011 10:47:02 -0400, Daniel Gibson metalcae...@gmail.com wrote: Am 18.05.2011 14:21, schrieb Steven Schveighoffer: At my previous company, we integrated software from pure software companies into their required OSes and

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Robert Clipsham
On 18/05/2011 16:20, Steven Schveighoffer wrote: Printer support is woefully missing. My 2-year old printer still isn't supported on Linux. Now this is beyond me. Everyone I've talked to says printer support in Linux sucks, but I've been through several printers, and Linux has been the only

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 14:51:18 -0400, Robert Clipsham rob...@octarineparrot.com wrote: On 18/05/2011 16:20, Steven Schveighoffer wrote: Printer support is woefully missing. My 2-year old printer still isn't supported on Linux. Now this is beyond me. Everyone I've talked to says printer

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Daniel Gibson
Am 18.05.2011 21:22, schrieb Steven Schveighoffer: On Wed, 18 May 2011 14:51:18 -0400, Robert Clipsham rob...@octarineparrot.com wrote: On 18/05/2011 16:20, Steven Schveighoffer wrote: Printer support is woefully missing. My 2-year old printer still isn't supported on Linux. Now this is

Re: DVM - D Version Manager 0.2.0

2011-05-18 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ir0o9o$1st5$1...@digitalmars.com... On 2011-05-18 14:21, Steven Schveighoffer wrote: On Wed, 18 May 2011 03:15:50 -0400, Nick Sabalausky a@a.a wrote: But the bottom line seems to be: Linux is in a bigger DLL hell than windows has ever been,

Re: Goldie Parsing System v0.5 - Speed

2011-05-18 Thread Nick Sabalausky
Stephan s...@extrawurst.org wrote in message news:ir05te$tbd$1...@digitalmars.com... On 18.05.2011 05:47, Nick Sabalausky wrote: Goldie Parsing System v0.5 is now out. This version focuses mainly on speed improvements. Great work. Thanks :) Is it possible to generate a parser for D

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Christopher the Magnificent
Mr. Fortin, thank you for your thorough response. I have just a few comments. On 5/17/11 9:07 PM, Michel Fortin wrote: On 2011-05-17 20:00:55 -0400, Christopher the Magnificent ultimatemacfana...@gmail.com said: Now I understand that another syntax has been nominated to do this job which is

Re: Curl wrapper

2011-05-18 Thread Johannes Pfau
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 sounds great). On 5/17/11 3:50 AM, Jonas Drewsen wrote: 14. Isn't the max redirect configurable via a

Re: Implementing std.log

2011-05-18 Thread Jacob Carlborg
On 2011-05-17 22:15, Andrei Alexandrescu wrote: On 5/17/11 4:02 AM, Jacob Carlborg wrote: On 2011-05-16 02:05, Andrei Alexandrescu wrote: Thanks for your work. I think there's an important distinction to be made. There are two APIs being discussed. One is the client interface and the other is

Re: Resolution of core.time.Duration...

2011-05-18 Thread Alexander
On 18.05.2011 01:18, Jonathan M Davis wrote: A monotonic clock is as good as you're going to get for accurate stopwatch functionality. The system cannot possibly do any better than that. Context switching can always get in the way. Increasing precision doesn't help that. Probably, you

Re: Accessing Private Fields from Outside

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 01:47, Mehrdad wrote: Is there any (hacky) way of accessing a private field from outside a data type? (The equivalent of reflection in managed languages.) I'm trying to write a piece of marshaling code that needs access to a data type's fields, but can't access them because it's

Re: Resolution of core.time.Duration...

2011-05-18 Thread Jonathan M Davis
On 2011-05-18 02:13, Alexander wrote: On 18.05.2011 01:18, Jonathan M Davis wrote: A monotonic clock is as good as you're going to get for accurate stopwatch functionality. The system cannot possibly do any better than that. Context switching can always get in the way. Increasing precision

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread sclytrack
const(deref(Object)) ref obj; deref(Object) a; //hehe.

Re: Accessing Private Fields from Outside

2011-05-18 Thread gölgeliyele
On 5/18/11 5:30 AM, Jacob Carlborg wrote: You can have a look at my serialization library, Orange: http://www.dsource.org/projects/orange I don't think it works with the latest compilers but you have have a look at the source:

Re: Curl wrapper

2011-05-18 Thread Jonas Drewsen
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 sounds great). On 5/17/11 3:50 AM, Jonas Drewsen wrote: 14. Isn't

Re: Resolution of core.time.Duration...

2011-05-18 Thread Alexander
On 18.05.2011 12:12, Jonathan M Davis wrote: To my knowledge, using the system's monotonic clock is the absolute best that you're going to get for stuff like benchmarking. It depends. If system is not busy, then it doesn't really matter - which clock to use, especially if you take average

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Steven Schveighoffer
On Tue, 17 May 2011 21:26:38 -0400, Jesse Phillips jessekphillip...@gmail.com wrote: Syntax has definitely been a major problem for this feature. Walter's stance has been that he has tried many times to get the semantics and syntax to work and has given up. michelf (Sorry don't know his

Re: Accessing Private Fields from Outside

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 12:32, gölgeliyele wrote: On 5/18/11 5:30 AM, Jacob Carlborg wrote: You can have a look at my serialization library, Orange: http://www.dsource.org/projects/orange I don't think it works with the latest compilers but you have have a look at the source:

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 02:20:16 -0400, Christopher the Magnificent ultimatemacfana...@gmail.com wrote: On 5/17/11 9:07 PM, Michel Fortin wrote: For another, it's perfectly in line with how you do it for pointers. Also, it'll work for 'shared' and 'inout' too (once 'inout' works properly). Are

Re: Curl wrapper

2011-05-18 Thread Johannes Pfau
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 sounds great). On 5/17/11 3:50 AM, Jonas

Re: Implementing std.log

2011-05-18 Thread Jose Armando Garcia
std.logging is still alive! After posting my first attempt at a logging module I went back and spent a lot of time on how I could improve the API. I would like to say that Andrei's std.log module had a great influence on the final outcome. There are some aspect of std.log's API that I really like.

Re: Builtin regex (Was: How to complex switch?)

2011-05-18 Thread Timon Gehr
Timon Gehr: Tuple literals would indeed be very nice. I have asked for tuple unpacking syntax (and other things like some support from the type system). Tuple literals are less needed. (having syntactic sugar for phobos functionality in the language seems like a very bad design to me,

Re: Implementing std.log

2011-05-18 Thread Jose Armando Garcia
This is a review of std.log. Overall, I really like the API exposed by this module because it allows efficient compile time and run time configuration. I have limited the review to the API and how the API affects the implementation. I will review the implementation once the API is close to final.

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Michel Fortin
On 2011-05-17 23:48:35 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com said: So how do functions which take such a parameter look like? What do you mean by what they'll look like? They'll look like how you wrote them. I'm not sure I understand the question... but I'll still try to

Re: Some features should NOT include from GO/Java.

2011-05-18 Thread Matthew Ong
On 5/16/2011 10:37 PM, Matthew Ong wrote: Hi All, The reason I am starting this thread is to gather some valid/experience that people do not like about using Go or even Java. Naturally D-programming might not wants to repeat the same error. Java: 1) Swing API --- The inheritance tree is too

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Timon Gehr
On 2011-05-17 23:48:35 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com said: So how do functions which take such a parameter look like? What do you mean by what they'll look like? They'll look like how you wrote them. I'm not sure I understand the question... but I'll still try to

Re: Curl wrapper

2011-05-18 Thread Andrei Alexandrescu
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. If not enough data has been receive an new select

Re: Generators in D

2011-05-18 Thread Piotr Szturmaj
Sean Kelly wrote: On May 17, 2011, at 2:37 PM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 11, 2011, at 3:06 PM, Piotr Szturmaj wrote: Andrei Alexandrescu wrote: * can you implement save() to make this a forward range (e.g. by creating a new fiber that has its own state)? It is not

Re: keywords objconst and objimmutable vs. const(Object) ref

2011-05-18 Thread Michel Fortin
On 2011-05-18 10:46:19 -0400, Timon Gehr timon.g...@gmx.ch said: Given that reference types do not support the semantics asked for at all (with transitive const/immutable), I think this is as consistent as it can get. (also way better than objinsert storage specifier here all over the place.)

Re: Best build tool for D projects

2011-05-18 Thread Chris Molozian
Thanks to everyone for the help and advice on choosing a build tool for my D+LLVM project. I settled on Jam (ftjam) in the end, the major factor being cross-platform support and prebuilt binaries for a variety of operating systems. The documentation for Jam I've found is very lacking but have

Re: Implementing std.log

2011-05-18 Thread Andrei Alexandrescu
On 5/18/11 8:00 AM, Jose Armando Garcia wrote: I also think that having competing logging module is a good thing. This process will result in a better module for phobos and as a result a better module for the user. Clearly there are advantages to competing proposals, but I have mixed feelings

Re: Generators in D

2011-05-18 Thread Sean Kelly
On May 18, 2011, at 8:00 AM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 17, 2011, at 2:37 PM, Piotr Szturmaj wrote: But couldn't Fiber's stack be scanned for references to itself and readjusted? Without type information, there's no way to be sure that something is actually a

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 14:44:33 -0400, David Gileadi gilea...@nspmgmail.com wrote: On 5/18/11 11:03 AM, Steven Schveighoffer wrote: Please, if you have any comments or recommendations, let me know. First off, this is a fantastic article. Thanks for clearly explaining a fairly subtle

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread David Gileadi
On 5/18/11 11:03 AM, Steven Schveighoffer wrote: Please, if you have any comments or recommendations, let me know. First off, this is a fantastic article. Thanks for clearly explaining a fairly subtle concept. I'm especially happy to finally understand how appending to a slice can avoid

Re: Alias templates and anonymous delegates in pipe/map

2011-05-18 Thread Adrien Chauve
Hi, anyone on the alias difference? Thanks, Adrien On Sat, May 14, 2011 at 20:12, Adrien Chauve adrien.cha...@gmail.comwrote: Hi, I've been playing with templates and I get some (really dumb) questions. By the way, I'm using dmd 2.053 64 bits on linux 64 bits. First, I didn't really get

Re: Builtin regex (Was: How to complex switch?)

2011-05-18 Thread bearophile
Timon Gehr: Library code should make use of the language to implement its semantics. Not the other way round. Why? Another reason I dislike it: it looks different to other tuple literals that are already built-in: foo (note, how, this, is, a, tuple, !); Looking different from the

Re: Best build tool for D projects

2011-05-18 Thread Jesse Phillips
Can you build a simple hello world program with just: dmd hello.d The build can't find the phobos/druntime libraries for linking. Chris Molozian Wrote: [Stuff]

[Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices work, and why they behave the way they do. Being one of the only places where I have web space, it's on my dcollections site, I

Re: libcurl

2011-05-18 Thread Walter Bright
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 available. Furthermore, when I tried to

libcurl

2011-05-18 Thread Andrei Alexandrescu
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 available. Furthermore, when I tried to generate documentation it came messed up. Obviously

Struct constructor, static opCall and object opCall

2011-05-18 Thread kenji hara
I'm challenging to fix title issue. Related issues in bug tracking system: http://d.puremagic.com/issues/show_bug.cgi?id=3680 http://d.puremagic.com/issues/show_bug.cgi?id=4053 http://d.puremagic.com/issues/show_bug.cgi?id=4253 I think that follows are correct behavior of dmd. Please point out

Re: Article Review: Migrating from std.date to std.datetime

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 00:36:26 -0400, Jonathan M Davis jmdavisp...@gmx.com wrote: A minor update with a few corrections: http://is.gd/GNELTZ Naturally, it's also up on my github account: https://github.com/jmdavis/d- programming-language.org/tree/article_datetime One comment: 'It should

Re: Alias templates and anonymous delegates in pipe/map

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 15:11:56 -0400, Adrien Chauve adrien.cha...@gmail.com wrote: Hi, anyone on the alias difference? I have a feeling that alias needs to be a symbol, and int is a keyword. a template alias can be any symbol, including a variable, function, delegate, etc. Though it

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Andrej Mitrovic
On 5/18/11, David Gileadi gilea...@nspmgmail.com wrote: There is at least one other place in the document that also make this mistake. The first sentence! :]

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 14:44:33 -0400, David Gileadi gilea...@nspmgmail.com wrote: I do have a couple of nits: Fixed -Steve

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Andrej Mitrovic
Well consider me enlightened. From all the things I've read before this article, I thought a slice is a special feature that is only introduced when you take an [n..m] from an array, e.g. my understanding was something like: int[] a = new int[5]; // a is definitely a dynamic array auto b =

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Jesse Phillips
Steven Schveighoffer Wrote: Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices work, and why they behave the way they do. Still reading, but the example should use assertions which

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Alex_Dovhal
Steven Schveighoffer schvei...@yahoo.com ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:op.vvou3fbgeav7ka@localhost.localdomain... Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices

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: [Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 16:22:50 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Well consider me enlightened. From all the things I've read before this article, I thought a slice is a special feature that is only introduced when you take an [n..m] from an array, e.g. my understanding

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 16:37:49 -0400, Jesse Phillips jessekphillip...@gmail.com wrote: Steven Schveighoffer Wrote: Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices work, and why they

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Steven Schveighoffer
On Wed, 18 May 2011 16:47:47 -0400, Alex_Dovhal alex_dov...@yahoo.com wrote: Nice article, very pleasured to read. One thing that strained my mind - this exaple: import std.stdio; char[] fillAs(char[] buf, size_t num) { if(buf.length num) buf.length = num; // increase buffer

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Andrej Mitrovic
Asserts are kind of like going to court and interpreting the silence of the jury as a not guilty verdict. :p

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Johann MacDonagh
On 5/18/2011 2:03 PM, Steven Schveighoffer wrote: Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices work, and why they behave the way they do. Being one of the only places where I have

Re: Builtin regex (Was: How to complex switch?)

2011-05-18 Thread Timon Gehr
Timon Gehr: Library code should make use of the language to implement its semantics. Not the other way round. Why? Short story: Obvious? Do you really want to make some non-built-in types more equal than others? Why would you want to have a dependency cycle between std and the compiler?

Re: Builtin regex (Was: How to complex switch?)

2011-05-18 Thread Andrei Alexandrescu
On 5/18/11 5:12 PM, Timon Gehr wrote: Timon Gehr: Library code should make use of the language to implement its semantics. Not the other way round. Why? Short story: Obvious? Do you really want to make some non-built-in types more equal than others? Why would you want to have a dependency

[OT] JavaScript x86 Linux emulator

2011-05-18 Thread Piotr Szturmaj
http://bellard.org/jslinux/ Written in JS, emulates x86 CPU without FPU/MMX/SSE. Linux 2.6.20. Even has C compiler (tcc)! Anyone to run some D code on the client side? ;)

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

Re: libcurl

2011-05-18 Thread Andrei Alexandrescu
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 my surprise, when I tried to provide a link to

Re: Curl wrapper

2011-05-18 Thread Andrei Alexandrescu
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 callback handler with the data read. That handler

Re: Builtin regex (Was: How to complex switch?)

2011-05-18 Thread bearophile
Andrei: One possibility that I hadn't thought before is to use ; for separating tuple elements. Upon a casual inspection, it turns out no statement can be enclosed directly in ( and ) so there's no ambiguity. It would also take care of the issue did you mean to pass them as function

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Jesse Phillips
Steven Schveighoffer Wrote: I always wonder about that. One of the issues with assert for people feeling out the language is, a passing assert doesn't seem to do anything. For instance, in this example, if you take the code I wrote, and compile it, you'll get a loud assertion error

Re: Generators in D

2011-05-18 Thread Piotr Szturmaj
Sean Kelly wrote: On May 18, 2011, at 8:00 AM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 17, 2011, at 2:37 PM, Piotr Szturmaj wrote: But couldn't Fiber's stack be scanned for references to itself and readjusted? Without type information, there's no way to be sure that something is

Feedback/Suggestions for std.log

2011-05-18 Thread Gary
1. Background Hi all, first time posting. This message is in response to Andrei's first call for feedback on the proposed std.log interface. I'm piping up on the log topic because of recent experience using a logging library (log4cxx) on a project at work. I'll attempt to identify our

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Jonathan M Davis
Steven Schveighoffer Wrote: I always wonder about that. One of the issues with assert for people feeling out the language is, a passing assert doesn't seem to do anything. For instance, in this example, if you take the code I wrote, and compile it, you'll get a loud assertion error

Re: Generators in D

2011-05-18 Thread Piotr Szturmaj
Jose Armando Garcia wrote: If serialization will be clever enough, these fibers could even be shared across different servers! This is really a requirement in load balanced environments. A very old research paper (I think it was for the amoeba project) wrote a long time ago (I don't remember

Testable ddoc snippets?

2011-05-18 Thread Andrei Alexandrescu
We should finalize the testable doc snippets. Adam, do you think you could work on a pull request to integrate your work with d-programming-language.org? You've done some great work that deserves finalization. Thanks, Andrei

Re: Testable ddoc snippets?

2011-05-18 Thread Adam D. Ruppe
I haven't spent the time to figure out github yet!

Re: Testable ddoc snippets?

2011-05-18 Thread Andrei Alexandrescu
On 05/18/2011 08:07 PM, Adam D. Ruppe wrote: I haven't spent the time to figure out github yet! Hopefully you'll do that soon. You've done great work, and integrating it is top priority. Thanks, Andrei

Re: Article Review: Migrating from std.date to std.datetime

2011-05-18 Thread Jonathan M Davis
On 2011-05-18 12:37, Steven Schveighoffer wrote: On Wed, 18 May 2011 00:36:26 -0400, Jonathan M Davis jmdavisp...@gmx.com wrote: A minor update with a few corrections: http://is.gd/GNELTZ Naturally, it's also up on my github account: https://github.com/jmdavis/d-

Type is not mutable when using ref return type

2011-05-18 Thread %u
Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that there's a const in the structure: struct Temp { const int a; int b; } auto ref foo(Temp* t) { return *t; } //Error

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Jesse Phillips
Jonathan M Davis Wrote: The huge advantage of assert over writeln is that it shows you what the result is supposed to be. If you're reading the code or documentation, that's extremely valuable, whereas writeln is useless. However, if what you're concerned about is running the code and

Re: Type is not mutable when using ref return type

2011-05-18 Thread Jonathan M Davis
On 2011-05-18 20:55, %u wrote: Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that there's a const in the structure: struct Temp { const int a; int b; } auto ref

Re: [Article Contest, first draft] D Slices

2011-05-18 Thread Jonathan M Davis
On 2011-05-18 21:09, Jesse Phillips wrote: Jonathan M Davis Wrote: The huge advantage of assert over writeln is that it shows you what the result is supposed to be. If you're reading the code or documentation, that's extremely valuable, whereas writeln is useless. However, if what you're

Re: Generators in D

2011-05-18 Thread Sean Kelly
On May 18, 2011, at 5:07 PM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 18, 2011, at 8:00 AM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 17, 2011, at 2:37 PM, Piotr Szturmaj wrote: But couldn't Fiber's stack be scanned for references to itself and readjusted? Without type

Re: Generators in D

2011-05-18 Thread Sean Kelly
On May 18, 2011, at 5:21 PM, Piotr Szturmaj wrote: Jose Armando Garcia wrote: If serialization will be clever enough, these fibers could even be shared across different servers! This is really a requirement in load balanced environments. A very old research paper (I think it was for

Re: Type is not mutable when using ref return type

2011-05-18 Thread Mehrdad
On 5/18/2011 9:22 PM, Jonathan M Davis wrote: On 2011-05-18 20:55, %u wrote: Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that there's a const in the structure: struct Temp {

Re: Type is not mutable when using ref return type

2011-05-18 Thread Jonathan M Davis
On 2011-05-18 21:52, Mehrdad wrote: On 5/18/2011 9:22 PM, Jonathan M Davis wrote: On 2011-05-18 20:55, %u wrote: Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that

Re: How To Dynamic Web Rendering?

2011-05-18 Thread Jacob Carlborg
On 2011-05-17 22:12, Adam D. Ruppe wrote: side note:: * After looking at haml yesterday, I'm tempted to do a nothrow requireSelector. Again, can't think of a name. But what it'd do is try to get the first element that matches the css syntax. If it's not there, it starts from the best path that

Re: Memory corruption rant.

2011-05-18 Thread Kagamin
Jesse Phillips Wrote: writeln(Im still ok) writeln(myObject is null); // Crash with access violation try writeln(I'm still ok); writeln(0); writeln(false); I'm not even accessing myObject, I'm just asking if it has a value it shouldn't! Did you try a debugger? At least, you can see where

Re: Memory corruption rant.

2011-05-18 Thread Kagamin
Kagamin Wrote: Jesse Phillips Wrote: writeln(Im still ok) writeln(myObject is null); // Crash with access violation try writeln(I'm still ok); writeln(0); writeln(false); or writeln(I'm still ok); writeln(2); if(myObject is null) writeln(3); else writeln(4); writeln(0);

Can someone explain how mixin is implemented?

2011-05-18 Thread Matthew Ong
Hi, From what I can see mixin in D is used in place of #define in C++(cool!!!). However, I do have a few question. mixin with template does address some of this issue I supposed. That does allow me to define up to level of content of a class but is not class itself. mixin template

Re: How to break module into multiple file.

2011-05-18 Thread Matthew Ong
On 5/13/2011 3:51 PM, Alexander wrote: On 13.05.2011 00:59, Jonathan M Davis wrote: Still, I wouldn't have though that dashes would have been a big enough deal to really care. I didn't say that this is a big deal, just inconvenience. There are many minor things which are not a big

Re: Can someone explain how mixin is implemented?

2011-05-18 Thread Matthew Ong
On 5/18/2011 10:46 PM, Steven Schveighoffer wrote: but you can do a string mixin to define the entire class. This is not an easy thing to do, because you'd have to write the entire class as a string of text. Thanks for the attempt and sample code. Seen that script import somewhere before.

Re: Memory corruption rant.

2011-05-18 Thread Jesse Phillips
Kagamin Wrote: Jesse Phillips Wrote: writeln(Im still ok) writeln(myObject is null); // Crash with access violation try writeln(I'm still ok); writeln(0); writeln(false); All those print. I'm not even accessing myObject, I'm just asking if it has a value it shouldn't! Did

Re: Can someone explain how mixin is implemented?

2011-05-18 Thread Jacob Carlborg
On 2011-05-18 20:05, Jonathan M Davis wrote: On 5/18/2011 10:46 PM, Steven Schveighoffer wrote: but you can do a string mixin to define the entire class. This is not an easy thing to do, because you'd have to write the entire class as a string of text. Thanks for the attempt and sample code.

Re: How to break module into multiple file.

2011-05-18 Thread Jonathan M Davis
On 5/13/2011 3:51 PM, Alexander wrote: On 13.05.2011 00:59, Jonathan M Davis wrote: Still, I wouldn't have though that dashes would have been a big enough deal to really care. I didn't say that this is a big deal, just inconvenience. There are many minor things which are not a big

Re: Can someone explain how mixin is implemented?

2011-05-18 Thread Jesse Phillips
Matthew Ong Wrote: Perhaps I am missing something here. How can class level definition be part of the mixin? Does mixin generate the same binary code as #define as inline code,which meant that same binary is repeated everywhere that macro is used? Or does it make a linked to the in a

Re: How to break module into multiple file.

2011-05-18 Thread Alexander
On 18.05.2011 19:10, Jonathan M Davis wrote: What D does is completely normal and common. It just doesn't match Java and C#. To be honest, I didn't see any single source file with ca. 3 lines in it (like std.datetime) for quite a while :) Probably, I am old-fashioned, but this

  1   2   >