Re: D needs emplacement new

2015-04-25 Thread weaselcat via Digitalmars-d
On Saturday, 25 April 2015 at 19:16:21 UTC, Namespace wrote: hmm... http://dlang.org/phobos/std_conv.html#.emplace constructs an object of non-class type T at that address. Non-Class. ;) There's a class overload 3 down T emplace(T, Args...)(void[] chunk, auto ref Args args) if (is(T ==

[OT] Nim is usable with PNaCl

2015-04-25 Thread weaselcat via Digitalmars-d
https://github.com/hackwaly/pepper-nim Wonder how hard it would be to get D to do the same, or if it's worth the effort over trying to adapt LDC output to emscripten.

Re: Coding for solid state drives

2015-04-24 Thread weaselcat via Digitalmars-d
On Friday, 24 April 2015 at 08:27:06 UTC, Walter Bright wrote: http://codecapsule.com/2014/02/12/coding-for-ssds-part-6-a-summary-what-every-programmer-should-know-about-solid-state-drives/ An interesting article. Anyone want to see if there are any modifications we should make to std.stdio to

Re: GC.malloc is pure - wat

2015-04-24 Thread weaselcat via Digitalmars-d
On Friday, 24 April 2015 at 23:27:36 UTC, Steven Schveighoffer wrote: All I'm saying is that GC.malloc alters global state. I agree that it's OK to pretend that it doesn't because as long as you agree not to base things on this knowledge, you are fine calling pure functions that use GC. A

Re: [OT] compiler optimisations

2015-04-24 Thread weaselcat via Digitalmars-d
On Friday, 24 April 2015 at 07:04:10 UTC, Ola Fosheim Grøstad wrote: I find it worrying that so many people attracted to D system level programming are into games, yet game development needs are ignored. That can't win. D is lucky that Rust is annoying, Go is marginal, and Nim is unknown, so

Re: Cleaned up C++

2015-04-23 Thread weaselcat via Digitalmars-d
On Thursday, 23 April 2015 at 18:37:47 UTC, Walter Bright wrote: On 4/23/2015 1:10 AM, bearophile wrote: Walter Bright: On 4/22/2015 2:58 PM, bearophile wrote: D is less stack-friendly than Ada (and probably Rust too), ?? In Ada standard library you have safe fixed-size stack-allocated

Re: Structural exhaustive matching

2015-04-22 Thread weaselcat via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 04:54:39 UTC, Martin Nowak wrote: On Tuesday, 21 April 2015 at 15:36:28 UTC, Jadbox wrote: What's the best equivalent to Rust's structural enum/pattern (match)ing? Is it also possible to enforce exhaustive matches? Basically, I'm curious on what the best way to

Re: Cleaned up C++

2015-04-22 Thread weaselcat via Digitalmars-d
On Wednesday, 22 April 2015 at 19:29:08 UTC, Walter Bright wrote: D is just another of those “Let's put everything on the heap”-languages that do then of course need GC. what's up with people constantly equating garbage collection to being the same as java?

Re: DMD Copyright string

2015-04-22 Thread weaselcat via Digitalmars-d
On Wednesday, 22 April 2015 at 07:08:05 UTC, Shachar Shemesh wrote: Except, as you pointed out, that's not how copyright now works. The copyright for DMD would only expire 95 years after Walter dies, regardless of what the copyright notice says. Shachar something tells me it will be more

Re: Structural exhaustive matching

2015-04-21 Thread weaselcat via Digitalmars-d-learn
On Tuesday, 21 April 2015 at 15:36:28 UTC, Jadbox wrote: What's the best equivalent to Rust's structural enum/pattern (match)ing? Is it also possible to enforce exhaustive matches? Basically, I'm curious on what the best way to do ADTs in D. D's ADTs are in std.variant, the equivalent of

Re: Reading whitespace separated strings from stdin?

2015-04-20 Thread weaselcat via Digitalmars-d-learn
On Tuesday, 21 April 2015 at 01:31:58 UTC, TheGag96 wrote: Hi guys! I had this homework assignment for data structures that has a pretty easy solution in C++. Reading input like this... 1 2 3 # $ 4 3 * ! # 20 3 / # $ # 62 # $ 2 3 8 * + # 4 48 4 2 + / # SUM # $ 1 2 3 4 5 # R # @ ...where @

