Re: building of D for...

2011-03-22 Thread gleb
Kagamin wrote: gleb Wrote: No, i mean application coherently builded accross distribution, i.e., using dynamically linked libraries, not conflicting with any apps/libraries and so on. What dmd conflicts with? Sorry for delay. I'm not shure, will check in a days. -- /GLeb *

Re: Release: GDC for Windows

2011-03-22 Thread dsimcha
Excellent! Now that you've apparently got a build process working, are you going to make new builds frequently (nightly/weekly/etc.) until GDC has a stable release? On 3/21/2011 11:26 PM, Daniel Green wrote: GDC D1 binaries are now available for Windows. The binaries are packaged as an addon

Re: Release: GDC for Windows

2011-03-22 Thread SiegeLord
Does it work with Tango or will that need to be patched? -SiegeLord

Re: Release: GDC for Windows

2011-03-22 Thread Daniel Green
On 3/22/2011 12:50 AM, Caligo wrote: Is Iain Buclaw really the only one who is contributing to GDC source? That's the impression I got too. I've recently joined to keep Windows supported and to learn more about GCC/GDC. On 3/22/2011 8:53 AM, dsimcha wrote: Excellent! Now that you've

Re: Release: GDC for Windows

2011-03-22 Thread Daniel Green
D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2. gdc dummy.d

Re: Release: GDC for Windows

2011-03-22 Thread dsimcha
On 3/22/2011 8:22 PM, Daniel Green wrote: D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default

Re: Anything in the review queue?

2011-03-22 Thread Simen kjaeraas
On Tue, 22 Mar 2011 02:08:39 +0100, dsimcha dsim...@yahoo.com wrote: The biggest perf issue, though, seems to be Euler's algorithm instead of BinaryGCD. This is definitely going to get fixed eventually by me, since I've read up on BinaryGCD and it doesn't look hard to implement

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Nick Sabalausky
Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:op.vsp3zooituz...@cybershadow.mshome.net... On Tue, 22 Mar 2011 04:30:37 +0200, Vladimir Panteleev vladi...@thecybershadow.net wrote: Your post doesn't seem to mention it, Sorry, didn't scroll down enough :) Well, that

Re: Anything in the review queue?

2011-03-22 Thread Don
Simen kjaeraas wrote: On Tue, 22 Mar 2011 02:08:39 +0100, dsimcha dsim...@yahoo.com wrote: The biggest perf issue, though, seems to be Euler's algorithm instead of BinaryGCD. This is definitely going to get fixed eventually by me, since I've read up on BinaryGCD and it doesn't look hard to

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread spir
On 03/22/2011 01:12 AM, Nick Sabalausky wrote: I'm intending this thread as somewhat of a roundtable-like discussion. Hopefully we can come up with good material for a short article on Wiki4D, or maybe the D website, or wherever. The scenario: A coder is writing some D, compiles, runs and gets

Re: Against enforce()

