Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Tobias Pankrath via Digitalmars-d
Well then write that answer. Not true, right now.

The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
Hi, Tell me, please, why this code works correctly always: import std.stdio; int n; readf(%s\n, n); string s, t; readf(%s\n%s\n, s, t); And this code works correctly is not always: import std.stdio; readf(%s\n, n); char[200010] s, t; scanf(%s%s, s.ptr, t.ptr); Data is entered only in this

[Issue 4149] refs displayed as pointers in gdb

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4149 --- Comment #19 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f54855a15150a3f515813051bd283ac5fcfb04cc fix Issue 4149 - refs

[Issue 14311] Win32 COFF: bad symbols/relocation entries for global data accesses

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14311 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6b426b369ec0a7e040412ecd75a381e87d051701 Merge pull request #4504

[Issue 14311] Win32 COFF: bad symbols/relocation entries for global data accesses

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14311 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Complex Imaginary

2015-03-21 Thread Mike Parker via Digitalmars-d
On 3/21/2015 4:07 PM, Daniel Murphy wrote: Mike Parker wrote in message news:qebnpybksrpthnewv...@forum.dlang.org... I know in was decided long ago that {i/c}float/double/real be deprecated at some point, but it hasn't happened yet and they are still listed in the table at [1]. So I have two

Re: DTanks Alpha

2015-03-21 Thread sclytrack via Digitalmars-d-announce
On Saturday, 21 March 2015 at 02:39:23 UTC, Rikki Cattermole wrote: On 21/03/2015 10:55 a.m., Kingsley wrote: In preparation for the London D meetup I have got the DTanks robot battle framework into the first alpha release state - good enough to use at the meetup anyway.

Re: Phobos Documentation - call to action

2015-03-21 Thread Joseph Rushton Wakeling via Digitalmars-d
On Wednesday, 18 March 2015 at 03:45:07 UTC, Walter Bright wrote: 1. The sections Params, Returns, and See_Also need to be there. (Unless there are no parameters, or a void return.) Any chance of getting a TemplateParams: (or Template_Params:) option in the next dmd release, too? Would help

Re: Phobos Documentation - call to action

