Re: assume, assert, enforce, @safe

2014-08-01 Thread Sebastiaan Koppe via Digitalmars-d
If assertions are disabled in release builds, and you specifically instruct the compiler to build one, are you not assuming that the assertions will hold? Then what is wrong with extending those assumptions to the optimizer? Unless the assertions trigger in debug build, you will not end up

Re: assert semantic change proposal

2014-08-08 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 6 August 2014 at 00:47:28 UTC, Walter Bright wrote: On 8/3/2014 7:26 PM, Tove wrote: It is possible, just not as a default enabled warning. Some compilers offers optimization diagnostics which can be enabled by a switch, I'm quite fond of those as it's a much faster way to go th

Re: scope guards

2014-08-09 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 4 August 2014 at 04:09:07 UTC, Manu via Digitalmars-d wrote: Almost all exceptions I throw are in relation to bad input data, and they are to be caught at a slightly higher level of input processing. I do not know the design that you are using, but it seems to me that instead of scop

Re: DIP69 - Implement scope for escape proof references

2014-12-05 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 5 December 2014 at 20:55:55 UTC, Walter Bright wrote: On 12/5/2014 7:27 AM, Steven Schveighoffer wrote: Can someone who knows what this new feature is supposed to do give some Ali Çehreli-like description on the feature? Basically, let's strip out the *proof* in the DIP (the how it w

Re: DIP69 - Implement scope for escape proof references