[OT] C# 6.0 ?. null propagation operator

2015-04-20 Thread weaselcat via Digitalmars-d
http://www.reddit.com/r/programming/comments/335b1s/the_new_operator_in_c_6/ of interesting note was the nim sample on how to implement the same thing in nim in 2 lines of code template `?.`(a, b): expr = if a != nil: a.b else: nil template `??`(a, b): expr = if a != nil: a else: b

Re: This week in D #14: job opening, Silicon Valley meetup, Dsource on GitHub

2015-04-20 Thread weaselcat via Digitalmars-d-announce
On Monday, 20 April 2015 at 06:23:36 UTC, ketmar wrote: as Adam didn't post announce for current TWiD, i'll try to do that instead, as i like to see that announcements here. http://arsdnet.net/this-week-in-d/apr-19.html the notable thing is Job Opening part. let's hope that it will become

Re: SDC needs you -- redux

2015-04-19 Thread weaselcat via Digitalmars-d
On Sunday, 19 April 2015 at 05:04:56 UTC, Andrei Alexandrescu wrote: On 4/18/15 3:08 PM, Mengu wrote: On Saturday, 18 April 2015 at 21:21:42 UTC, Andrei Alexandrescu wrote: On 4/18/15 10:21 AM, Shammah Chancellor wrote: The tooling for golang is a major reason for it's adoption. This tooling

Re: Today's programming challenge - How's your Range-Fu ?

2015-04-19 Thread weaselcat via Digitalmars-d
On Sunday, 19 April 2015 at 19:58:28 UTC, ketmar wrote: On Sun, 19 Apr 2015 07:54:36 +, John Colvin wrote: é might be obvious, but Unicode isn't just for writing European prose. it is also to insert pictures of the animals into text. There's other uses for unicode? 

Re: SDC needs you -- redux

2015-04-18 Thread weaselcat via Digitalmars-d
On Saturday, 18 April 2015 at 17:21:28 UTC, Shammah Chancellor wrote: ... Are there any plans for the LDC and SDC team to work together once SDC matures?

Re: I have made a discovery

2015-04-18 Thread weaselcat via Digitalmars-d
On Sunday, 19 April 2015 at 00:39:03 UTC, ketmar wrote: On Sun, 19 Apr 2015 12:29:45 +1200, Rikki Cattermole wrote: Awesome! Although we may need to undeprecate that feature. as it is not generating deprecation warning now, it should be fairly easy: just reintroduce it into specs. i can see

Re: I have made a discovery

2015-04-18 Thread weaselcat via Digitalmars-d
On Sunday, 19 April 2015 at 02:42:28 UTC, ketmar wrote: On Sun, 19 Apr 2015 00:50:23 +, weaselcat wrote: maybe I'm dumb in asking this, but if there was already an API for allocators in D... why is a std.allocator not being written ontop of it? it seems much more elegant to begin with.

Re: SDC needs you

2015-04-16 Thread weaselcat via Digitalmars-d
On Thursday, 16 April 2015 at 15:47:10 UTC, bachmeier wrote: On Thursday, 16 April 2015 at 04:05:19 UTC, Andrei Alexandrescu wrote: On 4/15/15 8:42 PM, Joakim wrote: On Wednesday, 15 April 2015 at 08:13:20 UTC, deadalnix wrote: OK, do not expect SDC to compile your code yet, but it got to a

Re: D AutoCompletion: is ycmd integration valuable?

2015-04-16 Thread weaselcat via Digitalmars-d
On Thursday, 16 April 2015 at 18:37:41 UTC, weaselcat wrote: On Thursday, 16 April 2015 at 12:01:48 UTC, w0rp wrote: On Thursday, 16 April 2015 at 11:46:09 UTC, Idan Arye wrote: Some people - myself included - have already asked Brian to make DCD read the project's import paths from Dub or

Re: D AutoCompletion: is ycmd integration valuable?