2015-03-21 Thread Walter Bright via Digitalmars-d
On 3/21/2015 1:00 AM, Joseph Rushton Wakeling wrote: On Wednesday, 18 March 2015 at 03:45:07 UTC, Walter Bright wrote: 1. The sections Params, Returns, and See_Also need to be there. (Unless there are no parameters, or a void return.) Any chance of getting a TemplateParams: (or

[Issue 4044] [Tracker] Bad debug information and DWARF errors

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4044 Issue 4044 depends on issue 4149, which changed state. Issue 4149 Summary: refs displayed as pointers in gdb https://issues.dlang.org/show_bug.cgi?id=4149 What|Removed |Added

[Issue 14276] DWARF debug info for SIMD broken

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14276 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/de2bd348fe46240af3bf5e1190c7de2ed1b8955e fix Issue 14276 - DWARF

[Issue 14276] DWARF debug info for SIMD broken

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14276 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 March 2015 at 00:42:22 UTC, Walter Bright wrote: On 3/20/2015 5:17 PM, Andrei Alexandrescu wrote: They're useful to prevent writes to foo. That's true. Also as Amaury mentioned they give the implementer better options going forward. See debacle about C++'s std::pair's

Re: DTanks Alpha

2015-03-21 Thread Rikki Cattermole via Digitalmars-d-announce
On 21/03/2015 7:46 p.m., sclytrack wrote: On Saturday, 21 March 2015 at 02:39:23 UTC, Rikki Cattermole wrote: On 21/03/2015 10:55 a.m., Kingsley wrote: In preparation for the London D meetup I have got the DTanks robot battle framework into the first alpha release state - good enough to use at

Re: SDC-32bit

2015-03-21 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 20 March 2015 at 17:20:36 UTC, Laeeth Isharc wrote: How about Javascript or JSASM? So we can write D on the browser? You mean asm.js. I will hook up emscripten soon. However the biggest issue is porting the runtime to javascript.

Re: Complex Imaginary

2015-03-21 Thread Daniel Murphy via Digitalmars-d
Mike Parker wrote in message news:qebnpybksrpthnewv...@forum.dlang.org... I know in was decided long ago that {i/c}float/double/real be deprecated at some point, but it hasn't happened yet and they are still listed in the table at [1]. So I have two questions: 1) Is this still supposed to

Re: [Semi OT] The programming language wars

2015-03-21 Thread John Colvin via Digitalmars-d
On Friday, 20 March 2015 at 22:55:24 UTC, Laeeth Isharc wrote: So one must be careful to avoid being dazzled by shiny 'scientific' approaches when their value remains yet to be proven. I sense a recursive problem here...

Re: [Semi OT] The programming language wars

2015-03-21 Thread John Colvin via Digitalmars-d
On Friday, 20 March 2015 at 17:25:54 UTC, H. S. Teoh wrote: On Fri, Mar 20, 2015 at 05:04:20PM +, ketmar via Digitalmars-d wrote: On Fri, 20 Mar 2015 13:28:45 +, Paulo Pinto wrote: Given that I have been an IDE fan since the Amiga days, I fully agree. Every time I am on UNIX I

Re: [Semi OT] The programming language wars

2015-03-21 Thread Piotrek via Digitalmars-d
On Saturday, 21 March 2015 at 14:07:28 UTC, FG wrote: Now imagine the extra trouble if you mix languages. Also, how do you include meta-text control sequences in a message? By raising your voice or tilting your head when you say the magic words? Cf.: There was this famous quote QUOTE to be

Re: [Semi OT] The programming language wars

2015-03-21 Thread Paulo Pinto via Digitalmars-d
On Saturday, 21 March 2015 at 14:07:28 UTC, FG wrote: On 2015-03-21 at 06:30, H. S. Teoh via Digitalmars-d wrote: On Sat, Mar 21, 2015 at 04:17:00AM +, Joakim via Digitalmars-d wrote: [...] What I was going to say too, neither CLI or GUI will win, speech recognition will replace them

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread via Digitalmars-d
On Saturday, 21 March 2015 at 17:55:09 UTC, Walter Bright wrote: On 3/20/2015 3:50 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: High level constructs may be cleaner if done right, and sometimes saves programmer time, but it will never be as fast on the

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Andrei Alexandrescu via Digitalmars-d
On 3/20/15 9:43 PM, Sebastiaan Koppe wrote: On Saturday, 21 March 2015 at 01:31:21 UTC, Andrei Alexandrescu wrote: On 3/20/15 5:56 PM, Walter Bright wrote: On 3/20/2015 5:23 PM, Andrei Alexandrescu wrote: Yah, and uses reference counting for management. -- Andrei Ref counting won't improve

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Ivan Kazmenko via Digitalmars-d-learn
On Saturday, 21 March 2015 at 14:31:20 UTC, Dennis Ritchie wrote: In C++ it is fully working: char s[25], t[25]; scanf(%s%s, s, t); Indeed. Generate a 10-character string: - import std.range, std.stdio; void main () {'a'.repeat (10).writeln;} - Try to copy it with D

Re: DTanks Alpha

2015-03-21 Thread Dan Olson via Digitalmars-d-announce
Kingsley kingsley.hendric...@gmail.com writes: In preparation for the London D meetup I have got the DTanks robot battle framework into the first alpha release state - good enough to use at the meetup anyway. https://github.com/masterthought/dtanks --K DTanks looks cool! I am going to

Re: Post increment and decrement

2015-03-21 Thread welkam via Digitalmars-d
On Saturday, 21 March 2015 at 00:42:22 UTC, Andrei Alexandrescu wrote: Are you sure you're not missing the part where D's ++var and var++ generate identical code if the result isn't taken? -- Andrei No I am not missing it. I think I need to explain why I am doing all of this. I am

[Issue 14314] New: 2.067-rc1: ICE compiling project which has compiled fine for years

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14314 Issue ID: 14314 Summary: 2.067-rc1: ICE compiling project which has compiled fine for years Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
On Saturday, 21 March 2015 at 15:05:56 UTC, Ivan Kazmenko wrote: On Saturday, 21 March 2015 at 14:31:20 UTC, Dennis Ritchie wrote: In C++ it is fully working: char s[25], t[25]; scanf(%s%s, s, t); Indeed. And why in D copied only the first 32767 characters of the string? I'm more

Contributing to Phobos Documentation

2015-03-21 Thread Craig Dillabaugh via Digitalmars-d-learn
Motivated by this thread: http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com I was hoping to see if I could do some work on the Phobos documentation, but I am curious to know what the easiest way for someone with limited/no ddoc experience to get involved in this would be. I

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Walter Bright via Digitalmars-d
On 3/20/2015 3:50 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: High level constructs may be cleaner if done right, and sometimes saves programmer time, but it will never be as fast on the standard CPU architectures we have today. The hardware favours

Re: [Semi OT] The programming language wars

2015-03-21 Thread H. S. Teoh via Digitalmars-d
On Sat, Mar 21, 2015 at 03:10:37PM +, John Colvin via Digitalmars-d wrote: On Friday, 20 March 2015 at 17:25:54 UTC, H. S. Teoh wrote: [...] But at another level, it's not even about keyboard vs. rodent... it's about *scriptability*. It's about abstraction. Typing commands at the CLI,

[Issue 14314] 2.067-rc1: ICE compiling project which has compiled fine for years

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14314 --- Comment #1 from Kenji Hara k.hara...@gmail.com --- After the 2.067-rc1, a CTFE regression 14304 is fixed. https://issues.dlang.org/show_bug.cgi?id=14304 It had been failed a same compiler internal assertion. Could you try to use git-head, or

SO/messaging - dmd is fast to compile; ldc/gdc generate fast code

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
Yah, nitpicks should go there too. We need to have an understanding that statistically everybody is on SO and nobody here :o). I have seen repeatedly - on stack overflow and elsewhere - people benchmarking 'D' against other languages using dmd. The messaging on the home page and download

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread FG via Digitalmars-d
On 2015-03-20 at 16:25, weaselcat wrote: On Friday, 20 March 2015 at 15:12:44 UTC, David Gileadi wrote: Someone who knows about copyright/licensing would probably need to check that it's okay if we plan to use them verbatim. If we can't then it might be worth linking to the above page from