2014-12-06 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 6 December 2014 at 12:38:24 UTC, Ola Fosheim Grøstad wrote: On Saturday, 6 December 2014 at 04:31:48 UTC, Sebastiaan Koppe wrote: What about also adding the inverse of scope? Then scope can be inferred. As in: ``` void foo(int* p); void free(P)(consume P* p); Yes, this is much

Re: DIP69 - Implement scope for escape proof references

2014-12-07 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 5 December 2014 at 23:58:41 UTC, Walter Bright wrote: On 12/5/2014 8:48 AM, "Marc Schütz" " wrote: scope ref int foo(); scope ref int bar1(ref int a) { return a; } scope ref int bar2(scope ref int a) { return a; } ref int bar3(ref int a) {

Re: Do everything in Java…

2014-12-07 Thread Sebastiaan Koppe via Digitalmars-d
On 6/12/2014 5:45 a.m., Dicebot wrote: In my opinion OOP is very unfriendly for testing as a paradigm in general. The very necessity to create mocks is usually an alarm. I am curious how you would write tests without mocks.

Re: D game development: a call to action

2014-12-18 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 14 December 2014 at 08:02:47 UTC, ketmar via Digitalmars-d wrote: I find a much bigger problem is tendency for some programmers to commit over-abstraction, sacrificing heaps of efficiency/performance in the process. Most open-source engines are this kind, and will never release a AA

Re:

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 08:22:19 UTC, Andrei Alexandrescu wrote: Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: "ID applied to body to allow for unique page styling without any additional markup." That sou

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 16 January 2015 at 17:40:40 UTC, Andrei Alexandrescu wrote: I just added https://github.com/D-Programming-Language/dlang.org/pull/770, which generates minified css files. This is because in the near future css files will become heftier (more documentation comments, more detailed sty

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 18:23:45 UTC, Andrei Alexandrescu wrote: On 1/17/15 10:01 AM, Sebastiaan Koppe wrote: A seasoned JS programmer can rewrite that stuff in about 6kb, if not less. Great. You forgot to link to your pull request :o). Wait, one step back. I was still in assessment

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 20:17:51 UTC, Andrei Alexandrescu wrote: On 1/17/15 12:00 PM, Sebastiaan Koppe wrote: On Saturday, 17 January 2015 at 18:23:45 UTC, Andrei Alexandrescu wrote: On 1/17/15 10:01 AM, Sebastiaan Koppe wrote: In the browser. So that on a reload of the page, the browse

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 20:52:28 UTC, Andrei Alexandrescu wrote: I know I am imposing on somebodies else's work here, but compressing resources should really be done. Our webmaster got back. He said compression is more CPU work and on a fat pipe (which we do have) that may make things

Re: css minification

2015-01-18 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 18 January 2015 at 07:42:10 UTC, Andrei Alexandrescu wrote: On 1/17/15 11:23 PM, Sebastiaan Koppe wrote: On Saturday, 17 January 2015 at 20:52:28 UTC, Andrei Alexandrescu wrote: Our webmaster got back. He said compression is more CPU work and on a fat pipe (which we do have) that

Re: Use proper frameworks for building dlang.org

2015-01-18 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 18 January 2015 at 10:24:29 UTC, Jacob Carlborg wrote: Lately Andrei has worked a lot with improving the dlang.org site in various ways. To me it getting more clear and clear that Ddoc is not the right tool for building a web site. Especially the latest "improvement" [1] shows that i

Re: Use proper frameworks for building dlang.org

2015-01-19 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 19 January 2015 at 12:00:58 UTC, Ola Fosheim Grøstad wrote: On Sunday, 18 January 2015 at 10:24:29 UTC, Jacob Carlborg wrote: Why don't we instead make use of a proper framework both on the server side and client side. Personally I would go with Ruby on Rails but I know that most of

dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: http://dlang.skoppe.eu It is still a wip, but the landing page and the language reference (see Docs menu-item) is working. Doing the ddoc was a maze

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 15:08:02 UTC, Xinok wrote: On Wednesday, 21 January 2015 at 14:46:22 UTC, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: http://dlang.skoppe

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 15:35:59 UTC, Chris wrote: On Wednesday, 21 January 2015 at 14:46:22 UTC, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: http://dlang.skoppe

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 15:25:53 UTC, wobbles wrote: On Wednesday, 21 January 2015 at 14:46:22 UTC, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: http://dlang.skop

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 16:15:21 UTC, eles wrote: On Wednesday, 21 January 2015 at 14:46:22 UTC, Impressive. Make the top menu larger on phone, pls. Otherwise, amazing. The menu is not working indeed. It needs to default to a sliding menu on phones.

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 16:22:08 UTC, aldanor wrote: On Wednesday, 21 January 2015 at 15:35:59 UTC, Chris wrote: On Wednesday, 21 January 2015 at 14:46:22 UTC, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `d

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 16:30:37 UTC, Andrei Alexandrescu wrote: This is awesome, and something I'd get behind. Here's a little feedback coming from a self-admitted dilettante: * On my laptop it looks like this: http://imgur.com/v8TC1xq. I'm seeing the red menu at the top, the gray sp

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 17:12:22 UTC, aldanor wrote: Sebastian, could please you publish your fork somewhere so we could take a closer look and/or fork/destroy it? It would also be easier to make specific suggestions https://github.com/skoppe/dlang.org I case you only want to make

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 19:51:57 UTC, Walter Bright wrote: Swift: https://developer.apple.com/swift/ Go: https://golang.org/ Rust: http://www.rust-lang.org/ C++: http://www.cplusplus.com/ C#: doesn't seem to have one! Java: http://java.com/en/ Haskell: https://www.haskell.org/ Pyt

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 22 January 2015 at 00:39:52 UTC, Brad Anderson wrote: On Wednesday, 21 January 2015 at 23:32:29 UTC, anonymous wrote: Here's a mock-up with a wide version of the logo I've been toying around with: http://i.imgur.com/nesKYdQ.png SVG logo: https://mediacru.sh/8eaa7f9c3421 That

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 17:52:56 UTC, Kiith-Sa wrote: Suggested improvement: http://imgur.com/a/zgSJa Can't open link.

Re: dlang.org redesign n+1

2015-01-21 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 20:46:40 UTC, MattCoder wrote: On Wednesday, 21 January 2015 at 19:51:57 UTC, Walter Bright wrote: On 1/21/2015 6:46 AM, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybod

Re: dlang.org redesign n+1