2015-04-16 Thread weaselcat via Digitalmars-d
On Thursday, 16 April 2015 at 12:01:48 UTC, w0rp wrote: On Thursday, 16 April 2015 at 11:46:09 UTC, Idan Arye wrote: Some people - myself included - have already asked Brian to make DCD read the project's import paths from Dub or something. At first he claimed this is the editor's job - now

Re: How D could gain more traction?

2015-04-15 Thread weaselcat via Digitalmars-d
On Wednesday, 15 April 2015 at 09:57:29 UTC, John Colvin wrote: On Wednesday, 15 April 2015 at 09:39:09 UTC, XavierAP wrote: Nowadays a standard library should include classes or functions, not only for data structures, algorithms etc., but also for: GUI cross-platform creation, graphics,

Re: D AutoCompletion: is ycmd integration valuable?

2015-04-15 Thread weaselcat via Digitalmars-d
On Wednesday, 15 April 2015 at 15:12:00 UTC, Steven Schveighoffer wrote: On 4/15/15 10:47 AM, weaselcat wrote: DCD has been usable from vim for a looong time, when was the last time you tried? Dconf 2014. I'm sure with more elbow grease I could get it to work. But I shouldn't have to ;)

Re: D AutoCompletion: is ycmd integration valuable?

2015-04-15 Thread weaselcat via Digitalmars-d
On Wednesday, 15 April 2015 at 14:05:32 UTC, Steven Schveighoffer wrote: On 4/15/15 9:15 AM, rcorre wrote: For those who don't know, ycmd (https://github.com/Valloric/ycmd) is an editor-agnostic completion engine that aims to reduce a lot of the duplicate code written for handling

Re: Detect the bug in the following code

2015-04-15 Thread weaselcat via Digitalmars-d
On Wednesday, 15 April 2015 at 14:44:48 UTC, Idan Arye wrote: import std.stdio; struct Foo { bool registered = false; void register(int x) { writeln(Registering , x); register = true; } } void main() { Foo foo; foo.register(10); } register = true

Re: I came up with a new logo for the D language

2015-04-13 Thread weaselcat via Digitalmars-d
I rather liked the anthropomorphized D that used to be somewhere on the site.

Re: rant D's makefiles... /rant

2015-04-13 Thread weaselcat via Digitalmars-d
On Monday, 13 April 2015 at 21:27:47 UTC, deadalnix wrote: To be fair, I've seen a lot of new build systems, but not a lot of better build system. I keep coming back to makefile, not because it is good, but because it is not worse than most of the shit I tried, and at least it is available

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Monday, 13 April 2015 at 23:28:46 UTC, Walter Bright wrote: Good article, discussion is a bit lame. It's reddit, that's not really surprising.

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:12:18 UTC, Walter Bright wrote: On 4/13/2015 4:28 PM, Walter Bright wrote: https://www.reddit.com/r/programming/comments/32f4as/why_most_high_level_languages_are_slow/ Good article, discussion is a bit lame. One of the reasons I've been range-ifying Phobos is

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:39:40 UTC, Walter Bright wrote: On 4/13/2015 7:23 PM, weaselcat wrote: this is essentially fusion/deforestation, correct? ?? http://en.wikipedia.org/wiki/Deforestation_(computer_science)

Re: Programming languages and performance

2015-04-13 Thread weaselcat via Digitalmars-d
On Tuesday, 14 April 2015 at 02:45:37 UTC, weaselcat wrote: On Tuesday, 14 April 2015 at 02:39:40 UTC, Walter Bright wrote: On 4/13/2015 7:23 PM, weaselcat wrote: this is essentially fusion/deforestation, correct? ?? http://en.wikipedia.org/wiki/Deforestation_(computer_science) my bad,

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread weaselcat via Digitalmars-d
On Monday, 13 April 2015 at 05:57:24 UTC, Dicebot wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we have linux on ARM, the following may be useful if you wish to run a D application on your Android mobile device. No ADB or root required.

Re: Mitigating the attribute proliferation - attribute inference for functions

2015-04-12 Thread weaselcat via Digitalmars-d
On Sunday, 12 April 2015 at 07:12:47 UTC, Walter Bright wrote: Attribute inference works when the source to a function must exist (i.e. be available to the compiler). Currently, it is done for template functions and function literals. At one point, I had implemented it for auto return

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-11 Thread weaselcat via Digitalmars-d
On Saturday, 11 April 2015 at 10:14:00 UTC, w0rp wrote: I think the one thing in the DIP I'm not sure of is the definition of what is a reference counted object. I believe it's still defined by DIP74? http://wiki.dlang.org/DIP74

