Re: D Article Contest - win an iPad2

2011-04-08 Thread simendsjo
I don't see why is it inappropriate of you to comment on them. Shouldn't the winner be picked by the most votes? In that case, you have a vote like everyone else, and should also be allowed to comment.

Re: D Article Contest - win an iPad2

2011-04-08 Thread Walter Bright
On 4/8/2011 12:05 AM, simendsjo wrote: I don't see why is it inappropriate of you to comment on them. Shouldn't the winner be picked by the most votes? In that case, you have a vote like everyone else, and should also be allowed to comment. While technically you are correct, I still think it

Re: D Article Contest - win an iPad2

2011-04-08 Thread Robert Clipsham
On 30/03/2011 06:40, Walter Bright wrote: D Article Contest! Voting Rules 1. You must have used your handle to post to the digitalmars.D newsgroup prior to this announcement 2. One vote per handle 3. Voting will be done on the digitalmars.D newsgroup Question: Are votes per-article or

Re: D Article Contest - win an iPad2

2011-04-08 Thread Andrei Alexandrescu
On 4/8/11 10:35 AM, Robert Clipsham wrote: On 30/03/2011 06:40, Walter Bright wrote: D Article Contest! Voting Rules 1. You must have used your handle to post to the digitalmars.D newsgroup prior to this announcement 2. One vote per handle 3. Voting will be done on the digitalmars.D

Re: D Article Contest - win an iPad2

2011-04-08 Thread Walter Bright
On 4/8/2011 8:41 AM, Andrei Alexandrescu wrote: On 4/8/11 10:35 AM, Robert Clipsham wrote: On 30/03/2011 06:40, Walter Bright wrote: D Article Contest! Voting Rules 1. You must have used your handle to post to the digitalmars.D newsgroup prior to this announcement 2. One vote per handle 3.

Re: GUI library for D

2011-04-08 Thread Jacob Carlborg
On 2011-04-07 21:38, Bruno Medeiros wrote: On 05/04/2011 14:06, Jacob Carlborg wrote: On 2011-04-05 13:08, Matthias Pleh wrote: So I think for short or middle term such solution like gtkD, QtD, DWT are good, but for the long term the D community needs a D GUI library completly written in D.

Re: Should all enums be immutable?

