Re: Release D 2.108.0
On Tuesday, 2 April 2024 at 00:18:10 UTC, Steven Schveighoffer wrote: On Monday, 1 April 2024 at 22:34:14 UTC, Iain Buclaw wrote: Glad to announce D 2.108.0, ♥ to the 36 contributors. This release comes with 8 major changes and 36 fixed Bugzilla issues, including: [...] Also in this release -- Interpolation Expression Sequences (a.k.a. string interpolation). Looks like a pretty sweet release to upgrade to! -Steve +1 ! The first since months. :-) Named Arguments +1
Re: Beta 2.108.0
On Saturday, 16 March 2024 at 09:26:20 UTC, Iain Buclaw wrote: The RC for 2.108 has been released, which includes the following changes from the initial beta: - Named Arguments is now implemented and documented as a new feature in this release. The beta supports the feature, but was left undocumented while some remaining issues were being fixed. - Hexstrings now implicitly convert to integer arrays. The beta had introduced support to allow casting to arrays only. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.108.0.html Great release! "Named Arguments" and "String Interpolation" called: "Interpolated Expression Sequences"
Re: fastcgi-native
On Thursday, 14 March 2024 at 16:02:50 UTC, Ferhat Kurtulmuş wrote: [...] Github page has some information.Nowadays dub web site doesn't display the entire readme.md, I don't know why. I only implemented what I need. it may not cover all possible situations. Maybe I improve it in the future, PRs are welcome. https://github.com/aferust/fastcgi-native Ok. Thank You!
Re: fastcgi-native
On Monday, 11 March 2024 at 09:10:57 UTC, Ferhat Kurtulmuş wrote: A small utility if anyone needs. https://github.com/aferust/fastcgi-native https://code.dlang.org/packages/fastcgi-native https://fastcgi-native.dpldocs.info/v0.0.1/index.html fastcgi Undocumented in source. Looks hart to use...?
Re: Is D programming friendly for beginners?
On Monday, 4 March 2024 at 13:37:53 UTC, Fidele wrote: I want to start learning D programming language it looks interesting The free digital book from Ali, is written to fit your need: https://ddili.org/ders/d.en/index.html
Re: Happy New Year!
On Wednesday, 3 January 2024 at 01:25:29 UTC, Walter Bright wrote: Along with my best wishes for a happy and prosperous 2024 to all the DLF community members, and their families and friends. And BIG THANK YOU, to the whole community!
Re: D Language Foundation July 2023 Monthly Meeting Summary
On Friday, 11 August 2023 at 13:37:57 UTC, Mike Parker wrote: The D Language Foundation's monthly meeting for July 2023 took place on the 14th. [...] The idea was that once a library works in D and is debugged, it will stay working in D unless it's something we can't live with in older code. I am very happy, that the basic idea behind an LTS Version was discussed, with a/this outcome! Thank you, to the DLF Team! Best regards EmTee
Re: New WIP DUB documentation
On Thursday, 18 August 2022 at 20:00:10 UTC, Bastiaan Veelo wrote: That's already possible, as unrecognised items are ignored. This is however not flexible enough, as comments are not so much wanted for adding explanations but much more for commenting out specific parts. It does work sometimes: you can for example disable `preBuildCommands` by editing it to `preBuildCommandsDISABLED`. I don't think you can comment out a dependency this way, and you cannot comment out an item from an array like ```json { "preBuildCommands": [ "step one", #"step two", "step three" ] } ``` -- Bastiaan. Ok, thank you, got it.
Re: New WIP DUB documentation
On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote: Hi all, I'm currently working on new revamped DUB documentation, check it out if you want, it currently contains most old documentation plus a big bunch of new documentation: https://docs.webfreak.org/ Looks great! What about the following idea about **comments for dub.json**: Allow the key "comment" inside the json file and alter DUB to remove all "comment" key value pairs at the beginning of parsing. So the file is still valid json but comments are possible like in dub.sdl. ``` { "comment" : "dub.json can contain comments,too!", "name": "myproject", "description": "A little web service of mine.", "authors": ["Peter Parker", "John Doe"], "homepage": "http://myproject.example.com;, "license": "GPL-2.0", "dependencies": { "vibe-d": "~>0.9.5" } } ```
Re: importC | Using D with Raylib directly | No bindings | [video]
On Sunday, 7 August 2022 at 01:09:58 UTC, Ki Rill wrote: Testing out importC with Raylib. Here is the [link](https://www.youtube.com/watch?v=1BrvRkZdGOA). Very cool and important to show how simple this works. **Thank you!**
Re: Our New Pull-Request and Issue Manager
On Thursday, 24 February 2022 at 13:05:33 UTC, Mike Parker wrote: [...] He is a frequent contributor and for the past several months has been working on one of the volunteer strike teams organized by Razvan Nitu, our other PR & Issue Manager. Everyone, please congratulate Dennis Korpel on his new job! This are very good news! A big **THANK YOU** to Dennis, Razvan, Symmetry and the Dlang Team (Mike :-))
Re: Beta 2.099.0
On Tuesday, 15 February 2022 at 13:06:47 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.099.0 release, ♥ to the 99 contributors. [...] http://dlang.org/changelog/2.099.0.html [...] Thank you! It is amazing: ♥ to 99 contributors! (Should I say the language is extremely alive!) Regards MT
Re: Added copy constructors to "Programming in D"
On Thursday, 13 January 2022 at 09:21:46 UTC, Andrea Fontana wrote: On Saturday, 8 January 2022 at 13:23:52 UTC, Imperatorn wrote: On Saturday, 8 January 2022 at 02:07:10 UTC, Ali Çehreli wrote: 1) After about three years, I finally added copy constructors: [...] Will the physical book also be updated? Thanks! I don't think it is possible. You have to buy a new copy when published. /s 藍藍藍
Re: New Year DLang News: Hello 2022
On Wednesday, 5 January 2022 at 11:09:45 UTC, Mike Parker wrote: My latest post on the D Blog summarizes some of the many little things that added up to make 2021 an overall good year for D, provides some updates on current happenings, and lists a few things we can expect to see in 2022. [...] Happy New Year everyone! **And a big thank you** to everyone who makes D what it is: (insert the most suitable description here)! Martin T.
Re: GDC has just landed v2.098.0-beta.1 into GCC
On Tuesday, 30 November 2021 at 19:37:34 UTC, Iain Buclaw wrote: Hi, The latest version of the D language has [now landed](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5fee5ec362f7a243f459e6378fd49dfc89dc9fb5) in GCC. [...]
Nice example for operator overload resulting in readable linear algebra expressions
I just want to share a view lines of code. The availability of operator overloading can result in very short and precise code for linear algebra. To test/explore it a little I just modified the alias this example: ``` #!/usr/bin/env rdmd struct Point { double[2] p; // Forward all undefined symbols to p alias p this; auto opBinary(string op)(Point rhs) { static if (op == "+") { Point ret; ret[0] = p[0] + rhs.p[0]; ret[1] = p[1] + rhs.p[1]; return ret; } else static if (op == "-") { Point ret; ret[0] = p[0] - rhs.p[0]; ret[1] = p[1] - rhs.p[1]; return ret; } else static if (op == "*") return p[0] * rhs.p[0] + p[1] * rhs.p[1]; else static assert(0, "Operator " ~ op ~ " not implemented"); } } void main() { import std.stdio;// : writefln,write; // Point behaves like a `double[2]` ... Point p1, p2; p1 = [2, 1], p2 = [1, 1]; // ... but with extended functionality writef("p1*(p1 + p2) = %s*(%s + %s) =", p1, p1, p2); write(p1 * (p1 + p2)); // compare this to code without operator overload: } ``` Compare: ``p1 * (p1 + p2)`` to something with a structure like ``dot(p1,(add(p1,p2)).`` (With the Dlangs UFCS it might become: ``p1.dot(p1.add(p2))`` )
Re: writeln the struct from the alis this Example from the home page
On Thursday, 18 November 2021 at 16:08:22 UTC, Paul Backus wrote: On Thursday, 18 November 2021 at 13:51:42 UTC, Martin Tschierschke wrote: [...] You can define a `toString` method, like this: ```d string toString() { import std.conv; return p.to!string; } ``` You can find more information about `toString` in the documentation here: https://dlang.org/phobos/std_format_write.html By the way, the reason your original version does not work is that `p` is `private`, so `writeln` cannot access it. If you change `p` to be `public`, it will work without a `toString` method. Thank you, just removing ``private `` and it worked!
writeln the struct from the alis this Example from the home page
Hello, if you take the example from the home page, with the additional last line: ```d struct Point { private double[2] p; // Forward all undefined symbols to p alias p this; double dot(Point rhs) { return p[0] * rhs.p[0] + p[1] * rhs.p[1]; } } void main() { import std.stdio : writeln; // Point behaves like a `double[2]` ... Point p1, p2; p1 = [2, 1], p2 = [1, 1]; assert(p1[$ - 1] == 1); // ... but with extended functionality writeln("p1 dot p2 = ", p1.dot(p2)); // additional line: writeln(p1); // is not possible ! } ``` /usr/include/dmd/phobos/std/format.d(3193): Error: no [] operator overload for type Point .. ... How to define, that for Point the same formatting should be used as for double[2] ?
Re: D Language Foundation Monthly Meeting -- June 2021
On Saturday, 26 June 2021 at 10:15:41 UTC, Mike Parker wrote: The monthly DLF meeting this month took place on June 25. [...] Thank you for the update! Please consider to talk at one of the next meetings about a special but regular sponsoring membership for DLF. Goal: To get a strong and stable base of funding. (Many small but official supporters versus one big player)
Welcome to DUB, the D package registry. Total 2000 packages found.
Nice milestone! Question: It seams that there is no html link from DUB page(*) to dlang.org homepage? * https://code.dlang.org/
Re: News Roundup on the D Blog
On Wednesday, 24 March 2021 at 12:24:19 UTC, Mike Parker wrote: This news round-up serves as the "public-facing" announcement [...] The blog: https://dlang.org/blog/2021/03/24/d-2-096-0-released-and-other-news/ [...] It was partially translated to German: https://www.heise.de/news/Programmiersprache-D-Compiler-DMD-unterstuetzt-das-Debugging-Datenformat-DWARF-5997876.html Heise is the biggest publisher of IT magazines (c't, ix) The view reader comments are all negative about D. Maybe this can be changed...
Re: DIP 1030-- Named Arguments--Formal Assessment
On Thursday, 17 September 2020 at 12:59:05 UTC, Mike Parker wrote: On Thursday, 17 September 2020 at 12:58:06 UTC, Mike Parker wrote: DIP 1030, "Named Arguments", has been accepted. https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md I am happy with that, too. So what is the estimated time frame for getting it in dmd?
Re: D mentionned in the ARTIBA webzine for an article on Silq
On Thursday, 3 September 2020 at 22:22:42 UTC, aberba wrote: Thanks guys, I appreciate the help. +1!
Re: D mentionned in the ARTIBA webzine for an article on Silq
On Thursday, 3 September 2020 at 08:40:32 UTC, aberba wrote: The slack I have no ideas how people get in. I know there's a number of members in there too. I am not very active on slack, to say it polite but I may invite you drop me a mail: firstn...@lastname.info
Re: Reading IDX Files in D, an introduction to compile time programming
On Friday, 21 August 2020 at 15:04:30 UTC, data pulverizer wrote: I have written an article targeted at people new to D on compile-time programming: https://www.active-analytics.com/blog/reading-idx-files-in-d/ and tweeted it here: https://twitter.com/chibisi/status/1296824381088440320?s=20 Comments welcome. . Thanks in advance. Very interesting. +1 ! "we extract that an use it to" big error! D is missing :-)
Re: Article: The surprising thing you can do in the D programming language
On Thursday, 20 August 2020 at 10:12:22 UTC, aberba wrote: Wrote something on OpenSource.com https://opensource.com/article/20/8/nesting-d Nice article! +1 up-vote!
Re: Idiomatic D code to avoid or detect devision by zero
On Monday, 3 August 2020 at 15:33:54 UTC, Dominikus Dittes Scherkl wrote: [...] For really long expressions you could also split it on multiple lines: c = (b_expression == 0) ? (d_longer_expression) : (a_expression/b_expression); +1 looks clean!
Re: The ABC's of Templates in D
On Friday, 31 July 2020 at 17:57:58 UTC, H. S. Teoh wrote: I choosed the following way regarding: 2) The regex is not initialized by ctRegex in order to avoid the compile-time overhead; instead, it's initialized at program startup time. version(DigitalMars){ auto reg(alias var)(){ return(regex(var)); pragma(msg,"regex used"); } } version(LDC){ // reg!() is an alias method, which can check which kind of parameter it got auto reg(alias var)(){ static if (__traits(compiles, {enum ctfeFmt = var;}) ){ // "Promotion" to compile time value enum ctfeReg = var ; pragma(msg, "ctRegex used"); return(ctRegex!ctfeReg); }else{ return(regex(var)); pragma(msg,"regex used"); } } } So when compiling with DMD my reg!("") expression is using the runtime version. When compiling with LDC (for release) I use the ctRegex version, if possible. The (alias var) combined with the check if the var is known at compile time: __traits(compiles, {enum ctfeFmt = var;} I have to admit that the idea was mine, but the crafting only with the help of forum members! // Function to mark all ocurences of the word offshore within html bold. string markoffshore(string to_mark){ return to_mark.replaceAll(reg!(r"([oO]ffshore)"),"$1"); }
Re: Idiomatic D code to avoid or detect devision by zero
On Friday, 31 July 2020 at 14:18:15 UTC, Steven Schveighoffer wrote: On 7/31/20 9:55 AM, Martin Tschierschke wrote: What would be the idiomatic way to write a floating point division occuring inside a loop and handle the case of division by zero. c = a/b; // b might be zero sometimes, than set c to an other value (d). (In the moment I check the divisor being zero or not, with an if-than-else structure, but I find it ugly and so I ask here.) c = b == 0 ? d : a/b; I don't think a function would be shorter or clearer... c = div(a, b, d); Alternatively, you could use a type to effect the behavior you want. -Steve Thanks, for the hints. I find the ? : - expressions sometimes hard to reed, especially when a and b are not so simple expressions. I prefer putting additional bracket around: c = (b_expression == 0) ? (d_longer_expression) : (a_expression/b_expression); ???
Re: Idiomatic D code to avoid or detect devision by zero
On Friday, 31 July 2020 at 15:19:25 UTC, Andrea Fontana wrote: On Friday, 31 July 2020 at 13:55:18 UTC, Martin Tschierschke wrote: What would be the idiomatic way to write a floating point division occuring inside a loop and handle the case of division by zero. c = a/b; // b might be zero sometimes, than set c to an other value (d). (In the moment I check the divisor being zero or not, with an if-than-else structure, but I find it ugly and so I ask here.) You should give a look at: https://dlang.org/phobos/std_experimental_checkedint.html You can try with checked!Throw and catch exceptions, for example. Andrea Thanks, I will look at it.
Idiomatic D code to avoid or detect devision by zero
What would be the idiomatic way to write a floating point division occuring inside a loop and handle the case of division by zero. c = a/b; // b might be zero sometimes, than set c to an other value (d). (In the moment I check the divisor being zero or not, with an if-than-else structure, but I find it ugly and so I ask here.)
Re: Mocking framework mockeD
On Wednesday, 29 July 2020 at 08:25:34 UTC, Eugene Wissner wrote: I'm happy to announce a new mocking library developed at Funkwerk. [...] https://github.com/funkwerk/mocked By searching for the exact definition of Mocking Framework I found the Wikipedia Page for it, so you might want to add your framework there, too: https://de.wikipedia.org/wiki/Mocking_Framework Beside the frameworks for the other languages. Actually I am searching for the best way to make unit tests for a small program, reading values from a pdf converted to txt and than writing them into mysql. So I might just use your work. Thank you. Best regards mt.
Re: News on the D Blog: SAOC 2020 and More
On Tuesday, 23 June 2020 at 14:13:44 UTC, Adam D. Ruppe wrote: On Tuesday, 23 June 2020 at 12:00:06 UTC, Mike Parker wrote: D Language Foundation finance updates [...] Really, the best thing to do is probably offering the documents directly on the official website. Then if someone does formally request it you can just point back to dlang.org/foundation or whatever. Yes please, more transparency => more donations!
Re: Origins of the D Programming Language now published by ACM!
On Saturday, 13 June 2020 at 03:16:05 UTC, Walter Bright wrote: https://dl.acm.org/doi/abs/10.1145/3386323 Many, many thanks to Mike Parker and Andrei Alexandrescu for their endless hours spent fixing the mess I originally wrote. Many, thanks to you, too! Just found the time to read it (again). What I think is worth mentioning as additional milestones, is the setup of code.dlang.org (DUB >1800 packages now) and the online tutorial - Dlang Tour: tour.dlang.org with the embedded D compiler.
Re: Compare string with German umlauts
On Monday, 18 May 2020 at 14:28:33 UTC, Steven Schveighoffer wrote: What you need is to normalize the data for comparison: https://dlang.org/phobos/std_uni.html#normalize For more reference: https://en.wikipedia.org/wiki/Combining_character -Steve I checked it again but could not reproduce the original error, it somehow seems that my compare string contained another error. But nevertheless good to know how to deal with encoding errors!
Re: Compare string with German umlauts
On Monday, 18 May 2020 at 14:28:33 UTC, Steven Schveighoffer wrote: On 5/18/20 9:44 AM, Martin Tschierschke wrote: [...] using == on strings is going to compare the exact bits for equality. In unicode, things can be encoded differently to make the same grapheme. For example, ö is a code unit that is the o with a diaeresis (U+00F6). But you could encode it with 2 code points -- a standard o, and then an diaeresis combining character (U+006F, U+0308) What you need is to normalize the data for comparison: https://dlang.org/phobos/std_uni.html#normalize Thank you, I will check that.
Re: Compare string with German umlauts
On Monday, 18 May 2020 at 14:22:31 UTC, WebFreak001 wrote: [...] It solved the problem, but what is the right way to use umlauts (encode them) inside the program? Your code should have already worked like that, assuming your input file is a UTF-8 file. Check with an editor like Notepad++ or Visual Studio Code what the actual encoding of your text file is. In D all strings you specify in source are UTF-8 bytes in the end and a byte-by-byte comparison like with your line == "..." will cause it to fail if line is not UTF-8. Thank you, I will check your hints!
Compare string with German umlauts
Hi, I have to find a certain line in a file, with a text containing umlauts. How do you do this? The following was not working: foreach(i,line; file){ if(line=="My text with ö oe, ä ae or ü"){ writeln("found it at line",i) } } I ended up using line.canFind("with part of the text without umlaut"). It solved the problem, but what is the right way to use umlauts (encode them) inside the program?
Re: diet-ng Live mode and announcing dietpc
On Tuesday, 24 March 2020 at 15:03:33 UTC, Steven Schveighoffer wrote: [...] I decided to build a "pre-compiler" for the templates, that builds the cache files before the compilation step. In my project, this lowered my build time from 38 seconds down to 11, and the caching saves about 25% of the compiler memory consumption. [...] Thank you to Sönke for accepting this feature and the whole vibe.d team for these great projects! -Steve [1] https://code.dlang.org/packages/diet-ng [2] https://code.dlang.org/packages/dietpc Thank you! I still have to check it out and try, but it really looks like a way to speed up vibe.d development! Great! I took some time to work on the idea to structure my small project in a way, that it is split in very small modules including the diet templates, avoiding as much recompilation as possible, but the result until now not so convincing. Regards mt.
Re: D-Ecke: A German D-website
On Monday, 10 February 2020 at 16:28:30 UTC, Andre Pany wrote: Unfortunately the author was disappointed with some of the processes and decided to leave the D community ): See the 3 months of waiting thread in the general forum. Kind regards Andre I have seen the thread, but hoped, he is still around...
Re: D-Ecke: A German D-website
On Monday, 3 February 2020 at 09:13:19 UTC, Jan Hönig wrote: On Tuesday, 28 January 2020 at 15:00:11 UTC, berni44 wrote: I setup my own D-website: http://d-ecke.de (in German language) I hope, you enjoy reading it. Schaut sehr vielversprechend aus :) Ja, aber wo ist die Ecke hina 404 Not Found error was encountered... Kommt ein Mann an die Ecke ist der Bus weg, fährt der Bus um die Ecke, ist der Mann weg, sitzt der Mann im Bus ist die Ecke Weg! :-)
Deprecation message from phobos compiling a vibe.d app.
When building my small vibe.d app I am getting this messages twice: /usr/include/dmd/phobos/std/range/primitives.d(174,38): Deprecation: alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. /usr/include/dmd/phobos/std/range/primitives.d(176,27): Deprecation: alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. /usr/include/dmd/phobos/std/range/primitives.d(174,38): Deprecation: alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. /usr/include/dmd/phobos/std/range/primitives.d(176,27): Deprecation: alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. Unfortunately I don't know what is triggering this and what to do about. The build is working, so it is more a question of elegance.
Re: mysql-native v3.0.0: Update from `vibe-d:core` to `vibe-core`
On Monday, 9 December 2019 at 16:15:50 UTC, Steven Schveighoffer wrote: On 12/9/19 6:02 AM, Martin Tschierschke wrote: Is there a easy way to get the mysql row as an AA? So that I can write something like result["email"] if "email" is a column? ResultRange has an asAA member which does what you want. Oh, that's great! Thank you!
Re: mysql-native v3.0.0: Update from `vibe-d:core` to `vibe-core`
On Sunday, 8 December 2019 at 23:35:02 UTC, Nick Sabalausky (Abscissa) wrote: The mysql-native package is a native all-D client library for MySQL and MariaDB. If vibe-d is included in your project, it will use vibe-d networking, otherwise it will use Phobos networking. https://github.com/mysql-d/mysql-native In this update, mysql-native's vibe-d support has switched from the old `vibe-d:core` package to the new `vibe-core` package. Several other improvements are included as well. See the changelog for details: < https://github.com/mysql-d/mysql-native/blob/master/CHANGELOG.md >. Big thanks to @SingingBush and @schveiguy for their contributions in this release. On the near horizon, work on v3.1.0 and v4.0.0 is already well underway which will make much of mysql-native @safe. This is necessitating a change away from using Phobos's Variant for data, but we think this will be well worth it as the new replacement offers a much nicer API. And of course, effort is being made to make migrating go as smoothly and simply as possible. Cool, thank you! Is there a easy way to get the mysql row as an AA? So that I can write something like result["email"] if "email" is a column? I just saw this: New: #188: Expose column names in Row struct via Row.getName(index). (@jpf91) Should I use this? And just fill an AA myself? In the moment I am using this feature with mysql-d and would like to switch to a better maintained package.
Re: Article about D in the iX magazine
On Friday, 22 November 2019 at 08:11:11 UTC, Ozan Nurettin Süel wrote: Hi A famous german computer magazine "iX" published this month an article about D. I'm so excited to find it in my prefered mag. Thanks to Robert Schadek. Link: https://www.heise.de/select/ix/2019/12/1913713393109056137 Regards, Ozan Cool! Will go to fetch it from the railway station kiosk!
Re: I wrote a little socket tutorial
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote: A lot of people ask me how to use sockets in Phobos, so I wrote it up with a few samples. Not every detail you could ever need, but I tried to be reasonably comprehensive for new users. http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html Thank you! I would like to ask you and other writers of tutorials, to place them in the D wiki. [1] I have put it already under the General section, maybe you would like to move it elsewhere. Or directly in the Articles section? [2] Recently many new tutorials were published and they should be more visible then just in the Announce Forum. [1] https://wiki.dlang.org/Articles [2] https://dlang.org/articles/index.html
Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser
On Monday, 4 November 2019 at 08:25:11 UTC, Patrick Schluter wrote: On Sunday, 3 November 2019 at 21:35:18 UTC, JN wrote: On Sunday, 3 November 2019 at 08:37:07 UTC, SealabJaster wrote: On Sunday, 3 November 2019 at 08:35:42 UTC, SealabJaster wrote: On Friday, 1 November 2019 at 21:14:56 UTC, SealabJaster wrote: ... Sorry, seems it cut out the first half of that reply. New posts are out, and I don't want to spam Announce with new threads, so I'm just replying to this one. #1.1 https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser1_1 #2 https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser2 "This often seems to confuse people at first, especially those coming from other languages" I think what's confusing people is that enum (short for ENUMERATION) is suddenly used like a constant/alias. I don't get why it confuses people. In all languages I know (C, C++, Java, Pascal, etc..) they are used to associate a compile time symbols with some quantities, i.e. the definition of constants. When an enumeration only consists of 1 value, then the enumeration is this value itself. Yes and no, because the fist case for using enum described at [1] is something very different: This defines a new type X which has values X.A=0, X.B=1, X.C=2: enum X { A, B, C } // named enum [1] https://dlang.org/spec/enum.html And it might be good to change the docs to point out the very often taken use case for declaring a singe compile time constant.
Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?
On Friday, 18 October 2019 at 13:38:11 UTC, Ron Tarrant wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: I very often end with a solution found on one of the StackExchange forums like > StackOverflow or AskUbuntu etc. I have found that StackExchange does often have answers, but I can't say I like asking questions on there, especially if the question is almost-the-same-but-not-the-same as a question asked earlier. In cases like this, I've been told that the previous answer applies to my question, even when it doesn't. In one instance, a moderator closed my question without reading the details in order to find out that, no, it's not the same question at all... and then refuse to reopen the question when I point this out. So, although I'll continue to use StackExchange as an historical resource, I would rather not depend on it for getting answers to new questions. This is why I am for an own D Learn Forum, the process is (partly) described here: https://meta.stackexchange.com/questions/76974/how-can-i-propose-a-new-site The moderators of this should come from this forum community, if this can not be achieved, I am against a move, too.
Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?
On Friday, 18 October 2019 at 12:41:53 UTC, Paolo Invernizzi wrote: On Friday, 18 October 2019 at 11:45:33 UTC, Seb wrote: On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke wrote: [...] In the state of the D survey, there were more people in favor of StackOverflow than D.learn, but to be fair the majority voted for "I don't care" https://rawgit.com/wilzbach/state-of-d/master/report.html Maybe it's possible to simply add an up/down vote functionality to the forum only, just keeping the compatibility with the newsgroup ... It's a win/win solution! +1 It may help in the DIP discussions, too! You can just see if an argument for or against a change, is accepted by the majority of thread readers or not. And you can highlight those up-voted arguments to get an better impression about the outcome of the discussion in total.
Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?
On Friday, 18 October 2019 at 12:51:35 UTC, bachmeier wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The main advantage is, that all answers can be classified (up/down voted, moderated etc.) This is much better than finding something in the D-Learn Forum where it is difficult to see, if several answers are given are they still valid, especially if they are some years old. I know that this was asked in the D survey and I think it should be on the table again. If we unite for this idea, it should be possible to start an own "DExchange" sub platform. Best regards mt. You can already ask questions on SO. What you are proposing is to close this forum, require registration to ask a question, and let JavaScript developers close questions and treat new users rudely. That doesn't seem like a good idea. The fact that most questions get asked here rather than on SO now suggests that there isn't much demand for SO. I am not for moving just to StackOverflow, but to make an own "DExchange" / "AskD" or what ever named learn platform with and inside the StackExchange [1] technology. This should keep D users together and would avoid mixing with other languages. But I am not sure if this is really achievable for us. [1] https://stackexchange.com/sites#
Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?
On Friday, 18 October 2019 at 10:23:28 UTC, jmh530 wrote: On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: [snip] I think this is something that's been proposed before, but most people are happy with just asking a question here and usually people are pretty good about helping out with answers when possible. Yes, it works as it is, but it is not the best solution to share know how. And if I just think: Hey, your answer is good, in the mailinglist / forum / newsgroup setup it is impossible to easily vote for it and get a count of this votes. I think it is possible to extended the web front end of the forum in this direction and automatically map an '+1' or '-1' comment (in a single line) to a counter which will be displayed beside the commented post. But this is reinventing the wheel... I am just sad, that many very good questions and answers given in the forum are not so easy to find as they should.
Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?
If I search for what ever, not related to D, I very often end with a solution found on one of the StackExchange forums like StackOverflow or AskUbuntu etc. The main advantage is, that all answers can be classified (up/down voted, moderated etc.) This is much better than finding something in the D-Learn Forum where it is difficult to see, if several answers are given are they still valid, especially if they are some years old. I know that this was asked in the D survey and I think it should be on the table again. If we unite for this idea, it should be possible to start an own "DExchange" sub platform. Best regards mt.
Re: LDC 1.18.0-beta1
On Monday, 23 September 2019 at 19:40:13 UTC, Ivan Butygin wrote: On Monday, 23 September 2019 at 12:22:47 UTC, Martin Tschierschke wrote: Can you please give (again?) a link or a more detailed description of the JIT, explaining some use cases? https://wiki.dlang.org/LDC-specific_language_changes#.40.28ldc.attributes.dynamicCompile.29 Thank you, I found this too, but it is more an example of the principle, but what is the use case? It is only useful if the instruction set of the compiling computer differ from target hardware and by this you get using host processor instruction set ??? Regards mt.
Re: LDC 1.18.0-beta1
On Thursday, 12 September 2019 at 23:49:04 UTC, kinke wrote: Glad to announce the first beta for LDC 1.18: * Based on D 2.088.0+ (yesterday's stable). * Bundled dub upgraded to v1.17.0+ with improved LDC support, incl. cross-compilation. * Init symbols of zero-initialized structs are no longer emitted. * druntime: DMD-compatible {load,store}Unaligned and prefetch added to core.simd. * JIT improvements, incl. multi-threaded compilation. Full release log and downloads: https://github.com/ldc-developers/ldc/releases/tag/v1.18.0-beta1 Please help test, and thanks to all contributors! Great! Can you please give (again?) a link or a more detailed description of the JIT, explaining some use cases? Regards mt.
Re: LDC 1.17.0
On Wednesday, 4 September 2019 at 20:54:40 UTC, kinke wrote: There's a new v1.17 Termux package for Android. Cool !!!
Re: dubproxy: Easy private repos and code.dlang.org mirror
On Monday, 19 August 2019 at 15:29:55 UTC, Andre Pany wrote: [...] Ok, we should add some more info to Dub help page explaining the different repository providers (dub/maven/file system). Yes! Please :-)
Re: cachetools v.0.3.1
On Tuesday, 13 August 2019 at 09:34:48 UTC, ikod wrote: Hello cachetools version 0.3.1 released [...] Looking at your performance numbers, I am wondering should your work in the end result in a better std AA implementation? Regards mt.
Re: Release D 2.087.0
On Thursday, 4 July 2019 at 08:47:03 UTC, Martin Tschierschke wrote: On Thursday, 4 July 2019 at 08:11:26 UTC, Martin Nowak wrote: Glad to announce D 2.087.0, ♥ to the 63 contributors. [...] http://dlang.org/download.html http://dlang.org/changelog/2.087.0.html -Martin Thank you, all 63! This continuous progress makes me expect a great future for D! I just looked at this again: http://erdani.com/d/downloads.daily.png and it should be a great reward to see how adoption of D increases in the long run. mt.
Re: Release D 2.087.0
On Thursday, 4 July 2019 at 08:11:26 UTC, Martin Nowak wrote: Glad to announce D 2.087.0, ♥ to the 63 contributors. This release comes with types matching single template alias parameters, nested template methods/local template functions, multi-threaded GC marking, and a phobos compiled with -preview=DIP1000. http://dlang.org/download.html http://dlang.org/changelog/2.087.0.html -Martin Thank you, all 63! This continuous progress makes me expect a great future for D!
Re: DUB and ddoc - howto?
On Friday, 28 June 2019 at 13:03:17 UTC, Daniel Kozak wrote: Did you try dub build --help? Oh, thank you! I just looked at dub --help | grep -i doc ... and several other places...
DUB and ddoc - howto?
A very simple question, is there an example how to generate documentation with dub? (like dmd -D) My internet search was not successful.
Re: DConf 2019 Schedule
On Tuesday, 19 March 2019 at 14:26:24 UTC, Mike Parker wrote: On Tuesday, 19 March 2019 at 13:47:55 UTC, Guillaume Piolat wrote: On Tuesday, 19 March 2019 at 13:44:03 UTC, Steven Schveighoffer wrote: No, you are not. Something happened, and the CSS is in chaos right now. Nothing looks good. -Steve +1 website is very broken What was broken besides the encoding? I don't see anything. Looks O.K. for me, too. Thank you for the very good conference schedule!
NEW Milestone: 1500 packages at code.dlang.org
Hi all, I am very happy to be the first to announce this here: 1500 D packages available via DUB at code.dlang.org ! Now as the pure volume of solutions gets more and more impressive, we have to find better ways to enhance quality and stability. The "Score" indicator is a very good step. A field, probably at first just manually set by the owner, giving latest tested dmd version might give a good way to filter for well maintained packages. My second wish is to start a general effort to adopt several packages by D Foundation to ensure they keep updated. So a big "Thank You", to all the great people building D and its ecosystem!
Re: Issues Donating or Registering for DConf via Flipcause
On Tuesday, 29 January 2019 at 02:29:08 UTC, Mike Parker wrote: Flipcause released a major upgrade to their platform last week that unified several different components (donations, events, online stores, etc) into a single system they call Universal Checkout. [...] No chance... I updated my Master Card with the Secure Code thing, but the same result again. I tried again 2 times: only result => Your session has expired. Flipcause has been a better usage experience before. Sure I can give my 25 bucks via Paypal, but this is not the idea behind, isn't it?
Re: New Fundraiser: D Forums Server
On Monday, 28 January 2019 at 20:00:53 UTC, Johannes Loher wrote: Am 25.01.19 um 18:01 schrieb Mike Parker: One of the options we were considering for a new fundraising campaign was raising money for Vladimir's continuing efforts on the forums. He's been maintaining them, and covering the server, without any compensation since the beginning. The recent thread about forum outages pushed all other considerations aside: it's time to support Vladimir. However, being the awesome guy he is, he insisted we only help out in covering the server costs. So that's what we're setting out to do with the new campaign. He has a list of options to improve the forum performance, one of which he recently implemented (moving the database to a new partition). A new server with more resources and an SSD should show an even bigger win. Then he can take the time to do his other optimizations at his leisure. We're asking the community to contribute $2000 to cover the new server for one year, with a little bit extra for any incidentals that arise. This is a campaign we want to make an annual event so that Vladimir never has to pay out of pocket for the server again. The campaign is available from the menu on the Donate page, but you can go straight to it here: https://www.flipcause.com/secure/cause_pdetails/NDkzNjc= And if you also want to support Vladimir in the broader work he does on all the open source software he puts out, he has a Patreon page that is looking pretty empty right now: https://www.patreon.com/cybershadow Next month, I'll be launching Round 2 of the PR Manager campaign for another three months of PR trimming goodness. We pulled in $3,124 from Round 1, so the extra $124 will be used for a head start on Round 2. I'll put all of this in a blog post in the next few days, along with some other info. I would like to donate for this, but flipcause does not seem to work for me at all: I tried to make the donation several times, but after entering all the details and payment details and clicking on "Finish", I either got a message saying something like "Sorry, your session expired. Redirecting you to 'Home'" or i was simply redirected to 'Home' without any message. Considering the other comments in this thread, it seems like I am not the only one who has issues like that. Maybe you should get in touch with flipcause in order to try to resolve these issues. I now, know a little more, first I had the same behavior, with the session expired message, than at the third try it seemed to go trough but, it didn't. I called my bank and they where so nice to ask at the mastercard service what hat happened, the result was, that my card was not using / registered for "Mastercard® Secure Code" But this security feature was requested by flipcause, and so the process was canceled. The bad thing is, that no appropriate information about this was returned to me. I think, for a service with a relatively high monthly fee, this should work better, because the core feature.
Re: New Fundraiser: D Forums Server
On Monday, 28 January 2019 at 14:49:15 UTC, Mike Parker wrote: On Monday, 28 January 2019 at 14:37:48 UTC, Martin Tschierschke wrote: On Monday, 28 January 2019 at 14:31:03 UTC, Mike Parker wrote: Before I made the donation ($25) the total was at $200 now it is at $225, looks ok, or was there an other donation (via paypal) you added manually? I added one manually from PayPal. Hmm, I just requested a special online account to see if the amount was taken from my credit card. (I am normally satisfied to get it once a month...) So I can not say if the card was charged or not, but I am sure that the process went trough without an error. ... we will see. Would be good if someone else would try it :-), too now!
Re: New Fundraiser: D Forums Server
On Monday, 28 January 2019 at 14:31:03 UTC, Mike Parker wrote: On Monday, 28 January 2019 at 14:28:52 UTC, Martin Tschierschke wrote: I just retried and it seams to work, did I checked the anonymous flag? Seams so, or will the update here: https://www.flipcause.com/widget/widget_home/NDkzNjc=#/activity/NDkzNjc= Take a while? Regards mt. I haven't received notification of your payment yet, so I assume it hasn't been processed yet. Before I made the donation ($25) the total was at $200 now it is at $225, looks ok, or was there an other donation (via paypal) you added manually?
Re: New Fundraiser: D Forums Server
On Monday, 28 January 2019 at 13:37:39 UTC, Mike Parker wrote: On Monday, 28 January 2019 at 09:22:33 UTC, Martin Tschierschke wrote: I tried it twice via flipcause but it ended with: Looks like your session has expired! You will be redirected to the Home page. Please take a look! Sorry, Martin, but I'm unable to reproduce this at all. I've tried from three different browsers on Windows, both logged in and out of Flipcause. I'll keep checking on my other devices and see if I can reproduce it at all. If it keeps up, please let me know. See if there's anything in your JS console (just in case they log things there) and email that to me along with any other details you think relevant (date & time, etc.) and I'll check with their support. I just retried and it seams to work, did I checked the anonymous flag? Seams so, or will the update here: https://www.flipcause.com/widget/widget_home/NDkzNjc=#/activity/NDkzNjc= Take a while? Regards mt.
Re: New Fundraiser: D Forums Server
On Friday, 25 January 2019 at 17:01:31 UTC, Mike Parker wrote: One of the options we were considering for a new fundraising campaign was raising money for Vladimir's continuing efforts on the forums. He's been maintaining them, and covering the server, without any compensation since the beginning. The recent thread about forum outages pushed all other considerations aside: it's time to support Vladimir. [...] The campaign is available from the menu on the Donate page, but you can go straight to it here: https://www.flipcause.com/secure/cause_pdetails/NDkzNjc= [...] I tried it twice via flipcause but it ended with: Looks like your session has expired! You will be redirected to the Home page. Please take a look! Regards mt.
Re: Top Five World’s Most Underrated Programming Languages
On Thursday, 24 January 2019 at 23:02:07 UTC, Ben wrote: On Thursday, 24 January 2019 at 14:44:07 UTC, bachmeier wrote: Of course, one could argue that it must have offered enough to keep some of them interested. They were able to get stuff done when they used it. The build in and good performing http server hit the sweet spot. Never underestimate the desire of people to simply get going fast. As a developer, you can be assured that your Go HTTP server will survive a upgrade to a new major release version. That assurance is a bit less with D. ;) One of D its weak spots, that its so general positioned as a C++ replacement, that it lacks a identify for itself. Yes! The following idea was written by several posters: Keep std. small, but offer a special label "recommended by D Foundation" for some more packages available via code.dlang (DUB) This would mean, that some of them, currently under individual control are moved to the official D Foundation Git repository. So those could be kept up to date, to ensure no breakage when the language evolves. ( On my wish list at the top: An official D database connector. (MySql/MariaDB, Postgres, SQlite, MonetDB..) ) What about trying to find and to fund a maintainer for this purpose? (Next funding goal Mike Parker?)
Re: My Meeting C++ Keynote video is now available
On Monday, 14 January 2019 at 18:52:02 UTC, Jacob Carlborg wrote: On 2019-01-14 15:42, Steven Schveighoffer wrote: That's a bad example :) The clear answer is mysql-native, which is what vibe.d recommends. Exactly, and I don't need five minutes for that. Five seconds is enough :) Ok, bad example, but let's say you want ORM mapping, too and to have the ability to switch to Postgres later? So what would you recommend?
Re: My Meeting C++ Keynote video is now available
On Monday, 14 January 2019 at 07:50:32 UTC, Walter Bright wrote: On 1/13/2019 9:31 PM, Paul Backus wrote: Scheme is probably the language that takes this idea of a minimal "core language" with powerful metaprogramming facilities the furthest, and the result is a fragmented ecosystem that makes writing portable, non-trivial programs close to impossible. (See "The Lisp Curse" [1].) When something like an object system is made part of the language (or at the very least, the standard library), it becomes a focal point [2] that the community can coordinate around. Due to the diverse, distributed nature of any programming-language community, trying to coordinate through explicit communication is not really a viable option, so having these kinds of focal points is very important if we want to be able to work together on anything. [1] http://winestockwebdesign.com/Essays/Lisp_Curse.html [2] https://en.wikipedia.org/wiki/Focal_point_(game_theory) Interesting cites, which provide a basis for why I've opposed AST macros, and why Ddoc and unittest are builtin (and a few other things). Also, before std::string came along in C++, everyone invented their own string class, and as a result, nobody could share code. This is exactly the argument to get a database driver (mysql,postgres...) and probably a webserver in std. But to avoid getting std.lib to big, the D Foundation might adopt some third party libs as core libraries, so they get maintained within the D Foundation Git account to make them somehow official. We are now approaching the 1500 Dub package, and the ecosystem becomes more and more complex. (https://code.dlang.org/ 1482 packages: The search for mysql now returns 23 packages. Please tell me which to use for the back end, of your own vibe.d app. I give you 5 minutes...:-) Regards mt.
Re: hunt entity v2.1.0 released!
On Wednesday, 9 January 2019 at 11:34:07 UTC, Brian wrote: Fix example code: https://github.com/huntlabs/hunt-entity/wiki/Pagination Github repo: https://github.com/huntlabs/hunt-entity Is your work related to shark? https://code.dlang.org/packages/shark Regards mt.
Re: The New Fundraising Campaign
On Saturday, 10 November 2018 at 16:09:12 UTC, Mike Parker wrote: [...] Please read the blog post for more details: https://dlang.org/blog/2018/11/10/the-new-fundraising-campaign/ https://www.flipcause.com/secure/cause_pdetails/NDUwNTY= $3,014 Raised of $3,000 Goal 41 days left 51 Supporters Cool, what a wonderful start to the year 2019! A big thank you to all pushing the development of D with money and time! What next Mike?
Re: The New Fundraising Campaign
On Wednesday, 2 January 2019 at 13:30:34 UTC, Martin Tschierschke wrote: [...] Thank you! So here an update of the update: $2,464 Raised of $3,000 Goal by 46 Supporters => We only need another 10 Supporters giving an average of $54. Sorry readers, but the numbers are wrong againThe missing amount just has dropped to $511 :-)
Re: The New Fundraising Campaign
On Wednesday, 2 January 2019 at 11:11:31 UTC, Stefan Koch wrote: On Wednesday, 2 January 2019 at 10:16:11 UTC, Martin Tschierschke wrote: I would love to have a campaign to increase compilation speed for std.regex and std.format... You could defer the generation of utf-tables to runtime, which should yield some improvement. But I'll measure the reasons for slowness again and post em. What do you mean by "you" :-) is it related to this? New LDC feature: dynamic compilation https://forum.dlang.org/thread/bskpxhrqyfkvaqzoo...@forum.dlang.org
Re: The New Fundraising Campaign
On Wednesday, 2 January 2019 at 14:28:55 UTC, Vijay Nayar wrote: On Wednesday, 2 January 2019 at 13:30:34 UTC, Martin Tschierschke wrote: On Wednesday, 2 January 2019 at 13:07:23 UTC, Joakim Brännström wrote: On Wednesday, 2 January 2019 at 10:16:11 UTC, Martin Tschierschke wrote: [...] Thanks Martin for the reminder. From my observations of the activities on github it seems like Nicholas Wilson is doing an excellent job :-) Regards, Joakim B. Thank you! So here an update of the update: $2,464 Raised of $3,000 Goal by 46 Supporters => We only need another 10 Supporters giving an average of $54. :-) For me the credit card payment method fails without saying what's wrong. Is there another method to pay, like a IBAN that a transfer could be made to? This is a pity, you may donate to the foundation via paypal but you will have to say what the money is for separately. https://dlang.org/foundation/donate.html
Re: The New Fundraising Campaign
On Wednesday, 2 January 2019 at 13:07:23 UTC, Joakim Brännström wrote: On Wednesday, 2 January 2019 at 10:16:11 UTC, Martin Tschierschke wrote: This campaign will end in 43 day, so the question after app. 50% is, what next? Will we start collecting for something else or should we first try to extend the job of our pull request manager? Thanks Martin for the reminder. From my observations of the activities on github it seems like Nicholas Wilson is doing an excellent job :-) Regards, Joakim B. Thank you! So here an update of the update: $2,464 Raised of $3,000 Goal by 46 Supporters => We only need another 10 Supporters giving an average of $54. :-)
Re: The New Fundraising Campaign
On Saturday, 10 November 2018 at 16:09:12 UTC, Mike Parker wrote: [...] Please read the blog post for more details: https://dlang.org/blog/2018/11/10/the-new-fundraising-campaign/ For the impatient: https://www.flipcause.com/secure/cause_pdetails/NDUwNTY= I just want this topic to stay on top, so I am giving the updated numbers: Now we are at $2,364 Raised of $3,000 Goal from 45 supporters. This makes an average of: $53 / donor and means we need an other 12 supporters. This campaign will end in 43 day, so the question after app. 50% is, what next? Will we start collecting for something else or should we first try to extend the job of our pull request manager? I would love to have a campaign to increase compilation speed for std.regex and std.format...
Re: The New Fundraising Campaign
On Tuesday, 4 December 2018 at 13:36:18 UTC, Nicholas Wilson wrote: On Tuesday, 4 December 2018 at 10:20:10 UTC, Martin Tschierschke wrote: p.s. And still: Please put the campaign logo/button beside the general donation logo/button at: https://dlang.org/foundation/donate.html You could do a PR to https://github.com/dlang/dlang.org/blob/master/foundation/donate.dd You've probably got a better Idea of what to do for that than I do (also I can't approve my own PRs) I tried my best, not sure how to see if the result looks ok?
Re: The New Fundraising Campaign
On Wednesday, 28 November 2018 at 09:34:33 UTC, Martin Tschierschke wrote: On Friday, 23 November 2018 at 13:18:55 UTC, Mike Parker wrote: On Friday, 23 November 2018 at 10:20:22 UTC, Martin Tschierschke wrote: [...] The campaign (https://www.flipcause.com/secure/cause_pdetails/NDUwNTY=) just received a big push: Aaron Sanchez Donation $250 12/03/18 Jason Briggs Donation & Mailing list $500 12/03/18 "D Lang is incredible let's all donate more." This deserves a big thank you! We are now at: $1,614 Raised of $3,000 Goal from 27 supporters. This has lifted the average to app $60 and only the need of another 23 giving this amount. Now I am convinced, that the missing amount will be in in time. So Mike, you may start to prepare the next funding goal... Regards mt. p.s. And still: Please put the campaign logo/button beside the general donation logo/button at: https://dlang.org/foundation/donate.html
Re: The New Fundraising Campaign
On Friday, 23 November 2018 at 13:18:55 UTC, Mike Parker wrote: On Friday, 23 November 2018 at 10:20:22 UTC, Martin Tschierschke wrote: Sorry for annoy you, but this links have to be integrated into the donate page https://dlang.org/foundation/donate.html Yes, I know. I want to do more than just add the link, however. I want to integrate the campaign menu, and that means I have to set aside some time to determine how best to add the integration code into the DDOC for the site. It's one of many items on my TODO list and I'll get to it soon. Just to let this pop up again :-) The campaign (https://www.flipcause.com/secure/cause_pdetails/NDUwNTY=) is now at $764 given from 23 supporters. => With the new average of ~$33.2, we need another 67 supporters to reach the $3000 goal. I'll do another push in the first week of December, on Twitter and the blog. And as we get closer to the deadline, I'll send out more reminders. Very good!
Re: The New Fundraising Campaign
On Saturday, 10 November 2018 at 16:09:12 UTC, Mike Parker wrote: I've just published a new blog post describing our new fundraising campaign. TL;DR: We want to pay a Pull Request Manager to thin out the pull request queues and coordinate between relevant parties on newer pull requests so they don't go stale. We've launched a three-month campaign, and Nicholas Wilson has agreed to do the work. We have high hopes that this will help reduce frustration for current and future contributors. And we will be grateful for your support in making it happen. Please read the blog post for more details: https://dlang.org/blog/2018/11/10/the-new-fundraising-campaign/ For the impatient: https://www.flipcause.com/secure/cause_pdetails/NDUwNTY= Sorry for annoy you, but this links have to be integrated into the donate page https://dlang.org/foundation/donate.html or even better the hint for this campaign should be on the home page, too. I gave my 25 bucks and want this topic to stay on top! So please put it on top! The campaign (https://www.flipcause.com/secure/cause_pdetails/NDUwNTY=is) is now at 614$ (goal 3000$), so that keeping this performance since the first donation (11/10) would give the missing 2386$ in app 51 days: => We need another 74 supporters with an average of 32$. Regards mt.
Re: scone v2.1 - CLI text, colors, input library
On Monday, 19 November 2018 at 12:14:26 UTC, Vladimirs Nordholm wrote: https://github.com/vladdeSV/scone [...] Looks interesting! Hint - there is a broken link to: simple examples https://github.com/vladdeSV/scone/tree/master/examples
Re: The New Fundraising Campaign
On Saturday, 10 November 2018 at 16:09:12 UTC, Mike Parker wrote: I've just published a new blog post describing our new fundraising campaign. TL;DR: We want to pay a Pull Request Manager to thin out the pull request queues and coordinate between relevant parties on newer pull requests so they don't go stale. We've launched a three-month campaign, and Nicholas Wilson has agreed to do the work. We have high hopes that this will help reduce frustration for current and future contributors. And we will be grateful for your support in making it happen. Please read the blog post for more details: https://dlang.org/blog/2018/11/10/the-new-fundraising-campaign/ For the impatient: https://www.flipcause.com/secure/cause_pdetails/NDUwNTY= I am still not convinced, why jet an other contribution system is needed. But you should place the links at: https://dlang.org/foundation/donate.html to lead people to this campaign not reading this post. An important feature flipcause really is missing is paypal, as a payment method. To be able to donate without credit card. - Yes there are people not using credit cards if they can avoid it, especially in Europe.
Re: Backend nearly entirely converted to D
On Thursday, 8 November 2018 at 08:40:37 UTC, Joakim wrote: [...] 2.080.1 - 1D 8.0s 2.081.2 - 4D 7.2s 2.082.1 - 27D 6.9s 2.083.0 - 45D 5.6s master d398d8c - 50D 4.3s [...] I think we'll see even more of a gain if the D files in the backend are built all at once. Interesting!
Re: smile.amazon.com Promotion
On Monday, 29 October 2018 at 16:40:20 UTC, FooledDonor wrote: On Monday, 29 October 2018 at 16:01:38 UTC, Mike Parker wrote: [...] Perhaps a fundamental principle is not clear enough at the foundation: transparency. Where is the vision of the third and fourth quarter? Where are the deliveries of things in the pipeline? What is the progress of the various jobs started? Which people is funding, with how much money and for what expected results? Where is the newCTFE? Was the work on this point financed by the foundation? I've never seen a report on the state of affairs, neither from the president, nor from Andrei, nor from Walter. How do you hope to obtain trust and funding, if NO one even deigns to give the least development plan or feedback on past developments? It seems that everyone has locked up in their ivory tower ... I want to subscribe to this points. Before trying an other money collection system, please provide more transparency of the current financial situation of the foundation. Regards mt.
Re: Add D front-end, libphobos library, and D2 testsuite... to GCC
On Monday, 29 October 2018 at 03:43:49 UTC, Mike Parker wrote: Congratulations are in order for Iain Buclaw. His efforts have been rewarded in a big way. Last Friday, he got the greenlight to move forward with submitting his changes into GCC: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01676.html That's now a reality. https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=03385ed3d679cd8125f282697a1c7cf46f8361cc Hopefully around the time of DConf next year we'll see GDC included with the release of GCC 9. How cool is that? Thank you Iain & Co.! Here an echo in the news: On Heise.de: https://www.heise.de/developer/meldung/Die-Programmiersprache-D-hat-es-in-die-GNU-Compiler-Collection-geschafft-4205656.html The Google-translation: https://translate.google.com/translate?sl=auto=en=y=_t=de=UTF-8=https%3A%2F%2Fwww.heise.de%2Fdeveloper%2Fmeldung%2FDie-Programmiersprache-D-hat-es-in-die-GNU-Compiler-Collection-geschafft-4205656.html=
Re: gRPC for D is released.
On Thursday, 11 October 2018 at 12:15:43 UTC, Brian wrote: hunt-grpc is Grpc for D programming language, hunt-http library based. [...] hunt-grpc project: https://github.com/huntlabs/hunt-grpc Interesting! D might be a candidate for being added here later: https://grpc.io/ "go straight to Quick Start in the language of your choice:"
Re: Updating D beyond Unicode 2.0
On Monday, 24 September 2018 at 14:34:21 UTC, Steven Schveighoffer wrote: On 9/24/18 10:14 AM, Adam D. Ruppe wrote: On Monday, 24 September 2018 at 13:26:14 UTC, Steven Schveighoffer wrote: Part of the reason, which I haven't read here yet, is that all the keywords are in English. Eh, those are kinda opaque sequences anyway, since the meanings aren't quite what the normal dictionary definition is anyway. Look up "int" in the dictionary... or "void", or even "string". They are just a handful of magic sequences we learn with the programming language. (And in languages like Rust, "fn", lol.) Well, even on top of that, the standard library is full of English words that read very coherently when used together (if you understand English). I can't imagine a long chain of English algorithms with some Chinese one pasted in the middle looks very good :) I suppose you could alias them all... -Steve You might get really funny error messages. can't be casted to int. :-) And if you have to increment the number of cars you can write: ++; This might give really funny looking programs!
Re: dlang download stat should be updated
On Tuesday, 11 September 2018 at 07:25:22 UTC, Suliman wrote: On Sunday, 9 September 2018 at 09:05:33 UTC, Suliman wrote: Last update was long time ago http://erdani.com/d/downloads.daily.png UP +1
Re: [vibe-d/dub] Lin
On Friday, 7 September 2018 at 16:37:18 UTC, MamoKupe wrote: On Friday, 7 September 2018 at 16:20:40 UTC, MamoKupe wrote: marcinan@marcinan-PC ~/Pulpit/d $ dub init bibe Package recipe format (sdl/json) [json]: d Invalid format, "d", enter either "sdl" or "json". Package recipe format (sdl/json) [json]: Name [bibe]: Description [A minimal D application.]: Author name [Marcin]: License [proprietary]: Copyright string [Copyright © 2018, Marcin]: Add dependency (leave empty to skip) []: vibe-d Added dependency vibe-d ~>0.8.4 /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1. On linux Mint with DUB version 1.11.0, built on Sep 1 2018 sudo apt-get install libssl-dev Solved linking problem for now. Yes, but this should be detected by dub before compilation as a missing dependency not after. Someone told, that is is possible by adding the right params to dub.sdl/.json. As an traditional error most "lets try vibe.d"-people see, I would like to ask for changing this. Regards mt.
Re: This is why I don't use D.
On Wednesday, 5 September 2018 at 05:44:38 UTC, H. S. Teoh wrote: On Wed, Sep 05, 2018 at 01:18:17AM +, James Blachly via Digitalmars-d wrote: [...] [...] [...] To me, this strongly suggests the following idea: - add *all* dlang.org packages to our current autotester / CI infrastructure. - if a particular (version of a) package builds successfully, log the compiler version / git hash / package version to a database and add a note to dlang.org that this package built successfully with this compiler version. - if a particular (version of a) package fails to build for whatever reason, log the failure and have a bot add a note to dlang.org that this package does NOT build with that compiler version. - possibly add the package to a blacklist for this compiler version so that we don't consume too many resources on outdated packages that no longer build. - periodically update dlang.org (by bot) to indicate the last known compiler version that successfully built this package. - in the search results, give preference to packages that built successfully with the latest official release. [...] I think this idea was suggested before and I hope this will be done. And when the compilation yield some warnings, about deprecation, the owner of the package should be notified and asked for update, too. Regards MT.
Re: D support for ChromeOS
On Wednesday, 22 August 2018 at 10:28:32 UTC, Joakim wrote: https://play.google.com/store/apps/details?id=com.termux=en $ apt search ldc Sorting... Done Full Text Search... Done ipcalc/stable 0.41 aarch64 Calculates IP broadcast, network, Cisco wildcard mask, and host ranges ldc/stable 1.11.0 aarch64 D programming language compiler, built with LLVM http://termux.net/dists/stable/main/binary-aarch64/ You should post it, as an extra topic on announce: D on Android with Termux LDC now 32 and 64 Bit! ... Thank you - it works!
Re: D support for ChromeOS
On Wednesday, 22 August 2018 at 10:28:32 UTC, Joakim wrote: It's up: $ apt search ldc Sorting... Done Full Text Search... Done ipcalc/stable 0.41 aarch64 Calculates IP broadcast, network, Cisco wildcard mask, and host ranges ldc/stable 1.11.0 aarch64 D programming language compiler, built with LLVM http://termux.net/dists/stable/main/binary-aarch64/ It is downloading now at 37 % :-), Thank you!
Re: D support for ChromeOS
On Wednesday, 22 August 2018 at 01:56:45 UTC, Joakim wrote: unning. [...] Oh, I forgot, if you're running Android apps in your Chromebook, you can install the Termux app and use LDC through there: https://play.google.com/store/apps/details?id=com.termux=en The first AArch64 build of LDC for Termux should be up in a day or so, `apt install ldc`, or you can build it from source in Termux, if you can't wait. ;) +1 ; Cool, not sure if I can wait, but probably I will :-)
Re: The dub documentation is now on dub.pm
On Thursday, 19 July 2018 at 09:39:04 UTC, Seb wrote: tl;dr: The dub documentation got split from the dub-registry repository and now lives on https://dub.pm (https://github.com/dlang/dub-docs). Motivation: --- - makes building the dub-registry faster - people hosting a mirror or a private instance don't need to host the documentation too - allows us to use a separate, more modern design for the dub docs (proposals are welcome!) - makes it easier for people contributing the docs (less code and dependencies to build) - allows us to remove the menu header at code.dlang.org and replace it with a nice, modern search bar - makes the deployment for the documentation easier (they are static HTML after all) and we have already setup continuous deployment for the documentation (via Netlify) As always, ideas and PRs to make DUB's documentation better are welcome. PS: Of course all old documentation links will redirect to dub.pm Very ++ :-) There should be a big section for well done dub.sdl / dub.json examples. What about defining "comment" as an special keyword for the .json parser inside Dub (just ignoring the content") to allow some kind comments inside .json In the moment only dub.sdl may be more descriptive with #comments. But many people prefer .json where no comments are build in. So allow to write "comment" : "This string will will be parsed away", may do the difference? Best regards mt.
Re: DMD, Vibe.d, and Dub
On Wednesday, 18 July 2018 at 15:21:29 UTC, Russel Winder wrote: On Wed, 2018-07-18 at 14:20 +, Seb via Digitalmars-d wrote: On Wednesday, 18 July 2018 at 12:56:05 UTC, Russel Winder wrote: > [...] You have openssl 1.1 installed, but vibe.d tries to link with openssl 1.0 by default. See https://github.com/vibe-d/vibe.d#switching-between-openssl-versions tl;dr: use dub --override-config vibe-d:tls/openssl-1.1 I went for the: dependency "vibe-d:tls" version="*" subConfiguration "vibe-d:tls" "openssl-1.1" in the dub.sdl file. I now have a build. I believe 1.1 should be the default if available, falling back to 1.0, 0.9,… It would be very useful if dub would be able to check for missing libs. It seams stupid, that after successful compilation you get the linker error. Even if the needed libs are named different on different systems, it would be cool to collect the information what is needed in the dub.sdl/dub.json file. So directly at the beginning you get a hint what is missing. And how to fix it, especially if you use a system like Debian (/Ubuntu) I ran into the exactly same chain of error messages, fixing them with the help of others, and some search, this is not the most convenient experience if you start with vibe.d. Regards mt.
Re: Funding for code-d/serve-d
On Saturday, 5 May 2018 at 11:21:29 UTC, Mike Parker wrote: This morning at the Hackathon I announced that the D Foundation is raising money for code-d/serve-d, the plugin for Visual Studio Code and its companion Microsoft Language Server Protocol implementation for D. [...] The goal was reached, what now?
Re: 'static foreach' chapter and more
On Tuesday, 26 June 2018 at 01:52:42 UTC, Ali Çehreli wrote: I've made some online improvements to "Programming in D" since September 2017. [...] Very good, thank you, please trow it to your converter to make a .pub for me of it :-)