Re: Which D IDE do you use?(survey)

2015-04-11 Thread weaselcat via Digitalmars-d
On Saturday, 11 April 2015 at 10:00:45 UTC, Iain Buclaw wrote: On 10 April 2015 at 21:19, Adam D. Ruppe via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 10 April 2015 at 19:08:13 UTC, Paulo Pinto wrote: - Move a method to another class located in another module, while updating

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-11 Thread weaselcat via Digitalmars-d
On Saturday, 11 April 2015 at 08:35:18 UTC, Ola Fosheim Grøstad wrote: On Friday, 10 April 2015 at 15:44:32 UTC, Andrei Alexandrescu wrote: We hope to do better than Rust. -- Andrei Hope does not cut it. A design that breaks down even on a linked list (e.g. you have to turn to ref-counted

Re: Mitigating the attribute proliferation - attribute inference for functions

2015-04-11 Thread weaselcat via Digitalmars-d
On Saturday, 11 April 2015 at 21:47:20 UTC, Martin Nowak wrote: Option 1 isn't really viable because it turns into a whole program compilation model. How does this differ from e.g, if the function was templated?

Re: Which D IDE do you use?(survey)

2015-04-11 Thread weaselcat via Digitalmars-d
On Saturday, 11 April 2015 at 21:44:08 UTC, Iain Buclaw wrote: No one announced (to me) it's existence. Thanks! I'll be sure to check it out. it also integrates DCD(combined with youcompleteme or similar plugin gives intellisense-like completion,) and dscanner.

Re: Which D IDE do you use?(survey)

2015-04-11 Thread weaselcat via Digitalmars-d
On Sunday, 12 April 2015 at 01:29:53 UTC, Idan Arye wrote: On Saturday, 11 April 2015 at 22:29:58 UTC, w0rp wrote: On Saturday, 11 April 2015 at 10:27:15 UTC, weaselcat wrote: if you're using vim-dutyl you could just remap K to :DUjump or one of the split variants. (DUddoc also shows the

Re: Mitigating the attribute proliferation - attribute inference for functions

2015-04-11 Thread weaselcat via Digitalmars-d
On Sunday, 12 April 2015 at 01:45:16 UTC, Martin Nowak wrote: On 04/12/2015 12:35 AM, weaselcat wrote: How does this differ from e.g, if the function was templated? It doesn't, if you decide to analyze each imported function to perform attribute inference, then that's just like treating all

Re: Which D IDE do you use?(survey)

2015-04-10 Thread weaselcat via Digitalmars-d
On Friday, 10 April 2015 at 19:48:40 UTC, Jonas Drewsen wrote: Using Deadcode, emacs, VisualStudio, sublime. Please post results. I'm probably the only one using Deadcode for now though :) Anyway, for me the more important question is what features of your IDE/editor makes you stick with it

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-10 Thread weaselcat via Digitalmars-d
On Friday, 10 April 2015 at 21:20:32 UTC, Martin Nowak wrote: Assigning a RefCounted is marked @system, pass-by-ref is @safe. What's missing, you want to be able to use RefCounted in @safe code? Why not pass it by value then? This actually sounds quite logical to me - passing an RC object

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-10 Thread weaselcat via Digitalmars-d
On Friday, 10 April 2015 at 21:50:13 UTC, Michel Fortin wrote: On 2015-04-10 21:29:19 +, Walter Bright newshou...@digitalmars.com said: On 4/10/2015 2:11 PM, Martin Nowak wrote: On 04/09/2015 01:10 AM, Walter Bright wrote: http://wiki.dlang.org/DIP77 In the first problem example:

Re: make std/concurrency.test fails but others don't... why?

2015-04-10 Thread weaselcat via Digitalmars-d
On Friday, 10 April 2015 at 23:04:44 UTC, Andrei Alexandrescu wrote: Martin Nowak added recently a nice feature to the Phobos makefile: by specifying e.g. make std/stdio.test only the unittests for std/stdio.d would build and run. This greatly improves development turnaround for Phobos.

Re: make std/concurrency.test fails but others don't... why?

2015-04-10 Thread weaselcat via Digitalmars-d
On Friday, 10 April 2015 at 23:29:04 UTC, Martin Nowak wrote: On 04/11/2015 01:04 AM, Andrei Alexandrescu wrote: What makes MessageBox special? Andrei For some reason the linker drags in another copy of the concurrency module (part of it to be precise concurrency_329_3ee.o). That collides

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 11:49:00 UTC, Martin Nowak wrote: On 04/08/2015 08:32 PM, tcha wrote: Now with release numbers. D new - debug - 14.98s, 1782.0Mb 8.53s, 1786.8Mb D new Gdc - debug - 29.08s, 1663.9Mb GDC still misses @nogc support. D new Ldc - 16.99s, 1663.0Mb 18.76s, 1664.1Mb

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 20:00:28 UTC, John Colvin wrote: I can't remember which -O level inlining is enabled, but there's definitely no need to explicitly ask for it at -O5. -enable-inlining(enabled at -O2) and -inline do different things and -inline isn't automatically enabled.

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 19:44:57 UTC, weaselcat wrote: I saw that commit to the benchmark and changed it locally. They're about the same performance now comparing clang to LDC, with -inline -boundscheck=off -singleobj flags Nice. Also, since an LDC dev might read this - is there a

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 19:17:48 UTC, Sönke Ludwig wrote: Not sure, but that may also have been my recent optimizations. Just tried it with your recent optimizations and it doesn't build with LDC 0.15.1.

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 19:43:13 UTC, Sönke Ludwig wrote: Am 09.04.2015 um 21:40 schrieb Sönke Ludwig: Am 09.04.2015 um 21:37 schrieb weaselcat: On Thursday, 9 April 2015 at 19:35:24 UTC, Sönke Ludwig wrote: Am 09.04.2015 um 21:26 schrieb weaselcat: On Thursday, 9 April 2015 at 19:17:48

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 19:35:24 UTC, Sönke Ludwig wrote: Am 09.04.2015 um 21:26 schrieb weaselcat: On Thursday, 9 April 2015 at 19:17:48 UTC, Sönke Ludwig wrote: Not sure, but that may also have been my recent optimizations. Just tried it with your recent optimizations and it doesn't

Re: Wanted: Review manager for std.data.json

2015-04-09 Thread weaselcat via Digitalmars-d
On Thursday, 9 April 2015 at 20:11:07 UTC, weaselcat wrote: On Thursday, 9 April 2015 at 20:00:28 UTC, John Colvin wrote: I can't remember which -O level inlining is enabled, but there's definitely no need to explicitly ask for it at -O5. -enable-inlining(enabled at -O2) and -inline do

Re: [OT] Regarding most used operating system among devs

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 08:59:04 UTC, Szymon Gatner wrote: From StackOverflow's 2015 Developer Survey [1]: For the third year in a row, we asked respondents which operating system they use the most. Windows maintains the lion's share of the developer operating system market, while Mac

Re: Which D IDE do you use?(survey)

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 16:19:15 UTC, André wrote: On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0

Re: Which D IDE do you use?(survey)

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 16:19:15 UTC, André wrote: On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0

Re: Language spec in free e-book format

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 21:29:59 UTC, Nick wrote: Hi, Could you make the language reference available for download in a free e-book format, such as EPUB or FB2? Some people just don't have any app that reads MOBI or Kindle format; they are not very common outside some particular

Re: Why I'm Excited about D

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 22:19:11 UTC, Andrei Alexandrescu wrote: On 4/8/15 11:50 AM, Dmitri Makarov wrote: On Wednesday, 8 April 2015 at 18:08:36 UTC, Andrei Alexandrescu wrote: ... I also work on a large D project at work ... Which compiler do you use? dmd -- Andrei Is this for

Re: Language spec in free e-book format

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 21:42:22 UTC, Nick wrote: On Wednesday, 8 April 2015 at 21:34:00 UTC, weaselcat wrote: On Wednesday, 8 April 2015 at 21:29:59 UTC, Nick wrote: Hi, Could you make the language reference available for download in a free e-book format, such as EPUB or FB2? Some

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 23:11:08 UTC, Walter Bright wrote: http://wiki.dlang.org/DIP77 Deceptively simple solution for a hard problem.

Re: DIP77 - Fix unsafe RC pass by 'ref'

2015-04-08 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 23:11:08 UTC, Walter Bright wrote: http://wiki.dlang.org/DIP77 Can this be clarified a little? The lifetime of tmp will be the same as that of a temporary with a destructor. Does that mean the lifetime of tmp is tied to the scope of the function being called,

Which D IDE do you use?(survey)

2015-04-07 Thread weaselcat via Digitalmars-d
Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0 thanks : )

