Re: Integer conversions too pedantic in 64-bit

2011-02-19 Thread Max Samukha
On 02/19/2011 07:39 AM, Walter Bright wrote: Jonathan M Davis wrote: Vader had no clue So much for his force! How can one expect consistency from a fairytale?

Re: DMD 2.0562

2011-02-19 Thread Russel Winder
On Fri, 2011-02-18 at 17:24 -0800, Jonathan M Davis wrote: [ . . . ] No, they're definitely _not_ the same - at least not in the zip file. Maybe the deb or the rpm is messed up, but the zip file is fine. It _does_ look like -L-lrt was added in dmd 2.051 (though I'm not sure if it was

DMD and 64-bit

2011-02-19 Thread Russel Winder
Am I correct in assuming that DMD generates 32-bit by default and that for 64-bit you have to give the -m64 option? Is the eventual plan to use the natural word length of the platform as the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the option to force something different using

Re: DMD and 64-bit

2011-02-19 Thread Denis Koroskin
On Sat, 19 Feb 2011 12:12:25 +0300, Russel Winder rus...@russel.org.uk wrote: Am I correct in assuming that DMD generates 32-bit by default and that for 64-bit you have to give the -m64 option? Is the eventual plan to use the natural word length of the platform as the default, i.e. 32-bit on

Re: DMD and 64-bit

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 01:12:25 Russel Winder wrote: Am I correct in assuming that DMD generates 32-bit by default and that for 64-bit you have to give the -m64 option? Is the eventual plan to use the natural word length of the platform as the default, i.e. 32-bit on 32-bit and 64-bit

Re: shared libraries in D

2011-02-19 Thread Iain Buclaw
== Quote from Iain Buclaw (ibuc...@ubuntu.com)'s article == Quote from Christian Kamm (kamm-incasoftw...@removethis.de)'s article Iain Buclaw wrote: == Quote from Christian Kamm (kamm-incasoftw...@removethis.de)'s article Iain Buclaw wrote: Will be making shared libraries default in

Re: Integer conversions too pedantic in 64-bit

2011-02-19 Thread Jeff Nowakowski
On 02/18/2011 08:39 PM, Walter Bright wrote: Huge? How about it never occurs to Vader to search for Luke at the most obvious location in the universe - his nearest living relatives (Uncle Owen)? That's just the start of the ludicrousness. Ok, I have no right to be annoyed, but what an

float equality

2011-02-19 Thread spir
Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4);// pass assert(-1.1 + 3.3 + 2.2 == 4.4);// fail assert(-1.1 + 3.3 == 2.2); // fail } There is approxEquals in stdlib, right; but shouldn't

Re: float equality

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 04:06:38 spir wrote: Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4);// pass assert(-1.1 + 3.3 + 2.2 == 4.4);// fail assert(-1.1 + 3.3 == 2.2); //

Re: float equality

2011-02-19 Thread Simon Buerger
On 19.02.2011 13:06, spir wrote: Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4); // pass assert(-1.1 + 3.3 + 2.2 == 4.4); // fail assert(-1.1 + 3.3 == 2.2); // fail } There is approxEquals in stdlib, right; but shouldn't builtin

Re: float equality

2011-02-19 Thread bearophile
Jonathan M Davis: The thing is, of course, that actual equality sucks for floating point values. So much, that some people have proposed to deprecate the normal FP equality. MISRA-C disallows them. When you see a == among FP values is often a code smell. Bye, bearophile

Re: float equality

2011-02-19 Thread spir
On 02/19/2011 01:21 PM, Jonathan M Davis wrote: On Saturday 19 February 2011 04:06:38 spir wrote: Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4);// pass assert(-1.1 + 3.3 + 2.2 == 4.4);// fail

Re: float equality

2011-02-19 Thread bearophile
spir: Well, about consistency, I meant cases 2 vs 3. Floating point values are not the real values you are used in mathematics. They are approximations, and generally for them associative and distributive properties don't hold: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems

Re: O(N) Garbage collection?

2011-02-19 Thread dsimcha
BTW, here are the timings if I remove the GC.BlkAttr.NO_SCAN, meaning that everything gets scanned. Said timings aren't drastically different. Something is seriously wrong here. Collected a 10 megabyte heap in 1 milliseconds. Collected a 50 megabyte heap in 3 milliseconds. Collected a 200

Re: O(N) Garbage collection?