Re: [Semi OT] The programming language wars

2015-03-21 Thread FG via Digitalmars-d
On 2015-03-21 at 06:30, H. S. Teoh via Digitalmars-d wrote: On Sat, Mar 21, 2015 at 04:17:00AM +, Joakim via Digitalmars-d wrote: [...] What I was going to say too, neither CLI or GUI will win, speech recognition will replace them both, by providing the best of both. Rather than writing a

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
On Friday, 20 March 2015 at 20:34:36 UTC, Walter Bright wrote: On 3/20/2015 8:25 AM, weaselcat wrote: All of the content on rosettacode appears to be licensed under GNU FDL, I believe it would just have to be released under the GNU FDL or a similar copyleft license that fulfills the GNU FDL.

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread FG via Digitalmars-d
On 2015-03-21 at 12:34, Laeeth Isharc wrote: has he actually given his sole rights to use his work them? [...] ROTFL, we must be telepathically linked. :)

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
In C++ it is fully working: char s[25], t[25]; scanf(%s%s, s, t); http://codeforces.com/contest/527/submission/10376381?locale=en

Re: OPTLINK Error 45 Too Much DEBUG Data for Old CodeView format

2015-03-21 Thread Koi via Digitalmars-d-learn
On Friday, 20 March 2015 at 21:35:54 UTC, Orfeo wrote: You can refer to http://forum.dlang.org/post/jhbgaacoguxaubxgp...@forum.dlang.org but i don't want to throw in the towel. ;) Compiling in release mode works fine, yes. Do you use dub? I resolved my problems (on Win) abandoning dub and

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread FG via Digitalmars-d
On 2015-03-19 at 09:41, Walter Bright wrote: On 3/18/2015 4:41 PM, Walter Bright wrote: #include stdbool.h #include stdio.h typedef long T; bool find(T *array, size_t dim, T t) { int i; for (i = 0; i = dim; i++); { int v = array[i]; if (v == t) return true; } }

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread anonymous via Digitalmars-d-learn
On Saturday, 21 March 2015 at 08:37:59 UTC, Dennis Ritchie wrote: Tell me, please, why this code works correctly always: [...] And this code works correctly is not always: import std.stdio; readf(%s\n, n); char[200010] s, t; scanf(%s%s, s.ptr, t.ptr); Please go into more detail about how

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
On Saturday, 21 March 2015 at 12:08:05 UTC, anonymous wrote: Please go into more detail about how it doesn't work. Task: http://codeforces.com/contest/527/problem/B?locale=en It works: char[200010] s, t; s = readln.strip; t = readln.strip;