Re: Which D IDE do you use?(survey)

2015-04-07 Thread weaselcat via Digitalmars-d
On Wednesday, 8 April 2015 at 00:10:57 UTC, Dicebot wrote: On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0

Re: json parsing performance

2015-04-06 Thread weaselcat via Digitalmars-d
On Monday, 6 April 2015 at 21:09:32 UTC, Brad Anderson wrote: On Monday, 6 April 2015 at 20:20:06 UTC, Kingsley wrote: I have read that std.json is pretty slow compared to other languages json parsers and I'm about to do a whole stack of json parsing and was wondering if anyone has got any

Re: What's the deal with -boundscheck?

2015-04-05 Thread weaselcat via Digitalmars-d
On Monday, 6 April 2015 at 02:13:42 UTC, Andrei Alexandrescu wrote: I've spent the better part of yesterday and today debugging a complex matter involving pointers, reduced to this: ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m64 -O -release -main -unittest

Re: What's the current status of GC in phobos?

2015-04-05 Thread weaselcat via Digitalmars-d
On Sunday, 5 April 2015 at 08:08:26 UTC, Kapps wrote: On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote: On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote: Hi! Today I met one guy on the internet, he said that he will use D only if standard library will not require

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 09:24:07 UTC, Walter Bright wrote: If the latter is obsolete, it should perhaps be updated to point to the newer one. The svn one is the first google hit for Derelict. Top 3 results for me for `dlang derelict` are all his github page/projects, did you just google

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: On 4/4/2015 2:34 AM, weaselcat wrote: On Saturday, 4 April 2015 at 09:24:07 UTC, Walter Bright wrote: If the latter is obsolete, it should perhaps be updated to point to the newer one. The svn one is the first google hit for

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 10:26:27 UTC, Walter Bright wrote: On 4/4/2015 3:04 AM, weaselcat wrote: PR? Exactly! The idea is that GPUs can greatly accelerate code (2x to 1000x), and if D wants to appeal to high performance computing programmers, we need to have a workable way to program

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 02:59:46 UTC, Rikki Cattermole wrote: On 4/04/2015 3:49 p.m., Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html Honestly, I don't think anyone has even tried to create bindings. Let alone use it. Although I think there are OpenCL bindings

