Re: DMD 2.059 ??
On 04/12/2012 02:58 PM, Ali Çehreli wrote: On 04/12/2012 11:49 AM, Alvaro wrote: The changelog mentions DMD 2.059 as released on April 1, 2012, but there is no link to it. Is it released? http://dlang.org/changelog.html I don't think it was intended but don't trust anything that is dated April 1. :p Ali I noticed that as well last night, got excited, and then was quickly confused. :/ Especially since it's clickable. -Matt
Re: DDT 0.6.0 released
On 05/18/2012 11:49 AM, Bruno Medeiros wrote: DDT 0.6.0 is out. It's been almost a year since last release, unfortunately I haven't been able to work on it as much as I wanted in the last months. :( Full details here: https://groups.google.com/d/topic/ddt-ide/_C7aZHX3vMM/discussion Congrats! I almost always use DDT for my projects, so this is awesome.
Re: DUB 0.9.11 released
On 03/10/2013 04:41 AM, Jonathan M Davis wrote: On Saturday, March 09, 2013 14:48:34 Sönke Ludwig wrote: For anybody who didn't read the thread [1] in the D newsgroup, DUB is a build and package manager for D projects with an emphasis on simplifying the build process and generally staying out of the way during software development. [SNIP] Has anyone else tried to build the new release on Arch Linux? Both the dub and dub-git packages are failing to build for me, giving ==> GIT checkout done or server timeout ==> Starting build... ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build dub. And I have no idea what the problem is. If I run the build.sh file directly, no errors print out, but it's clearly returning something other than 0 when running rdmd. Anyone have any clue as to what's going on? - Jonathan M Davis For me, the only issue was in source/dub/compilers/ldc.d, lines 100 and 103. Just removing the "break;" got them to compile (All I did to compile was "dub build" from the previous release) -Matt Soucy
Re: DConf 2013 Opening Keynote by Walter Bright: video and slides available
Agreed, Speakerdeck is very nice, and it's useful that you can log in using your github credentials. They even import from pdfs, which is nice since that way you don't have to worry about (more) proprietary formats getting screwed up, like Google Docs does to Powerpoint slides. On 05/08/2013 02:20 PM, bearophile wrote: > Andrei Alexandrescu: > >> BTW what's a good site for sharing slides? > > This is the only one I like so far: > https://speakerdeck.com/ > > Bye, > bearophile
[Library Release] dproto
Hello, all- I'd like to present a library that I've been working on on-and-off for the last couple of months. Protocol Buffers are a format produced by Google that acts as an Interface Description Language for serializable data. Basically, given a file containing lines like: message Point { optional int32 x = 1 [default=166]; required int32 y = 2; optional string label = 3; message Coord { required int32 a = 1; required int32 b = 2; } } You can get a structure that behaves as: struct Point { int x=166; int y; string label; struct Coord { int a,b; } } What's the benefit? This structure also has some useful methods for serialization and deserialization to a well-documented format - in dproto's case, the resulting data can be stored in any ubyte[]. What makes this library special? Unlike the C++/Java/Python compilers for .proto files, this library does the conversion at compile time using mixins and string manipulation. All that's needed is to add the file directories to the string imports, and then: mixin ProtocolBuffer!"point.proto"; Where can you get it? It's available as a Dub package ("dproto"), or on Github at http://github.com/msoucy/dproto dproto is licensed under the BSD 3-clause license, and I'm definitely open to suggestions for improvement - currently, a lot of the code was translated from Java and so there are some things that are quite unidiomatic. -Matt Soucy signature.asc Description: OpenPGP digital signature
Re: [Library Release] dproto
On 10/08/2013 04:11 AM, Kagamin wrote: > On Saturday, 5 October 2013 at 20:56:21 UTC, Matt Soucy wrote: >> message Point { >> optional int32 x = 1 [default=166]; >> required int32 y = 2; >> optional string label = 3; >> message Coord { >> required int32 a = 1; >> required int32 b = 2; >> } >> } >> >> You can get a structure that behaves as: >> >> struct Point { >> int x=166; >> int y; >> string label; >> struct Coord { >> int a,b; >> } >> } > > Should it be really like that? If you just declare Coord struct, it > doesn't place a Coord instance in Point. No, that's intentional. The idea was to show the possibility of nested structs. You can create a Coord with: auto c = Point.Coord(); I admit the example is kind of poor, though. -Matt Soucy signature.asc Description: OpenPGP digital signature
Re: [Library Release] dproto
On 10/05/2013 06:20 PM, Jesse Phillips wrote: > This is more of an FYI. I've been using/updating > https://github.com/opticron/ProtocolBuffer > > Boost License > And while it doesn't have any helper functions, it can generate source > at compile time. > Generates D1 code if requested > > Been using it to walk OSM data for no particular reason > https://gist.github.com/JesseKPhillips/6051600 Thanks for the tip - I actually did find this one when I started using this, however I found it on another page that hadn't been updated (that I ironically can't find now), so I wrongfully assumed that it was abandoned. I did find the github page, but I wasn't thrilled by it. Pros for opticron's: Much more idiomatic code Supports D1 Much better unit tests Pros for mine (highly based on opinion): Exposes slightly more convenient helpers (In my opinion) slightly easier to read Generated code looks like a POD struct, though with some "hidden" attributes (optional variables support .clean(), .exists(), instead of looking like myStruct.foo_exists()) Basically, mine is much more simplistic, which is both good and bad. I'd like to improve mine a bit more, and the one you pointed me at is pretty good. It gave me some things to improve on. signature.asc Description: OpenPGP digital signature
Re: [Library Release] dproto
On 10/09/2013 01:55 AM, Jesse Phillips wrote: > Groups are a way to combine this, but they are deprecated so > who'd want to support that. Exactly, I didn't even bother planning out support for them. -- Matt Soucy http://msoucy.me/ signature.asc Description: OpenPGP digital signature
Re: [Library Release] dproto
On 10/09/2013 10:38 AM, Jesse Phillips wrote: > On Tuesday, 8 October 2013 at 20:50:22 UTC, Matt Soucy wrote: >> Thanks for the tip - I actually did find this one when I started using >> this, however I found it on another page that hadn't been updated (that >> I ironically can't find now), so I wrongfully assumed that it was >> abandoned. I did find the github page, but I wasn't thrilled by it. > > You're thinking: https://256.makerslocal.org/wiki/index.php/ProtocolBuffer > I've been updating it from that > Exactly, that's the page! All I remembered about the location was that it was a wiki with a number in the URL... >> >> Pros for opticron's: >> Much more idiomatic code >> Supports D1 >> Much better unit tests >> Pros for mine (highly based on opinion): >> Exposes slightly more convenient helpers >> (In my opinion) slightly easier to read >> Generated code looks like a POD struct, though with some "hidden" >> attributes (optional variables support .clean(), .exists(), instead of >> looking like myStruct.foo_exists()) > > For the D2 output I've got it really close to POD. It declares fields as > Nullable!T meaning myStruct.foo.isNull would check availability. I was > intending to distinguish required/optional with this, but that would > remove error checking (which I don't think is there yet). > >> Basically, mine is much more simplistic, which is both good and bad. I'd >> like to improve mine a bit more, and the one you pointed me at is pretty >> good. It gave me some things to improve on. > > Go for it, have fun. -- Matt Soucy http://msoucy.me/ signature.asc Description: OpenPGP digital signature
Re: Facebook is using D in production starting today
On 10/10/2013 08:36 PM, Andrei Alexandrescu wrote: > Today I committed the first 5112 lines of D code to Facebook's > repository. The project is in heavy daily use at Facebook. Compared to > the original version (written in C++) we've measured massive wins in all > of source code size, build speed, and running speed. > > In all likelihood we'll follow up with a blog post describing the process. > > > Andrei Congratulations! This is fantastic, I was wondering when there would be some official announcement, after your AMA. I look forward to reading the blog post. -- Matt Soucy http://msoucy.me/ signature.asc Description: OpenPGP digital signature
Re: Dash: An Open Source Game Engine in D
On 05/19/2014 03:50 PM, Colden Cullen wrote: > Hi everyone, > > I’m super excited to be able to announce that the Dash game engine[1] is > finally stable and ready for public use! I’m currently the Lead Engine > Programmer at Circular Studios[2] (the group behind Dash). We had 14 people > working on the team, 6 engine programmers and 8 game developers creating > Spectral Robot Task Force, a turn-based strategy game built with Dash. > > Dash is an OpenGL engine written in the D language that runs on both Windows > and Linux. We use a deferred-rendering model in the current pipeline, and a > component model for game development and logic. Other major features at the > moment include networking, skeletal-animation support, content and > configuration loading via YAML, and UI support through Awesomium[3] (though > we are in the process of moving over to using CEF[4] itself). > > Our vision for Dash is to have the programmer-facing model of XNA/Monogame > combined with the designer-friendliness of Unity in a fully free and open > source engine. We also hope that Dash can help to prove the power and > maturity of D as a language, as well as push D to continue improving. > > We’re open to any feedback you may have, or better yet, we’d love to see pull > requests for improvements. > > [1] https://github.com/Circular-Studios/Dash > [2] http://circularstudios.com/ > [3] http://awesomium.com/ > [4] https://code.google.com/p/chromiumembedded/ Congratulations on the release, guys! -- Matt Soucy http://msoucy.me/
Re: DUB Bash Completion
On 07/14/2014 05:54 PM, "Nordlöw" wrote: > On Monday, 14 July 2014 at 00:10:38 UTC, Mathias LANG wrote: >>>> complete --config= too, so you could tab complete > > Yeah, that would be nice. Need to add som json parsing to the bash logic. Any > suggestions on how to most easily and portably do that? So, I implemented that for the builtin ones for the fish shell... It's manually implemented, but easy enough to extend. https://github.com/D-Programming-Language/dub/pull/375 -- Matt Soucy http://msoucy.me/
Re: porting nanomsg bindings to dlang
On 11/05/2014 01:12 PM, Laeeth Isharc wrote: > Hi. > > Everyone has heard of ZeroMQ, but the creator (or one of the main guys) has > been working on a successor framework written in C. (He has an interesting > paper on why using C++ was a mistake - perhaps we should get him to look at D > if he has not done so already). > > In any case, I could not see a set of D bindings so I wrote a very rough > first draft of them last night. I only picked up D a couple of months back, > and it's been about twenty years since I wrote much C (I am not a developer > by trade), so be kind if the results are not yet quite up to scratch. > > Link to the repository is here - not even worthy of alpha status: > https://github.com/Laeeth/d-nanomsg/tree/master > > So far I have tried the first example from here (which works), and am working > my way down to test the others: > > http://tim.dysinger.net/posts/2013-09-16-getting-started-with-nanomsg.html > A few small suggestions: Use a .gitignore so you're not tracking the objects and executables Convert to a dub package to make it easier for other people to incorporate into their projects Split out the "test" code from the "library" code -- Matt Soucy http://msoucy.me/ signature.asc Description: OpenPGP digital signature
Re: LDC 0.16.1 has been released!
On 10/28/2015 03:52 AM, Kai Nacke wrote: > Hi everyone, > > LDC 0.16.1, the LLVM-based D compiler, is available for download! > This release is based on the 2.067.1 frontend and standard library and > supports LLVM 3.1-3.7 (OS X: no support for 3.3). > > Don't miss to check if your preferred system is supported by this release. We > also have a Win64 compiler available! > > As usual, you can find links to the changelog and the binary packages over at > digitalmars.D.ldc: > http://forum.dlang.org/post/uqibfhjpugaxnbsbf...@forum.dlang.org > > Regards, > Kai > Fantastic! Since ldc2 is part of the Fedora repositories, do you happen to know who is responsible for pushing the update in? -- Matt Soucy http://msoucy.me/ signature.asc Description: OpenPGP digital signature