Re: Synchronized classes have no public members

2015-10-24 Thread Spacen Jasset via Digitalmars-d
On Tuesday, 20 October 2015 at 18:15:05 UTC, Bruno Medeiros wrote: On 16/10/2015 08:02, Jacob Carlborg wrote: On 2015-10-16 08:49, Dicebot wrote: As far as I understand topic is about deprecating direct field access of synchronized classes, method calls in synhronized classes and `synchronize

Re: iterate over a directory, dealing with permission errors

2015-09-19 Thread Spacen Jasset via Digitalmars-d
On Friday, 18 September 2015 at 14:35:39 UTC, Dmitry Olshansky wrote: On 18-Sep-2015 15:03, Adrian Matoga wrote: On Friday, 18 September 2015 at 11:35:45 UTC, John Colvin wrote: Posting here instead of learn because I think it uncovers a design flaw void main(string[] args) { import std.f

Re: GDC vs dmd speed

2013-10-15 Thread Spacen Jasset
On 14/10/2013 22:22, Walter Bright wrote: On 10/14/2013 12:24 PM, Spacen Jasset wrote: dmd32 v2.063.2 with flags: ["-O", "-release", "-noboundscheck", "-inline"] gdc 4.6 (0.29.1-4.6.4-1ubuntu4) Which I assume might be v2.020? with flags: ["-O2"

Re: GDC vs dmd speed

2013-10-15 Thread Spacen Jasset
On 14/10/2013 22:06, bearophile wrote: Spacen Jasset: const float pi = 3.14159265f; float dx = cast(float)(Clock.currSystemTick.length % (TickDuration.ticksPerSec * 10)) / (TickDuration.ticksPerSec * 10); float xRot = sin(dx * pi * 2) * 0.4f + pi / 2; float yRot = cos(dx * pi

GDC vs dmd speed

2013-10-14 Thread Spacen Jasset
Hello, Whilst porting some C++ code I have discovered that the compiled output from the gdc compiler seems to be 47% quicker than the dmd compiler. The code I believe that is the 'busy' code is below. Although I could provide a complete test if anyone is interested. Is this an expected result

Re: std.parallelism is accepted into Phobos

2011-04-26 Thread Spacen Jasset
On 26/04/2011 18:37, Andrei Alexandrescu wrote: On 4/26/11 11:32 AM, Russel Winder wrote: On Tue, 2011-04-26 at 09:16 -0700, Sean Kelly wrote: Bootstrapping issue. Make is almost guaranteed to exist, while the fancier tools are not. That may be the case but Makefiles are either incomprehensib

Re: Twitter hashtag for D?

2011-04-16 Thread Spacen Jasset
On 30/07/2009 10:12, MIURA Masahiro wrote: > Walter Bright wrote: >> How about #d-lang ? >> >> #dpl ? > > I just tested those two. > Although noone else uses #d-lang, it seems that twitter.com > doesn't treat it as a hashtag (because it contains a dash?). > #dpl gives a few false positives. So wh

Re: LLVM Coding Standards

2011-04-15 Thread Spacen Jasset
On 12/04/2011 11:21, Mafi wrote: Am 12.04.2011 00:31, schrieb Spacen Jasset: std::getline(is, line); while (line.size() != 0) { ...some things... std::getline(is, line); } What's wrong with while( std::getline(is, line), (line.size() != 0) ) { //... some things } I mean, that'

Re: LLVM Coding Standards

2011-04-11 Thread Spacen Jasset
On 11/04/2011 20:58, spir wrote: [slightly OT] Hello, I'm reading (just for interest) the LLVM Coding Standards at http://llvm.org/docs/CodingStandards.html. Find them very interesting because their purposes are clearly explained. Below sample. Denis That seem all fairly sensible. It also r

Re: Well, it's been a total failure

2010-09-12 Thread Spacen Jasset
On 11/09/2010 23:52, Vladimir G. Ivanovic wrote: I'm running Fedora 13.x86_64 and I've tried various ways of getting a D compiler to work. None have succeeded. 1. a. I can't install dmd 2.048: # rpm -Uvh /downloads/dmd-2.048-0.i386.rpm error: Failed dependencies:

Re: Errors in TDPL

2010-06-21 Thread Spacen Jasset
Andrei Alexandrescu wrote: On 06/21/2010 05:35 PM, Spacen Jasset wrote: I am only on page ten, I believe I saw a minor typo somewhere in the preface, that's all so far. I look forward to pondering the rest in the coming days. oh yes. Preface "D is a language that attempts to consi

Re: Errors in TDPL

2010-06-21 Thread Spacen Jasset
I am only on page ten, I believe I saw a minor typo somewhere in the preface, that's all so far. I look forward to pondering the rest in the coming days. oh yes. Preface "D is a language that attempts to consistently do the right thing within the constraints it choose: sys" etc missing

Re: [OT] The One Hundred Year Data Model

2010-05-15 Thread Spacen Jasset
Justin Johansson wrote: Perhaps off topic for this NG, though certainly a good topic for LtU, but nevertheless D people might have some interesting insight on the topic of data models (for programming languages). So I'll begin with saying, "Forget the Hundred-Year Language" c.f. http://www.pau

Re: Patches, bottlenecks, OpenSource

2010-04-13 Thread Spacen Jasset
bearophile wrote: After the last posts about patches, I can write something myself about this topic :-) I am far from being an expert of big software projects, but I think I am now able to understand some things of the D project. I like D, it's an alive project, but from what I've seen D so fa

Re: Converting Optlink from Assembler to C

2009-11-30 Thread Spacen Jasset
Vladimir Panteleev wrote: On Mon, 30 Nov 2009 23:02:13 +0200, Walter Bright wrote: http://www.reddit.com/r/programming/comments/a9lxo/assembler_to_c/ The link posted on reddit in broken: "You are not authorised to view this resource. You need to login." Broken link: http://dobbscodetal

Re: CPAN for D

2009-11-11 Thread Spacen Jasset
Clay Smith wrote: Bill Baxter wrote: On Tue, Nov 10, 2009 at 3:08 PM, Walter Bright wrote: http://www.reddit.com/r/programming/comments/a2nfz/guido_people_want_cpan/ http://search.cpan.org/ Over and over, I hear that CPAN is one of the great reasons people use Java. Such for D would be a

Re: What is an ANNOTATION?

2009-11-11 Thread Spacen Jasset
sclytrack wrote: == Quote from Lars T. Kyllingstad (pub...@kyllingen.nospamnet)'s article Lars T. Kyllingstad wrote: So, it seems that @annotations will become a part of D. But which of the existing attributes should become annotations, and which should remain as they are? What is the rule for

Re: bug #2607 building DMD against and older version of glibc [was: objdump src]

2009-11-11 Thread Spacen Jasset
dsimcha wrote: == Quote from Spacen Jasset (spacenjas...@yahoo.co.uk)'s article Spacen Jasset wrote: I am trying to build dmd such that it will work on older versions of ...stuff Given that there will be a book out in the fairly near future, and people may therefore want to run dmd o

bug #2607 building DMD against and older version of glibc [was: objdump src]

2009-11-11 Thread Spacen Jasset
Spacen Jasset wrote: I am trying to build dmd such that it will work on older versions of ...stuff Given that there will be a book out in the fairly near future, and people may therefore want to run dmd on GNU/Linux. Perhaps bug #2607 would be useful to fix. That is; ensure that dmd will

objdump src

2009-11-08 Thread Spacen Jasset
I am trying to build dmd such that it will work on older versions of GNU/Linux as well as newer versions with a single binary. This requires some special attention for libc++ and lib_gcc, (or a link loaded wrapper script) I have proceeded like this to start off: --- linux.mak.orig 2009-1

Re: "with" should be deprecated with extreme prejudice

2009-05-18 Thread Spacen Jasset
BCS wrote: Hello Andrei, Robert Fraser wrote: This. Just issue an error/warning if something in the with shadows something outside. That way, if the struct/class/template/whatever changes, affected code will be notified. No warning, error! warning if it exist, error if used? It proba

Re: D1 and Phobos Fixes

2009-05-15 Thread Spacen Jasset
Walter Bright wrote: Spacen Jasset wrote: This goes for the compiler too, but presumably a lot of the the code is shared and it isn't so easy. Many compiler patches get posted to bugzilla. About half of them are correct, the other half aren't (often fixing the symptom rather than

Re: D1 and Phobos Fixes

2009-05-14 Thread Spacen Jasset
Jason House wrote: Spacen Jasset Wrote: Since D1 is stable I wonder why bugs in Phobos1 and/or D can't be ironed out quicker by allowing certain members of the D community to commit changes to phobos directly. This goes for the compiler too, but presumably a lot of the the code is s

D1 and Phobos Fixes

2009-05-14 Thread Spacen Jasset
Since D1 is stable I wonder why bugs in Phobos1 and/or D can't be ironed out quicker by allowing certain members of the D community to commit changes to phobos directly. This goes for the compiler too, but presumably a lot of the the code is shared and it isn't so easy. I presume that all th

Re: OT: Worthwhile *security-competent* web host?

2009-02-20 Thread Spacen Jasset
Nick Sabalausky wrote: Anyone know of a reliable, reasonably-priced web host that...and here's the key part...actually understands even the most basic security concepts? ... snip Not really, no. In which country? I have some suggestions if you can live with out a control panel and therefore

Re: Glibc hell

2009-01-26 Thread Spacen Jasset
Walter Bright wrote: Spacen Jasset wrote: For us Linux DMD users a bug should be raised against dmd so that Walter will hopefully compile against an older glibc on future releases. Yet when I do that the other half of the linux users have a problem. Do you know what problems they had Walter

Re: Glibc hell

2009-01-26 Thread Spacen Jasset
Steven Schveighoffer wrote: "Spacen Jasset" wrote Steven Schveighoffer wrote: ...chop For us Linux DMD users a bug should be raised against dmd so that Walter will hopefully compile against an older glibc on future releases. As long as it doesn't cause weird problems. I

Re: Glibc hell

2009-01-23 Thread Spacen Jasset
Steven Schveighoffer wrote: "Spacen Jasset" wrote Steven Schveighoffer wrote: You may have to statically link (which, of course, is not officially supported by glibc, for very stupid reasons). I am not sure that the reasons are "stupid". It is similar, for example to ker

Re: Glibc hell

2009-01-21 Thread Spacen Jasset
Steven Schveighoffer wrote: "dsimcha" wrote Apparently, DMD for Linux requires a non-ancient version of Glibc to work, and worse yet, all the stuff compiled by it requires a similarly non-ancient version. The problem is that I'm trying to run some jobs on a cluster that has an ancient versio

Re: Glibc hell

2009-01-21 Thread Spacen Jasset
dsimcha wrote: Apparently, DMD for Linux requires a non-ancient version of Glibc to work, and worse yet, all the stuff compiled by it requires a similarly non-ancient version. The problem is that I'm trying to run some jobs on a cluster that has an ancient version of Linux that my sysadmin doesn

Re: Threads

2008-11-19 Thread Spacen Jasset
DF wrote: /** * Testing. */ module Test; import std.thread; import std.stdio; class DerivedThread : Thread { this() { super(&run); } private : int run() { writefln("Derived thread running.\n" ); return 0; } } void main() { Thread derived