2011-04-08 Thread Don
Trass3r wrote: Am 07.04.2011, 18:03 Uhr, schrieb Simen kjaeraas simen.kja...@gmail.com: On Wed, 06 Apr 2011 21:42:35 +0200, Trass3r u...@known.com wrote: Am 06.04.2011, 20:40 Uhr, schrieb Simen kjaeraas simen.kja...@gmail.com: Yup. In theory, any immutable Foo declared at module scope (and

Re: D grammar overhaul

2011-04-08 Thread Rainer Schuetze
Trass3r wrote: I hope, we agree on !in and !is, as the current lexing introduces the shown parsing problems. But !is needs to be added to the IsExpression rules then. Hmm what if you have something like Templ!is(T:int) This is not allowed, template arguments without parenthesis are

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Luca Boasso
Congratulations! On 4/8/11, Walter Bright newshou...@digitalmars.com wrote: On 4/7/2011 5:54 PM, Andrei Alexandrescu wrote: Thanks David for rising to the challenge! You have been accepted. Congratulations! Congrats from me, too!

Re: GUI library for D

2011-04-08 Thread Jacob Carlborg
On 2011-04-08 00:27, Andrej Mitrovic wrote: DWT is 3x the codebase size of SWT? 0o Don't know what code base he used for SWT but the DWT repository contains: * 16 libraries from Eclipse * 1 library from IBM * 2 code bases for snippets * 2 SWT platforms (I counted those as 1 in the above

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Jacob Carlborg
On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to networking. Please join me in congratulating and wishing the best to Jonas. We have 18

image processing in D

2011-04-08 Thread aman bansal
i was thinking,would it be possible to read RAW image formats using std.outbuffer from phobos ?? regards, -- aman bansal namaban...@gmail.com

string and char[]

2011-04-08 Thread Morlan
It is OK if I write int[char[]] asr; asr[hello] = 10; but the following does not compile: char[] car = hello; What is the explanation for this behaviour?

Re: string and char[]

2011-04-08 Thread Simen kjaeraas
On Fri, 08 Apr 2011 12:46:08 +0200, Morlan h...@valentimex.com wrote: It is OK if I write int[char[]] asr; asr[hello] = 10; but the following does not compile: char[] car = hello; What is the explanation for this behaviour? The first should not be allowed. It is a mistake to use

Re: string and char[]

2011-04-08 Thread simendsjo
It is a mistake to use non-immutable keys for an associative array. But a string literal isn't mutable..?

Re: Is the world coming to an end?

2011-04-08 Thread spir
On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis -- _ vita es estrany spir.wikidot.com

Re: string and char[]

2011-04-08 Thread Simen kjaeraas
On Fri, 08 Apr 2011 13:01:41 +0200, simendsjo simen.end...@pandavre.com wrote: It is a mistake to use non-immutable keys for an associative array. But a string literal isn't mutable..? This is correct. I'm referring to line 1, int[char[]] asr;. This declaration is wrong, and should be

Re: Is the world coming to an end?

2011-04-08 Thread Simen kjaeraas
On Fri, 08 Apr 2011 13:03:23 +0200, spir denis.s...@gmail.com wrote: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis I like the numeric systems described in Hacker's Delight[1], among them complex numbers with integer parts,

Re: string and char[]

2011-04-08 Thread Morlan
int[char[]] is consistently used D's Language reference to illustrate associative arrays. For me it looks like something that should not compile. Of course int[string] works without problem so I wonder why int[char[]] was used as an example. Was it carried over from D1 reference perhaps?

Re: string and char[]

2011-04-08 Thread Simen kjaeraas
On Fri, 08 Apr 2011 13:37:10 +0200, Morlan h...@valentimex.com wrote: int[char[]] is consistently used D's Language reference to illustrate associative arrays. For me it looks like something that should not compile. Of course int[string] works without problem so I wonder why int[char[]] was

Re: string and char[]

2011-04-08 Thread Morlan
Of course, by saying it should not compile I mean things like asr[hello] should not compile.

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread dsimcha
On 4/8/2011 4:37 AM, Jacob Carlborg wrote: On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to networking. Please join me in congratulating

Re: string and char[]

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200, Morlan h...@valentimex.com wrote: It is OK if I write int[char[]] asr; asr[hello] = 10; but the following does not compile: char[] car = hello; What is the

Re: GCC 4.6

2011-04-08 Thread Steven Schveighoffer
On Thu, 07 Apr 2011 18:46:06 -0400, Matthias Pleh j...@konrad.net wrote: Am 01.04.2011 02:50, schrieb bearophile: inventing new language features for D3 Why do you always mention D3. I always hated the M$ strategy to release every 2 years a new C#/.Net version. I'm satisfied with D2, and

[OT] Re: GUI library for D

2011-04-08 Thread Bruno Medeiros
On 07/04/2011 21:21, Nick Sabalausky wrote: Heh :) Damn Borg kids... I think I'm basically turning into Cranky Kong (if you've ever played Donkey Kong Country): They can't keep this level of graphics up for much longer! We used to be lucky if we only got three shades of grey, let alone any

Re: DWT2

2011-04-08 Thread Bruno Medeiros
On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's wrong with it? Do you mean the anonymous classes with all the fields and contructors for passing the variables in the enclosing scope? -- Bruno Medeiros -

Re: DWT2

2011-04-08 Thread Bruno Medeiros
On 05/04/2011 13:16, Paulo Pinto wrote: Most Java developers do. I code mostly in Java and really hate when I see code like this, but somehow the pattern of using anonymous classes in-place for event handlers has got into the mind of many developers. You will find thousands of such examples

Re: Is the world coming to an end?

2011-04-08 Thread Bruno Medeiros
On 08/04/2011 12:03, spir wrote: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis hehe :D -- Bruno Medeiros - Software Engineer

GSoC Proposals: Level of Detail

2011-04-08 Thread dsimcha
I've been looking over some of the GSoC proposals and I've noticed that most aren't very detailed. It seems most of the students have only a very rough idea of what they want to do and plan on filling in the details at the beginning of the project. I don't have experience with GSoC and I'm

Re: string and char[]

2011-04-08 Thread Denis Koroskin
On Fri, 08 Apr 2011 17:13:19 +0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200, Morlan h...@valentimex.com wrote: It is OK if I write int[char[]] asr; asr[hello]