Poodinis Dependency Injection Framework v1.0.0 released

2015-03-21 Thread Mike Bierlee via Digitalmars-d-announce
I've just released the first production-ready release of the Poodinis Dependency Injection Framework. Poodinis is mainly inspired by the dependency injection framework in Spring. It currently allows you to manually manage dependencies and have them be automatically injected into components

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread FG via Digitalmars-d-learn
On 2015-03-21 at 16:05, Ivan Kazmenko wrote: Generate a 10-character string [...] Try to copy it with D scanf and printf: - import std.stdio; void main () { char [10] a; scanf (%s, a.ptr); printf (%s\n, a.ptr); } - Only 32767 first characters of the string are

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Walter Bright via Digitalmars-d
On 3/21/2015 11:02 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Saturday, 21 March 2015 at 17:55:09 UTC, Walter Bright wrote: On 3/20/2015 3:50 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: High level constructs

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
On Saturday, 21 March 2015 at 19:09:59 UTC, FG wrote: In what universe?! Which OS, compiler and architecture? On Saturday, 21 March 2015 at 19:09:59 UTC, FG wrote: In what universe?! Which OS, compiler and architecture? Windows 8.1 x64, dmd 2.066.1: import std.range, std.stdio; void main

[Issue 14315] New: [snn] scanf can't read lines longer than 32767 characters

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14315 Issue ID: 14315 Summary: [snn] scanf can't read lines longer than 32767 characters Product: D Version: D1 D2 Hardware: x86_64 OS: Windows Status:

Re: [Semi OT] The programming language wars

2015-03-21 Thread FG via Digitalmars-d
On 2015-03-21 at 20:13, Joakim wrote: Find me the best deal on a S6 [...] Just tried it on google's voice search, it thought I said Find me the best deal on a last sex the first time I tried. Obviously Google tries to converge the query with what is usually searched for. OTOH that's one of

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread via Digitalmars-d
On Saturday, 21 March 2015 at 19:35:02 UTC, Walter Bright wrote: I know I shouldn't, but I'll bite. Show me the low level C code that effectively uses SIMD vector registers. You are right, you should not bite. C code is superflous, this is a general issue with efficient parallel computations.

Re: [Semi OT] The programming language wars

2015-03-21 Thread Joakim via Digitalmars-d
On Saturday, 21 March 2015 at 19:20:18 UTC, deadalnix wrote: On Saturday, 21 March 2015 at 15:51:38 UTC, Paulo Pinto wrote: I don't expect programming will remain so low level in the future. We are at the infancy of our skills, when comparing with engineerings with a fee centuries of progress.

[Issue 14315] [snn] scanf can't read lines longer than 32767 characters

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14315 Ivan Kazmenko ga...@mail.ru changed: What|Removed |Added CC||ga...@mail.ru

Re: [Semi OT] The programming language wars

2015-03-21 Thread Joakim via Digitalmars-d
On Saturday, 21 March 2015 at 14:07:28 UTC, FG wrote: On 2015-03-21 at 06:30, H. S. Teoh via Digitalmars-d wrote: On Sat, Mar 21, 2015 at 04:17:00AM +, Joakim via Digitalmars-d wrote: [...] What I was going to say too, neither CLI or GUI will win, speech recognition will replace them

Re: [Semi OT] The programming language wars