Re: Mid-term vision review

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 22:05:33 UTC, H. S. Teoh wrote: On Sat, Apr 04, 2015 at 09:15:01PM +, weaselcat via Digitalmars-d wrote: On Friday, 3 April 2015 at 20:56:09 UTC, deadalnix wrote: On Friday, 3 April 2015 at 19:45:29 UTC, weaselcat wrote: The reliance on GDC/LDC to produce

Re: What's the current status of GC in phobos?

2015-04-04 Thread weaselcat via Digitalmars-d
On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote: Hi! Today I met one guy on the internet, he said that he will use D only if standard library will not require Garbage Collector (in case of total GC disabling). So what's the current status of GC in Phobos? :^) I've heard there

Re: Mid-term vision review

2015-04-04 Thread weaselcat via Digitalmars-d
On Friday, 3 April 2015 at 20:56:09 UTC, deadalnix wrote: On Friday, 3 April 2015 at 19:45:29 UTC, weaselcat wrote: The reliance on GDC/LDC to produce production-level binaries(i.e, optimized) and the actual people working on them really is worrisome. If Iain or Kai decided one day to leave

Re: Mid-term vision review

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 20:10:45 UTC, Walter Bright wrote: On 4/3/2015 9:41 AM, David Nadlinger wrote: On Friday, 3 April 2015 at 15:07:57 UTC, Andrei Alexandrescu wrote: On 4/3/15 3:10 AM, Andrea Fontana wrote: It would be great to have dmd on embedded platforms. I agree. We just

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-03 Thread weaselcat via Digitalmars-d-announce
On Friday, 3 April 2015 at 19:07:09 UTC, Jacob Carlborg wrote: On 2015-04-03 20:06, Atila Neves wrote: Interesting. It's true that it's not always faster to compile each module separately, I already knew that. It seems to me, however, that when that's actually the case, the practical

