Re: Thrift now officially supports D!

2012-03-28 Thread Rory McGuire
Nice, anyone made a D hadoop app? On Wed, Mar 28, 2012 at 1:16 AM, David Nadlinger s...@klickverbot.at wrote: Apache Thrift is a cross-language serialization/RPC framework. During last year's Google Summer of Code, I worked on adding D as a target language – and a few days ago, the D

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/27/12, Philippe Sigaud philippe.sig...@gmail.com wrote: Nice one. Care to explain how you did it? Sure. Currently the editor is just a viewer (can't edit text ironically :p), and is a port of one of the lessons of Neatpad (http://www.catch22.net/tuts/neatpad). It's win32-specific and later

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Btw it crashes sometime when I open std.datetime and scroll and resize the window. I've no idea what's causing it. I don't seem to index pass array bounds, and I'm not allocating win32 handles all the time either. A

Re: Thrift now officially supports D!

2012-03-28 Thread filgood
This is cool...anyone got an example using Thrift (in D) over ZeroMQ (with D bindings)...I've been using that in c# and this works very well... ~ filgood On 28/03/2012 08:36, Rory McGuire wrote: Nice, anyone made a D hadoop app? On Wed, Mar 28, 2012 at 1:16 AM, David

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Accidentally left out ddmd from the repo but now it's in. I think it should compile now. Let me know if it doesn't.

Re: D Conference 2012

2012-03-28 Thread Robert Clipsham
On 28/03/2012 02:30, Bernard Helyer wrote: On Tuesday, 27 March 2012 at 21:29:08 UTC, Walter Bright wrote: The web site is up now: http://www.astoriaseminar.com See you all there! Someday, when I'm rich and famous, I'll be able to afford to travel to such things. For now, I must play the

Re: Thrift now officially supports D!

2012-03-28 Thread David Nadlinger
On Wednesday, 28 March 2012 at 08:16:55 UTC, filgood wrote: This is cool...anyone got an example using Thrift (in D) over ZeroMQ (with D bindings)...I've been using that in c# and this works very well... I haven't personally used Thrift in conjunction with ZeroMQ, but a 0mq transport should

Why D needs tail const

2012-03-28 Thread Stewart Gordon
With arrays and pointers, you can declare const(int[]) constData; immutable(int[]) immutableData; to enforce constancy constraints. The type modifiers apply both to the reference to the data and to the data being referenced. If you want to be able to change what data the variables

Re: Why D needs tail const

2012-03-28 Thread Adam D. Ruppe
I'm pretty sure there's a dmd pull request or patch or something for this already. IIRC Michel Fortin implemented it as Object ref obj; (which is the same as Object obj;) and const(Object) ref obj; as tail const. Don't know where it is now though...

Re: Why D needs tail const

2012-03-28 Thread Jesse Phillips
On Wednesday, 28 March 2012 at 14:11:10 UTC, Adam D. Ruppe wrote: I'm pretty sure there's a dmd pull request or patch or something for this already. IIRC Michel Fortin implemented it as Object ref obj; (which is the same as Object obj;) and const(Object) ref obj; as tail const. Don't know

Re: Why D needs tail const

2012-03-28 Thread bearophile
Stewart Gordon: OK, so we have std.typecons.Rebindable. But I've found it a PITA when it comes to generic programming. Among other things, if you try to pass it around, you can end up with a mess like const(Rebindable!(const())). This wouldn't happen with built-in tail const support.

Re: Thrift now officially supports D!

2012-03-28 Thread Jesse Phillips
On Tuesday, 27 March 2012 at 23:16:29 UTC, David Nadlinger wrote: Apache Thrift is a cross-language serialization/RPC framework. During last year's Google Summer of Code, I worked on adding D as a target language – and a few days ago, the D implementation has been accepted into the upstream

Re: Why D needs tail const

2012-03-28 Thread Leandro Lucarella
Stewart Gordon, el 28 de marzo a las 14:54 me escribiste: What do people think to the whole idea? I think this is not an announcement at all and shouldn't be discussed in this list :) -- Leandro Lucarella (AKA luca) http://llucax.com.ar/

Re: Why D needs tail const

2012-03-28 Thread Stewart Gordon
I'm not sure how my post ended up in .announce, but anyway On 28/03/2012 15:24, bearophile wrote: snip Is it possible to invent a language construct that allows: const(Rebindable!(const())) To be defined as the same as: Rebindable!(const()) You mean be defined the same as

Re: Why D needs tail const

2012-03-28 Thread Stewart Gordon
On 28/03/2012 16:09, Stewart Gordon wrote: snip Something like an onConst()/onImmutable templated methods for structs/classes? snip I'm not sure whether this would be a good idea. And it would solve only one of Rebindable's many shortcomings Moreover, any feature that makes a type a

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/27/12, Philippe Sigaud philippe.sig...@gmail.com wrote: snip Philippe your example on this wiki page doesn't seem to work: https://github.com/PhilippeSigaud/Pegged/wiki/ import pegged.grammar; mixin(grammar( Expr - Factor AddExpr* AddExpr - ('+'/'-') Factor Factor -

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/27/12, Philippe Sigaud philippe.sig...@gmail.com wrote: snip Philippe your example on this wiki page doesn't seem to work: https://github.com/PhilippeSigaud/Pegged/wiki/ Actually it seems to work if I remove all the spaces

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/27/12, Philippe Sigaud philippe.sig...@gmail.com wrote: snip Philippe your example on this wiki page doesn't seem to work:

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Ouch, DMD crashes with that autogenerated ddump D grammar file.

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Ouch, DMD crashes with that autogenerated ddump D grammar file. Also asModule seems to have stopped generating valid modules since the last time I've tried it. I

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 18:06, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Okay I got it, you've recently changed some code. I can see it mentioned in the readme: By default, the grammars do not silently consume spaces, as this is the standard behavior for PEGs. There is an opt-out

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 19:08, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Ouch, DMD crashes with that autogenerated ddump D grammar file. Yeah, I spent two evenings trying to get why there is a segmentation fault. I

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 19:19, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Also asModule seems to have stopped generating valid modules since the last time I've tried it. I keep getting this error when importing a generated file: arithmetic.d(44): Error: undefined identifier module

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Andrej Mitrovic
On 3/28/12, Philippe Sigaud philippe.sig...@gmail.com wrote: OK, it's done and on Github. Thanks for the headup! Cool, thanks for the quick fixes! I see that each child in the parse tree has a begin/end position mark, this seems to be exactly what I need for syntax highlighting. I'll try have

Re: Thrift now officially supports D!

2012-03-28 Thread Walter Bright
On 3/27/2012 4:16 PM, David Nadlinger wrote: Apache Thrift is a cross-language serialization/RPC framework. During last year's Google Summer of Code, I worked on adding D as a target language – and a few days ago, the D implementation has been accepted into the upstream project! You can find a

UFCS for D

2012-03-28 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei

Re: UFCS for D

2012-03-28 Thread F i L
On Thursday, 29 March 2012 at 00:21:38 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei Awesome! Been wanting this ever since I bought TDPL! :D One question though, what takes priority, UFCS or opDispatch?

Re: UFCS for D

2012-03-28 Thread Jesse Phillips
On Thursday, 29 March 2012 at 00:21:38 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei I won't be going out of my way to check this, but there is a mention of adding the range primatives. This works, but it

Linux and D wallpaper :)

2012-03-28 Thread F i L
Don't know if this is the place for this sort of announcement Found a great looking Linux logo over at gnome-look.org by kodama (http://gnome-look.org/content/show.php/Linux+Logo?content=142418). So I thought I'd modify it a bit and make some wallpapers. D sounded like a great place to start.

Re: Linux and D wallpaper :)

2012-03-28 Thread James Miller
On 29 March 2012 17:48, F i L witte2...@gmail.com wrote: Don't know if this is the place for this sort of announcement Found a great looking Linux logo over at gnome-look.org by kodama (http://gnome-look.org/content/show.php/Linux+Logo?content=142418). So I thought I'd modify it a bit and

Re: Linux and D wallpaper :)

2012-03-28 Thread dnewbie
On Thursday, 29 March 2012 at 04:48:39 UTC, F i L wrote: http://reign-studios.com/d-wallpapers/LinuxAndD.png Very nice. Thanks!!

Re: Linux and D wallpaper :)

2012-03-28 Thread F i L
James Miller wrote: Although, while I like the Men are from Mars quote, I can see it being taken the wrong way... Ya I was anticipating that. I'll be making a version without any sayings, but I'm still playing around with ways to fill that void a bit.