2015-03-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 March 2015 at 15:51:38 UTC, Paulo Pinto wrote: I don't expect programming will remain so low level in the future. We are at the infancy of our skills, when comparing with engineerings with a fee centuries of progress. For me the future lyes in something like Wolfram/Mathematic

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread anonymous via Digitalmars-d-learn
On Saturday, 21 March 2015 at 15:05:56 UTC, Ivan Kazmenko wrote: Generate a 10-character string: - import std.range, std.stdio; void main () {'a'.repeat (10).writeln;} - Try to copy it with D scanf and printf: - import std.stdio; void main () { char [10] a;

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread FG via Digitalmars-d-learn
On 2015-03-21 at 21:02, Dennis Ritchie wrote: In what universe?! Which OS, compiler and architecture? Windows 8.1 x64, dmd 2.066.1: That's strange. I cannot recreate the problem on Win7 x64 with dmd 2.066.1, neither when compiled for 32- nor 64-bit. I have saved the a's to a file and use

Re: [Semi OT] The programming language wars

2015-03-21 Thread H. S. Teoh via Digitalmars-d
On Sat, Mar 21, 2015 at 07:13:10PM +, Joakim via Digitalmars-d wrote: [...] On Saturday, 21 March 2015 at 15:47:14 UTC, H. S. Teoh wrote: It's about the ability to abstract, that's currently missing from today's ubiquitous GUIs. I would willingly leave my text-based interfaces behind if

Re: Post increment and decrement

2015-03-21 Thread Andrei Alexandrescu via Digitalmars-d
On 3/21/15 9:59 AM, welkam wrote: On Saturday, 21 March 2015 at 00:42:22 UTC, Andrei Alexandrescu wrote: Are you sure you're not missing the part where D's ++var and var++ generate identical code if the result isn't taken? -- Andrei No I am not missing it. I think I need to explain why I am

Re: [Semi OT] The programming language wars

2015-03-21 Thread via Digitalmars-d
On Saturday, 21 March 2015 at 21:46:10 UTC, H. S. Teoh wrote: This is the unpopular opinion, but I'm skeptical if this day will ever come. The problem with voice recognition is that it's based on natural language, and natural language is inherently ambiguous. You say that heuristics can solve

[Issue 14315] [snn] scanf can't read lines longer than 32767 characters

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14315 --- Comment #4 from FG h...@fgda.pl --- Sorry, forget my comment. I was testing on the wrong files. Now that I corrected them I see that it always prints 32767, regardless of the situation I previously described. --

Re: A reason to choose D over Go

2015-03-21 Thread via Digitalmars-d
This is a funny workaround: http://bouk.co/blog/idiomatic-generics-in-go/

Re: [Semi OT] The programming language wars

2015-03-21 Thread Laeeth Isharc via Digitalmars-d
Right, but it is likely that the nature of programming will ni change. In the beginning of the web the search engines had trouble matching anything but exact phrases, now they are capable of figuring out what you probably wanted. As you implicitly recognize later, it's not either/or, in the

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread anonymous via Digitalmars-d-learn
On Saturday, 21 March 2015 at 23:00:46 UTC, Ivan Kazmenko wrote: To me, it looks like a bug somewhere, though I don't get where exactly. Is it in bits of DigitalMars C/C++ compiler code glued into druntime? As far as I understand, the bug is in snn.lib's scanf. snn.lib is Digital Mars's

[Issue 14315] [snn] scanf can't read lines longer than 32767 characters

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14315 --- Comment #3 from Ivan Kazmenko ga...@mail.ru --- (In reply to FG from comment #2) I can confirm the problem. Interestingly, it occurs when trying to scanf a long string without whitespace immediately followed by \r\n. There was no problem when

A reason to choose D over Go

2015-03-21 Thread Martin Nowak via Digitalmars-d
This blog post describes what to consider when switching from python to go. http://blog.repustate.com/migrating-code-from-python-to-golang-what-you-need-to-know/#tips It's very interesting, because the long list of things to give up for more efficient go code reads like an argumentation against

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Ivan Kazmenko via Digitalmars-d-learn
On Saturday, 21 March 2015 at 16:34:44 UTC, Dennis Ritchie wrote: And why in D copied only the first 32767 characters of the string? I'm more days couldn't understand what was going on... To me, it looks like a bug somewhere, though I don't get where exactly. Is it in bits of DigitalMars

std.typecons.Flag -- public import for API users?

2015-03-21 Thread rcorre via Digitalmars-d-learn
If I am developing a library and some of my functinos take a std.typecons.Flag as an argument, should I 'public import std.typecons: Flag, Yes, No'? It seems like it would be a pain for users of the library to have to import this separately whenever they use my library, but I'm not sure what

Re: A reason to choose D over Go

2015-03-21 Thread Atila Neves via Digitalmars-d
The moment I realised that Go requires you to write loops was the moment I decided we were done. I actually think that there are two large categories of programmers: those like writing the same loops over and over again and those who use algorithms. On Saturday, 21 March 2015 at 22:16:10 UTC,

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread FG via Digitalmars-d-learn
On 2015-03-21 at 22:15, FG wrote: On 2015-03-21 at 21:02, Dennis Ritchie wrote: In what universe?! Which OS, compiler and architecture? Windows 8.1 x64, dmd 2.066.1: That's strange. I cannot recreate the problem on Win7 x64 with dmd 2.066.1, neither when compiled for 32- nor 64-bit. I have

Re: OPTLINK Error 45 Too Much DEBUG Data for Old CodeView format

2015-03-21 Thread Trass3r via Digitalmars-d-learn
Just save yourself lots of headaches and abandon the optlink/omf crap with -m64 resp. -m32mscoff.

[Issue 14315] [snn] scanf can't read lines longer than 32767 characters

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14315 FG h...@fgda.pl changed: What|Removed |Added CC||h...@fgda.pl --- Comment #2 from FG

Re: Contributing to Phobos Documentation

2015-03-21 Thread H. S. Teoh via Digitalmars-d-learn
On Sat, Mar 21, 2015 at 05:48:40PM +, Craig Dillabaugh via Digitalmars-d-learn wrote: Motivated by this thread: http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com I was hoping to see if I could do some work on the Phobos documentation, but I am curious to know what the

[Issue 14316] New: allow to declare a variable in with statement

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14316 Issue ID: 14316 Summary: allow to declare a variable in with statement Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 14280] Links to command line tools have disappeared from navigation

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14280 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14280] Links to command line tools have disappeared from navigation

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14280 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/be9392998dfdd2d66db7b1ff7137deb5d4ca0ae4 mostly fix

