Re: Is this a bug?

2013-11-28 Thread Kenji Hara
Might be related? https://d.puremagic.com/issues/show_bug.cgi?id=11406 Kenji Hara 2013/11/27 Jerry > Philippe Sigaud writes: > > > No crash on Linux (Kubuntu) 32bits, DMD 2.064.2. > > > > Works with 5 or 6 case's also. > > This is actually Ubuntu 12.10 64 bit. The last mysterious crash I had

Re: GDB - lets make D support awesome

2013-11-28 Thread Iain Buclaw
On 27 November 2013 23:15, Brad Roberts wrote: > On 11/27/13 1:56 PM, Iain Buclaw wrote: >> >> On 27 November 2013 20:17, Jerry wrote: >>> >>> "Iain Buclaw" writes: >>> Hi, I've created a gdb fork on github and will be giving d-lang support some love - with the intention

Re: Unicode handling comparison

2013-11-28 Thread Walter Bright
On 11/27/2013 9:22 AM, Jakob Ovrum wrote: In D, we can write code that is both Unicode-correct and highly performant, while still being simple and pleasant to read. To write such code, one must have a modicum of understanding of how Unicode works (in order to choose the right tools from the toolb

Re: Unicode handling comparison

2013-11-28 Thread Jakob Ovrum
On Thursday, 28 November 2013 at 09:02:12 UTC, Walter Bright wrote: Sadly, std.array is determined to decode (i.e. convert to dchar[]) all your strings when they are used as ranges. This means that all algorithms on strings will be crippled as far as performance goes. http://dlang.org/glossar

Re: Unicode handling comparison

2013-11-28 Thread bearophile
Walter Bright: This means that all algorithms on strings will be crippled as far as performance goes. If you want to sort an array of chars you need to use a dchar[], or code like this: char[] word = "just a test".dup; auto sword = cast(char[])word.representation.sort().release; See: http:

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread Chris
On Thursday, 28 November 2013 at 07:37:58 UTC, Jacob Carlborg wrote: On 2013-11-28 00:35, H. S. Teoh wrote: IIRC, it's just a matter of writing up a separate CSS stylesheet for mobile devices (make buttons bigger, single-column layout, etc.), and linking to it in the HTML with the appropriate

Re: GUI libraries

2013-11-28 Thread Chris
On Wednesday, 27 November 2013 at 20:25:30 UTC, Mike James wrote: On Wednesday, 27 November 2013 at 17:07:07 UTC, DLang Beginner wrote: Hello. I want to make GUI applications with D, but I don't know which are updated and ready to use, which are good and etc. Can you help me with choosing the

D for Speech and Signal Processing

2013-11-28 Thread Chris
There are voice analysis and speech processing toolkits like Covarep and Voicebox (see links below) that were coded in Matlab, because they were originally only prototypes. There has been talk of porting them to C++. My first thought, as you might imagine, was why not use D? However, I don't kn

Duplicate keys in array literals?

2013-11-28 Thread bearophile
Is it a good idea to silently statically accept duplicated keys in both dynamic array literals and in associative array literals? void main() { int[] a = [0:10, 0:20]; int[int] aa = [0:10, 0:20]; } I don't remember having ever had the need for this, and on the other hand I have h

Re: dynamic use dll or so file error!

2013-11-28 Thread master
On Wednesday, 27 November 2013 at 15:09:45 UTC, evilrat wrote: On Wednesday, 27 November 2013 at 14:33:21 UTC, master wrote: I want to access dynamic libraries on different platforms, but I still can not get the function, so do not write it? Where is wrong? runtime.loadlibrary is not yet fini

Re: dynamic use dll or so file error!

2013-11-28 Thread master
On Wednesday, 27 November 2013 at 15:09:45 UTC, evilrat wrote: On Wednesday, 27 November 2013 at 14:33:21 UTC, master wrote: I want to access dynamic libraries on different platforms, but I still can not get the function, so do not write it? Where is wrong? runtime.loadlibrary is not yet fini

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jonas Drewsen
On Wednesday, 27 November 2013 at 01:32:18 UTC, Jonathan M Davis wrote: On Wednesday, November 27, 2013 02:05:39 Adam D. Ruppe wrote: ...unless doing a new interface is on the table too. Then, we can leave std.net.curl exactly how it is, so people who use it don't have broken code, while a new

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 11:12, Chris wrote: +1 GtkD & Glade (UI builder) are very good (http://gtkd.org/). Hopefully one day we will have our own pure D GUI toolkit. DWT is a pure D GUI toolkit. -- /Jacob Carlborg

Re: GUI libraries

2013-11-28 Thread Chris
On Thursday, 28 November 2013 at 12:05:09 UTC, Jacob Carlborg wrote: On 2013-11-28 11:12, Chris wrote: +1 GtkD & Glade (UI builder) are very good (http://gtkd.org/). Hopefully one day we will have our own pure D GUI toolkit. DWT is a pure D GUI toolkit. What I meant was no bindings to nati

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread Joseph Rushton Wakeling
On 28/11/13 00:22, MattCoder wrote: Anybody besides me thinks that is hard to use this Forum on a mobile system? Generally I find that reading is OK but writing posts is tricky -- mostly because it's a PITA to select and cut quoted text using a small touchscreen device. The main usability is

Re: dynamic use dll or so file error!

2013-11-28 Thread master
On Thursday, 28 November 2013 at 11:33:05 UTC, master wrote: On Wednesday, 27 November 2013 at 15:09:45 UTC, evilrat wrote: On Wednesday, 27 November 2013 at 14:33:21 UTC, master wrote: I want to access dynamic libraries on different platforms, but I still can not get the function, so do not wr

Re: Unicode handling comparison

2013-11-28 Thread monarch_dodra
On Thursday, 28 November 2013 at 09:02:12 UTC, Walter Bright wrote: Sadly, I think it's great. It means by default, your strings will always be handled correctly. I think there's quite a few algorithms that were written without ever taking strings into account, but still happen to work with the

Re: GUI libraries

2013-11-28 Thread Luís.Marques
On Thursday, 28 November 2013 at 12:13:42 UTC, Chris wrote: What I meant was no bindings to native widgets or other toolkits. DWT (like SWT) uses the native widgets and needs an interface. I was thinking of a toolkit where everything is provided by D and done in D without any reference to nativ

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread Dejan Lekic
On Wednesday, 27 November 2013 at 23:22:24 UTC, MattCoder wrote: Hi, Anybody besides me thinks that is hard to use this Forum on a mobile system? I tried to navigate using my Galaxy Tab 3 - 7", and VERTICALLY it's almost impossible to click on the right Topic without zoom in. Now I imagine

Re: GUI libraries

2013-11-28 Thread Chris
On Thursday, 28 November 2013 at 13:30:53 UTC, Luís Marques wrote: On Thursday, 28 November 2013 at 12:13:42 UTC, Chris wrote: What I meant was no bindings to native widgets or other toolkits. DWT (like SWT) uses the native widgets and needs an interface. I was thinking of a toolkit where every

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread Dicebot
On Thursday, 28 November 2013 at 14:35:55 UTC, Dejan Lekic wrote: You really want to write useful (read more than few sentences) reply using mobile phone? That is really masochistic, IMHO. It was OK until they stopped manufacturing h/w keyboards sliders :( On topic: probably nice improvement

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Dicebot
On Thursday, 28 November 2013 at 07:36:09 UTC, Jacob Carlborg wrote: On 2013-11-27 21:46, Dicebot wrote: Distributing binaries for Mac and Windows is fine (though it is much better to keep those separate archives and patch DVM accordingly), this thread is about Linux ones. You did not have any

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread MattCoder
On Thursday, 28 November 2013 at 14:35:55 UTC, Dejan Lekic wrote: You really want to write useful (read more than few sentences) reply using mobile phone? That is really masochistic, IMHO. In fact I wasn't talking only about reading replies, I was talking about the overall interface, like goin

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jordi Sayol
El 26/11/13 19:44, Andrei Alexandrescu ha escrit: > On 11/25/13 4:36 PM, Adam D. Ruppe wrote: >> On Tuesday, 26 November 2013 at 00:13:57 UTC, Andrei Alexandrescu wrote: >>> First I'd like to gather an understanding on why we seem to have this >>> problem (far as I understand, the likes of php and

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread Joseph Rushton Wakeling
On 28/11/13 16:18, MattCoder wrote: In fact I wasn't talking only about reading replies, I was talking about the overall interface, like going through the pages or clicking on the topics links. So, if is very annoying using on a 7" inches tablet (Vertically) imagine doing that on 4" or 4.5" phone

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jordi Sayol
El 27/11/13 13:56, Dicebot ha escrit: > On Tuesday, 26 November 2013 at 21:04:31 UTC, Andrei Alexandrescu wrote: >>> I really think providing just source + single additional .deb package as >>> an example is the best way to go. >> >> Well we kind of do that already. No? >> >> Andrei > > No. We pro

Re: D vs Go in real life

2013-11-28 Thread Bienlein
On Friday, 22 November 2013 at 14:43:11 UTC, Chris wrote: Go is web-oriented, so it seems, and I'm sure it will be marketed as the "one size fits all" solution for web development, multi-core and whatnot. But D goes deeper. D raises fundamental questions about how a good program should look l

Re: Duplicate keys in array literals?

2013-11-28 Thread Daniel Murphy
"bearophile" wrote in message news:befwnwpitihpcjfbd...@forum.dlang.org... > Is it a good idea to silently statically accept duplicated keys in both > dynamic array literals and in associative array literals? > Looks like a bug to me.

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Dicebot
On Thursday, 28 November 2013 at 15:59:12 UTC, Jordi Sayol wrote: We should then generate dmd packages for every distro release because they can fail between releases too. Or just let specific distro package maintainers do their job. The only thing that breaks the current dmd zip system is li

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Adam D. Ruppe
On Thursday, 28 November 2013 at 11:37:45 UTC, Jonas Drewsen wrote: I definitely agree. In addition D has obtained some nice features since the definition of the std.net.curl API that I would liked have used back then. What are you thinking of there? I think plain old classes and delegates ar

Re: GUI libraries

2013-11-28 Thread Luís.Marques
On Thursday, 28 November 2013 at 14:49:33 UTC, Chris wrote: I don't know, but there are apps out there that do their own thing rather than relying on the system. I think Chrome and Opera are implemented like that. My point was that non-native UIs will result, to different degrees, in less tha

Re: GUI libraries

2013-11-28 Thread Dicebot
I think Chrome and Opera are implemented like that. And hated for that :P

Re: GUI libraries

2013-11-28 Thread Chris
On Thursday, 28 November 2013 at 16:22:58 UTC, Luís Marques wrote: On Thursday, 28 November 2013 at 14:49:33 UTC, Chris wrote: I don't know, but there are apps out there that do their own thing rather than relying on the system. I think Chrome and Opera are implemented like that. My point was

Re: GUI libraries

2013-11-28 Thread eles
On Thursday, 28 November 2013 at 16:27:31 UTC, Dicebot wrote: I think Chrome and Opera are implemented like that. And hated for that :P I love Opera, but I hate Opera ASA for not providing my beloved Linux builds :(((

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jordi Sayol
El 28/11/13 17:12, Dicebot ha escrit: > On Thursday, 28 November 2013 at 15:59:12 UTC, Jordi Sayol wrote: >> We should then generate dmd packages for every distro release because they >> can fail between releases too. > > Or just let specific distro package maintainers do their job. > >> The onl

Re: scoped allocations

2013-11-28 Thread Denis Shelomovskij
27.11.2013 3:33, Namespace пишет: First of all: I apologize for my bad english. In the last few weeks I searched for a way to allocate nicely temporary buffer of unknown lengths. You can use `unstd.memory.allocation.tempAlloc` [1]. Also there is `unstd.c.string.tempCString` [2] for common cas

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Adam D. Ruppe
On Thursday, 28 November 2013 at 17:12:25 UTC, Jordi Sayol wrote: Please can you show something on dmd/phobos that fails on any actively maintained Linux distro that properly works on another one? The dmd zip doesn't work on CentOS 5 because of a libc version mismatch, so it has to be recompi

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jordi Sayol
El 28/11/13 18:17, Adam D. Ruppe ha escrit: > On Thursday, 28 November 2013 at 17:12:25 UTC, Jordi Sayol wrote: >> Please can you show something on dmd/phobos that fails on any actively >> maintained Linux distro that properly works on another one? > > The dmd zip doesn't work on CentOS 5 because

Re: Unicode handling comparison

2013-11-28 Thread Walter Bright
On 11/28/2013 5:24 AM, monarch_dodra wrote: Which operations are you thinking of in std.array that decode when they shouldn't? front() in std.array looks like: @property dchar front(T)(T[] a) @safe pure if (isNarrowString!(T[])) { assert(a.length, "Attempting to fetch the front of an empty

Re: Duplicate keys in array literals?

2013-11-28 Thread luka8088
On 28.11.2013. 12:23, bearophile wrote: > Is it a good idea to silently statically accept duplicated keys in both > dynamic array literals and in associative array literals? > > > void main() { > int[] a = [0:10, 0:20]; > int[int] aa = [0:10, 0:20]; > } > > > I don't remember having

Re: std.complex

2013-11-28 Thread H. S. Teoh
On Wed, Nov 27, 2013 at 11:29:55PM +0100, Joseph Rushton Wakeling wrote: > On 26/11/13 17:28, Andrei Alexandrescu wrote: > >On 11/26/13 3:22 AM, Joseph Rushton Wakeling wrote: > >>So, as other people have suggested, really the only thing we can > >>reasonably do is to define a separate Imaginary ty

Re: Unicode handling comparison

2013-11-28 Thread H. S. Teoh
On Thu, Nov 28, 2013 at 09:52:08AM -0800, Walter Bright wrote: > On 11/28/2013 5:24 AM, monarch_dodra wrote: > >Which operations are you thinking of in std.array that decode > >when they shouldn't? > > front() in std.array looks like: > > @property dchar front(T)(T[] a) @safe pure if (isNarrowStr

Re: scoped allocations

2013-11-28 Thread Namespace
On Thursday, 28 November 2013 at 17:12:01 UTC, Denis Shelomovskij wrote: 27.11.2013 3:33, Namespace пишет: First of all: I apologize for my bad english. In the last few weeks I searched for a way to allocate nicely temporary buffer of unknown lengths. You can use `unstd.memory.allocation.te

Re: D for Speech and Signal Processing

2013-11-28 Thread Joakim
On Thursday, 28 November 2013 at 10:30:36 UTC, Chris wrote: There are voice analysis and speech processing toolkits like Covarep and Voicebox (see links below) that were coded in Matlab, because they were originally only prototypes. There has been talk of porting them to C++. My first thought,

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Marco Leise
Am Wed, 27 Nov 2013 21:08:20 +0100 schrieb Jacob Carlborg : > I mean that I like the current zip to stay. Don't be so ignorant. The zip is broken for all Linux systems bug Debian. I thought that with D Version Manager you tried to support more than one Linux distribution... -- Marco

Re: Duplicate keys in array literals?

2013-11-28 Thread Denis Shelomovskij
28.11.2013 15:23, bearophile пишет: Is it a good idea to silently statically accept duplicated keys in both dynamic array literals and in associative array literals? void main() { int[] a = [0:10, 0:20]; int[int] aa = [0:10, 0:20]; } I don't remember having ever had the need for

Re: Unicode handling comparison

2013-11-28 Thread Dicebot
http://dlang.org/phobos/std_encoding.html#.AsciiString ?

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jonathan M Davis
On Thursday, November 28, 2013 08:36:08 Jacob Carlborg wrote: > On 2013-11-27 21:46, Dicebot wrote: > > Distributing binaries for Mac and Windows is fine (though it is much > > better to keep those separate archives and patch DVM accordingly), this > > thread is about Linux ones. You did not have a

Re: Unicode handling comparison

2013-11-28 Thread monarch_dodra
On Thursday, 28 November 2013 at 18:55:44 UTC, Dicebot wrote: http://dlang.org/phobos/std_encoding.html#.AsciiString ? Yeah, that or just ubyte[]. The problem with both of these though, is printing :/ (which prints ugly as sin) Something like: struct AsciiChar { private char c; alia

Re: D vs Go in real life

2013-11-28 Thread Andrei Alexandrescu
On 11/28/13 8:07 AM, Bienlein wrote: On Friday, 22 November 2013 at 14:43:11 UTC, Chris wrote: Go is web-oriented, so it seems, and I'm sure it will be marketed as the "one size fits all" solution for web development, multi-core and whatnot. But D goes deeper. D raises fundamental questions abo

Re: D vs Go in real life

2013-11-28 Thread Dicebot
On Thursday, 28 November 2013 at 16:07:47 UTC, Bienlein wrote: ... -- Bienlein IMHO, problem with go simplicity is not as much as being not expressive enough to do something as with being forced to move lot of things to run-time. Which is not actually a problem for many applications but very

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Andrei Alexandrescu
On 11/28/13 11:17 AM, Jonathan M Davis wrote: On Thursday, November 28, 2013 08:36:08 Jacob Carlborg wrote: On 2013-11-27 21:46, Dicebot wrote: Distributing binaries for Mac and Windows is fine (though it is much better to keep those separate archives and patch DVM accordingly), this thread is

Re: Unicode handling comparison

2013-11-28 Thread Dmitry Olshansky
28-Nov-2013 17:24, monarch_dodra пишет: On Thursday, 28 November 2013 at 09:02:12 UTC, Walter Bright wrote: Sadly, I think it's great. It means by default, your strings will always be handled correctly. I think there's quite a few algorithms that were written without ever taking strings into a

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread H. S. Teoh
On Thu, Nov 28, 2013 at 11:29:04AM -0800, Andrei Alexandrescu wrote: [...] > Besides the fundamental point remains. People don't need to download > all platform files on one platform. It just doesn't follow. And the > larger the distribution will become the more annoying the issue will > be. [...]

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 14:30, "Luís Marques" " wrote: Whatever API / bindings you use, please don't expose non-native UIs to users (drawn from scratch, either mimicking the native UI or not). They never completely integrate with the OS, subtly deviating from the native behaviour in ways that range from a

Re: GUI libraries

2013-11-28 Thread Xavier Bigand
Le 28/11/2013 13:13, Chris a écrit : On Thursday, 28 November 2013 at 12:05:09 UTC, Jacob Carlborg wrote: On 2013-11-28 11:12, Chris wrote: +1 GtkD & Glade (UI builder) are very good (http://gtkd.org/). Hopefully one day we will have our own pure D GUI toolkit. DWT is a pure D GUI toolkit.

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 13:13, Chris wrote: What I meant was no bindings to native widgets or other toolkits. DWT (like SWT) uses the native widgets and needs an interface. I was thinking of a toolkit where everything is provided by D and done in D without any reference to native frameworks (Cocoa etc.).

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 17:22, "Luís Marques" " wrote: Yes, but you still automatically get a lot of new behaviors/styles with your old application binaries. That's especially important for applications that are not as aggressively maintained as Chrome is. Also, you don't have to have generic UI libraries

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 15:49, Chris wrote: Also, when writing bindings to native widgets, you're always playing catch-up too. Once you've got your bindings, the native toolkit has new methods, features and classes. I still think it would be good to have an independent GUI toolkit, like Java Swing / FX as

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 17:45, Chris wrote: I agree with you, you have a point there, and years ago I would have agreed with you. But users are getting more and more accustomed to a variety of GUIs (and general GUI logic). I used to work a lot with SWT and Cocoa and I know that unless you use the native t

Re: Duplicate keys in array literals?

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 18:55, luka8088 wrote: PHP also allows it: $data = array('a' => 1, 'a' => 2); And I find it to be only a source of bugs. Arrays are a weird beast in PHP. They're both arrays and associative arrays, at the same time, somehow. -- /Jacob Carlborg

Re: GUI libraries

2013-11-28 Thread Xavier Bigand
Le 28/11/2013 14:30, "Luís Marques" " a écrit : On Thursday, 28 November 2013 at 12:13:42 UTC, Chris wrote: What I meant was no bindings to native widgets or other toolkits. DWT (like SWT) uses the native widgets and needs an interface. I was thinking of a toolkit where everything is provided by

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 20:17, Jonathan M Davis wrote: The zip has nothing to do with the stability of D itself. It just has to do with the stalibity of how D is distributed, which is a completely different issue. I can see why you care about the zip, given that you wrote and maintain a tool which relies

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 15:51, Dicebot wrote: We can leave old .zip as-is just make it explicit that it is legacy layout and only 100% expected to work on Debian-compatible distros. I really don't care how it is distributed as I am using git tag anyway - what I do care about are users having wrong expecta

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 19:25, Marco Leise wrote: Don't be so ignorant. The zip is broken for all Linux systems bug Debian. I thought that with D Version Manager you tried to support more than one Linux distribution... Yes, I would like that. But if the the current zip is removed it will break _every_

Re: Should "std.net.curl" be moved from Phobos to Deimos?

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 20:44, H. S. Teoh wrote: I don't see what's the big deal with providing one zip per supported platform (and each Linux distro is to be considered a separate platform here), *and* a dmd_everything.zip for distributors who *want* to have everything in one (they are installing D onto

Too focused on C++ programmers?

2013-11-28 Thread qznc
I read an interesting article [0] with a weird title. It got me thinking about Ds marketing [1]. Are we too focused on the C++ programmers? Most of them are very unlikely to switch. In comparison, D should be much easier to sell to people, who are already considering Go/Scala/Clojure/Node.js/et

Re: Duplicate keys in array literals?

2013-11-28 Thread luka8088
On 28.11.2013. 21:01, Jacob Carlborg wrote: > On 2013-11-28 18:55, luka8088 wrote: > >> PHP also allows it: >> >> $data = array('a' => 1, 'a' => 2); >> >> And I find it to be only a source of bugs. > > Arrays are a weird beast in PHP. They're both arrays and associative > arrays, at the same time

Re: GUI libraries

2013-11-28 Thread Jacob Carlborg
On 2013-11-28 21:03, Xavier Bigand wrote: Take a look to QML with Qt Quick Controls : http://www.youtube.com/watch?v=_6_F6Kpjd-Q That shows the problem with non-native toolkits. When he adds the button to the toolbar in the beginning, the toolbar isn't a native unified toolbar. It's some cus

Re: GUI libraries

2013-11-28 Thread Xavier Bigand
Le 28/11/2013 21:35, Jacob Carlborg a écrit : On 2013-11-28 21:03, Xavier Bigand wrote: Take a look to QML with Qt Quick Controls : http://www.youtube.com/watch?v=_6_F6Kpjd-Q That shows the problem with non-native toolkits. When he adds the button to the toolbar in the beginning, the toolbar

Re: Too focused on C++ programmers?

2013-11-28 Thread H. S. Teoh
On Thu, Nov 28, 2013 at 09:27:03PM +0100, qznc wrote: > I read an interesting article [0] with a weird title. It got me > thinking about Ds marketing [1]. Are we too focused on the C++ > programmers? Most of them are very unlikely to switch. In > comparison, D should be much easier to sell to peopl

If you had money to place for a bounty, what would you choose?

2013-11-28 Thread Fra
Personally I would love to see this old issue finally implemented/fixed: There can be only one alias this. https://d.puremagic.com/issues/show_bug.cgi?id=6083 What would your choice be?

Re: GUI libraries

2013-11-28 Thread Dicebot
On Thursday, 28 November 2013 at 20:55:02 UTC, Xavier Bigand wrote: Yep, that the goal, having applications with a real personality. I don't think it's an issue especially when application is full screen and respect pictographs (icons and texts) standards,... It is easier (much much easier) b

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread eles
On Thursday, 28 November 2013 at 21:01:39 UTC, Fra wrote: Personally I would love to see this old issue finally implemented/fixed: There can be only one alias this. https://d.puremagic.com/issues/show_bug.cgi?id=6083 What would your choice be? http://d.puremagic.com/issues/show_bug.cgi?id=113

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread Namespace
On Thursday, 28 November 2013 at 21:01:39 UTC, Fra wrote: Personally I would love to see this old issue finally implemented/fixed: There can be only one alias this. https://d.puremagic.com/issues/show_bug.cgi?id=6083 What would your choice be? http://d.puremagic.com/issues/show_bug.cgi?id=923

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread H. S. Teoh
If I had the money, I'd not just place a bounty, I'd hire a team of dedicated programmers to work full-time to fix the current AA implementation, once and for all. There are at least 76 AA-related issues[1] on my list, many of which are not just trifling bugs but fundamental design issues. I know

Re: D for Speech and Signal Processing

2013-11-28 Thread Frustrated
On Thursday, 28 November 2013 at 10:30:36 UTC, Chris wrote: There are voice analysis and speech processing toolkits like Covarep and Voicebox (see links below) that were coded in Matlab, because they were originally only prototypes. There has been talk of porting them to C++. My first thought,

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread Fra
On Thursday, 28 November 2013 at 21:38:12 UTC, H. S. Teoh wrote: If I had the money, I'd not just place a bounty, I'd hire a team of dedicated programmers to work full-time to fix the current AA implementation, once and for all. There are at least 76 AA-related issues[1] on my list, many of wh

Re: Too focused on C++ programmers?

2013-11-28 Thread qznc
On Thursday, 28 November 2013 at 20:57:39 UTC, H. S. Teoh wrote: On Thu, Nov 28, 2013 at 09:27:03PM +0100, qznc wrote: I read an interesting article [0] with a weird title. It got me thinking about Ds marketing [1]. Are we too focused on the C++ programmers? Most of them are very unlikely to swi

Re: Too focused on C++ programmers?

2013-11-28 Thread bearophile
qznc: How can type safety be "better"? Type safety is binary. A type cannot be 50% safe. You can have many different levels of type safety :-) While the D type system gives only a binary answer regarding the correctness of the types of a program, there are many different ways to write your

Re: Duplicate keys in array literals?

2013-11-28 Thread bearophile
Denis Shelomovskij: File the issue please. I have opened an issue, currently it's not an enhancement request: https://d.puremagic.com/issues/show_bug.cgi?id=11637 In that issue I have also added more explanations and more code examples, with an extra small discussion about arrays with stron

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread Simen Kjærås
On 28.11.2013 22:01, Fra wrote: Personally I would love to see this old issue finally implemented/fixed: There can be only one alias this. https://d.puremagic.com/issues/show_bug.cgi?id=6083 What would your choice be? https://d.puremagic.com/issues/show_bug.cgi?id=8570 https://d.puremagic.com/

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread H. S. Teoh
On Thu, Nov 28, 2013 at 11:06:41PM +0100, Fra wrote: > On Thursday, 28 November 2013 at 21:38:12 UTC, H. S. Teoh wrote: > >If I had the money, I'd not just place a bounty, I'd hire a team of > >dedicated programmers to work full-time to fix the current AA > >implementation, once and for all. There

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread nazriel
On Thursday, 28 November 2013 at 14:58:42 UTC, Dicebot wrote: On Thursday, 28 November 2013 at 14:35:55 UTC, Dejan Lekic wrote: You really want to write useful (read more than few sentences) reply using mobile phone? That is really masochistic, IMHO. It was OK until they stopped manufacturing

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread bearophile
H. S. Teoh: Then they have to figure out how to extricate the AA-dependent parts of dmd out of all the places they're sprinkled in, *without* breaking the rest of the language, so that a proper library replacement can be put in its place. (Not to mention that said replacement must be 100% com

Is this a bug ?

2013-11-28 Thread Binarydepth
Here is my code : It compiles but in run time terminal shows a segmentation fault. Am I doing something wrong ? Or do I have to file a Bug ? import std.stdio : write, readf; void funcion(int a, int t) { int temp, bd, an; temp=t

Re: Is this a bug ?

2013-11-28 Thread Adam D. Ruppe
On Friday, 29 November 2013 at 00:35:30 UTC, Binarydepth wrote: It compiles but in run time terminal shows a segmentation fault. works for me without segfaulting. What data did you input? write(" %d: %d\n", bd, an); This should be writef instead of write. writef uses the format string, pl

Re: If you had money to place for a bounty, what would you choose?

2013-11-28 Thread Dicebot
Nice game "guess linked bug by poster nickname" :)

Re: Too focused on C++ programmers?

2013-11-28 Thread Craig Dillabaugh
On Thursday, 28 November 2013 at 22:36:59 UTC, qznc wrote: On Thursday, 28 November 2013 at 20:57:39 UTC, H. S. Teoh wrote: On Thu, Nov 28, 2013 at 09:27:03PM +0100, qznc wrote: I read an interesting article [0] with a weird title. It got me clip Why would you prefer D? D supports

Re: [Improvement] Forum's Interface on Mobile

2013-11-28 Thread H. S. Teoh
On Fri, Nov 29, 2013 at 01:22:56AM +0100, nazriel wrote: > On Thursday, 28 November 2013 at 14:58:42 UTC, Dicebot wrote: > >On Thursday, 28 November 2013 at 14:35:55 UTC, Dejan Lekic wrote: > >>You really want to write useful (read more than few sentences) > >>reply using mobile phone? That is real

Re: Is this a bug ?

2013-11-28 Thread Binarydepth
On Friday, 29 November 2013 at 00:40:29 UTC, Adam D. Ruppe wrote: On Friday, 29 November 2013 at 00:35:30 UTC, Binarydepth wrote: It compiles but in run time terminal shows a segmentation fault. works for me without segfaulting. What data did you input? write(" %d: %d\n", bd, an); This sh

Re: GUI libraries

2013-11-28 Thread Craig Dillabaugh
On Thursday, 28 November 2013 at 20:55:02 UTC, Xavier Bigand wrote: Le 28/11/2013 21:35, Jacob Carlborg a écrit : On 2013-11-28 21:03, Xavier Bigand wrote: Take a look to QML with Qt Quick Controls : http://www.youtube.com/watch?v=_6_F6Kpjd-Q That shows the problem with non-native toolkits.

Re: GUI libraries

2013-11-28 Thread Dicebot
On Friday, 29 November 2013 at 01:26:57 UTC, Craig Dillabaugh wrote: Actually, I would say Linux doesn't have a native GUI, since Qt/GTK are basically cross-platform UI toolkits that sit on top of X11/Wayland/Whatever. There can't be such thing as native Linux GUI. Linux is a kernel. There is

Re: Is this a bug ?

2013-11-28 Thread Adam D. Ruppe
On Friday, 29 November 2013 at 01:17:36 UTC, Binarydepth wrote: So weird I get seg fault. which OS are you using ? linux

Re: Is this a bug ?

2013-11-28 Thread bearophile
Adam D. Ruppe: write(" %d: %d\n", bd, an); This should be writef instead of write. writef uses the format string, plain write just literally outputs its arguments. A statically typed language should give a compile-time error for such mistake. It's a leftover from the weakly typed C mindset

Re: GUI libraries

2013-11-28 Thread Craig Dillabaugh
clip What is native on windows ? - Win32 - Winforms - Qt Widgets (that is near Win32)? And on linux ? - GTK (with gnome and KDE) - Qt QML (KDE future) Neither. Its Motif :o) Unity! Actually, I would say Linux doesn't have a native GUI, since Qt/GTK are basically cross-platform UI toolkits

Re: Is this a bug ?

2013-11-28 Thread Adam D. Ruppe
On Friday, 29 November 2013 at 01:35:31 UTC, bearophile wrote: A statically typed language should give a compile-time error for such mistake. It is perfectly valid to pass a string to the write function. He simply called the wrong function.

Re: GUI libraries

2013-11-28 Thread Craig Dillabaugh
On Friday, 29 November 2013 at 01:30:46 UTC, Dicebot wrote: On Friday, 29 November 2013 at 01:26:57 UTC, Craig Dillabaugh wrote: Actually, I would say Linux doesn't have a native GUI, since Qt/GTK are basically cross-platform UI toolkits that sit on top of X11/Wayland/Whatever. There can't be

Re: GUI libraries

2013-11-28 Thread Dicebot
On Friday, 29 November 2013 at 01:43:39 UTC, Craig Dillabaugh wrote: On Friday, 29 November 2013 at 01:30:46 UTC, Dicebot wrote: On Friday, 29 November 2013 at 01:26:57 UTC, Craig Dillabaugh wrote: Actually, I would say Linux doesn't have a native GUI, since Qt/GTK are basically cross-platform

Re: GUI libraries

2013-11-28 Thread Adam D. Ruppe
On Friday, 29 November 2013 at 01:43:39 UTC, Craig Dillabaugh wrote: Are you really Richard Stallman? :o) There is one true linux gui: emacs!

  1   2   >