Re: GCC 4.6

2011-04-08 Thread so
On Thu, 07 Apr 2011 23:45:54 +0300, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 01/04/2011 01:50, bearophile wrote: On the other hand it's all voluntary service, most people don't get paid to help D development, so they_can't_ be managed as employed people, especially in a

Re: image processing in D

2011-04-08 Thread Emil Madsen
On 7 April 2011 17:55, Eric Poggel (JoeCoder) dnewsgro...@yage3d.netwrote: On 4/3/2011 6:35 PM, Emil Madsen wrote: This about image processing, got me thinking, hows the shader support for D currently? - Interfaceable though C? Because for image processing, thats def. the way to go, at least

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Bruno Medeiros
On 08/04/2011 01:47, dsimcha wrote: On 4/7/2011 8:33 PM, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to networking. Please join me in congratulating and

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Fawzi Mohamed
On 8-apr-11, at 15:40, dsimcha wrote: I've been looking over some of the GSoC proposals and I've noticed that most aren't very detailed. It seems most of the students have only a very rough idea of what they want to do and plan on filling in the details at the beginning of the project.

Re: string and char[]

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 09:40:32 -0400, Denis Koroskin 2kor...@gmail.com wrote: On Fri, 08 Apr 2011 17:13:19 +0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200, Morlan

Re: Is the world coming to an end?

2011-04-08 Thread Michel Fortin
On 2011-04-08 07:03:23 -0400, spir denis.s...@gmail.com said: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis Like this? assert(0i == 0) assert(0i0 == 1) assert(0i00 == 2) assert(0i000 == 3)

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Fawzi Mohamed
On 8-apr-11, at 15:01, dsimcha wrote: On 4/8/2011 4:37 AM, Jacob Carlborg wrote: On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Ishan Thilina
I don't have experience with GSoC either, but I fear that the very simple I would like to work on X proposal will have to be discarded. As andrei said the students have to convince us that they can do the project, and this means: - good project - knowledge of the field - knowledge of the tools (D)

Re: string and char[]

2011-04-08 Thread Jesse Phillips
On Fri, 08 Apr 2011 17:40:32 +0400, Denis Koroskin wrote: int compare(char[] lhs, char[] rhs) pure { if (lhs rhs) return 1; if (lhs rhs) return -1; return 0; } is not. For some reason (bug?), both compile with 2.052. Purity has nothing to do with the type. Hello and a

Re: D Tools Special Interest Group (SIG)

2011-04-08 Thread Bruno Medeiros
On 01/04/2011 21:39, Jonas Drewsen wrote: On 01/04/11 20.53, Bruno Medeiros wrote: On 22/03/2011 23:41, Jonas Drewsen wrote: 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

Re: DWT2

2011-04-08 Thread Andrej Mitrovic
On 4/8/11, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's wrong with it? Do you mean the anonymous classes with all the fields and contructors for

Re: DWT2

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 10:36:39 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 4/8/11, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 05/04/2011 04:54, Andrej Mitrovic wrote: You have to be kidding me. Who writes code like this? http://i.imgur.com/BBQde.png What's

dmd2-2.052 is only for i386, while you are running amd64 (or dmd2 on FreeBSD)

2011-04-08 Thread Gour-Gadadhara Dasa
Hello, I'm running Free/PC-BSD desktop now, and here is dmd-2 experience: [gour@atmarama] /home/gour# cd /usr/ports/lang/dmd2/ [gour@atmarama] /usr/ports/lang/dmd2# make install clean === dmd2-2.052 is only for i386, while you are running amd64. *** Error code 1 Stop in /usr/ports/lang/dmd2.

Core.atomic: Fencing?

2011-04-08 Thread dsimcha
Are all atomic functions in core.atomic going to be guaranteed to act as full memory barriers when it's ported to non-x86 architectures? std.parallelism assumes that atomic instructions act as full barriers. This is correct on x86/x86, since loads and stores cannot be reordered with locked

Re: A few thoughts on the existing GSoC student proposals