2015-01-22 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 22 January 2015 at 01:37:25 UTC, Kiith-Sa wrote: On Thursday, 22 January 2015 at 01:34:01 UTC, Sebastiaan Koppe wrote: On Wednesday, 21 January 2015 at 17:52:56 UTC, Kiith-Sa wrote: Suggested improvement: http://imgur.com/a/zgSJa Can't open link. Direct image links: current:

Re: dlang.org redesign n+1

2015-01-22 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 22 January 2015 at 05:27:04 UTC, Zekereth wrote: First of all I like the new design. Way better than what's here now. I'll just throw another site into the mix that I like which is Ocaml's site: https://ocaml.org/ . I like than one and it addresses some of the remarks about a den

Re: dlang.org redesign n+1

2015-01-22 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 21 January 2015 at 23:25:04 UTC, Mike wrote: I have to agree with Walter, and prefer the denser design. This proposal is attractive, though, but the new website trends are too sparse. I realize this is the modern trend, but that trend seems to treat eveything like a 5" smartpho

Re: foreach

2014-06-12 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 12 June 2014 at 18:33:38 UTC, Ary Borenszweig wrote: On 6/12/14, 3:04 PM, Nick Sabalausky wrote: In Ruby/Crystal you can do: n.times do # code end In D you have to write: for(unused; 0..n) { # code } Doesn't it bother you that your language requires more typing and defining

Re: Issue with rendering dlang.org/library

2015-02-18 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 14 February 2015 at 10:25:52 UTC, Vladimir Panteleev wrote: make it stop using its own templating language and use the one we already use for everything else - HTML, PDF, Mobi, CHM - DDoc. DDoc isn't a good tool to generate webpages. For the simple reason that a webpage needs to be

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

2015-03-16 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 16 March 2015 at 08:54:20 UTC, Joakim wrote: One day, the tide may turn towards native efficiency again, say because of mobile or more people writing code that runs on large server clusters, and D will be well-positioned to benefit if and when that happens. I hear ya, we have a Nod

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

2015-03-20 Thread Sebastiaan Koppe via Digitalmars-d
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 splitLines, because it must keep them all.

Re: Special Code String for mixins

2018-03-14 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 14 March 2018 at 15:50:13 UTC, Jonathan Marler wrote: I've got a PR for dmd (https://github.com/dlang/dmd/pull/7988) that implements "interpolated strings" which makes generating code with strings MUCH nicer, i.e. Really nice. :thumbs-up:

BetterC and CTFE mismatch

2018-09-26 Thread Sebastiaan Koppe via Digitalmars-d
Right now I am building a betterC application and I would have expected to be able to use the D standard library in CTFE. It seems this is not the case. Can anyone explain why? It seems to be an arbitrary limitation. example: https://run.dlang.io/gist/8ee9456bfae061eba81c931999183e49?args=-b

Re: BetterC and CTFE mismatch

2018-09-26 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 26 September 2018 at 08:22:26 UTC, Simen Kjærås wrote: This is essentially an arbitrary restriction. The basic reason is if a function is compiled (even just for CTFE), it ends up in the object files, and you've asked for only betterC functions to end up in the object files. --

Re: BetterC and CTFE mismatch

2018-09-26 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 26 September 2018 at 12:51:57 UTC, Steven Schveighoffer wrote: I'd suggest a bug report if one hasn't been made. -Steve I found https://issues.dlang.org/show_bug.cgi?id=19268 and I have appended my case there.

Re: Who here uses vibe-s3 from code.dlang.org?