2011-02-19 Thread bearophile
dsimcha: BTW, here are the timings if I remove the GC.BlkAttr.NO_SCAN, meaning that everything gets scanned. Said timings aren't drastically different. Something is seriously wrong here. Languages like Clojure, Scala, Boo, etc, start their development on a virtual machine where there is

Re: O(N) Garbage collection?

2011-02-19 Thread dsimcha
You may be right, but: 1. Reinventing the wheel has its advantages in that you get to step back and reevaluate things and remove all the cruft that built up on the existing wheel. 2. I'm guessing this is a silly bug somewhere rather than a deep design flaw, and that it can easily be

Re: float equality

2011-02-19 Thread Don
spir wrote: On 02/19/2011 01:21 PM, Jonathan M Davis wrote: On Saturday 19 February 2011 04:06:38 spir wrote: Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4);// pass assert(-1.1 + 3.3 + 2.2 ==

Re: 64bit phobos on Windows?

2011-02-19 Thread Richard Webb
Is a Windows 64 bit version of GDC any closer than a version of DMD? I guess that fixing Phobos will be useful there as well.

Re: O(N) Garbage collection?

2011-02-19 Thread Ulrik Mikaelsson
Just a thought; I guess the references to the non-GC-scanned strings are held in GC-scanned memory, right? Are the number of such references also increased linearly? I'm not a GC-expert, but if so, wouldn't that pretty much force the GC to do at least one follow-up of every reference, before

Re: 64bit phobos on Windows?

2011-02-19 Thread Trass3r
Compiling GDC on Windows is a PITA. I wish someone released prebuilt versions.

Re: float equality

2011-02-19 Thread spir
On 02/19/2011 02:41 PM, bearophile wrote: spir: Well, about consistency, I meant cases 2 vs 3. Floating point values are not the real values you are used in mathematics. They are approximations, and generally for them associative and distributive properties don't hold:

Re: O(N) Garbage collection?

2011-02-19 Thread dsimcha
On 2/19/2011 12:50 PM, Ulrik Mikaelsson wrote: Just a thought; I guess the references to the non-GC-scanned strings are held in GC-scanned memory, right? Are the number of such references also increased linearly? Well, first of all, the benchmark I posted seems to indicate otherwise. Second

Re: float equality

2011-02-19 Thread David Nadlinger
On 2/19/11 8:30 PM, spir wrote: Right, but then what are we supposed to do? Just check for strict equality if you are sure you need it, and use a fuzzy comparison in all other cases? Sorry, I don't quite get your problem… David

OT: O(N) Garbage collection?

2011-02-19 Thread Trass3r
Note: I know I could make the program in question a lot more space efficient, and that's what I ended up doing. It works now. It's just that it was originally written for yeast, where space efficiency is obviously not a concern, and I would have liked to just try a one-off calculation

Re: float equality