2011-04-08 Thread Bruno Medeiros
On 04/04/2011 19:57, Andrei Alexandrescu wrote: On 4/4/11 1:19 PM, Bruno Medeiros wrote: On 04/04/2011 19:04, Andrei Alexandrescu wrote: On 4/4/11 12:53 PM, Bruno Medeiros wrote: BTW Andrei, do you any idea or estimation of how many proposal slots Digital Mars might get from GSoC? We have

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Andrei Alexandrescu
On 4/8/11 3:37 AM, Jacob Carlborg wrote: On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to networking. Please join me in congratulating and

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Andrei Alexandrescu
On 4/8/11 8:40 AM, dsimcha wrote: I've been looking over some of the GSoC proposals and I've noticed that most aren't very detailed. It seems most of the students have only a very rough idea of what they want to do and plan on filling in the details at the beginning of the project. I don't have

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-08 Thread %u
I've added reflection capabilities to an update to std.variant I'm working on. Overloads work. General functions work. (Although a few bugs with opCall and opDispatch prevents the ideal syntax: var.x(5) vs var.x = 5 and var.call(5) vs var(5), but I assume those will be eventually fixed). I've

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Bruno Medeiros
On 08/04/2011 09:37, Jacob Carlborg wrote: On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to networking. Please join me in congratulating

Re: Jonas Drewsen has been accepted as a GSoC 2011 mentor for Digital Mars

2011-04-08 Thread Andrei Alexandrescu
On 4/8/11 10:33 AM, Bruno Medeiros wrote: On 08/04/2011 09:37, Jacob Carlborg wrote: On 2011-04-08 02:33, Andrei Alexandrescu wrote: Jonas Drewsen has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. He is particularly interested in topics related to

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Fawzi Mohamed
On 8-apr-11, at 17:15, Andrei Alexandrescu wrote: On 4/8/11 8:40 AM, dsimcha wrote: I've been looking over some of the GSoC proposals and I've noticed that most aren't very detailed. It seems most of the students have only a very rough idea of what they want to do and plan on filling in the

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Luca Boasso
Who is going to interview the students? Will the mentor interested in the student be the interviewer or a selected group of the community? Luca On 4/8/11, Fawzi Mohamed fa...@gmx.ch wrote: On 8-apr-11, at 17:15, Andrei Alexandrescu wrote: On 4/8/11 8:40 AM, dsimcha wrote: I've been looking

Re: Core.atomic: Fencing?

2011-04-08 Thread Sean Kelly
On Apr 8, 2011, at 8:07 AM, dsimcha wrote: Are all atomic functions in core.atomic going to be guaranteed to act as full memory barriers when it's ported to non-x86 architectures? std.parallelism assumes that atomic instructions act as full barriers. This is correct on x86/x86, since loads

Linux RPM out of date

2011-04-08 Thread Kai Meyer
I've been waiting patiently for the Linux RPM to be updated (it's currently 2.051). Do I need to continue to wait, or should I volunteer some time to help maintain the RPM packaging? I would be happy to help develop and maintain a DEB package as well. -Kai Meyer

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Andrei Alexandrescu
On 4/8/11 11:35 AM, Luca Boasso wrote: Who is going to interview the students? Will the mentor interested in the student be the interviewer or a selected group of the community? I plan to interview qualified candidates personally. An interested mentor could choose to hold the interview in

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread Luca Boasso
Thank you for the information Luca On 4/8/11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/8/11 11:35 AM, Luca Boasso wrote: Who is going to interview the students? Will the mentor interested in the student be the interviewer or a selected group of the community? I plan to

Re: Is the world coming to an end?

2011-04-08 Thread spir
On 04/08/2011 03:55 PM, Michel Fortin wrote: On 2011-04-08 07:03:23 -0400, spir denis.s...@gmail.com said: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis Like this? assert(0i == 0) assert(0i0 == 1) assert(0i00 == 2)

Re: string and char[]

2011-04-08 Thread spir
On 04/08/2011 03:13 PM, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200, Morlan h...@valentimex.com wrote: It is OK if I write int[char[]] asr; asr[hello] = 10; but the following does not

Re: string and char[]