2017-08-08 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 7 August 2017 at 22:46:57 UTC, aberba wrote: vibe-s3 (https://code.dlang.org/packages/vibe-s3) is an Amazon s3 object storage API for D. Has anyone here used or tested it? What was your experiences? It has the tagline "this library is highly alpha and mostly untested. use at your o

Re: Need some vibe.d hosting advice

2017-08-12 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 11 August 2017 at 13:06:54 UTC, aberba wrote: So I'm into this platform with a vibe.d api server + back-end and I'm confused/curious to know the hosting package to use. I will have a lot of images uploaded by users. I would definitely outsource the storage. AzureBlob, S3, Wasabi, i

Re: HTOD

2017-08-23 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 22 August 2017 at 22:50:46 UTC, Walter Bright wrote: On 8/22/2017 2:50 PM, Steven Schveighoffer wrote: But it is generating D code, no? Sure. And the C subset of D has been very stable, too. Used the tool 2 years ago. Worked like a charm.

Re: Audio to text files

2017-09-07 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 6 September 2017 at 15:54:41 UTC, Justin Gray wrote: Is there a resource that explains how to create a file that stores a response to a question. say I want to introduce a program like this "Hi, my name is "", what's yours"? I want to generate an audio profile that's interactive a

Re: Embedded Linux really needs Dlang for the IOT market

2018-03-09 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 9 March 2018 at 07:56:12 UTC, Jacob Carlborg wrote: LDC can cross-compile to various platforms, you just need a cross-linker and the system libraries. There's a Docker image that provides cross-compilers for various targets [1]. That image will provide a cross-linker and system libra

Re: Codecov and CyberShadow failure

2017-02-13 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 12 February 2017 at 15:30:40 UTC, Vladimir Panteleev wrote: I accept that this shouldn't have taken a week to fix, and the initial change in question (tmpfs move) would have been better done in a test environment. FWIW, in parallel I've been working on a full-disk backup strategy to

Re: syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

2017-02-14 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 14 February 2017 at 09:55:51 UTC, Jacob Carlborg wrote: Why? It looks awful. The signatures we already have in Phobos is quite ridiculous, this will not improve. Isn't this and the whole idea of DIP 1005 just a workaround for the compiler not lazily analyzing the symbols. This.

Re: dpldocs: xlinking and Documented destructors and postblits

2017-03-01 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 1 March 2017 at 05:18:59 UTC, Adam D. Ruppe wrote: Contrast to the official docs: http://dlang.org/phobos/std_typecons.html#.RefCounted http://dlang.org/library-prerelease/std/typecons/ref_counted.html my 2 cents: The officials docs has too much grey and the information is not w

Re: [OT] cheap hosting

2017-03-15 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 15 March 2017 at 09:02:54 UTC, Jonathan M Davis wrote: https://www.digitalocean.com/ You can run whatever you want on there quite easily. It's what I use when I want to spin up a server for something online. - Jonathan M Davis or for $2,50 on https://www.vultr.com/

Re: So no one is using Amazon S3 with D, why?

2017-03-15 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 15 March 2017 at 09:57:52 UTC, aberba wrote: There are several options: 1. Heroku Paas with s3 2. Docker Datacenter with your own image with dlanguage/dmd image as base. 3. Or hosting yourself on AWS or linode or digitaloceon. AWS is generally safe for small team with less resour

Re: ranges of characters and the overabundance of traits that go with them

2017-03-16 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 16 March 2017 at 07:44:59 UTC, Jonathan M Davis wrote: So, if we deprecated isSomeString, we'd be telling a lot of folks to change their code when it's perfectly fine as-is. I agree that it would be nice to fix isSomeString, but I just don't think that it's reasonable to deprecate

Re: ranges of characters and the overabundance of traits that go with them

2017-03-16 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 16 March 2017 at 17:12:05 UTC, Jonathan M Davis wrote: Unfortunately, the nature of traits is such that altering them in a fashion that includes a deprecation cycle really doesn't work. You can deprecate the whole trait, but you really can't change its behavior without risking code

Re: ranges of characters and the overabundance of traits that go with them

2017-03-17 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 16 March 2017 at 22:42:21 UTC, Jonathan M Davis wrote: On Thursday, March 16, 2017 21:50:18 Sebastiaan Koppe via The problem is that that then catches when an enum is passed to isSomeString, not when the template constraint or static if that isSomeString is being used in should hav

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: Have you used boost::hana? What are your thoughts on it? And please share your ideas for the presentation. There has been threads here about C++ closing the gap. Does D still bring competitive advantage or is it becoming irrelevan

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html Great article!

Re: Interesting PRs: bringing type system legitimacy to shared allocators

2017-05-01 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 28 April 2017 at 22:18:54 UTC, Atila Neves wrote: Done. I also added to the README that it has its own versions of the range constraints from Phobos that can be used with `@models`. Atila Example of an error message in the README would be great too.

Idea: Reverse Type Inference

2017-05-22 Thread Sebastiaan Koppe via Digitalmars-d
I work with Scala professionally. I often feel its type inference for generics/templates is better than D's; as long as it can find a type _anywhere_ it will use that, no matter where it needs to pull it from. Over the past weeks I have been noticing a specific case where it happens. I call i

Re: Expressing range constraints in CNF form

2017-06-11 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 11 June 2017 at 00:28:58 UTC, Andrei Alexandrescu wrote: // Also possible (no change to the language) enum bool isInputRange(R) = is(typeof((ref R r) => r)) && msg("must be copyable") && is(ReturnType!((R r) => r.empty) == bool) && msg("must support bool empty") && is(typ

Re: Expressing range constraints in CNF form

2017-06-12 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 12 June 2017 at 17:35:59 UTC, David Gileadi wrote: On 6/11/17 1:32 PM, Sebastiaan Koppe wrote: What about using ddoc? enum bool isInputRange(R) = is(typeof((ref R r) => r)) /// must be copyable && is(ReturnType!((R r) => r.empty) == bool) /// must support bool empty

Re: Help compiling discord bot from dub, vibe.d linker errors

2017-06-15 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 15 June 2017 at 15:50:06 UTC, Anonymouse wrote: I wanted to make a Hello World discord bot, and I found dscord[1] on dub. It even has an example bot Jeff[2], but it won't build. The machine is running Manjaro/Arch linux x64. Is that vibe.d not linking with openssl? There are more

Re: Advertise D's great compatibilty with JavaScript

2017-06-18 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 18 June 2017 at 18:06:50 UTC, Joakim wrote: Of course, once webasm takes off, everyone will simply compile their server code to webasm and ditch javascript altogether. Although there are proposals to access the dom directly from webasm [1], right now you'll still need js. And I doub

Re: std.database

2015-05-27 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 28 May 2015 at 02:04:31 UTC, Erik Smith wrote: Shouldn't the statement be reusable? I.e. bind variables and run multiple times. From the code examples creating a statement and binding variables seemed to be coupled. Since one obvious use case would be running the behind a http s

Re: std.database

2015-05-28 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 28 May 2015 at 04:57:55 UTC, Robert burner Schadek wrote: On Thursday, 28 May 2015 at 04:45:52 UTC, Erik Smith wrote: Shouldn't the statement be reusable? Yes it should. I added this use case: auto stmt = con.statement("insert into table values(?,?)"); stmt.execute("a",1); stmt.

Re: std.container: fork in the road

2015-06-17 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 17 June 2015 at 06:08:57 UTC, Andrei Alexandrescu wrote: 2. Do break compatibility of containers, mainly by taking advantage of them being under-documented. In a way we wouldn't break much because not much has been specified. There are, however, parts where we'd need to change spe

Re: Future(s) for D.

2015-06-22 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 20 June 2015 at 12:35:11 UTC, weaselcat wrote: I recently read this facebook post on their future implementation in their Folly library. https://code.facebook.com/posts/1661982097368498 This made me slightly envious. Thoughts on a D implementation? After having worked with Obser

Re: Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits

2015-06-30 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 30 June 2015 at 08:06:37 UTC, Atila Neves wrote: In case you don't know what I'm talking about: https://github.com/D-Programming-Language/phobos/pull/3207 Since this is an API issue it's import to get it right the first time. Personally I'm not sure what I prefer (well, I am, but

Re: Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits

2015-06-30 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 30 June 2015 at 14:58:45 UTC, Atila Neves wrote: On Tuesday, 30 June 2015 at 12:42:40 UTC, Sebastiaan Koppe wrote: On Tuesday, 30 June 2015 at 08:06:37 UTC, Atila Neves wrote: [...] These days I am leaning towards BDD, but everybody has his favorite. Maybe just providing the low-

Re: Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits

2015-07-03 Thread Sebastiaan Koppe via Digitalmars-d
On Thursday, 2 July 2015 at 12:28:41 UTC, Dicebot wrote: On Wednesday, 1 July 2015 at 19:38:20 UTC, Jacob Carlborg wrote: In every project I have used RSpec I have added custom matchers/assertions. Just a couple of days ago I added a custom matcher to one of my projects: code = code_to_file('

Re: Creating a future/promise object

2015-07-07 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 6 July 2015 at 20:56:04 UTC, Frank Pagliughi wrote: void set_result(int retCode) { synchronized (mut) { this.retCode = retCode; completed = true; cond.notify(); } } int get_result() { synchronized (mut) { while (!completed)

Re: Wait, what? What is AliasSeq?

2015-07-08 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 7 July 2015 at 21:15:40 UTC, Andrei Alexandrescu wrote: So I thought we were supposed to replace bad names with good names. Template arguments are indexable, so "sequence" doesn't quite apply. What happened? Why are we replacing a crappy term with another crappy term? Andrei

Re: Creating a future/promise object

2015-07-08 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 7 July 2015 at 16:41:41 UTC, Frank Pagliughi wrote: Instead of pulling values out, have you considered pushing them? E.g. by supplying a delegate that gets called when the asynchronous action completed. I've always been on the fence about push vs pull when writing libraries of thi

Re: Where will D sit in the web service space?

2015-07-14 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 12 July 2015 at 12:14:31 UTC, Ola Fosheim Grøstad wrote: What do you think about the future for D in the web service space? What about this question: in 5 years from now what would be the reason D failed? These come to my mind: Tooling Marketing Talent Pool (companies not willing

Re: Where will D sit in the web service space?

2015-07-15 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 14 July 2015 at 16:25:29 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 14 July 2015 at 15:17:13 UTC, Sebastiaan Koppe wrote: On Sunday, 12 July 2015 at 12:14:31 UTC, Ola Fosheim Grøstad wrote: What do you think about the future for D in the web service space? What about this questio

Re: Wait, what? What is AliasSeq?

2015-07-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 18 July 2015 at 01:35:03 UTC, Jonathan M Davis wrote: On Friday, 17 July 2015 at 20:54:33 UTC, Walter Bright wrote: Should just be "Aliases" Then you have the confusion about whether you're talking about the replacement of TypeTuple or just aliases in general - especially i

Re: Rant after trying Rust a bit

2015-07-25 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 26 July 2015 at 00:31:48 UTC, Jonathan M Davis wrote: auto foo(T)(T t) if(cond1!T && cond2!T && cond3!T && cond4!T && cond5!T && cond6!T && cond7!T) { ... auto b = bar(t); ... auto c = baz(t); ... } auto bar(T)(T t) if(cond2!T && cond3!T) { ... au

Re: D Web Services Application Potential?

2015-07-26 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 27 July 2015 at 04:11:50 UTC, Rikki Cattermole wrote: What I currently have is code templates as follows: " .. consumeNextText() .. "") ?> Hi there, this is some text! Woopity doo. ") ?> So it would output something like: Hi there, this is some text! Woopity doo. boo The language

Re: D Web Services Application Potential?

2015-07-29 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 29 July 2015 at 07:30:50 UTC, yawniek wrote: In times of reactive frameworks it makes no sense anymore to render html in the backend. Nowadays with the many client-side dom manipulations it is tempting to just do it all in the client. But in terms of speed it also makes sense to

Re: D Web Services Application Potential?

2015-07-29 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 29 July 2015 at 13:22:43 UTC, Etienne Cimon wrote: I actually use the size of a vibe.d application (2mb) to my advantage to produce a plugin that will overload certain requests on the client's computer (via a windows service or launchd daemon and reverse proxy). This allows much m

Re: D Web Services Application Potential?

2015-07-30 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 29 July 2015 at 17:25:17 UTC, Etienne wrote: I can't share source but the idea is simple. You configure a DNS subdomain my.domain.com => 127.0.0.1, and test that address with javascript when a logins to the public website, if it doesn't work you show a message "plugin required". T

Re: Interfaces, traits, concepts, and my idea for a DIP

2015-07-31 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 31 July 2015 at 14:23:28 UTC, Atila Neves wrote: On Friday, 31 July 2015 at 11:16:48 UTC, Biotronic wrote: Why can't another template use the very same concept information to check if a type implements the concept? e.g.: @satisfies!(myConcept, MyStruct) struct MyStruct { /* ... */

Re: D for Game Development

2015-08-02 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 31 July 2015 at 03:29:59 UTC, Brandon Ragland wrote: People see minecraft as "terrible graphics, pixellated" but each block represents 16 triangles I really hope they don't render a block with 16 triangles. and there could be thousands of blocks on screen. You're easily looking at

Re: D for Game Development

2015-08-02 Thread Sebastiaan Koppe via Digitalmars-d
On Sunday, 2 August 2015 at 14:03:50 UTC, Rikki Cattermole wrote: Some of things that goes on in the modding world is truely amazing. For every item/block with a recipe and vanilla items/blocks hardcoded. It'll calculate at the start of runtime an EMC value in EE3. It does it ridiculously fas

Re: D for Game Development

2015-08-02 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 3 August 2015 at 03:28:26 UTC, Rikki Cattermole wrote: On 3/08/2015 1:35 p.m., Sebastiaan Koppe wrote: On Sunday, 2 August 2015 at 14:03:50 UTC, Rikki Cattermole wrote: Some of things that goes on in the modding world is truely amazing. For every item/block with a recipe and vanill

Re: Where the F*** is phobos on OSX nowadays ?

2015-08-11 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 11 August 2015 at 08:01:53 UTC, John Colvin wrote: On Tuesday, 11 August 2015 at 04:51:03 UTC, deadalnix wrote: And why does it keep moving ? Why isn't it in some place where linker will find it ? Is that really worth it to have every build system to have to jump through hoops to

Re: std.data.json formal review

2015-08-25 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 25 August 2015 at 06:56:23 UTC, Sönke Ludwig wrote: If I have a string variable and I want to store the upper case version of another string, the direct mental translation is "dst = toUpper(src);" - and not "dst = toUpper(src).array;". One can also say the problem is that you have

Re: GC-proof resource classes

2015-08-31 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 31 August 2015 at 11:29:21 UTC, ponce wrote: On Saturday, 29 August 2015 at 13:14:26 UTC, ponce wrote: Looks ugly? Yes, but it makes the GC acts as a cheap leak detector, giving accurate messages for still opened resources. So, let me tell a little success story while using the "

Re: Interesting user mistake

2015-09-05 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 4 September 2015 at 23:08:21 UTC, Andrei Alexandrescu wrote: On 09/04/2015 12:39 PM, skoppe wrote: On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The gist

Re: When you find a solution to a weird problem, post it!

2015-09-07 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 8 September 2015 at 02:07:04 UTC, Walter Bright wrote: Some great advice: http://rentes.github.io/programming/stackoverflow/2015/09/03/Wisdom-of-the-Ancients/ Totally agree. Just posted a solution to my own problem: http://forum.dlang.org/thread/ldtjxbyhxclfinkaj...@forum.dlang.or

Re: Compile all-of-dub?

2015-09-09 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 9 September 2015 at 08:26:59 UTC, qznc wrote: The Rust people have this Crater [0,1] tool, which essentially builds all Rust libraries with two compiler versions and compares for regressions. Since D has a central library repository as well, it would make sense to do this broad

Re: Reasons to use D

2015-09-11 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 11 September 2015 at 13:51:55 UTC, Adam D. Ruppe wrote: jQuery has burned me in the past. Take this page for example: http://api.jquery.com/html/ Tell me what it doesn't tell you... well, unless you know, you'll fail. Does it have to do with char encodings?

Re: Reasons to use D

2015-09-11 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 11 September 2015 at 15:37:45 UTC, Ola Fosheim Grøstad wrote: In the JavaScript world you have various versions of JavaScript, TypeScript, TypeScript+React, TypeScript+Angular, they coexists. So, as long as you can easily interface between languages it is ok. I think language desig

Re: Proposal: Database Engine for D

2016-02-06 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 6 February 2016 at 00:14:08 UTC, Mengu wrote: and while we were talking the talk, rust community rolled out something good called diesel. check it out at http://diesel.rs/. we need tools that get things done. we do not need tools that makes things more complex than they already ar

Re: A suggestion for dub

2016-02-29 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 29 February 2016 at 09:27:50 UTC, sigod wrote: On Monday, 29 February 2016 at 08:02:51 UTC, mahdi wrote: On Monday, 29 February 2016 at 06:10:17 UTC, Chris Wright wrote: [...] The aim is to make package distribution easier and more straightforward. If someone has done some develop

Re: A suggestion for dub

2016-02-29 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 29 February 2016 at 10:07:56 UTC, Sönke Ludwig wrote: We will at some point have to implement the use of push notifications for changes, but that requires some work (supporting GitHub-OAuth and implementing the push endpoint) and it requires the repositories to be re-registered with

Re: A suggestion for dub

2016-02-29 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 29 February 2016 at 17:07:39 UTC, Sönke Ludwig wrote: That would be great! The public repo is at https://github.com/D-Programming-Language/dub-registry Will have a look. So the behavior that Mike outlined is generally correct. Although it has to be said that there were times where

Re: std.database

2016-03-04 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 4 March 2016 at 18:42:45 UTC, Erik Smith wrote: auto db = createDatabase("file:///testdb"); auto rowSet = db.connection().statement("select name,score from score").execute; foreach (r; rowSet) writeln(r[0].as!string,",",r[1].as!int); You'll want to have some types in th

Re: std.database

2016-03-05 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 4 March 2016 at 23:55:55 UTC, Erik Smith wrote: I think some basic object serialization capabilities would be great although I'm not sure how the bare names can be accessed like that through the rowSet How would that work? I did a project a while back using mysql-native (see code.d

Re: dub coverage analysis weirdness

2016-03-22 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 21 March 2016 at 22:34:50 UTC, FreeSlave wrote: I made example and described issue in github repository: https://github.com/MyLittleRobo/dub-coverage-test When doing -b unittest-cov dub only builds the current package in unittest-cov mode, all the dependencies are just build in the

Re: dub coverage analysis weirdness

2016-03-22 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 22 March 2016 at 08:56:16 UTC, FreeSlave wrote: Then why does it show that unittest of dependency runs too? Every line is marked as executed once in the unittest of dependency. You are right. Now I don't understand either... Btw: I am using codecov.io and it does get the coverage

Re: [DUB] Does anyone have some time to look at PR #785?

2016-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Tuesday, 19 April 2016 at 06:31:13 UTC, Sönke Ludwig wrote: This is a rather important pull request and the last big milestone for the 1.0.0 release. I'd like to get the next version out shortly, but this PR is sitting idle for over a month now and partially blocks development. It consists

Re: Simple and effective approaches to constraint error messages

2016-04-25 Thread Sebastiaan Koppe via Digitalmars-d
On Monday, 25 April 2016 at 17:52:58 UTC, Andrei Alexandrescu wrote: Destroy! Andrei What about overloaded functions with complex constraints? How would the errors look when none of the overloaded constraints fully match? auto fun(T)(T t) if (hasWheels!T && canFly!T) {} auto fun(T)(T t)

  1   2   >