Re: Reggae v0.0.5 super alpha: A build system in D

2015-04-03 Thread weaselcat via Digitalmars-d-announce
On Friday, 3 April 2015 at 17:55:00 UTC, Dicebot wrote: On Friday, 3 April 2015 at 17:25:51 UTC, Ben Boeckel wrote: On Fri, Apr 03, 2015 at 17:10:31 +, Dicebot via Digitalmars-d-announce wrote: On Friday, 3 April 2015 at 17:03:35 UTC, Atila Neves wrote: . Separate compilation. One file

Re: Mid-term vision review

2015-04-03 Thread weaselcat via Digitalmars-d
On Friday, 3 April 2015 at 16:41:14 UTC, David Nadlinger wrote: On Friday, 3 April 2015 at 15:07:57 UTC, Andrei Alexandrescu wrote: On 4/3/15 3:10 AM, Andrea Fontana wrote: It would be great to have dmd on embedded platforms. I agree. We just don't have the champion for that yet. -- Andrei

Re: Mid-term vision review

2015-04-03 Thread weaselcat via Digitalmars-d
On Friday, 3 April 2015 at 20:56:09 UTC, deadalnix wrote: On Friday, 3 April 2015 at 19:45:29 UTC, weaselcat wrote: The reliance on GDC/LDC to produce production-level binaries(i.e, optimized) and the actual people working on them really is worrisome. If Iain or Kai decided one day to leave

Re: Mid-term vision review

2015-04-03 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 01:03:14 UTC, deadalnix wrote: On Friday, 3 April 2015 at 23:59:52 UTC, weaselcat wrote: On Friday, 3 April 2015 at 23:47:48 UTC, deadalnix wrote: On Friday, 3 April 2015 at 22:46:31 UTC, weaselcat wrote: On Friday, 3 April 2015 at 20:56:09 UTC, deadalnix wrote:

Re: Mid-term vision review

2015-04-03 Thread weaselcat via Digitalmars-d
On Friday, 3 April 2015 at 23:47:48 UTC, deadalnix wrote: On Friday, 3 April 2015 at 22:46:31 UTC, weaselcat wrote: On Friday, 3 April 2015 at 20:56:09 UTC, deadalnix wrote: On Friday, 3 April 2015 at 19:45:29 UTC, weaselcat wrote: The reliance on GDC/LDC to produce production-level

Re: Benchmark of D against other languages

2015-04-02 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 21:55:59 UTC, Iain Buclaw wrote: On 1 April 2015 at 04:17, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository

Re: extending 'import' using 'with'

2015-04-02 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 12:09:25 UTC, w0rp wrote: Of course, why be clever here at all and do such things? It's an editor problem. Write the full import lines out, and if you hate typing out the path each time, use tricks in your editor to make that easier, or use an IDE. no this is

Re: Mid-term vision review

2015-04-02 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 23:44:01 UTC, Andrei Alexandrescu wrote: On 4/2/15 4:39 PM, Brian Schott wrote: On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu wrote: It's the end of Q1. Walter and I reviewed our vision document. We're staying the course with one important

Re: Mid-term vision review

2015-04-02 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 23:44:01 UTC, Andrei Alexandrescu wrote: On 4/2/15 4:39 PM, Brian Schott wrote: On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu wrote: It's the end of Q1. Walter and I reviewed our vision document. We're staying the course with one important

Re: Mid-term vision review

