Re: druntime investigation troubles

2012-05-23 Thread Jacob Carlborg
On 2012-05-22 23:01, Steven Schveighoffer wrote: It looks like code that is not called on Windows. Which doesn't make sense. It would seem that you must initialize a critical section in order to use it. I can't find any reference to STI_monitor in dmd, dmc, or druntime source code, except

Re: druntime investigation troubles

2012-05-23 Thread Jacob Carlborg
On 2012-05-22 23:01, Steven Schveighoffer wrote: It looks like code that is not called on Windows. Which doesn't make sense. It would seem that you must initialize a critical section in order to use it. I can't find any reference to STI_monitor in dmd, dmc, or druntime source code, except

Re: pure functions calling impure functions at compile-time

2012-05-23 Thread bearophile
Simen Kjaeraas: Should this be filed as a bug, or is the plan that only pure functions be ctfe-able? (or has someone already filed it, perhaps) It's already in Bugzilla, see issue 7994 and 6169. But I think there is a semantic hole in some of the discussions about this problem. Is a future

Re: druntime investigation troubles

2012-05-23 Thread Steven Schveighoffer
On Wed, 23 May 2012 02:21:14 -0400, Jacob Carlborg d...@me.com wrote: On 2012-05-22 23:01, Steven Schveighoffer wrote: It looks like code that is not called on Windows. Which doesn't make sense. It would seem that you must initialize a critical section in order to use it. I can't find any

Re: Simplified socket creation and handling

2012-05-23 Thread Jarl André
On Saturday, 19 May 2012 at 20:33:49 UTC, Nathan M. Swan wrote: On Friday, 18 May 2012 at 06:35:59 UTC, Jarl André wrote: I am a Java developer who is tired of java.nio and similar complex socket libraries. In Java you got QuickServer, the ultimate protocol creation centered socket library.

Sorry for posting this here. Not sure where else.

2012-05-23 Thread WhatMeWorry
I apologize in advance if I'm doing something stupid here. But shat's up with dsource.org forums? I created a user account on 5/19/12 and got an email: Welcome to Forums Please keep this email for your records. Your account information is as follows:

Re: druntime investigation troubles

2012-05-23 Thread Jacob Carlborg
On 2012-05-23 13:31, Steven Schveighoffer wrote: On Wed, 23 May 2012 02:21:14 -0400, Jacob Carlborg d...@me.com wrote: On 2012-05-22 23:01, Steven Schveighoffer wrote: It looks like code that is not called on Windows. Which doesn't make sense. It would seem that you must initialize a

Re: Sorry for posting this here. Not sure where else.

2012-05-23 Thread Steven Schveighoffer
On Wed, 23 May 2012 10:38:00 -0400, WhatMeWorry kc_hea...@yahoo.com wrote: I apologize in advance if I'm doing something stupid here. But shat's up with dsource.org forums? I created a user account on 5/19/12 and got an email: Welcome to Forums Please keep this email for your records.

Re: Sorry for posting this here. Not sure where else.

2012-05-23 Thread Roman D. Boiko
On Wednesday, 23 May 2012 at 15:29:40 UTC, Steven Schveighoffer wrote: You need to send an email to brad at dsource.org. The guy who does this is (or was) Brad Anderson. Depending on where you are planning to post, you may be in for more disappointment, many projects on dsource.org are

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Paul
On Monday, 14 May 2012 at 12:58:20 UTC, Graham Fawcett wrote: On Sunday, 13 May 2012 at 21:03:45 UTC, Paul wrote: I am reading a file that has a few extended ASCII codes (e.g. degree symdol). Depending on how I read the file in and what I do with it the error shows up at different points. I'm

Re: druntime investigation troubles

2012-05-23 Thread Denis Shelomovskij
23.05.2012 10:21, Jacob Carlborg написал: On 2012-05-22 23:01, Steven Schveighoffer wrote: It looks like code that is not called on Windows. Which doesn't make sense. It would seem that you must initialize a critical section in order to use it. I can't find any reference to STI_monitor in

OPTLINK : Error 63: DOSNEWSIZE Error ?