2011-02-19 Thread spir
On 02/19/2011 04:40 PM, Don wrote: spir wrote: On 02/19/2011 01:21 PM, Jonathan M Davis wrote: On Saturday 19 February 2011 04:06:38 spir wrote: Hello, What do you think of this? unittest { assert(-1.1 + 2.2 == 1.1); // pass assert(-1.1 + 2.2 + 3.3 == 4.4); // pass assert(-1.1 + 3.3 + 2.2

Re: greatest common divisor implementation

2011-02-19 Thread Don
Matthias Walter wrote: 1. Are there any further suggestions on the implementations / Did I forget something? Are benchmarks done with BigInt and long too? (If you test bigints you need bigger numbers too, and to test that the results are correct). I'd like to work on the BigInt things but

Re: O(N) Garbage collection?

2011-02-19 Thread retard
Sat, 19 Feb 2011 14:32:27 -0500, dsimcha wrote: On 2/19/2011 12:50 PM, Ulrik Mikaelsson wrote: Just a thought; I guess the references to the non-GC-scanned strings are held in GC-scanned memory, right? Are the number of such references also increased linearly? Well, first of all, the

Re: OT: O(N) Garbage collection?

2011-02-19 Thread dsimcha
On 2/19/2011 2:46 PM, Trass3r wrote: Note: I know I could make the program in question a lot more space efficient, and that's what I ended up doing. It works now. It's just that it was originally written for yeast, where space efficiency is obviously not a concern, and I would have liked to just

Re: tooling quality and some random rant

2011-02-19 Thread nedbrek
Hello, Walter Bright newshou...@digitalmars.com wrote in message news:ijnt3o$22dm$1...@digitalmars.com... nedbrek wrote: Reordering happens in the scheduler. A simple model is Fetch, Schedule, Retire. Fetch and retire are done in program order. For code that is hitting well in the cache,

Re: tooling quality and some random rant

2011-02-19 Thread distcc
nedbrek Wrote: Hello, Walter Bright newshou...@digitalmars.com wrote in message news:ijnt3o$22dm$1...@digitalmars.com... nedbrek wrote: Reordering happens in the scheduler. A simple model is Fetch, Schedule, Retire. Fetch and retire are done in program order. For code that is

Re: Integer conversions too pedantic in 64-bit

2011-02-19 Thread Nick Sabalausky
Russel Winder rus...@russel.org.uk wrote in message news:mailman.1784.1298102229.4748.digitalmar...@puremagic.com... Sadly all the effects companies are using C++ and Python, can D get traction as the language of choice for the post-production companies? IIRC, Someone here said that they had

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Trass3r u...@known.com wrote in message news:op.vq5xlfto3ncmek@enigma... Compiling GDC on Windows is a PITA. I wish someone released prebuilt versions. Compiling GCC on Windows is a PITA.

Re: 64bit phobos on Windows?

2011-02-19 Thread Andrej Mitrovic
That's why we have TDM: http://tdm-gcc.tdragon.net/ At least for GCC.

Re: 64bit phobos on Windows?

2011-02-19 Thread Iain Buclaw
== Quote from Nick Sabalausky (a@a.a)'s article Trass3r u...@known.com wrote in message news:op.vq5xlfto3ncmek@enigma... Compiling GDC on Windows is a PITA. I wish someone released prebuilt versions. Compiling GCC on Windows is a PITA. Windows is a PITA, period. I tried using it as an

Re: O(N) Garbage collection?

2011-02-19 Thread Steven Schveighoffer
On Sat, 19 Feb 2011 00:03:27 -0500, dsimcha dsim...@yahoo.com wrote: I've been trying out D's new 64-bit compiler and a serious barrier to using it effectively seems to be abysmal garbage collection performance with large heaps. It seems like the time for a garbage collection to run scales

Re: 64bit phobos on Windows?

2011-02-19 Thread Andrej Mitrovic
Disregard my TDM link, I didn't realize GCC has to be built from the ground up for GDC (that's the impression I get from the looks of things on the web). Are there no GDC binaries for D2/Win32?

Re: tooling quality and some random rant

2011-02-19 Thread nedbrek
distcc c@p.p wrote in message news:ijp9ji$1hvd$1...@digitalmars.com... nedbrek Wrote: Walter Bright newshou...@digitalmars.com wrote in message news:ijnt3o$22dm$1...@digitalmars.com... nedbrek wrote: Also, macro op fusion allows you can get a branch along with the last instruction in

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1800.1298152676.4748.digitalmar...@puremagic.com... That's why we have TDM: http://tdm-gcc.tdragon.net/ At least for GCC. Ah cool. Kind of like a DJGPP: The Next Generation

GC.forget() (Was: O(N) Garbage collection?)

2011-02-19 Thread dsimcha
Yeh, I rebuilt the same model in my head over the past few hours (like you, I had a good mental model of the GC at one point but have slowly forgotten it). Unfortunately it looks like there's no easy fix. It also seems like gcbits are allocated as 1 bit for every 16 bytes of heap space, no

Re: GC.forget() (Was: O(N) Garbage collection?)

2011-02-19 Thread dsimcha
...and actually, forget() would only work for arrays of primitives, because if the object has pointers, you can change what these point to after calling forget() and Bad Things Can Happen. On 2/19/2011 6:17 PM, dsimcha wrote: Yeh, I rebuilt the same model in my head over the past few hours

Re: 64bit phobos on Windows?

2011-02-19 Thread Andrej Mitrovic
I'm very interested in trying out GDC with D2 on Win32. I fear compiling GDC is gonna be tricky though. Has anyone had success with it? Hand me a few tips before I venture into the unknown, please! (and if I'm successful I'll upload the binaries somewhere, maybe on sourceforge).

Re: DMD and 64-bit

2011-02-19 Thread Walter Bright
Russel Winder wrote: Am I correct in assuming that DMD generates 32-bit by default and that for 64-bit you have to give the -m64 option? Is the eventual plan to use the natural word length of the platform as the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the option to force

