Re: Copy Constructor DIP and implementation
On Sunday, 23 September 2018 at 02:40:15 UTC, Nicholas Wilson wrote: It appears that @implicit has been removed from the implementation [1], but not yet from the DIP. https://github.com/dlang/dmd/commit/cdd8100 Good, It's not needed.
Re: Copy Constructor DIP and implementation
On Wednesday, 12 September 2018 at 16:40:45 UTC, Jonathan M Davis wrote: Ultimately, I expect that if we add any attribute for this, people coming to D are going to think that it's downright weird, but if we're going to have one, if we go with @implicit, we're future-proofing things a bit, and personally, thinking about it over time, I've found that it feels less like a hack than something like @copy would. If we had @copy, this would clearly forever be something that we added just because we has postblit constructors first, whereas @implicit at least _might_ be used for something more. That does actually make a lot of sense. Isn't there any way these constructors could be inferred without the attribute?
Re: Copy Constructor DIP and implementation
On Tuesday, 11 September 2018 at 15:08:33 UTC, RazvanN wrote: Hello everyone, I have finished writing the last details of the copy constructor DIP[1] and also I have published the first implementation [2]. As I wrongfully made a PR for the DIP queue in the early stages of the development of the DIP, I want to announce this way that the DIP is ready for the draft review now. Those who are familiar with the compiler, please take a look at the implementation and help me improve it! Thanks, RazvanN [1] https://github.com/dlang/DIPs/pull/129 [2] https://github.com/dlang/dmd/pull/8688 I'm not sure about the naming of `@implicit` attribute. It seems confusing when used. `@copy` feels more natural or do we even need a new attribute at all?
Re: Proposal for a standard Decimal type in alpha
On Thursday, 21 December 2017 at 13:59:28 UTC, Jack Stouffer wrote: A couple of months ago, Andrei noted that a donor asked for a precise decimal type for D specifically: https://forum.dlang.org/post/osnema$d5s$1...@digitalmars.com. I've also heard this asked for many times, so I decided to start work on a library for eventual proposal to Phobos. Why not polish the one up in the review queue?: https://wiki.dlang.org/Review_Queue
D Language accepted for inclusion in GCC
D Language accepted for inclusion in GCC: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Well done Iain Buclaw! Reddit thread: https://www.reddit.com/r/programming/comments/6im1yo/david_edelsohn_d_language_accepted_for_inclusion/
Inside D's GC blog article on hacker news front page
Inside D's GC blog article currently No.3 on hacker news Here's the article, visit hacker news to read the comments. http://olshansky.me/gc/runtime/dlang/2017/06/14/inside-d-gc.html
Re: mysql-native: API Refresh RC
On Monday, 30 January 2017 at 02:56:27 UTC, Nick Sabalausky wrote: I've been working on a big refresh of mysql-native's API, to take care of various issues that have appeared with it. It involves some major breaking changes (although I've tried to keep old interfaces around for the moment, but marked deprecated), so I wanted to post it before committing to it so those interested have a change to take a look, give feedback, catch problems, etc. [...] Can we use semantic versioning correctly here and get an increment on the major version please. I'm so sick of seeing D libs in endless alpha/beta!
Re: Release D 2.072.1
On Wednesday, 30 November 2016 at 22:49:12 UTC, Martin Nowak wrote: Glad to announce D 2.072.1. http://dlang.org/download.html This point release fixes a few issues over 2.072.0, see the changelog for more details. http://dlang.org/changelog/2.072.1.html -Martin The download page doesn't seem to feature this new release.
Comparing compilation time of random code in C++, D, Go, Pascal and Rust
This was posted on twitter a while ago: Comparing compilation time of random code in C++, D, Go, Pascal and Rust http://imgur.com/a/jQUav D was doing well but in the larger examples the D compiler crashed: "Error: more than 32767 symbols in object file".
Re: GSoC 2016 - D Foundation was accepted!
On Tuesday, 1 March 2016 at 01:55:09 UTC, Jeremy DeHaan wrote: Hello everyone! I didn't see mention of this yet, but earlier today Google released their list of accepted Organizations for this year's GSoC. Guess what! The D Foundation made the cut! Thank you to everyone that worked on the proposals and application. This is awesome and you all are awesome! Now to get started on my own application... There's someone already here asking for help to get started with D. http://forum.dlang.org/thread/unjwimupfbeoopknq...@forum.dlang.org
Re: Graillon 1.0, VST effect fully made with D
On Thursday, 26 November 2015 at 15:48:48 UTC, Guillaume Piolat wrote: I'm happy to release my first commercial software, it's a voice effect designed for singers, follows the VST 2.x format, and is made entirely with D (LDC 0.16.0 for OSX 64-bit, DMD 2.069.0 for the rest). Awesome. Please write a blog post detailing your experiences with D while writing this software and share on reddit. It would be good PR especially the comments about the GC.
Re: The D Language Foundation is now incorporated
On Friday, 16 October 2015 at 10:04:36 UTC, Andrei Alexandrescu wrote: We are pleased to announce that the D Language Foundation is now incorporated with the state of Washington, USA. The foundation's Board of Directors are Walter Bright, Ali Çehreli, and myself. Our initial administrative meeting will take place on Monday. Agenda includes EIN (Employee Identification Number) application, funding, and immediate plans for the foundation. Going forward we're applying for a non-profit status, which is a longer process (3-6 months). We're very excited about the creation of the D Language Foundation and we hold high hopes that it will have a strong positive effect on the D language and community. Andrei Excellent news. I hope the foundation is the shot in the arm that D needs.
Re: Fastest JSON parser in the world is a D project
On Wednesday, 14 October 2015 at 07:01:49 UTC, Marco Leise wrote: fast: 0.34s, 226.7Mb (GDC) RapidJSON: 0.79s, 687.1Mb (GCC) (* Timings from my computer, Haswell CPU, Linux amd64.) Where's the code?
Re: Moving forward with work on the D language and foundation
On Monday, 12 October 2015 at 18:25:57 UTC, Iain Buclaw wrote: Maybe I missed something, but at last check, Go and most of it's internal runtime is written in C++ (gccgo). They have an "upstream" somewhere, so I'd imagine that is C++ too. The last release saw the compiler and runtime ported to Go. https://golang.org/doc/go1.5
Re: A new article about working with files in D
On Wednesday, 30 September 2015 at 08:32:29 UTC, extrawurst wrote: I agree on that, these examples should be added to the ddocs of phobos. -- Stephan I might do that myself. :)
Re: A new article about working with files in D
On Monday, 28 September 2015 at 14:05:42 UTC, bachmeier wrote: This is the best way to market the language, by making it easy to do practical things. Good work. This is my thoughts exactly and why I wrote this article. Why I read the Go article which inspired this one I was shocked by how awful it was compared to working with files in D. Yes, Go has a few more functions available but all are a bit clunky to work with. D on the other hand is always simple and elegant.
A new article about working with files in D
Article: http://nomad.so/2015/09/working-with-files-in-the-d-programming-language/ Reddit link: https://www.reddit.com/r/programming/comments/3mosw7/working_with_files_in_the_d_programming_language/
Article: More hidden treasure in the D standard library
I've written a new article on D here: http://nomad.so/2015/08/more-hidden-treasure-in-the-d-standard-library/ Hopefully to drive other programmers to investigate D. It's a continuation of a similar one I wrote a few months ago which attracted over 60k readers. It's a simple overview of some cool features in the D standard library hopefully to fuel curiosity. Reddit link: https://www.reddit.com/r/programming/comments/3j3j87/more_hidden_treasure_in_the_d_standard_library/ Up vote away. :)
Re: Article: More hidden treasure in the D standard library
On Monday, 31 August 2015 at 16:16:15 UTC, John Colvin wrote: why the use of `input.text` instead of just `input` on line 14 of the fizz buzz example? It doesn't compile. Error: mismatched function return type inference of int and string
Re: Release D 2.068.0
On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote: Glad to announce D 2.068.0. http://downloads.dlang.org/releases/2.x/2.068.0/ This release comes with many rangified phobos functions, 2 new GC profilers, a new AA implementation, and countless further improvements and fixes. See the changelog for more details. http://dlang.org/changelog.html#2.068.0 -Martin Excellent news, thanks for all the hard work guys!
Re: Learning D Available for Pre-Order
On Tuesday, 23 June 2015 at 14:47:03 UTC, Mike Parker wrote: The project that has taken me away from Derelict since the end of February is now available for pre-order at [1]. I'm currently about 60% through the preliminary draft stage and, given that I've recently acquired a significant amount of free time in my schedule, expect to accelerate my pace on the remaining 40%. I need as much time as I can make for the revisions! Awesome news. The more books written on D the better. Good work! So far in the course of writing this book, I've learned that I knew less about the fundamentals of D than I thought I did and that the more difficult parts of the language aren't so difficult. That was my experience exactly when i wrote a programming book a decade ago. :)
Re: This Week in D #15: hackathon, mem management, ARM, tip for C coders
On Monday, 4 May 2015 at 03:23:08 UTC, Adam D. Ruppe wrote: I covered two weeks this time, as I missed last week. A switch was added to git to start profiling the GC itself, as part of a general push toward better memory management in D. That should read: A switch was added to *DMD*
Re: [hackathon] One week left to the first D Hackathon!
On Saturday, 18 April 2015 at 16:26:41 UTC, Andrei Alexandrescu wrote: Join us for one week starting Saturday April 25th for the first D Hackathon! The D Hackathon is one week of intense participation and collaboration on anything and everything related to the D programming language. All participants are encouraged to collaborate on the online forums (http://forum.dlang.org/group/digitalmars.D), github repos (https://github.com/D-Programming-Language), IRC (#d on irc.freenode.net, use your favorite IRC client or https://webchat.freenode.net). Please prepend forum posts related to hackathon with [hackathon]. (There should be little else!) Complete n00bs are encouraged to participate (tell your friends!) and part of the purpose of the D Hackathon is to lower the barrier to entry for would-be collaborators by means of better documentation and tooling. Let's focus on creating a better, more inviting out-of-the-box experience for everyone, and above all a better D language. We'll officially measure hackathon results by the number of preexisting bugs fixed, but do feel free to work on anything you think is important to you. There is no other rule than getting good work done. See you in one week! Andrei This sounds awesome! I'm going to give the website and phobos documentation a pass making corrections and adding examples, beefing up, etc. So i'll trawl bugzilla looking for low hanging fruit/easy stuff to get my feet wet. I've run into a few problems[1] with building the website and documentation. DMD, druntime and phobos all build easily but dlang.org sources are a pain. I wonder if anyone has built the website recently from scratch to make sure it all works? Also the tools repository needs work to build too. This is because of the `if(arr)` warnings. I think there are pull requests waiting[2] but until they are merged a few of the tools are broken which breaks the whole build. Dustmite also needs to be amended upstream[3]. [1]: http://forum.dlang.org/thread/wwktjyurctmdffmfe...@forum.dlang.org [2]: https://github.com/D-Programming-Language/tools/pull/166/files [3]: https://github.com/CyberShadow/DustMite
Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers
On Monday, 30 March 2015 at 00:20:11 UTC, Laeeth Isharc wrote: https://www.quora.com/Why-didnt-D-language-become-mainstream-comparing-to-Golang Post this on reddit.
Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers
I wrote the article in a rush last night (girlfriend calling me to bed) and as a result it has a few spelling/grammar errors which I've hopefully corrected. The article is a total rant about Go after using it over the last month or so for a project. I honestly was getting so bored with Go and the article that I was literally falling asleep writing it. lol! Is started liking Go but after a while I found it increasing difficult trying to change me way of working to shoehorn solutions into such a simple language. I know it's a bit unfair in places and it's got a click bait title but who cares? I got my point across and I think people understand where i'm coming from. It seems to have got really popular and I've been swamped with mail, etc. I think it's the most read article i've ever written. ha! :o)
Re: Release D 2.067.0
On Tuesday, 24 March 2015 at 17:08:03 UTC, Martin Nowak wrote: Glad to announce D 2.067.0. This release comes with many improvements. The GC is a lot faster for most use-cases, we have improved C++ interoperability and fixed plenty of bugs. See the changelog for more details. http://dlang.org/changelog.html Download pages and documentation will be updated within the next few hours. http://downloads.dlang.org/releases/2.x/2.067.0/ http://ftp.digitalmars.com/ Until the binaries are mirrored to the official site, you can get them here. https://dlang.dawg.eu/downloads/dmd.2.067.0/ -Martin This is an awesome release. Thanks to all involved! :)
Video: Cool Things about D - Why and how we use it at Facebook
Found this on Reddit, thought you guys would like to take a look. https://yow.eventer.com/yow-2014-1222/cool-things-about-d-why-and-how-we-use-it-at-facebook-by-andrei-alexandrescu-1741 Reddit link: http://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/ Upvote away!
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Saturday, 7 February 2015 at 02:00:32 UTC, Jack wrote: I've been using this for learning experience and tried to use .jpg for the Image Object in vain. Are there plans to include jpg support here? Or is there a workaround for that? or can I use other image libraries to embed it to a Label Object or Button Object? Tcl/Tk only currently supports *.ppm, *.pgm, *.png and *.gif. PPM/PGM formats were deemed to obscure to support in Tkd.
Re: I'll be presenting at NWCPP on Jan 21 at Microsoft
On Thursday, 22 January 2015 at 17:21:42 UTC, Meta wrote: On Thursday, 22 January 2015 at 01:09:13 UTC, FrankLike wrote: On Thursday, 22 January 2015 at 00:51:34 UTC, Walter Bright wrote: On 1/21/2015 4:42 AM, FrankLike wrote: How about the result? ?? Re: I'll be presenting at NWCPP on Jan 21 at Microsoft D is modern and systerm language,we like it,how about the Microsoft? I'm also interested in how the presentation went. Me too, is there any video available?
Re: Gource visualisations of various D repositories
On Wednesday, 24 December 2014 at 19:10:50 UTC, Andrej Mitrovic via Digitalmars-d-announce wrote: The animations are super-fast, it makes it hard to see what's going on but it's still fun. Yeah, one of my first rendering clocked in at 20mins which gave you more of a flavour of what was actually happening but was bring, lol. So i compressed them all to be about 4 minutes. :)
Gource visualisations of various D repositories
For a bit of fun and prompted by a thread requesting such, i've created a few visualisation videos generated from D repositories by Gource. DMD: https://www.youtube.com/watch?v=8OuZ9sfyEbI Phobos: https://www.youtube.com/watch?v=5OLccv4FhE8 Druntime: https://www.youtube.com/watch?v=JHdbdnBVXus Tools: https://www.youtube.com/watch?v=E6aXnB5iAco Dub: https://www.youtube.com/watch?v=eCl0TQRvZqY Gource: https://code.google.com/p/gource/ Have fun!
Re: Quandl API ported to D
On Thursday, 11 December 2014 at 01:25:32 UTC, Laeeth Isharc wrote: Embarassingly trivial, and I don't claim it is well-written. But perhaps it will save somebody a few minutes. Quandl is The largest, most usable collection of free open data in the world. They offer a bunch of predominantly financial and economic data from different sources for free (with a pretty generous API allowance) and plan to earn a buck down the line selling commercial data and being a platform for distribution. Given the situation with Bloomberg (the banks are not terribly happy following the JPM whale/Bloomberg journalism revelations) and structural change in the market for data, this is an intriguing platform. In any case, I ported the sample C++ API to D, which was more a question of deleting redundant lines and using std.net.curl then anything else. Perhaps someone will find it useful. https://github.com/Laeeth/d-quandl Laeeth. Interesting. Why not also add it to the dub registry? http://code.dlang.org/ You can find more information here: http://code.dlang.org/about and more about the package format here: http://code.dlang.org/package-format
Re: Travis-CI support for D
On Thursday, 11 December 2014 at 04:50:42 UTC, Martin Nowak wrote: Glad to announce that D support on Travis-CI was launched today. http://blog.travis-ci.com/2014-12-10-community-driven-language-support-comes-to-travis-ci/ You can now get out-of-the-box continuous integration for your D projects on github. If you are already using dub, using Travis-CI is as simple as adding a 2 line .travis.yml file to your repo and toggling a switch on travis-ci.org. language:d sudo: false You can also chose a specific compiler by adding a d: tag. d: ldc-0.14.0 Build matrices are supported as well, so you can test your project against multiple compilers. Please only test as many compilers as you actually need! d: - dmd-2.066.1 - gdc-4.9.0 - ldc-0.14.0 The following compilers were successfully tested. dmd-2.064 dmd-2.065.0 dmd-2.066.1 gdc-4.8.2 gdc-4.9.0 ldc-0.13.0 ldc-0.14.0 Read the docs for more details http://docs.travis-ci.com/user/languages/d/. And you can also have a look at these 2 libraries. https://travis-ci.org/MartinNowak/hyphenate https://travis-ci.com/MartinNowak/bloom Happy testing -Martin This is awesome! I've got it working nicely on a few of my projects. Thanks.
Re: Help getting DWT for D2 using phobos
On Thursday, 4 December 2014 at 05:53:28 UTC, Olagsfark wrote: Thanks for the help gary, i guess i'll have to install git. No worries, once you get over the learning curve git + git-hub are really cool. :)
Re: forum.dlang.org is now using DCaptcha
On Tuesday, 2 December 2014 at 21:41:28 UTC, Vladimir Panteleev wrote: Enter DCaptcha, a question-answer challenge tailored for D programmers. Its goals are to challenge posters of suspicious-looking content with questions that should be easy to answer to D programmers, and impossible for non-technical people with no incentive to learn or research stuff (i.e. spammers). DCaptcha is already in use on the D wiki (wiki.dlang.org), with great success - DCaptcha's debut cut the short-lived explosion in wiki spam to zero. I think this is a bad idea because developers new to the language will be turned away. Also i think a lot of these 'easy' questions are just too hard. I've tried the demo and found it fustrating that i need a few trys to get them right.
Re: forum.dlang.org is now using DCaptcha
On Wednesday, 3 December 2014 at 08:28:25 UTC, Vladimir Panteleev wrote: Got it. But we're not going back to reCAPTCHA either. I'm tired of deleting spam by hand. Please suggest some ideas (or better, send pull requests). I got fed up of having spam on an old blog so i implemented a simple question, click on Darth Vader. Then i had lots of little images of film icons and would not post anything until Darth Vader was correctly selected. This sounds simple but the order of the images was randomised to stop bots and humans didn't seem to get it. Also if the wrong icon was selected, i presented a countdown on the page of 2 minutes letting them know this is a anti-spam measure and they can't post until the timer reached zero. Anyone managing to post spam to the blog was IP logged and always redirected to the countdown (once redirected and once the countdown reached zero it always reset forever to make it extremely frustrating for them). Yes you have to put in the effort to log IP's but i found there were very few persistent spammers. It honestly stopped all spam on my old blog.
Re: Help getting DWT for D2 using phobos
On Saturday, 29 November 2014 at 05:56:20 UTC, Dammy wrote: Hi guys, i've been trying to download the DWT library for some time now and i just couldnt get it cos the zip i'm downloading from github doesnt contain any library source. Until recently when i went to dsource.org and i was really happy to have found the full DWT package on to download it and find out it uses the tango library. Please help guys! How do i get the dwt for phobos library for D2. Please help! I'm using Dmd32 version2.066.0 on a windows vista. Your help will be greatly appreciated.. Thanks in advance Get the source from here: https://github.com/d-widget-toolkit/dwt Read the readme on that page and follow the instructions. The source is contained in sub modules so you need checkout with git (recursively) *not* download the zip.
Re: Programming in D book, draft of the first print edition and eBook formats
Fantastic work.
D is for Data Science
Just browsing reddit and found this article posted about D. Written by Andrew Pascoe of AdRoll. From the article: The D programming language has quickly become our language of choice on the Data Science team for any task that requires efficiency, and is now the keystone language for our critical infrastructure. Why? Because D has a lot to offer. Article: http://tech.adroll.com/blog/data/2014/11/17/d-is-for-data-science.html Reddit: http://www.reddit.com/r/programming/comments/2n9gfb/d_is_for_data_science/
Re: Endovena: a dependency injection framework.
On Saturday, 1 November 2014 at 19:19:51 UTC, JN wrote: But then you have to pass the container around? Or you make it a singleton? Basically yes.
Re: Endovena: a dependency injection framework.
On Saturday, 1 November 2014 at 16:36:02 UTC, JN wrote: I may be ignorant, can someone explain what's the difference between: Container container; container.register!(IGreeter, Greeter); auto greeter = container.get!IGreeter(); writefln(greeter.greet) and auto greeter = new Greeter(); writefln(greeter.greet) ? It's the fundamental way dependency injection containers are used. Instead of having complex dependencies on other resources you can just rely on the container to serve resources as needed. For example if you have a class which needs the Greeter service you will either have to embed that service using composition or pass it into the class via a constructor or setter. A container is a single place where this and many other services can be retrieved. This also means that anything wanting to use the container is also dependent on it but this is sometimes less complicated than dealing with all the other dependencies individually. Also some dependencies have complicated rules for creating them which some dependency injection containers deal with, again removing this code from where the resource is actually being used.
Re: DGui is alive
On Sunday, 12 October 2014 at 13:23:33 UTC, Frank Like wrote: Hello,Denis Shelomovskij. How about the DGui's new status? You can see all activity here: https://bitbucket.org/dgui/dgui/
Re: mysql-native: Update, Status and Plans
On Saturday, 4 October 2014 at 09:16:15 UTC, Nick Sabalausky wrote: snip Excellent news! I've used this lib a great deal for high traffic applications and it performs very well. Along with carefully designed schema i've had this lib working with tables filled with over a billion rows and performance is still fantastic! Keep up with the great work guys!
Re: DUB 0.9.22 released
On Monday, 22 September 2014 at 09:33:52 UTC, Sönke Ludwig wrote: Great thanks Sönke!
Re: Recent download statistics
On Wednesday, 3 September 2014 at 09:47:45 UTC, Peter Alexander wrote: Any idea what caused the spike in March last year? Dconf 2013?
Re: Blog post on hidden treasure in the D standard library.
On Saturday, 30 August 2014 at 07:55:37 UTC, safety0ff wrote: On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via Digitalmars-d-announce wrote: i believe that those rules are useless and senseless now, so it's more like a one man crusade. It's not a one man's crusade, it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times. Stop being such a grammar nazi. https://www.youtube.com/watch?v=Ovi7uQbtKas
Re: Blog post on hidden treasure in the D standard library.
On Saturday, 30 August 2014 at 07:55:37 UTC, safety0ff wrote: On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via Digitalmars-d-announce wrote: i believe that those rules are useless and senseless now, so it's more like a one man crusade. It's not a one man's crusade, it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times. ƃuıןןǝds-uɐɔıɹǝɯɐ-puɐ-ɥsıʇıɹq\spɹoʍ\ɯoɔ˙sǝıɹɐuoıʇɔıppɹoɟxo˙ʍʍʍ\\:dʇʇɥ :[Ɩ] uoıʇɐnʇɔund ou puɐ ʎןuo ǝsɐɔ-ɹǝʍoן uı uo ʍou ɯoɹɟ ƃuıɥʇʎɹǝʌǝ ƃuıʇıɹʍ ʇɹɐʇs ʇɥƃıɯ ı ˙ǝןdɯıs 'ǝʇıɹʍ ı ƃuıɥʇʎuɐ pɐǝɹ ʇ,uop 'ʇı ǝʞıן ʇ,uop noʎ ɟI ˙uoısıɔǝp snoıɔuoɔ ɐ ɟo ǝsnɐɔǝq op ı ʎɐʍ ǝɥʇ ǝʇıɹʍ I ˙ɹoɥʇnɐ pǝɥsıןqnd ɐ 'ןןɐ ɹǝʇɟɐ 'ɯɐ ı 'ǝɔuɐɹouƃı ɟo ʇno op ı ʎɐʍ ǝɥʇ ǝʇıɹʍ ʇ,uop I [Ɩ] ¡ƃuoɹʍ ʎןǝʇǝןdɯoɔ ʇןǝds ƃuıǝq spɹoʍ ɟo ʇunoɯɐ snoɯɹouǝ uɐ ɥʇıʍ sʇɔǝןɐıp ɥsıןƃuƎ ןןɐ ɟo ʇsɹoʍ ǝʇnןosqɐ ǝɥʇ sı ɥsıןƃuƎ uɐɔıɹǝɯ∀ ¡sɔıuoqƎ ǝʇoɹʍ puɐ ǝʞods oɥʍ ǝuoǝɯos ʇɔǝɹɹoɔ noʎ ǝǝs oʇ ǝʌoן pןnoʍ I ˙puıɥǝq ʇɟǝן ƃuıǝq ǝɹɐ sɯoıpı ןɐuoıʇıpɐɹʇ ʎuɐɯ ʇǝuɹǝʇuı ǝɥʇ ɟo ʇuǝʌpɐ ǝɥʇ ɥʇıM ˙suoıʇɐıɹɐʌ ʇuǝɹǝɟɟıp ǝʌɐɥ ɯopƃuı⋊ pǝʇıu∩ ǝɥʇ dn ǝʞɐɯ ʇɐɥʇ sǝıɹʇunoɔ ɹnoɟ ǝɥʇ uǝʌƎ ˙sʇsıxǝ ʇı ǝɹǝɥʍ ǝɹǝɥʍʎɹǝʌǝ ǝƃɐnƃuɐן ƃuıƃuɐɥɔ 'ƃuıʍoɹƃ ɐ sı ɥsıןƃuƎ puɐ 'ʇı ɟo uoısɹǝʌ ǝןʇʇıן uʍo ɹıǝɥʇ ǝʌɐɥ pןɹoʍ ǝɥʇ ɟo sʇɹɐd ʎuɐɯ ǝsnɐɔǝq sı ɥsıןƃuƎ ɹoɟ ǝǝʇʇıɯɯoɔ spɹɐpuɐʇs ou sı ǝɹǝɥʇ uosɐǝɹ ǝɥ⊥ ˙ǝƃɐnƃuɐן uʍo ɹıǝɥʇ ǝʇıɹʍ ɹo ʞɐǝds pןnoɥs ʎǝɥʇ ʍoɥ uo ǝןdoǝd ɥsıןƃuƎ ʇɔǝɹɹoɔ oʇ ƃuıʎɹʇ sʎɐʍןɐ ǝɹɐ ǝןdoǝd ɥsıןƃuƎ-uou ʇɐɥʇ snoıɹɐןıɥ ʇı puıɟ sʎɐʍןɐ I ˙ǝuo pǝʇɐɔnpǝun ǝɥʇ ǝɹɐ noʎ ʇɐɥʇ ɟo ǝsnɐɔǝq ʇı puɐʇsɹǝpun ʇ,uɐɔ noʎ ɟI ¡ʇxǝʇ ǝןoɥʍ ǝɥʇ uı s,ı ǝsɐɔ-ɹǝʍoן uǝ⊥ ˙*uǝʇ* sɐɥ ǝןɔıʇɹɐ ǝɹıʇuǝ ǝɥʇ 'uǝʌǝs ʇou 's,ı ǝsɐɔ-ɹǝʍoן *ǝʌıɟ* sɐɥ ɥdɐɹƃɐɹɐd ʎɹoʇɔnpoɹʇuı ǝɥ⊥
Re: Blog post on hidden treasure in the D standard library.
It's my blog and i'll do as *i* please.
Re: Blog post on hidden treasure in the D standard library.
After posting this yesterday i've so far had 9,900+ people visit this article (with 96.90% being new visitors). Good exposure for D i think. :)
Blog post on hidden treasure in the D standard library.
I've written a new blog post highlighting hidden treasure found in the D standard library. I love finding this stuff so i've shared my latest discoveries hoping to ignite some curiosity out there. I've put it on reddit so vote up! :) http://www.reddit.com/r/programming/comments/2etyz1/hidden_treasure_in_the_d_standard_library/
Re: Blog post on hidden treasure in the D standard library.
Direct link: http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/
Re: Blog post on hidden treasure in the D standard library.
On Thursday, 28 August 2014 at 20:41:21 UTC, Andrei Alexandrescu wrote: On 8/28/14, 9:06 AM, Gary Willoughby wrote: Direct link: http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/ Post is on hackernews' front page as well. Congratulations! -- Andrei Cool! :)
Re: D for the Win
http://en.wikipedia.org/wiki/Godwin's_law
Re: D:YAML 0.5 (also, D:YAML 0.4.5, TinyEndian 0.1)
On Friday, 8 August 2014 at 22:00:03 UTC, Kiith-Sa wrote: Should be fixed now with 0.4.6: http://code.dlang.org/packages/dyaml/0.4.6 Awesome! ta.
Re: D:YAML 0.5 (also, D:YAML 0.4.5, TinyEndian 0.1)
On Thursday, 7 August 2014 at 13:38:20 UTC, Kiith-Sa wrote: On Wednesday, 6 August 2014 at 21:18:00 UTC, Gary Willoughby wrote: On Wednesday, 6 August 2014 at 17:09:50 UTC, Kiith-Sa wrote: ## D:YAML 0.4.5 ## For compatibility with DMD 2.065, I also made a release out of the last state of git master before 2.066 was required. See the release at GitHub: https://github.com/kiith-sa/D-YAML/releases/tag/v0.4.5 Great thanks. One tiny issue however is that v0.4.5 is not available via the dub registry. It looks like the registry has only picked up v0.5.0. Is there any way to work this around? (I'm not in charge of the dub package, and even if I were I don't see how I could force it to detect the older tag) - the only thing I can think of right now is putting it into a separate repo and registering it as a separate package, which is rather unwieldy. Try asking for a solution here: http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/
Re: D:YAML 0.5 (also, D:YAML 0.4.5, TinyEndian 0.1)
On Wednesday, 6 August 2014 at 17:09:50 UTC, Kiith-Sa wrote: ## D:YAML 0.4.5 ## For compatibility with DMD 2.065, I also made a release out of the last state of git master before 2.066 was required. See the release at GitHub: https://github.com/kiith-sa/D-YAML/releases/tag/v0.4.5 Great thanks. One tiny issue however is that v0.4.5 is not available via the dub registry. It looks like the registry has only picked up v0.5.0.
Re: Programming in D book is 100% translated
On Thursday, 24 July 2014 at 08:11:01 UTC, Ali Çehreli wrote: I have completed the translation of the book. Phew... :) However, there is still more work, like adding a UDA chapter and working on many little TODO items. The following was the final chapter, which actually only scratches the surface of the very broad topic: * Memory Management As a reminder, the book is available as PDF, downloadable from the header of each chapter: http://ddili.org/ders/d.en/index.html Ali Great book! Thanks.
Re: Programming in D book is 100% translated
On Thursday, 24 July 2014 at 08:11:01 UTC, Ali Çehreli wrote: I have completed the translation of the book. Phew... :) However, there is still more work, like adding a UDA chapter and working on many little TODO items. The following was the final chapter, which actually only scratches the surface of the very broad topic: * Memory Management As a reminder, the book is available as PDF, downloadable from the header of each chapter: http://ddili.org/ders/d.en/index.html Ali BTW ever thought about uploading it to a site like http://www.lulu.com ? Then people could buy hard copies, etc.
Re: DGui is alive
On Wednesday, 23 July 2014 at 11:40:01 UTC, FrankLike wrote: How about the DGui's status? https://bitbucket.org/dgui/dgui/issues
Re: Coloring terminal output.
On Sunday, 13 July 2014 at 20:11:19 UTC, yamadapc wrote: Hello all :) I've made a simple port of ruby's colorize library for D. I'd greatly appreciate any feedback. Windows isn't supported, yet. Links: http://code.dlang.org/packages/colorize https://github.com/yamadapc/d-colorize https://github.com/fazibear/colorize It looks good. This stuff is always a pain to handle so i appreciate you wrapping this up into a library. :)
Re: Decimal Numbers
On Monday, 7 July 2014 at 21:15:33 UTC, Paul D Anderson wrote: On Monday, 7 July 2014 at 03:26:54 UTC, Poyeyo wrote: Can you add a dub.json and submit it to the dub registry? etcimon generated a dub.json file which I've merged into github. Thanks. However, I am unable to register the package because it requires a version number, which I don't know how to add. I've used git tag and edited dub.selections.json, but neither seems to be the answer. Can someone enlighten me? Paul If you want to do this in github just click the releases tab on your repo and create a new release with the tag and name formatted as a SemVer[1] tag. [1]: http://semver.org/
Re: Smile, you're on Wired
On Monday, 7 July 2014 at 16:06:45 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2a20h5/wired_magazine_discovers_d/ https://hn.algolia.com/#!/story/forever/0/the%20next%20big%20programming%20language https://www.facebook.com/dlang.org/posts/880588921954790 https://twitter.com/D_Programming/status/486179309363941376 Andrei Fantastic article.
Re: DGui is alive
On Thursday, 26 June 2014 at 15:24:17 UTC, FrankLike wrote: On Wednesday, 25 June 2014 at 17:32:06 UTC, Gary Willoughby wrote: On Wednesday, 25 June 2014 at 15:16:03 UTC, FrankLike wrote: How about the DGui's status? https://bitbucket.org/dgui/dgui/issues #1to#5,those were built by me. Well done.
Re: DGui is alive
On Wednesday, 25 June 2014 at 15:16:03 UTC, FrankLike wrote: How about the DGui's status? https://bitbucket.org/dgui/dgui/issues
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 19 June 2014 at 18:10:58 UTC, SomeRiz wrote: Hi. Where is the installation and using tutorial for Windows? Thank you :) https://github.com/nomad-software/tkd There is a good readme file and full HTML documentation along with examples there.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 19 June 2014 at 18:47:29 UTC, SomeRiz wrote: Thanks Gary. Very simple :) But i have a question. All DLL file = How can i embed main.d file? for example: dmd output = just, main.exe so standalone sorry for my bad english :/ You can't, on Windows the DLL's and library folder have to be distributed with your exe. Tkd currently uses these resources: https://github.com/nomad-software/tcltk/tree/v8.6.2/dist/ Later versions of Tkd will use other DLL's i've compiled to avoid any license issues. More information is in the readme file.
Re: Per popular demand, here are Adam D Ruppe's presentation slides
On Friday, 23 May 2014 at 19:29:12 UTC, Andrei Alexandrescu wrote: Adam graciously shared the slides of his DConf 2014 talk with us: http://imgur.com/hHCN3OL Andrei Ha, I really liked his talk :)
Re: Livestreaming DConf?
On Tuesday, 20 May 2014 at 17:26:22 UTC, Ali Çehreli wrote: On 05/09/2014 12:48 PM, Andrei Alexandrescu wrote: livestreaming the event Do we know the details yet? Where to watch? Ali http://www.ustream.tv/channel/dconf-2014
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 11 May 2014 at 10:16:35 UTC, Kagamin wrote: https://github.com/nomad-software/tkd/blob/master/source/tkd/element/element.d Since you allocate CommandArgs in C heap, its content is invisible to GC and will be freed - uniqueData and callback. Can you clarify what you mean here? Are you asserting i am cleaning up or i need to somewhere?
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 11 May 2014 at 14:04:44 UTC, Kagamin wrote: GC cleans up for you. Usually this won't happen because uniqueData is likely to be in data section and callback is likely to be a member of a widget used elsewhere. But if they aren't, GC will free them and you end up with dangling pointers in CommandArgs. I see. I think i have been bitten by this actually. What would be your solution?
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 8 May 2014 at 06:49:40 UTC, Stef Kariotidis wrote: I have one question, is there by chance a way to extend Tk in D in order to create a grid like widget (excel, winforms grid view look alike)? If yes any hints would be much appreciated. IMHO, two widgets are missing in Tk-Tkinter a grid as mentioned above and a web view. These widgets are not supported in Tcl/Tk by itself but could be added at any time. The Tkinter ones (and there is many) are community written using Tkinter (in Python), Tcl or as C extensions. I guess we could do the same if there is enough demand. Tkd is not meant to be an all singing all dancing GUI toolkit (such as Gtk or Qt) but rather a simple toolkit for simple UI's. If you need something built quickly with a simple UI (a prototype perhaps) use Tkd. If you're building the next Steam or Spotify use Qt/Gtk.
Re: Tkd – Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 8 May 2014 at 17:10:10 UTC, FrankLike wrote: Hello, TKD is very nice, and it's easy to use,but how to build it to small? Such as the size is below to 1M, not must have the lib ,and Memory usage is below to 3M. Can you please stop asking that in every thread. Tkd depends on Tcl/Tk and will always do so. There is always going to be a certain amount of overhead because of that.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Wednesday, 7 May 2014 at 08:26:30 UTC, John Colvin wrote: What dmd frontend version are you targeting/developing with? 2.065 I'll add a note to the readme file.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Tuesday, 6 May 2014 at 07:33:55 UTC, Suliman wrote: Am I right understand that before using Tkd I should install Tcl/Tk ? I tried to build simple project with dub and got error that system do not have tcl86.DLL Yes. All is explained in the dependencies section in the readme text.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Monday, 5 May 2014 at 16:17:34 UTC, Nick Sabalausky wrote: I did find file a couple issues though: https://github.com/nomad-software/tcltk/issues/4 https://github.com/nomad-software/tkd/issues/11 Fixed.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 4 May 2014 at 19:19:57 UTC, Nick Sabalausky wrote: -Jsource/example/media: Use stringImportPaths to specify import paths in a compiler independent way Error: multiple definition of tcl_38_307: _Tcl_Main and Tcl_Main: _Tcl_Main These errors should now be fixed in Tkd v1.0.1-beta.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Monday, 5 May 2014 at 16:17:34 UTC, Nick Sabalausky wrote: Excellent. I just grabbed the latest, copied the dlls and setup scripts, and it works now. I did find file a couple issues though: https://github.com/nomad-software/tcltk/issues/4 https://github.com/nomad-software/tkd/issues/11 Ok, i'll take a look at these. Also, regarding DUB directory copying for the tcl init scripts, the docs mention a postBuildCommands which I would think could be used for that purpose (or for pretty much anything else). Yeah that's the plan but i need a nice method of referring to the output directory when used as a dependency. I've been through this with Sönke and he reckons the next version of dub will be able to do this. See: https://github.com/rejectedsoftware/dub/issues/299
Tkd - Cross platform GUI toolkit based on Tcl/Tk
Tkd v1.0.0-beta https://github.com/nomad-software/tkd http://code.dlang.org/packages/tkd Overview Tkd is a fully cross-platform GUI toolkit based on Tcl/Tk[1]. Tkd allows you to build GUI applications easily and with the knowledge of a consistent, native look and feel on every platform. Why Tcl/Tk? Tkd development was initiated based on the performance and uptake of the Tkinter[2] toolkit distributed as a standard part of the Python[3] programming language. Tkinter allows developers easy access to GUI programming with very little learning. Being the de facto GUI toolkit of Python has introduced more developers to GUI application programming and increased the popularity of the language as a whole. Tkd is an attempt to provide D with the same resource. Supported platforms Windows Linux Mac OSX Documentation Full HTML documentation is available inside the repository. Notes Because Tkd is based upon Tcl/Tk and being cross-platform in nature there are limitations on what can be achieved. While not as comprehensive as gtkd or qtd, Tkd offers a smaller and lighter alternative for quickly creating native GUI applications. See the readme in the repository for more detailed information. [1]: http://www.tcl.tk/ [2]: https://wiki.python.org/moin/TkInter [3]: https://www.python.org/
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 4 May 2014 at 18:20:01 UTC, Nick Sabalausky wrote: On 5/4/2014 12:44 PM, Nick Sabalausky wrote: On 5/4/2014 12:18 PM, Gary Willoughby wrote: Tkd v1.0.0-beta https://github.com/nomad-software/tkd http://code.dlang.org/packages/tkd Looks great, anxious to give this a try! BTW, on the main readme page, the links into the API docs don't appear to be working (although it might be a GitHub issue). Strange, works fine here. I'm getting compile errors building the example (Win32 DMD 2.065.0): Those errors are from the DMD -property flag being passed somewhere, have a look and remove it if you're passing it.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 4 May 2014 at 19:19:57 UTC, Nick Sabalausky wrote: Just updated to latest DUB release (v0.9.21), but now I'm getting this: That's building with the config 'library'. If you want to run the example build with: dub --config=example in the root of the tkd repo.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Sunday, 4 May 2014 at 21:10:28 UTC, Kyle Hunter wrote: On Sunday, 4 May 2014 at 20:47:58 UTC, Nick Sabalausky wrote: On 5/4/2014 3:55 PM, Gary Willoughby wrote: On Sunday, 4 May 2014 at 19:19:57 UTC, Nick Sabalausky wrote: Just updated to latest DUB release (v0.9.21), but now I'm getting this: That's building with the config 'library'. If you want to run the example build with: dub --config=example in the root of the tkd repo. No, I did indeed use --config=example, see my previous post. Even with your exact line above: dub --config=example I still get the same result. Same here. I thought this sounded familiar, i raised this a few weeks ago with Sonke on the dub forums (still waiting for a reply.) http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/1339/#post-1453 I can't reproduce it now. I've tested tkd successfully on Windows 7 64bit Windows XP 32bit Ubuntu 12.04 Mac OSX 10.8 I'll look into it further tomorrow.