2011-04-08 Thread spir
On 04/08/2011 03:40 PM, Denis Koroskin wrote: What about storing objects as keys? There is nothing wrong to modify those objects as long as their order stays the same. I think if referenced objects are to be used as keys, they should be compared by pointer/identity (hash would return their

Re: Core.atomic: Fencing?

2011-04-08 Thread Iain Buclaw
== Quote from Sean Kelly (s...@invisibleduck.org)'s article On Apr 8, 2011, at 8:07 AM, dsimcha wrote: Are all atomic functions in core.atomic going to be guaranteed to act as full memory barriers when it's ported to non-x86 architectures? std.parallelism assumes that atomic instructions

Re: Core.atomic: Fencing?

2011-04-08 Thread dsimcha
== Quote from Iain Buclaw (ibuc...@ubuntu.com)'s article On top of that, GCC targets will (*WIP*) be using builtin atomic load/cas routines for architectures that support. And I'm pretty certain LDC does the same (I believe it's implemented in Tango). Regards I assume the implication is

Re: string and char[]

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 14:57:52 -0400, spir denis.s...@gmail.com wrote: On 04/08/2011 03:13 PM, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200, Morlan h...@valentimex.com wrote: It is OK if I

Re: [OT] Re: GUI library for D

2011-04-08 Thread Nick Sabalausky
Bruno Medeiros brunodomedeiros+spam@com.gmail wrote in message news:inn2rl$2hp$2...@digitalmars.com... On 07/04/2011 21:21, Nick Sabalausky wrote: Heh :) Damn Borg kids... I think I'm basically turning into Cranky Kong (if you've ever played Donkey Kong Country): They can't keep this

Re: Is the world coming to an end?

2011-04-08 Thread Nick Sabalausky
Michel Fortin michel.for...@michelf.com wrote in message news:inn4bp$57s$1...@digitalmars.com... On 2011-04-08 07:03:23 -0400, spir denis.s...@gmail.com said: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I want base 1 literals Denis Like this?

Re: string and char[]

2011-04-08 Thread spir
On 04/08/2011 09:20 PM, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 14:57:52 -0400, spir denis.s...@gmail.com wrote: On 04/08/2011 03:13 PM, Steven Schveighoffer wrote: On Fri, 08 Apr 2011 06:44:42 -0400, Simen kjaeraas simen.kja...@gmail.com wrote: On Fri, 08 Apr 2011 12:46:08 +0200,

Re: Is the world coming to an end?

2011-04-08 Thread spir
On 04/08/2011 10:01 PM, Nick Sabalausky wrote: Michel Fortinmichel.for...@michelf.com wrote in message news:inn4bp$57s$1...@digitalmars.com... On 2011-04-08 07:03:23 -0400, spirdenis.s...@gmail.com said: On 04/08/2011 07:25 AM, Nick Sabalausky wrote: I want base PI literals :) Yum. I

simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
We discussed this first in the GUI library thread, but since it meandered so much, I decided to split off into a new subject. Much of what I say here will be old to anyone who saw the previous thread. There's some new stuff nearer to the bottom though. I, with input from others, have started

Re: string and char[]

2011-04-08 Thread Steven Schveighoffer
On Fri, 08 Apr 2011 16:12:27 -0400, spir denis.s...@gmail.com wrote: On 04/08/2011 09:20 PM, Steven Schveighoffer wrote: In reality, most times you are not using something as a key and somewhere else simultaneously. So while theoretically dangerous, it's easy to write code that isn't

Re: Core.atomic: Fencing?

2011-04-08 Thread Iain Buclaw
== Quote from dsimcha (dsim...@yahoo.com)'s article == Quote from Iain Buclaw (ibuc...@ubuntu.com)'s article On top of that, GCC targets will (*WIP*) be using builtin atomic load/cas routines for architectures that support. And I'm pretty certain LDC does the same (I believe it's

Re: simple display (from: GUI library for D)

2011-04-08 Thread bearophile
Adam D. Ruppe: I, with input from others, have started writing a little module for simple uses of a display. You can write to a bitmap, display it to a window, and handle events all in an easy way. The basics are cross platform, but you can use native function calls too. I'd like something

Re: simple display (from: GUI library for D)

2011-04-08 Thread Andrej Mitrovic
simpledisplay.d - line 267: int lol, wtf; lol, wtf? :p Btw, an exception will be thrown on unhandled key events, e.g. just hit CTRL: object.Exception@.\simpledisplay.d(299): GetMessage failed Not a good thing if you use shortcut keys to move windows around.

Re: simple display (from: GUI library for D)