[Issue 13936] groupBy must be redone

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #48 from Andrei Alexandrescu and...@erdani.com --- Thanks everybody for their work! Is this done now? --

Re: A reason to choose D over Go

2015-03-21 Thread weaselcat via Digitalmars-d
On Sunday, 22 March 2015 at 01:24:10 UTC, Martin Nowak wrote: On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves wrote: I actually think that there are two large categories of programmers: those like writing the same loops over and over again and those who use algorithms. I agree, at

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-21 Thread Jakob Ovrum via Digitalmars-d
On Sunday, 22 March 2015 at 01:15:07 UTC, Andrei Alexandrescu wrote: I've left a comment recently at https://github.com/D-Programming-Language/phobos/pull/3087. So what's the deal with that? Whenever a new tool leaves some trash, do we chalk a circle on the pavement around it? Andrei

Re: std.typecons.Flag -- public import for API users?

2015-03-21 Thread ketmar via Digitalmars-d-learn
On Sat, 21 Mar 2015 23:16:37 +, rcorre wrote: If I am developing a library and some of my functinos take a std.typecons.Flag as an argument, should I 'public import std.typecons: Flag, Yes, No'? It seems like it would be a pain for users of the library to have to import this separately

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Walter Bright via Digitalmars-d
On 3/21/2015 2:08 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Saturday, 21 March 2015 at 19:35:02 UTC, Walter Bright wrote: I know I shouldn't, but I'll bite. Show me the low level C code that effectively uses SIMD vector registers. You are right,

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-21 Thread Martin Nowak via Digitalmars-d
On 03/19/2015 11:47 AM, Benjamin Thaut wrote: This is going to be a lot of fun as soon as tons of currently private functions in phobos are public due to the usage of export. Why would export make private functions public?

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-21 Thread Daniel Murphy via Digitalmars-d
Andrei Alexandrescu wrote in message news:mel52r$252b$1...@digitalmars.com... I've left a comment recently at https://github.com/D-Programming-Language/phobos/pull/3087. So what's the deal with that? Whenever a new tool leaves some trash, do we chalk a circle on the pavement around it?

