Re: Statistics library

2008-10-24 Thread Walter Bright

Andrei Alexandrescu wrote:
If the community is interested, I'd be glad to take over your code and 
put it in Phobos.


I'm interested.


Re: DMD 1.036 and 2.020 releases

2008-10-24 Thread digited
Bill Baxter Wrote:
 
 I have no idea why the generated code got bigger again, but it's far
 from being the first time.
 Check the graph here:
 http://www.billbaxter.com/techblog/?p=9
 
 
 --bb

I thought this bug was a feature... Back to 1.035 then.


Re: DMD 1.036 and 2.020 releases

2008-10-24 Thread torhu

digited wrote:

torhu Wrote:



I tried building DWT with -lib when that feature was first added.  -lib 
seems to be broken somehow, because just compiling one file at a time 
results in a much smaller .lib file.


That's normal (really a feature, not a bug) - -lib creates more than one 
object file from a module to make executables smaller (by linking not the full module 
object file, but it's piece that the executable really needs), it also does not any IO 
with hdd, all compiling and linking in RAM, so creating static libs is extremely fast and 
doesn't produce object files as output.

I've just compared -lib results from 1.035 and 1.036, it now works 
differently.


Sorry, what I meant to say was that the executable ends up bigger when 
using libs created with -lib.


Re: Adding Unicode operators to D

2008-10-24 Thread Simen Kjaeraas
On Fri, 24 Oct 2008 18:28:51 +0200, Bruno Medeiros  
[EMAIL PROTECTED] wrote:



Andrei Alexandrescu wrote:

Please vote up before the haters take it down, and discuss:
  
http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/  
   Andrei


I'm unsure about this idea.

I don't know if it would be worthwhile, but I would say there are two  
aspects that likely would need to be observed for this to work out  
favorably:


* Having non-unicode versions of the symbols/keywords available in  
Unicode, such that non-Uunicode editing and viewing is always possible  
as a fallback. This has some important consequences though, such as  
making Unicode-symbol-usage unable to solve the shortage of brackets  
for, for example, the template instantiation syntax (because an  
alternative ASCII notation would still be necessary).


* Having a way to directly input the Unicode symbols in the keyboard.  
One reason is because of typing succinctness, and another, is because I  
find the alternative (have the editor/IDE automatically change an ASCII  
character sequence into a Unicode symbol) to have several disadvantages:  
First is that it doesn't work outside the editors/IDEs configured to do  
so, (which is a bummer, there is actually plenty of code written outside  
that: newsgroups, articles, forums, bug reports, IRC, etc.). Second, I  
personally like that the editor always require exactly N backspaces to  
erase N typed characters[*].


So, anyone knows if it is possible on Windows (I believe in Unix it is)  
to configure your keyboard mapping with custom settings? For example, if  
I press AltGr-O, it inputs some Unicode character of my choosing?


I'd guess this oughtta do it:
http://www.microsoft.com/globaldev/tools/msklc.mspx


--
Simen


Re: Adding Unicode operators to D

2008-10-24 Thread KennyTM~

Bruno Medeiros wrote:

Simen Kjaeraas wrote:


As an example, while I'd enjoy seeing code like this, I'm not sure I'd 
enjoy writing it (Note that I am prone to exaggerations):


int a = ∅; //empty set, same as = void
int[] b = [1,2,3,4,5,6];
a = readInt();



Hum, interesting example, it actually made me realize that 'null' would 
be an ideal candidate for having a Unicode symbol of it's own. Does 
anyone have suggestions for a possible one? Preferably somewhat 
circle-shaped.





  auto Ø = null; // \Oslash;

I assume you're not serious...


Re: DMD 1.036 and 2.020 releases

2008-10-24 Thread Leandro Lucarella
Jesse Phillips, el 23 de octubre a las 02:04 me escribiste:
 On Wed, 22 Oct 2008 22:44:56 +0200, Simen Kjaeraas wrote:
 
  On Wed, 22 Oct 2008 20:42:05 +0200, Sean Kelly [EMAIL PROTECTED]
  wrote:
  
  Don wrote:
   'std', 'stdc' and 'sys' sound OK to me. Although is there any reason
  why stdc couldn't be part of 'sys'?
  IMHO: 'common' sounds far too generic. 'core' is borderline.
 
  My current thought is to have:
 
  core/
   stdc/
   sys/posix
   sys/windows
 
  (yes, I'm planning to move posix support out of stdc)
 
  Alternatives to core are: lang, d, base...  But I like core the best so
  far.
 
 
  Sean
  
  core is good. d or base also, but I think core is the best.
 
 I like core. std better if phobos would step aside, for the reasons 
 already stated.

I think std is the best too. It's a little confusing that there are
2 *standard* namespaces :S

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/

GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)

When I was a child I had a fever
My hands felt just like two balloons.
Now I've got that feeling once again
I can't explain you would not understand
This is not how I am.
I have become comfortably numb.


Re: Adding Unicode operators to D

2008-10-24 Thread Bill Baxter
On Sat, Oct 25, 2008 at 9:15 AM, Sergey Gromov [EMAIL PROTECTED] wrote:
 Sat, 25 Oct 2008 06:43:19 +0900,
 Bill Baxter wrote:
 On Sat, Oct 25, 2008 at 6:37 AM, ore-sama [EMAIL PROTECTED] wrote:
  Bill Baxter Wrote:
 
  (like I haven't been able to figure out how to get the
  DOS console in Windows to display UTF-8)
 
  Console is a legacy technology (you even still call it DOS), why expect 
  features from it?

 So tell me what the alternative is?  I had trouble with running D
 tools from a Cygwin shell.  Can't remember if I tried MSYS or not.

 Anyone using a shell for Windows that works and supports UTF-8 properly?

 A regular Windows console supports UTF-8 to some extent:

 * Change console font to Lucida Console
 * issue chcp 65001

 You can even get more fonts into there with a bit of hackery.

I did that but type filewith-utf8.txt  still prints garbage.

--bb