2011-04-08 Thread dsimcha
== Quote from Adam D. Ruppe (destructiona...@gmail.com)'s article We discussed this first in the GUI library thread, but since it meandered so much, I decided to split off into a new subject. Much of what I say here will be old to anyone who saw the previous thread. There's some new stuff

Re: Linux RPM out of date

2011-04-08 Thread %u
please do

Re: GSoC XML library proposal

2011-04-08 Thread Tomek Sowiński
Andrei Alexandrescu napisał: We have an XML library proposal. I know Tomek Sowinski was working on such. What is the status? The writer is close to being ready to be discussed, I've been working on the documentation lately. As for the parser, I got a pretty much good idea how to go about it

Re: Linux RPM out of date

2011-04-08 Thread Jesse Phillips
Kai Meyer Wrote: I've been waiting patiently for the Linux RPM to be updated (it's currently 2.051). Do I need to continue to wait, or should I volunteer some time to help maintain the RPM packaging? I would be happy to help develop and maintain a DEB package as well. -Kai Meyer Well

Re: GSoC Proposals: Level of Detail

2011-04-08 Thread dsimcha
On 4/8/2011 2:43 PM, Andrei Alexandrescu wrote: On 4/8/11 11:35 AM, Luca Boasso wrote: Who is going to interview the students? Will the mentor interested in the student be the interviewer or a selected group of the community? I plan to interview qualified candidates personally. An interested

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
bearophile wrote: I'd like something like this in Phobos Me too. It's still pretty far from good enough right now, but that's where I want ultimately want it. My only concern is I don't want Phobos to depend on Xlib unless the module is actually imported. I don't think it will be a problem, but

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
dsimcha wrote: Can it render text? Not yet, but it's on the list. Anything that's reasonably easy in both Windows API and Xlib should be supported here. At the least, text, lines, rectangles - all the basics.

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
Andrej Mitrovic: lol, wtf? :p My brilliant variable names! It reflects my feelings toward parts of the bmp format I forgot about when first writing it. I didn't account for the padding at first, then said wtf and added it... then lol'ed at myself for not doing it right the first time. You

Re: simple display (from: GUI library for D)