[Issue 14317] New: [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 Issue ID: 14317 Summary: [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline Product: D Version: D2 Hardware: x86_64 OS: Windows

[Issue 14035] string concatenation accepts ints in templates

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 14086] Invalid extern C++ name for constructor / destructor

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14086 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com

[Issue 14314] 2.067-rc1: ICE compiling project which has compiled fine for years

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14314 --- Comment #2 from Manu turkey...@gmail.com --- Thanks Kenji, I'll give it a shot! --

Re: The difference in string and char[], readf() and scanf()

2015-03-21 Thread Dennis Ritchie via Digitalmars-d-learn
On Saturday, 21 March 2015 at 23:00:46 UTC, Ivan Kazmenko wrote: On Saturday, 21 March 2015 at 16:34:44 UTC, Dennis Ritchie wrote: And why in D copied only the first 32767 characters of the string? I'm more days couldn't understand what was going on... To me, it looks like a bug somewhere,

From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-21 Thread Andrei Alexandrescu via Digitalmars-d
I've left a comment recently at https://github.com/D-Programming-Language/phobos/pull/3087. So what's the deal with that? Whenever a new tool leaves some trash, do we chalk a circle on the pavement around it? Andrei

Re: A reason to choose D over Go

2015-03-21 Thread Martin Nowak via Digitalmars-d
On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves wrote: I actually think that there are two large categories of programmers: those like writing the same loops over and over again and those who use algorithms. I agree, at some point I learned that there is a huge cultural distinction

Re: A reason to choose D over Go

2015-03-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 March 2015 at 01:44:32 UTC, weaselcat wrote: On Sunday, 22 March 2015 at 01:24:10 UTC, Martin Nowak wrote: On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves wrote: I actually think that there are two large categories of programmers: those like writing the same loops over

Re: A reason to choose D over Go

2015-03-21 Thread weaselcat via Digitalmars-d
On Sunday, 22 March 2015 at 02:32:38 UTC, deadalnix wrote: On Sunday, 22 March 2015 at 01:44:32 UTC, weaselcat wrote: On Sunday, 22 March 2015 at 01:24:10 UTC, Martin Nowak wrote: On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves wrote: I actually think that there are two large

[Issue 14316] allow to declare a variable in with statement

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14316 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13526] Allow statement: with(auto p = new Panel())

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13526 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC||c...@dawg.eu ---

serve - A simple HTTP server for static files

2015-03-21 Thread Martin Nowak via Digitalmars-d-announce
Sharing a useful tool of mine. http://code.dlang.org/packages/serve

Re: Contributing to Phobos Documentation

2015-03-21 Thread Craig Dillabaugh via Digitalmars-d-learn
On Saturday, 21 March 2015 at 21:53:00 UTC, H. S. Teoh wrote: On Sat, Mar 21, 2015 at 05:48:40PM +, Craig Dillabaugh via Digitalmars-d-learn wrote: Motivated by this thread: http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com I was hoping to see if I could do some work on the

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread weaselcat via Digitalmars-d
On Sunday, 22 March 2015 at 03:43:33 UTC, Walter Bright wrote: On 3/21/2015 2:08 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Saturday, 21 March 2015 at 19:35:02 UTC, Walter Bright wrote: I know I shouldn't, but I'll bite. Show me the low level C code

[Issue 14035] string concatenation accepts ints in templates

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC||ket...@ketmar.no-ip.org

Re: A few notes on choosing between Go and D for a quick project

2015-03-21 Thread Ziad Hatahet via Digitalmars-d
On Wed, Mar 18, 2015 at 1:09 AM, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 17 March 2015 at 20:50:51 UTC, Bienlein wrote: Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to mention JCSP and GPars. I'm not really sure whether this can

[Issue 14035] string concatenation accepts ints in templates

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 --- Comment #3 from yebblies yebbl...@gmail.com --- (In reply to Ketmar Dark from comment #2) the same logic should allow this: string alice() (usize ln=__LINE__) { return { int t_~ln~ = 42; }; } pragma(msg, alice!()); yet somehow this is

[Issue 14035] string concatenation accepts ints in templates

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 --- Comment #4 from Ketmar Dark ket...@ketmar.no-ip.org --- ln type is known in both cases. `usize` is `size_t`, if it matters. yet somehow two `ln`s has *different* types. i can see how `(T ln=__LINE__)` can be converted to char, as compiler is free

[Issue 14120] iasm is missing pause instruction

2015-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14120 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||iasm CC|

Re: A reason to choose D over Go

2015-03-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 March 2015 at 02:36:03 UTC, weaselcat wrote: On Sunday, 22 March 2015 at 02:32:38 UTC, deadalnix wrote: On Sunday, 22 March 2015 at 01:44:32 UTC, weaselcat wrote: On Sunday, 22 March 2015 at 01:24:10 UTC, Martin Nowak wrote: On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves

  1   2   >