2015-04-02 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 23:39:53 UTC, Brian Schott wrote: On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu wrote: It's the end of Q1. Walter and I reviewed our vision document. We're staying the course with one important addition: switching to ddmd, hopefully with 2.068.

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 22:49:55 UTC, Martin Nowak wrote: On 03/31/2015 08:20 PM, cym13 wrote: https://github.com/kostya/benchmarks We made a massive jump towards the upper ranks. #4 ¹ https://github.com/kostya/benchmarks/tree/master/brainfuck#user-content-benchmark-benchb #2

Re: Compile-time errors using Dub/DMD - missing dependencies

2015-04-01 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 01:32:43 UTC, Cassandra Nix wrote: New questions are sorry, but I have a few minor problems. Where can I find / install these dependencies? /usr/bin/ld: cannot find -levent /usr/bin/ld: cannot find -levent_pthreads /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 04:32:26 UTC, Martin Nowak wrote: On Thursday, 2 April 2015 at 04:11:02 UTC, weaselcat wrote: was it a conscious decision to make the AA [] operator not work like map/etc in C++? What do you mean? accessing a non-existing element in C++'s map/unordered_map

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 03:55:53 UTC, Martin Nowak wrote: On 04/02/2015 03:35 AM, weaselcat wrote: the benchmark pointed out two sore areas in D(AA and std.json,) would be nice to see AA get updated as I often completely avoid using the built-in AA. I filed two ERs already, both are

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 20:31:18 UTC, novice2 wrote: I am sorry for so dumb question, but: when peoples talking about D and speed, then they always say mark method final. Can DMD compiler do it itself, as one of optimizations? afaik there's no reason the compiler couldn't infer it for

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 22:15:42 UTC, Martin Nowak wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It requires another compiler/linker phase, so it's not easy to achieve,

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 02:17:29 UTC, weaselcat wrote: ... forgot to label second test, it's the brainfuck one. p.s., D loses because of AA slowness.

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the

Re: DMD compilation speed

2015-03-31 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 04:49:55 UTC, ketmar wrote: On Wed, 01 Apr 2015 02:25:43 +, Random D-user wrote: GC because of some low-end machines. Memory is really cheap these days and pretty much every machine is 64-bits (even phones are trasitioning fast to 64-bits). this is the

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks dmd in

Re: Maxime's micro allocation benchmark much faster ?

2015-03-31 Thread weaselcat via Digitalmars-d-learn
On Tuesday, 31 March 2015 at 20:56:09 UTC, Laeeth Isharc wrote: Trying on a different beefier machine with 2.066 and 2.067 release versions installed: 1mm allocations: 2.066: 0.844s 2.067: 0.19s 10mm allocations 2.066: 1m 17.2 s 2.067: 0m 1.15s So numbers were ballpark right before, and

Re: D as System Language

2015-03-30 Thread weaselcat via Digitalmars-d
On Monday, 30 March 2015 at 15:32:25 UTC, Columbus wrote: I'm not so much into the D Projects, but am familiar with the concepts of the language. I want to use D as the language of a hobby operating system. There isn't much documentation about doing so, and the question already got asked: When D

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread weaselcat via Digitalmars-d-announce
On Monday, 30 March 2015 at 12:04:22 UTC, Laeeth Isharc wrote: On Monday, 30 March 2015 at 07:29:56 UTC, Jonathan M Davis wrote: On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all. Part of the

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread weaselcat via Digitalmars-d-announce
On Monday, 30 March 2015 at 18:41:17 UTC, Russel Winder wrote: On Mon, 2015-03-30 at 11:19 -0700, Walter Bright via Digitalmars-d-announce wrote: […] My brain still thinks in terms of loops. The excellent influence of functional programming on imperative programming is implicit iteration and

Re: DMD compilation speed

2015-03-30 Thread weaselcat via Digitalmars-d
On Monday, 30 March 2015 at 23:28:50 UTC, w0rp wrote: Seriously though, allocating a bunch of memory until you hit some maximum threshold, possibly configured, and freeing unreferenced memory at that point, pausing compilation while that happens? This is GC. I wonder if someone enterprising

using exceptions in @nogc

2015-03-30 Thread weaselcat via Digitalmars-d-learn
was this ever solved? I did some research and saw static immutable ones suggested a few times, but they can't be chained AFAIK.

<    1   2   3   4   5   6   >