2011-04-08 Thread bearophile
Adam D. Ruppe: My only concern is I don't want Phobos to depend on Xlib unless the module is actually imported. I don't think it will be a problem, but if it means a hello world won't run on a text only machine, that won't be ok. I agree. But, I don't really like using a tuple for this -

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
bearophile wrote: OK. (But for this module I think usage simplicity is more important than raw speed. The struct is at least equal in simplicity: image[x, y] = Color(r, g, b); vs image[x, y] = tuple(r, g, b); Indeed, I was suggesting to open the window at the top of the program, and at

Integer ops tests in Clang

2011-04-08 Thread bearophile
Through Reddit I've just found something nice, Finding Integer Undefined Behaviors in C/C++: http://embed.cs.utah.edu/ubc/ We modified Clang to dynamically detect most of C/C++'s integer undefined behaviors. Using it, we have found undefined behaviors in nearly every piece of open source

Re: Integer ops tests in Clang

2011-04-08 Thread Walter Bright
On 4/8/2011 5:39 PM, bearophile wrote: Through Reddit I've just found something nice, Finding Integer Undefined Behaviors in C/C++: http://embed.cs.utah.edu/ubc/ We modified Clang to dynamically detect most of C/C++'s integer undefined behaviors. Using it, we have found undefined behaviors in

Re: simple display (from: GUI library for D)

2011-04-08 Thread bearophile
Adam D. Ruppe: The struct is at least equal in simplicity: image[x, y] = Color(r, g, b); vs image[x, y] = tuple(r, g, b); A tuple is simpler, there is no new name to remember and use, new type to define, and 3-tuples come out of other generic computations, like zip: foreach (col;

Re: simple display (from: GUI library for D)

2011-04-08 Thread bearophile
foreach (col; zip(reds, greens, blues)) image[x, y] = col; With Color is becomes something like: foreach (col; zip(reds, greens, blues)) image[x, y] = Color(col.tupleof); Bye, bearophile

Re: dmd2-2.052 is only for i386, while you are running amd64 (or dmd2 on FreeBSD)

2011-04-08 Thread Jesse Phillips
On Fri, 08 Apr 2011 16:57:07 +0200, Gour-Gadadhara Dasa wrote: Hello, I'm running Free/PC-BSD desktop now, and here is dmd-2 experience: [gour@atmarama] /home/gour# cd /usr/ports/lang/dmd2/ [gour@atmarama] /usr/ports/lang/dmd2# make install clean === dmd2-2.052 is only for i386, while

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
bearophile wrote: With Color is becomes something like: foreach (col; zip(reds, greens, blues)) image[x, y] = Color(col.tupleof); That looks perfectly acceptable to me. I might add an overload so opIndex can take a tuple too though, so the zip example is a little easier, but I really

Re: simple display (from: GUI library for D)

2011-04-08 Thread Michel Fortin
On 2011-04-08 20:11:10 -0400, Adam D. Ruppe destructiona...@gmail.com said: My only concern is I don't want Phobos to depend on Xlib unless the module is actually imported. I don't think it will be a problem, but if it means a hello world won't run on a text only machine, that won't be ok.

Re: simple display (from: GUI library for D)

2011-04-08 Thread Michel Fortin
On 2011-04-08 20:18:03 -0400, Adam D. Ruppe destructiona...@gmail.com said: dsimcha wrote: Can it render text? Not yet, but it's on the list. Anything that's reasonably easy in both Windows API and Xlib should be supported here. At the least, text, lines, rectangles - all the basics. One

Re: simple display (from: GUI library for D)

2011-04-08 Thread Andrej Mitrovic
Text drawing is as simple as TextDraw or TextOut on Windows. Dunno about the nixes.

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
Andrej Mitrovic wrote: Text drawing is as simple as TextDraw or TextOut on Windows. Dunno about the nixes. It's XDrawString() - almost the same. Text output is now implemented on my local copy of the module for both systems.

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
Michel Fortin wrote: One issue is that different operating system will draw things with slightly different algorithms, which will result in slightly different images, which might introduce glitches from platform to platform. I actually hit an even bigger problem... Xlib can't actually draw to

Re: simple display (from: GUI library for D)

2011-04-08 Thread Daniel Gibson
It looks like SDL (1.3) will be under zlib license soon[1] so maybe using it or parts of it or whatever may be feasible, even in Phobos - the zlib license should be free enough, it says If you use this software in a product, an acknowledgment in the product documentation would be appreciated but

Re: simple display (from: GUI library for D)

2011-04-08 Thread Michel Fortin
On 2011-04-08 21:45:20 -0400, Adam D. Ruppe destructiona...@gmail.com said: Michel Fortin wrote: One issue is that different operating system will draw things with slightly different algorithms, which will result in slightly different images, which might introduce glitches from platform to

Re: New look feel for std.algorithm

2011-04-08 Thread Andrej Mitrovic
There seems to be some weird spacing on the articles page, link section Migrating to shared: http://i.imgur.com/dqdub.png

Re: New look feel for std.algorithm

2011-04-08 Thread Andrej Mitrovic
Also, on some pages there's still a Digg button. Other than the fact that Digg is practically dead (everybody who knows about Digg seems to admit this from what I can tell), I don't see a reason why it's there on some pages while not on the others, e.g.:

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
On Fri, Apr 08, 2011 at 06:40:47PM -0700, Cliff Hudson wrote: Have you considered patterning your API off an existing (preferably popular) one? That's essentially what I'm doing - it's a very thin wrapper around the operating system libraries, meant to just make it easy.

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
Michel Fortin wrote: Direct screen drawing will need a different implementation for each OS, which means a lot of duplicated effort that could be put in implementing dependency-less cross-platform drawing primitives instead. I'd agree if not for one thing: it isn't really much duplicated

Re: simple display (from: GUI library for D)

2011-04-08 Thread Adam D. Ruppe
Daniel Gibson wrote: It looks like SDL (1.3) will be under zlib license soon Now, that's pretty cool!

Re: simple display (from: GUI library for D)

2011-04-08 Thread Matthias Pleh
Am 09.04.2011 03:55, schrieb Michel Fortin: On 2011-04-08 21:45:20 -0400, Adam D. Ruppe destructiona...@gmail.com said: Michel Fortin wrote: One issue is that different operating system will draw things with slightly different algorithms, which will result in slightly different images, which

  1   2   >