2012-05-23 Thread ParticlePeter
Hi, I'm getting the error mentioned in the subject. I can't find no reference neither to DOSNEWSIZE nor to Error 63 on the Optilink pages or google. Where can I find information about this error ? Is there a list which maps Optilink Error Numbers to Error Names ? Cheers, ParticlePeter !

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Graham Fawcett
On Wednesday, 23 May 2012 at 15:48:20 UTC, Paul wrote: On Monday, 14 May 2012 at 12:58:20 UTC, Graham Fawcett wrote: On Sunday, 13 May 2012 at 21:03:45 UTC, Paul wrote: I am reading a file that has a few extended ASCII codes (e.g. degree symdol). Depending on how I read the file in and what I

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Paul
On Wednesday, 23 May 2012 at 18:04:56 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 15:48:20 UTC, Paul wrote: On Monday, 14 May 2012 at 12:58:20 UTC, Graham Fawcett wrote: On Sunday, 13 May 2012 at 21:03:45 UTC, Paul wrote: I am reading a file that has a few extended ASCII codes

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Graham Fawcett
On Wednesday, 23 May 2012 at 18:43:04 UTC, Paul wrote: On Wednesday, 23 May 2012 at 18:04:56 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 15:48:20 UTC, Paul wrote: On Monday, 14 May 2012 at 12:58:20 UTC, Graham Fawcett wrote: On Sunday, 13 May 2012 at 21:03:45 UTC, Paul wrote: I am

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Paul
On Wednesday, 23 May 2012 at 19:01:53 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 18:43:04 UTC, Paul wrote: On Wednesday, 23 May 2012 at 18:04:56 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 15:48:20 UTC, Paul wrote: On Monday, 14 May 2012 at 12:58:20 UTC, Graham

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread H. S. Teoh
On Wed, May 23, 2012 at 09:09:27PM +0200, Paul wrote: On Wednesday, 23 May 2012 at 19:01:53 UTC, Graham Fawcett wrote: [...] So I think what you're trying to do is 1. read a Latin-1 file, into unicode (internally in D) 2. do splitLines(), etc., generating some result 3. Convert the result

Re: Simplified socket creation and handling

2012-05-23 Thread Jarl André
On Wednesday, 23 May 2012 at 13:39:09 UTC, Jarl André wrote: On Saturday, 19 May 2012 at 20:33:49 UTC, Nathan M. Swan wrote: On Friday, 18 May 2012 at 06:35:59 UTC, Jarl André wrote: I am a Java developer who is tired of java.nio and similar complex socket libraries. In Java you got

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Graham Fawcett
On Wednesday, 23 May 2012 at 19:09:29 UTC, Paul wrote: On Wednesday, 23 May 2012 at 19:01:53 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 18:43:04 UTC, Paul wrote: On Wednesday, 23 May 2012 at 18:04:56 UTC, Graham Fawcett wrote: On Wednesday, 23 May 2012 at 15:48:20 UTC, Paul

Re: druntime investigation troubles

2012-05-23 Thread Jacob Carlborg
On 2012-05-23 19:32, Denis Shelomovskij wrote: What call have you found in _d_criticalenter? By the way, `_STI_critical_init` is called before C main (uncomment printf's and check), so it is definitely called not by druntime. _STI_critical_init is called here: *

Re: druntime investigation troubles

2012-05-23 Thread Steven Schveighoffer
On Wed, 23 May 2012 15:46:16 -0400, Jacob Carlborg d...@me.com wrote: On 2012-05-23 19:32, Denis Shelomovskij wrote: What call have you found in _d_criticalenter? By the way, `_STI_critical_init` is called before C main (uncomment printf's and check), so it is definitely called not by

Re: unsynchronized access to primitive variables

2012-05-23 Thread Steven Schveighoffer
On Sat, 19 May 2012 04:16:39 -0400, luka8088 luka8...@owave.net wrote: Hello to all, I would like to know if D guarantees that access to primitive variable is atomic ? I was looking for any source of information that says anything about unsynchronized access to primitive variables. What

Re: std.range.put?

2012-05-23 Thread Steven Schveighoffer
On Mon, 21 May 2012 07:26:32 -0400, simendsjo simend...@gmail.com wrote: Shouldn't the following work? import std.range; import std.stdio; void main() { int[] a; a.reserve(10); //a.put(1); // Attempting to fetch the front of an empty array of int a.length = 1;

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Paul
The safest way is probably to read it as binary data (i.e. byte[]), then do the conversion into UTF8, then process it, and finally convert it back to latin-1 (in binary form) and output it. D assumes Unicode internally; if you try to read a Latin-1 file as char[], you may be running into

Re: Reading ASCII file with some codes above 127 (exten ascii)

2012-05-23 Thread Paul
This works, though it's ugly: foreach(line; uniS.splitLines()) { transcode(line, latinS); fout.writeln((cast(char[]) latinS)); } The Latin1String type, at the storage level, is a ubyte[]. By casting to char[], you can get a similar-to-string thing that writeln() can

D under Linux Mint

2012-05-23 Thread snow
Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I did both, adding dmd to the PATH and copied the executables into the lib

Re: D under Linux Mint

2012-05-23 Thread Kevin Cox
On May 23, 2012 5:48 PM, snow marcel.patzw...@googlemail.com wrote: Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I

Re: D under Linux Mint

2012-05-23 Thread Jonathan M Davis
On Wednesday, May 23, 2012 23:46:23 snow wrote: Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I did both, adding dmd to

Re: D under Linux Mint

2012-05-23 Thread jerro
On Wednesday, 23 May 2012 at 21:46:24 UTC, snow wrote: Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I did both, adding

Re: D under Linux Mint

2012-05-23 Thread Jordi Sayol
Al 23/05/12 23:46, En/na snow ha escrit: Hello, Ive tried to install D under Linux and followed the steps described on . this page http://dlang.org/dmd-linux.html . I checked all folders after every step and everything is where it should be. In the secound step I did both, adding dmd to the