Re: float equality

2011-02-19 Thread Walter Bright
spir wrote: So, maybe, default '==' should perform approxEqual if needed? That'll just trade one set of problems for another.

Re: GC.forget() (Was: O(N) Garbage collection?)

2011-02-19 Thread bearophile
dsimcha: Yeh, I rebuilt the same model in my head over the past few hours (like you, I had a good mental model of the GC at one point but have slowly forgotten it). For serious D programmers having such model in the head is so important that I'd like a short page with such explanations

Re: float equality

2011-02-19 Thread bearophile
Walter: That'll just trade one set of problems for another. But the second set of problems may be smaller :-) This happens all the time. Bye, bearophile

Optional module names export list

2011-02-19 Thread bearophile
In a Python module if you define a name with a starting underscore, that name will be private to that module, and it will not be imported if a command from module_name import * is used: class Name1: pass def name2(): pass _private_name3 = 3 name4 = 4 In Python there is another optional way to

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Iain Buclaw ibuc...@ubuntu.com wrote in message news:ijpgap$1shk$1...@digitalmars.com... == Quote from Nick Sabalausky (a@a.a)'s article Trass3r u...@known.com wrote in message news:op.vq5xlfto3ncmek@enigma... Compiling GDC on Windows is a PITA. I wish someone released prebuilt versions.

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1802.1298158001.4748.digitalmar...@puremagic.com... I'm very interested in trying out GDC with D2 on Win32. I fear compiling GDC is gonna be tricky though. Has anyone had success with it? Hand me a few tips before I

Re: 64bit phobos on Windows?

2011-02-19 Thread Andrej Mitrovic
On 2/20/11, Nick Sabalausky a@a.a wrote: Eveything's probably out-of-date enough to useless by now, but FWIW I wrote a little bit about it here: http://www.semitwist.com/articles/article/view/d-on-gba-nds-progress-thanks-to-oopman Okay, I've collected a few links to get me started. Thanks

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:ijpmbc$25vv$1...@digitalmars.com... Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1802.1298158001.4748.digitalmar...@puremagic.com... I'm very interested in trying out GDC with D2 on Win32. I fear compiling GDC is gonna

Re: DMD and 64-bit

2011-02-19 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1787.1298108224.4748.digitalmar...@puremagic.com... On Saturday 19 February 2011 01:12:25 Russel Winder wrote: Am I correct in assuming that DMD generates 32-bit by default and that for 64-bit you have to give the -m64

Re: DMD and 64-bit

2011-02-19 Thread Andrej Mitrovic
On 2/20/11, Nick Sabalausky a@a.a wrote: I don't mean this as anti-64bit trolling, just a genuine question, but what would be the point of a 64-bit build of DMD? Some of us would like to play Crysis at compile-time.

Re: 64bit phobos on Windows?

2011-02-19 Thread Trass3r
I'm very interested in trying out GDC with D2 on Win32. I fear compiling GDC is gonna be tricky though. Has anyone had success with it? Hand me a few tips before I venture into the unknown, please! (and if I'm successful I'll upload the binaries somewhere, maybe on sourceforge). You need msys

Re: 64bit phobos on Windows?

2011-02-19 Thread Trass3r
http://classicshell.sourceforge.net; might fix some of my Win7 complaints), Thanks for the link. The copy UI and status bar issues are indeed annoying.

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1803.1298161166.4748.digitalmar...@puremagic.com... On 2/20/11, Nick Sabalausky a@a.a wrote: Eveything's probably out-of-date enough to useless by now, but FWIW I wrote a little bit about it here:

Feature requests

2011-02-19 Thread Bekenn
Hello, I'm new here. I've read through some of the archives, but it's unclear to me if this is the correct place to propose and discuss new language features; would someone point me in the right direction? I've been playing around with the language for a few weeks now, and I have to say I'm

Re: Optional module names export list

2011-02-19 Thread spir
On 02/20/2011 12:46 AM, bearophile wrote: In a Python module if you define a name with a starting underscore, that name will be private to that module, and it will not be imported if a command from module_name import * is used: class Name1: pass def name2(): pass _private_name3 = 3 name4 = 4

Re: Feature requests

2011-02-19 Thread Andrei Alexandrescu
On 2/19/11 6:35 PM, Bekenn wrote: Hello, I'm new here. I've read through some of the archives, but it's unclear to me if this is the correct place to propose and discuss new language features; would someone point me in the right direction? This is definitely the right place. Welcome and thanks