2011-03-22 Thread Don
Steven Schveighoffer wrote: On Mon, 21 Mar 2011 10:08:56 -0400, Don nos...@nospam.com wrote: Steven Schveighoffer wrote: Will there not be an expectation that a pure function will not read/write shared data that will be broken (i.e. why did the compiler allow this, I thought I was safe

Re: Shared lib support for Linux

2011-03-22 Thread Kagamin
Long Chang Wrote: Hello , The DMD will support shared lib for linux in future, But I wan't to know when this can be completed . I am try use GDC build libgdruntime.a with -fPIC, and catch some error I can't fix it . for example: ../../../../libphobos/rt/arraybyte.d

Re: Shared lib support for Linux

2011-03-22 Thread Kagamin
though the function looks buggy. oops, no, it's just me.

Re: Interested in a GSoC project idea

2011-03-22 Thread Jens Mueller
%u Ishan Thilina wrote: Hi, I'm interested in the GSoC project idea which is listed in http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas#Containers . But the problem is that I couldn't find the relevant mentor for the project. Can somebody help me to find the mentor and contact him? I

Re: Shared lib support for Linux

2011-03-22 Thread Kagamin
though the function looks buggy. oops, no, it's just me.

Re: Interested in a GSoC project idea

2011-03-22 Thread %u Ishan Thilina
Well, The biggest question in my mind is that how many container types that I should implement? Also will I be able to use a hierarchy similar to a programming language such as Java or C++ ?

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Max Samukha
On 03/22/2011 02:12 AM, Nick Sabalausky wrote: I'm intending this thread as somewhat of a roundtable-like discussion. Hopefully we can come up with good material for a short article on Wiki4D, or maybe the D website, or wherever. The scenario: A coder is writing some D, compiles, runs and gets

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Jacob Carlborg
On 2011-03-22 01:12, Nick Sabalausky wrote: At one point, I fiddled around with the idea of converting static ctors to staticThis() and then having one real static ctor for the entire library (assuming it's a library) that manually calls all the staticThis functions. One problem with this is

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Jonathan M Davis
On 03/22/2011 02:12 AM, Nick Sabalausky wrote: I'm intending this thread as somewhat of a roundtable-like discussion. Hopefully we can come up with good material for a short article on Wiki4D, or maybe the D website, or wherever. The scenario: A coder is writing some D, compiles, runs

Re: Interested in a GSoC project idea

2011-03-22 Thread Jens Mueller
%u Ishan Thilina wrote: Well, The biggest question in my mind is that how many container types that I should implement? Sorry to answer with a question: In which are you interested? What data structures do you know already? Also will I be able to use a hierarchy similar to a programming

Re: Interested in a GSoC project idea

2011-03-22 Thread Jonathan M Davis
Well, The biggest question in my mind is that how many container types that I should implement? Also will I be able to use a hierarchy similar to a programming language such as Java or C++ ? There is no hierarchy to std.container like you'd get in Java. The current plain is for the containers

Re: Interested in a GSoC project idea

2011-03-22 Thread bearophile
%u Ishan Thilina: Well, The biggest question in my mind is that how many container types that I should implement? There are many data structures useful for Phobos, ordered from the most useful: - a graph (boost graph is huge. But if you remove many algorithms, what's left is not huge); - a

Re: a cabal for D ?

2011-03-22 Thread Jonas Drewsen
On 17/03/11 21.44, Jason E. Aten wrote: Please correct me if I'm wrong, but I observe that there doesn't appear to be a package management system / standard repository for D libraries. Or is there? I'm talking about something as easy to use as R's CRAN, install.packages(rforest) or cpan for

Re: Shared lib support for Linux

2011-03-22 Thread Iain Buclaw
== Quote from Long Chang (changl...@jkys.info)'s article Hello , The DMD will support shared lib for linux in future, But I wan't to know when this can be completed . I am try use GDC build libgdruntime.a with -fPIC, and catch some error I can't fix it . for example:

Re: Anything in the review queue?

2011-03-22 Thread dsimcha
On 3/22/2011 1:25 AM, Don wrote: There are a few approaches we can take from here. One is to define certain traits that differentiate BigInt from other integrals (e.g. preferAdditionToMultiplication or whatnot), and then design Rational to use those traits. Another is of course to specialize the

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Michel Fortin
On 2011-03-22 05:16:31 -0400, Max Samukha m...@spam.box said: module foo_helper; private extern(C) foo_static_ctor(); static this() { foo_static_ctor(); } - module foo; import foo_helper; private Object global; private extern(C) void foo_static_ctor() { global = new

Re: Interested in a GSoC project idea

2011-03-22 Thread spir
On 03/22/2011 10:56 AM, bearophile wrote: - an ordered (chained, keeps the insertion order) associative array (not hard, no need to re-implement associative arrays); ? How would you do that? (Without requiring lookup for each key on traversal.) I'm really interested, I need it. Have had a

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Max Samukha
On 03/22/2011 04:14 PM, Michel Fortin wrote: On 2011-03-22 05:16:31 -0400, Max Samukha m...@spam.box said: module foo_helper; private extern(C) foo_static_ctor(); static this() { foo_static_ctor(); } - module foo; import foo_helper; private Object global; private extern(C) void

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Steven Schveighoffer
On Mon, 21 Mar 2011 20:12:55 -0400, Nick Sabalausky a@a.a wrote: I'm intending this thread as somewhat of a roundtable-like discussion. Hopefully we can come up with good material for a short article on Wiki4D, or maybe the D website, or wherever. The scenario: A coder is writing some D,

Re: a cabal for D ?

2011-03-22 Thread Jacob Carlborg
On 2011-03-22 12:03, Jonas Drewsen wrote: On 17/03/11 21.44, Jason E. Aten wrote: Please correct me if I'm wrong, but I observe that there doesn't appear to be a package management system / standard repository for D libraries. Or is there? I'm talking about something as easy to use as R's

Re: Argh!! Cyclic dependencies!!!

2011-03-22 Thread Steven Schveighoffer
On Mon, 21 Mar 2011 18:45:23 -0400, Nick Sabalausky a@a.a wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vso2wwsweav7ka@steve-laptop... If you are interested, the code that runs the static ctors is in druntime, not the compiler. Yea, I had a feeling druntime

Re: Interested in a GSoC project idea

2011-03-22 Thread Steven Schveighoffer
On Tue, 22 Mar 2011 11:55:29 -0400, spir denis.s...@gmail.com wrote: On 03/22/2011 10:56 AM, bearophile wrote: - an ordered (chained, keeps the insertion order) associative array (not hard, no need to re-implement associative arrays); ? How would you do that? (Without requiring lookup for

GSOC 2011

2011-03-22 Thread Luca Boasso
Hello, I am Luca and I am finishing my master in computer engineering. I am currently an intern at Panasonic in Cupertino. My great passion has been always programming language design and implementation and I am studying the D programming language. I like to play with different languages and in

Request for review: std.net.isemail

2011-03-22 Thread Jacob Carlborg
I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests fail and are out commented * Due to some bugs (4673, 5744) in Phobos this module contains

Re: Request for review: std.net.isemail

2011-03-22 Thread dsimcha
On 3/22/2011 6:04 PM, Jacob Carlborg wrote: I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests fail and are out commented * Due to some bugs

[GSoC’11] Lexing and parsing

2011-03-22 Thread Ilya Pupatenko
Hi, First of all, I want to be polite so I have to introduce myself (you can skip this paragraph if you feel tired of newcomer-students’ posts). My name is Ilya, I’m a Master student of IT department of Novosibirsk State University (Novosibirsk, Russia). In Soviet period Novosibirsk became on

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Graham St Jack
On 23/03/11 03:41, Steven Schveighoffer wrote: On Mon, 21 Mar 2011 20:12:55 -0400, Nick Sabalausky a@a.a wrote: I'm intending this thread as somewhat of a roundtable-like discussion. Hopefully we can come up with good material for a short article on Wiki4D, or maybe the D website, or

D Tools Special Interest Group (SIG)

2011-03-22 Thread Jonas Drewsen
Hi, It seems that every now and then a discussion about build tools or D package management pops up in this group. Many people on this list have a huge amount of experience and knowledge in this area. Some has even created their own tools for D. Unfortunately this has not yet resulted in

What To Do About Shared?

2011-03-22 Thread dsimcha
Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality should be balanced. On the one hand, coarse-grained multithreading with hard guarantees against low-level races is a great

Re: Shared lib support for Linux

2011-03-22 Thread Long Chang
On Tue, Mar 22, 2011 at 8:57 PM, Iain Buclaw ibuc...@ubuntu.com wrote: == Quote from Long Chang (changl...@jkys.info)'s article Hello , The DMD will support shared lib for linux in future,  But I wan't to know when this can be completed . I am try use GDC build libgdruntime.a with -fPIC,  and

Re: GSOC 2011

2011-03-22 Thread Bernard Helyer
On Tue, 22 Mar 2011 10:47:59 -0700, Luca Boasso wrote: I am really interested in the following ideas (sorted by interest): - http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas#LexingandParsing - http://prowiki.org/wiki4d/wiki.cgi? GSOC_2011_Ideas#ANTLRandJavabasedDparserforIDEusage -

Re: Shared lib support for Linux

2011-03-22 Thread Long Chang
On Tue, Mar 22, 2011 at 8:57 PM, Iain Buclaw ibuc...@ubuntu.com wrote: == Quote from Long Chang (changl...@jkys.info)'s article Hello , The DMD will support shared lib for linux in future,  But I wan't to know when this can be completed . I am try use GDC build libgdruntime.a with -fPIC,  and

Re: Shared lib support for Linux

2011-03-22 Thread Long Chang
I install libc_pic , and got this error : gcc -shared -o dmd_xtpl.so dmd_xtpl.o -fPIC -m64 -L/home/opt/usr/local/lib64 -lgdruntime -lc_pic/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libc_pic.a(init-first.os): In function `_init': (.text+0x20): multiple definition of `_init'

Re: [GSoC’11] Lexing and parsing

2011-03-22 Thread Robert Jacques
On Tue, 22 Mar 2011 18:27:51 -0400, Ilya Pupatenko pupate...@gmail.com wrote: Hi, First of all, I want to be polite so I have to introduce myself (you can skip this paragraph if you feel tired of newcomer-students’ posts). My name is Ilya, I’m a Master student of IT department of

Re: What To Do About Shared?

2011-03-22 Thread Graham St Jack
On 23/03/11 11:08, dsimcha wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality should be balanced. On the one hand, coarse-grained multithreading with hard guarantees

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Nick Sabalausky
Graham St Jack graham.stj...@internode.on.net wrote in message news:imbai9$2jb9$1...@digitalmars.com... My own solution to this problem is to never have circular imports at all. The build system I use prohibits them, so any careless introduction of a circularity is spotted immediately and I

Re: What To Do About Shared?

2011-03-22 Thread dsimcha
On 3/23/2011 12:36 AM, Graham St Jack wrote: Sounds good in principal. I assume that category a code could be @trusted, and that category b and c must not be @trusted. Right, except for the subset of category C code that does make guarantees. I agree that trying to use the language to

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-22 Thread Graham St Jack
On 23/03/11 15:12, Nick Sabalausky wrote: Graham St Jackgraham.stj...@internode.on.net wrote in message news:imbai9$2jb9$1...@digitalmars.com... My own solution to this problem is to never have circular imports at all. The build system I use prohibits them, so any careless introduction of a

likely keyword for D?

2011-03-22 Thread %u
I just thought of a (crazy) idea: Should D implement a likely keyword for if statements? Something like: if likely (x == 2) { //do something } This would allow the compiler to generate branch prediction code for the program, allowing the programmer to prevent branch predictions. It's a

Re: likely keyword for D?

2011-03-22 Thread Andrej Mitrovic
That will be a special feature available only in DMD Quantum Edition®.

Re: Unicode - Windows 1252

2011-03-22 Thread Tom
El 18/03/2011 21:15, Stewart Gordon escribió: On 16/03/2011 22:17, Tom wrote: I have a D2 code that writes some stuff to the screen (usually runs in cmd.exe pseudo-console). When I print spanish characters they show wrong (gibberish symbols and so, wich corresponds to CP-1252 encoding). Is

Re: Using D libs in C

2011-03-22 Thread Dainius (GreatEmerald)
I've tried compiling the same on Linux and the program still crashes (with segmentation fault there). No error message or anything. And it doesn't matter if I compile the thing from .obj or from .lib files, I still get the same crashes. So it's a real showtopper for me, since what's the use of

Re: Using D libs in C

2011-03-22 Thread Daniel Green
On 3/22/2011 6:46 PM, Dainius (GreatEmerald) wrote: I've tried compiling the same on Linux and the program still crashes (with segmentation fault there). No error message or anything. And it doesn't matter if I compile the thing from .obj or from .lib files, I still get the same crashes. So it's

[Issue 5765] ^^ and with BigInts

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au ---

[Issue 5766] New: undefined reference to `_D3std4bind12__ModuleInfoZ'

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5766 Summary: undefined reference to `_D3std4bind12__ModuleInfoZ' Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: regression Priority: P2

[Issue 5766] undefined reference to `_D3std4bind12__ModuleInfoZ'

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5766 --- Comment #1 from changlon chang...@gmail.com 2011-03-22 01:41:18 PDT --- I am wrong about the windows can pass this , I am not woring on windows recently . The latest time I check it still build and pass on windows . Now I check agian ,

[Issue 5765] ^^ and with BigInts

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #2 from bearophile_h...@eml.cc 2011-03-22 02:29:39 PDT --- Here n needs to be a BigInt, because of the second recursive call. So instead of writing 2^^n you need to write BigInt(2)^^n.toInt() that's not natural (this code will

[Issue 5767] New: Optlink crash

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5767 Summary: Optlink crash Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Optlink

[Issue 5767] Optlink crash

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5767 changlon chang...@gmail.com changed: What|Removed |Added CC||chang...@gmail.com ---

[Issue 3836] [TDPL] obligatory override attribute

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3836 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 5767] Optlink crash

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5767 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-03-22 18:25:01 PDT --- Nope, same results. On the other hand it looks like I'll be able to use GDC. -- Configure issuemail:

[Issue 5768] New: std.uni's is* functions should return bool

2011-03-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5768 Summary: std.uni's is* functions should return bool Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2