Re: DMD and 64-bit

2011-02-19 Thread Walter Bright
Nick Sabalausky wrote: I don't mean this as anti-64bit trolling, just a genuine question, but what would be the point of a 64-bit build of DMD? (Note: I'm talking about host, not target). Just to compile projects that have (on the order of) gigabytes of source? Some machines (in particular,

Re: 64bit phobos on Windows?

2011-02-19 Thread Nick Sabalausky
Trass3r u...@known.com wrote in message news:op.vq6d47mm3ncmek@enigma... http://classicshell.sourceforge.net; might fix some of my Win7 complaints), Thanks for the link. The copy UI and status bar issues are indeed annoying. I've never actually tried Classic Shell since my sister's computer

Re: 64bit phobos on Windows?

2011-02-19 Thread Andrej Mitrovic
On 2/20/11, Trass3r u...@known.com wrote: I'm very interested in trying out GDC with D2 on Win32. I fear compiling GDC is gonna be tricky though. Has anyone had success with it? Hand me a few tips before I venture into the unknown, please! (and if I'm successful I'll upload the binaries

Re: DMD and 64-bit

2011-02-19 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1804.1298161732.4748.digitalmar...@puremagic.com... On 2/20/11, Nick Sabalausky a@a.a wrote: I don't mean this as anti-64bit trolling, just a genuine question, but what would be the point of a 64-bit build of DMD? Some

Re: DMD and 64-bit

2011-02-19 Thread Steven Schveighoffer
On Sat, 19 Feb 2011 19:21:05 -0500, Nick Sabalausky a@a.a wrote: Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1787.1298108224.4748.digitalmar...@puremagic.com... On Saturday 19 February 2011 01:12:25 Russel Winder wrote: Am I correct in assuming that DMD generates 32-bit

Re: DMD and 64-bit

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 16:21:05 Nick Sabalausky wrote: Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1787.1298108224.4748.digitalmar...@puremagic.com... On Saturday 19 February 2011 01:12:25 Russel Winder wrote: Am I correct in assuming that DMD generates 32-bit

Re: DMD and 64-bit

2011-02-19 Thread Daniel Gibson
Am 20.02.2011 03:22, schrieb Jonathan M Davis: On Saturday 19 February 2011 16:21:05 Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message news:mailman.1787.1298108224.4748.digitalmar...@puremagic.com... On Saturday 19 February 2011 01:12:25 Russel Winder wrote: Am I

Re: Optional module names export list

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 15:46:51 bearophile wrote: In a Python module if you define a name with a starting underscore, that name will be private to that module, and it will not be imported if a command from module_name import * is used: class Name1: pass def name2(): pass

Re: DMD and 64-bit

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 18:27:17 Daniel Gibson wrote: Am 20.02.2011 03:22, schrieb Jonathan M Davis: On Saturday 19 February 2011 16:21:05 Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message news:mailman.1787.1298108224.4748.digitalmar...@puremagic.com...

[OT] Webpage design and Name That Color!

2011-02-19 Thread Nick Sabalausky
I've been updating the docs for my Goldie project in preparation of a new release, and figured the they looked a bit...sterile, so I've tweaked the CSS a bit. And, well, I think I've stumbled upon a heisencolor...(or a heisenhue, rather) Without reading any replies or cheating by inspecting

Re: Feature requests

2011-02-19 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:ijpogm$29au$1...@digitalmars.com... On 2/19/11 6:35 PM, Bekenn wrote: Hello, I'm new here. I've read through some of the archives, but it's unclear to me if this is the correct place to propose and discuss new language

Re: O(N) Garbage collection?

2011-02-19 Thread Nick Sabalausky
retard r...@tard.com.invalid wrote in message news:ijp7pa$1d34$1...@digitalmars.com... Sat, 19 Feb 2011 14:32:27 -0500, dsimcha wrote: On 2/19/2011 12:50 PM, Ulrik Mikaelsson wrote: Just a thought; I guess the references to the non-GC-scanned strings are held in GC-scanned memory, right? Are

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Torarin
warm grey

Re: O(N) Garbage collection?

2011-02-19 Thread Nick Sabalausky
dsimcha dsim...@yahoo.com wrote in message news:ijp61d$1bu1$1...@digitalmars.com... On 2/19/2011 12:50 PM, Ulrik Mikaelsson wrote: Just a thought; I guess the references to the non-GC-scanned strings are held in GC-scanned memory, right? Are the number of such references also increased

Re: DMD and 64-bit

2011-02-19 Thread Daniel Gibson
Am 20.02.2011 03:49, schrieb Jonathan M Davis: On Saturday 19 February 2011 18:27:17 Daniel Gibson wrote: Am 20.02.2011 03:22, schrieb Jonathan M Davis: On Saturday 19 February 2011 16:21:05 Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Daniel Gibson
Am 20.02.2011 03:53, schrieb Nick Sabalausky: I've been updating the docs for my Goldie project in preparation of a new release, and figured the they looked a bit...sterile, so I've tweaked the CSS a bit. And, well, I think I've stumbled upon a heisencolor...(or a heisenhue, rather) Without

Re: GC.forget() (Was: O(N) Garbage collection?)

2011-02-19 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:ijpkh8$232r$1...@digitalmars.com... dsimcha: Yeh, I rebuilt the same model in my head over the past few hours (like you, I had a good mental model of the GC at one point but have slowly forgotten it). For serious D programmers

Re: O(N) Garbage collection?

2011-02-19 Thread dsimcha
On 2/19/2011 10:21 PM, Nick Sabalausky wrote: Out of curiosity, roughly how many, umm characters (I forget the technical term for each T, G, etc), are in each yeast gene, and how many genes do they have? (Humans have, umm, was it 26? My last biology class was ages ago.) It varies massively,

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 18:53:15 Nick Sabalausky wrote: I've been updating the docs for my Goldie project in preparation of a new release, and figured the they looked a bit...sterile, so I've tweaked the CSS a bit. And, well, I think I've stumbled upon a heisencolor...(or a heisenhue,

Re: DMD and 64-bit

2011-02-19 Thread Walter Bright
Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message news:ijpp2j$2a5r$1...@digitalmars.com... Some machines (in particular, FreeBSD) do not support mixed mode development. (Yes, I know FreeBSD does in theory, but I could never get it to work.) By that, do you

Re: O(N) Garbage collection?

2011-02-19 Thread Nick Sabalausky
dsimcha dsim...@yahoo.com wrote in message news:ijq2bl$2opj$1...@digitalmars.com... On 2/19/2011 10:21 PM, Nick Sabalausky wrote: Out of curiosity, roughly how many, umm characters (I forget the technical term for each T, G, etc), are in each yeast gene, and how many genes do they have?

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Andrej Mitrovic
It shows as olive green to me. This is because my monitor has horrible yellows. I can see in a color picker that it's actually a dark shade of yellow though.

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Daniel Gibson
Am 20.02.2011 04:55, schrieb Andrej Mitrovic: It shows as olive green to me. This is because my monitor has horrible yellows. I can see in a color picker that it's actually a dark shade of yellow though. Not really, more like something between a dark yellow and light grey (and more blue would

Re: O(N) Garbage collection?

2011-02-19 Thread retard
Sat, 19 Feb 2011 22:15:52 -0500, Nick Sabalausky wrote: retard r...@tard.com.invalid wrote in message news:ijp7pa$1d34$1...@digitalmars.com... Sat, 19 Feb 2011 14:32:27 -0500, dsimcha wrote: On 2/19/2011 12:50 PM, Ulrik Mikaelsson wrote: Just a thought; I guess the references to the

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Andrej Mitrovic
No I think what really drives people insane is 20pixel fonts with super-displaced dropshadows. Or websites which hijack your browser and do things like hide your mouse cursor for no reason, disable selection of text, make the back button useless, add useless integrated taskbars at the bottom.

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Daniel Gibson
Am 20.02.2011 05:39, schrieb Andrej Mitrovic: No I think what really drives people insane is 20pixel fonts with super-displaced dropshadows. Or websites which hijack your browser and do things like hide your mouse cursor for no reason, disable selection of text, make the back button useless, add

Re: float equality

2011-02-19 Thread Walter Bright
bearophile wrote: Walter: That'll just trade one set of problems for another. But the second set of problems may be smaller :-) There's a total lack of evidence for that. Furthermore, 1. Roundoff error is not of a fixed magnitude. 2. A user may choose to ignore roundoff errors, but that

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Andrej Mitrovic
I like the Never used a parsing tool? bit. Seems like something I'd read.

Mac OSX std.datetime / Posix daylight variable

2011-02-19 Thread Jonathan M Davis
Posix defines the tzset function along with a few helper items. From the Linux man page: extern int daylight; extern long timezone; extern char *tzname[2]; void tzset(void); It seems that while these _are_ Posix, not all Posix systems declare all of them (which baffles me, but that's the

Re: float equality

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 20:46:50 Walter Bright wrote: bearophile wrote: Walter: That'll just trade one set of problems for another. But the second set of problems may be smaller :-) There's a total lack of evidence for that. Furthermore, 1. Roundoff error is not of a fixed

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1819.1298177938.4748.digitalmar...@puremagic.com... I like the Never used a parsing tool? bit. Seems like something I'd read. It really just refers people to the Getting Started section (which is aimed at people new to

Re: Feature requests

2011-02-19 Thread Bekenn
On 2/19/2011 6:57 PM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:ijpogm$29au$1...@digitalmars.com... On 2/19/11 6:35 PM, Bekenn wrote: Hello, I'm new here. I've read through some of the archives, but it's unclear to me if this is the correct

Re: [OT] Webpage design and Name That Color!

2011-02-19 Thread Nick Sabalausky
Daniel Gibson metalcae...@gmail.com wrote in message news:ijq6io$in$5...@digitalmars.com... Am 20.02.2011 05:39, schrieb Andrej Mitrovic: No I think what really drives people insane is 20pixel fonts with super-displaced dropshadows. Or websites which hijack your browser and do things like

Do findSplit, findSplitBefore, and findSplitAfter make until unnecessary?

2011-02-19 Thread Jonathan M Davis
With the most recent release, we got findSplit, findSplitBefore, and findSplitAfter in std.algorithm, which are all very useful and cool. However, in light of what they can do, I'm wondering if we really need std.algorithm.until? It seems to me that the findSplit* functions give you that

Re: float equality

2011-02-19 Thread Walter Bright
Jonathan M Davis wrote: Honestly, the more that I learn about and deal with floating point numbers, the more I wonder why we don't just use fixed point. Obviously that can be a bit limiting for the size of the number (on either side of the decimal) - particularly in 32-bit land - but with

Re: float equality

2011-02-19 Thread Walter Bright
Walter Bright wrote: Bottom line is, if you work with numbers, you've got to pay attention to roundoff error and other mechanical issues in deriving answers, whether you're using a calculator, a computer, a slide rule, by hand, whatever. If you don't, you are incompetent. I mean you

Re: float equality

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 23:09:51 Walter Bright wrote: Walter Bright wrote: Bottom line is, if you work with numbers, you've got to pay attention to roundoff error and other mechanical issues in deriving answers, whether you're using a calculator, a computer, a slide rule, by hand,

Feature request: noexport keyword

2011-02-19 Thread Bekenn
The export keyword is a protection attribute, along with private, package, protected, and public. This means that it can be used with the same syntax as any of those other attributes; for instance, if creating a D header for an existing Windows DLL file, you might do something like this:

Re: Feature request: noexport keyword

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 23:19:39 Bekenn wrote: The export keyword is a protection attribute, along with private, package, protected, and public. This means that it can be used with the same syntax as any of those other attributes; for instance, if creating a D header for an existing

Re: Feature request: noexport keyword

2011-02-19 Thread Nick Sabalausky
Bekenn leav...@alone.com wrote in message news:ijqffm$6lk$1...@digitalmars.com... The export keyword is a protection attribute, along with private, package, protected, and public. This means that it can be used with the same syntax as any of those other attributes; for instance, if

Re: datetime fails with undefined reference

2011-02-19 Thread Russel Winder
Jonathan, On Fri, 2011-02-18 at 17:28 -0800, Jonathan M Davis wrote: On Friday, February 18, 2011 16:27:23 Russel Winder wrote: As noted in my earlier email on the other list, I too got this problem. Fromn what I can tell 1.066 and 2.051 have dmd.conf files but there is no such thing in

Re: datetime fails with undefined reference

2011-02-19 Thread Jonathan M Davis
On Saturday 19 February 2011 04:39:21 Russel Winder wrote: Jonathan, On Fri, 2011-02-18 at 17:28 -0800, Jonathan M Davis wrote: On Friday, February 18, 2011 16:27:23 Russel Winder wrote: As noted in my earlier email on the other list, I too got this problem. Fromn what I can tell 1.066

  1   2   >