Re: Better docs for D (WIP)

2015-12-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 30 December 2015 at 15:51:23 UTC, default0 wrote: Yeah, I misinterpreted the "E : " to mean "E is or inherits from ", rechecking the argument deduction rules for templates I think this instead means "E should be deduced as ". Sort of.. it means "if E can be implicitly converted

Re: Better docs for D (WIP)

2015-12-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 28 December 2015 at 23:05:28 UTC, Andrei Alexandrescu wrote: (a) is the new proposed system differentiated enough to justify its existence and motivate others to join in? I was just watching my newbie friend try to manipulate directories in D. His first instinct was to go to

Re: Better docs for D (WIP)

2015-12-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 31 December 2015 at 00:04:03 UTC, bachmeier wrote: It's the process that requires so much overhead that nobody wants to contribute. I really tried to do so myself, but I'm busy, and it is senseless that 95% (or more) of the time I spend on it is wasted due to a system that is

Re: Small minesweeper game in D

2015-12-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 20 December 2015 at 20:58:25 UTC, Taylor Hillegeist wrote: I had to install libglu1-mesa* on Ubuntu. Nicely done though! Huh, that's good to know! Everywhere else I tried on Linux it just worked but it does indeed require GL and GLU just because simpledisplay on Linux links to

Re: Small minesweeper game in D

2015-12-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 20 December 2015 at 17:24:41 UTC, jmh530 wrote: The code looks easy to understand also. You might consider writing this up into a blog post. I might if I had a blog... which I need to set up at some point but haven't yet (well, I used to have one but not for years). But what I

Small minesweeper game in D

2015-12-19 Thread Adam D. Ruppe via Digitalmars-d-announce
code here: http://arsdnet.net/dcode/minesweeper.d Here's a bit of fun. I saw this article on reddit: http://rkoutnik.com/articles/How-I-Interview.html Short summary: when interviewing people for a code position, this author gives the candidate one hour to write as much as minesweeper as

Re: Better docs for D (WIP)

2015-12-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 28 December 2015 at 23:01:05 UTC, Andrei Alexandrescu wrote: The signature proper is nice. The formatting of "&&" in the constraint is inconsistent, but I guess that's a matter with the formatting of the code. Yeah, that is a css bug I just forgot about getting in to everything

Better docs for D (WIP)

2015-12-28 Thread Adam D. Ruppe via Digitalmars-d-announce
Last week, I posted in the general forum my dream for better D docs. Today, about 4 days of work later, I'm about 1/4 of the way there. Still a long way to go, but I've already come so far. First, behold my old dpldocs.info site. Yes, it is still up and now it ties into my new docs! You can

Re: Small minesweeper game in D

2015-12-21 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 21 December 2015 at 10:52:07 UTC, wobbles wrote: On Ubuntu 64 bit: whoops, I always build 32 bit here and sometimes forget to test 64 bit before pushing. Fixed now. The game code is very simple to follow too. I'll try making a simple game using simpledisplay over the christmas.

Re: Small minesweeper game in D

2015-12-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 20 December 2015 at 06:26:43 UTC, stew wrote: "D-Invaders" under: http://dgame-dev.de/index.php?controller=wip Nice! Dgame looks to be a pretty nice little lib too. a) (the most important for me) I can be as productive in D as I am in Python but still keep my static typing and

Re: Better docs for D (WIP)

2015-12-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 30 December 2015 at 14:25:24 UTC, default0 wrote: As an aside, the mere formatting of the list of template-constraints on the dlang page made me nope right out of even bothering to figure out how to read them or what the difference between the first and the second overload of

Re: Better docs for D (WIP)

2015-12-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 05:00:48 UTC, Rikki Cattermole wrote: From what Adam has said, definitely won't be happening with DDOC. There is simply no symbol to attach the comment to. Well, not definitely, it was really easy to do in libdparse (a two line diff) and probably similarly

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 28 November 2015 at 21:30:38 UTC, Ola Fosheim Grøstad wrote: What is the better tool to bring to the top of a mountain? Only maniacs go down mountains. The fun part is the ascent... the descent is an exceedingly painful journey through the ultimate experience in grueling terror,

Re: Graillon 1.0, VST effect fully made with D

2015-11-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 28 November 2015 at 20:27:02 UTC, Warwick wrote: It's kind of like saying you can climb a mountain on a bycicle if you get of an carry it on the bits that are too steep. *snip* The real story is how easy D makes it to achieve that. Indeed... the beauty of a bike is you can get

Re: https everywhere!

2015-11-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 23 November 2015 at 20:55:32 UTC, Walter Bright wrote: I'm pleased to announce that Jan Knepper has gotten us some proper certificates now, and dlang.org and digitalmars.com are now fully https! So it isn't actually https everywhere. On a https page, the browsers by

Re: The Official D Blog is Live

2016-06-03 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 4 June 2016 at 01:17:10 UTC, Mike Parker wrote: The blog will potentially attract people who do not frequent the forums. From that perspective, I think we should give comments a try. I agree, part of the fun of a blog is the comments!

Re: Introducing mach.d, the github repo where I put whatever modules I happen to write

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 25 May 2016 at 22:19:28 UTC, Seb wrote: is that people love to collect and build their own ecosystem, but it would be a lot better if for a specific use-case there's a great dub package or it's part of Phobos. I, and I'm pretty sure Vladimir too, have been writing these libs

Re: Introducing mach.d, the github repo where I put whatever modules I happen to write

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 25 May 2016 at 23:21:09 UTC, Seb wrote: Yes, and they are great. However now we have dub and a "serious" standard library ;-) I've looked into two options to join the dub bandwagon, and both aren't really any good (and the fact that I don't use it myself means it'd probably be

Re: pure D JPEG decoder, with progressive JPEG support, public domain

2016-06-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 18 June 2016 at 19:52:20 UTC, Observer wrote: in the context of image decoding, you're often handling untrusted data from external sources Not always though. The main case I'd use a little single-file thing is for files that I created and packaged with the application myself,

Re: D-Man culture

2016-06-19 Thread Adam D. Ruppe via Digitalmars-d-announce
We should probably make a D-man video game.

Re: Beta D 2.070.0-b1

2016-01-15 Thread Adam D. Ruppe via Digitalmars-d-announce
Has anyone built a Windows program with the beta? I tried and got undefined identifier HWND, but have been unable to minimize the test case and it might be just my install not being clean.

Re: DigitalWhip

2016-02-13 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 13 February 2016 at 20:45:41 UTC, David Nadlinger wrote: Your scripts had bounds checking enabled for LDC but not the other two D compilers. I strongly recommend people to always keep bounds checking enabled in real world programs because it is so useful in keeping programs

Re: Release D 2.070.0

2016-01-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 28 January 2016 at 15:17:26 UTC, Nick Sabalausky wrote: This one is still MIA after all this time: https://github.com/D-Programming-Language/dmd/pull/4745 Use dpldocs.info. We have good docs.

Re: Vision for the first semester of 2016

2016-01-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 28 January 2016 at 11:25:08 UTC, Laeeth Isharc wrote: As you yourself have mentioned, the size of the D community as it stands today presents some impediment to the possible maintenance and stability of alternative libraries. If something is in Phobos you know that you can depend

Re: Vision for the first semester of 2016

2016-01-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 28 January 2016 at 12:40:56 UTC, Ola Fosheim Grøstad wrote: I think that Sonke received too much "negative motivation" for his contributions recently, if I had been in his shoes I'd probably found working on vibe.d more fun. IRRC Ruppe also have voiced that he want to work on

Re: Release D 2.070.0

2016-01-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 29 January 2016 at 17:49:58 UTC, Nick Sabalausky wrote: I don't recall: Does that parse the source for comments on its own or does it still use dmd's json (or html) output? Does it on its own. (Well, except the search results page, it still uses the json, but I'm fixing that soon

Re: Better docs for D (WIP)

2016-02-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 1 February 2016 at 20:01:11 UTC, Chris Wright wrote: My newsreader's history doesn't support your memory of events. I don't think this is worth arguing over...

Re: Better docs for D (WIP)

2016-01-31 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 31 January 2016 at 17:54:41 UTC, Chris Wright wrote: It's not a division. It's a documentation mirror with a different layout. Well, there are a few content changes too. You can see my diff as it develops here: https://github.com/D-Programming-Language/phobos/pull/3895 (I'll

Re: Better docs for D (WIP)

2016-01-31 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 31 January 2016 at 11:14:08 UTC, Rory McGuire wrote: If you don't get a cease and desist letter from the D Foundation soon I'd be surprised. http://forum.dlang.org/post/n5sf7o$mu1$2...@digitalmars.com Andrei isn't exactly enthusiastic (though later on, he softens a bit), but I'm

Re: Better docs for D (WIP)

2016-01-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 30 January 2016 at 21:22:02 UTC, Chris Wright wrote: You probably know about this, but some of the source code formatting is a little off (and allowing javascript / cross-site requests doesn't help). Right, the contract formatter is something I started a while ago but not

Re: Better docs for D (WIP)

2016-01-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 30 January 2016 at 22:37:18 UTC, Adam D. Ruppe wrote: I know quite a few css tricks... but I don't think I can actually do this without adding a script or something, so I just put an arbitrary fixed width on hover for now. Meh, I just did it with JavaScript, so if you enable

Re: Better docs for D (WIP)

2016-01-31 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 31 January 2016 at 07:40:49 UTC, Ola Fosheim Grøstad wrote: One trick is to set the width and clipping on "dt > *" instead of "dt", and use "calc(...)" for dynamic sizes. I considered that too, but since I wanted the dt to float, the width had to be set there.

Re: Better docs for D (WIP)

2016-01-31 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 31 January 2016 at 13:11:54 UTC, Jacob Carlborg wrote: "extern (C) nothrow" is repeated a couple of times. Yeah, those shouldn't be there at all on this function. I probably bugged the removal of attributes when moving up a scope or something.

Re: Silicon Valley D Meetup January 28, 2016

2016-01-28 Thread Adam D. Ruppe via Digitalmars-d-announce
I've been listening in on this and the talk about @nogc on constructors highlights the need to me of having more attribute inference. Yes, it works on templates, but not all methods are templates. int add(int a, int b) { return a+b; } OK, cool, but what if you want to call that in a @nogc

Re: SQLite-D alpha is here

2016-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 27 February 2016 at 16:54:49 UTC, Suliman wrote: Why? etc.c is for the C interface. This is not the C interface. Besides, the original code will surely be ahead of features and compatibility for a long time anyway.

TWiD tip: ways to minimize string mixins

2016-02-21 Thread Adam D. Ruppe via Digitalmars-d-announce
It was a somewhat slow week on the forums so I decided to spend a little extra time on this week's tip (though it quickly struck midnight so I might revisit this again next week). http://arsdnet.net/this-week-in-d/2016-feb-21.html There's a fairly big example with comments too. After a couple

Re: Event Dispatcher

2016-03-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 10 March 2016 at 18:08:15 UTC, Eugene Wissner wrote: In the last week I looked a lot into the vibe.d and I moved to its core for handling the requests instead of my own CGI-handling. I'm currently working on implementing SCGI based on vibe.d IO I haven't used vibe.d myself but

Re: DConf 2016 announces programme, general registration opened thrugh April 22

2016-03-28 Thread Adam D. Ruppe via Digitalmars-d-announce
I just realized today that a live stream is not going to be enjoyable for us who are still in the US. Any chance that we can have a *scheduled* delay rebroadcast right when it ends? So basically starting at like 11am Eastern time, 8am Pacific. Heck, we might even play it a third time for

Re: DConf 2016 registrations have now hit 128!

2016-04-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 6 April 2016 at 23:51:47 UTC, Walter Bright wrote: Guess I'd better get busy working on my presentation. So, while I'm not going to be there this time, I'm thinking about doing a presentation anyway and posting it here in writing. Though, my typical strategy of improvising up

Re: Release D 2.071.0

2016-04-09 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 9 April 2016 at 16:56:50 UTC, Vladimir Panteleev wrote: For my home machine I would actually benefit from having all platforms in one file, since I can run the Windows version via Wine. Me too. I actually download more bytes now than before because I need two of the things.

Re: DConf 2016 announces programme, general registration opened thrugh April 22

2016-03-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 March 2016 at 03:59:54 UTC, Uyo Phequo wrote: Was it for us when it took place in the US ;) We basically dropped the ball last year entirely on the stream and had to improvise with laptop webcams from the conference itself... I'm hoping we can do a better job this time for

foo => "bar" key/value literals in D!

2016-05-23 Thread Adam D. Ruppe via Digitalmars-d-announce
Have I gone completely mad?!?! --- void main() { import std.stdio; writeln(obj!( foo => "bar", baz => 12 )); } --- Prints out: { foo: bar baz: 12 } A few tweaks would make a whole loose typed hash thing more akin to

Re: foo => "bar" key/value literals in D!

2016-05-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 23 May 2016 at 20:08:11 UTC, Daniel N wrote: This pull request just removes an intentional restriction and make this feature more easily accessible for meta-programming, so that not everyone has to reinvent the wheel in their own libraries. S I'm actually not entirely

Re: foo => "bar" key/value literals in D!

2016-05-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 24 May 2016 at 01:11:39 UTC, Meta wrote: Clever and terrible. Now just modify the code to generate a struct or class and you've invented new anonymous struct/object syntax. Indeed. Also, I think this has revealed a bug (or deficiency) in the compiler. If you put this inside the

Re: Adventures in D Programming

2016-05-08 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 8 May 2016 at 19:09:07 UTC, Daniel Kozak wrote: I remember that I have mentioned that once here, but I thing there was not big interest at it :( I'm doing it on dpldocs.info as soon as I leave the alpha period (which is finally coming soon).

Re: foo => "bar" key/value literals in D!

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 24 May 2016 at 16:00:32 UTC, Andrei Alexandrescu wrote: Apparently it can be made to work with non-templates as well, see https://dpaste.dzfl.pl/c4b7a8b6978b. Oh, that's the buggy area. The compiler keeps parameter names for runtime delegates... but it also reuses the structures.

Re: foo => "bar" key/value literals in D!

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 25 May 2016 at 09:24:31 UTC, Daniel N wrote: From an end-user perspective I find it reasonable to expect that an API which takes lambda:s works consistently for both below examples. i.e. if we support one we should support the other. [1] fun!( x => y) [2] fun!((int x) =>

Re: The Origins of the D Cookbook

2016-08-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 5 August 2016 at 22:47:00 UTC, H.Loom wrote: A.D.Ruppe is not in the dlang GH organization but he's an old and notorious user. no·to·ri·ous [nōˈtôrēəs] ADJECTIVE famous or well known, typically for some bad quality or deed: "Adam is notorious for his crappy hacked-together

Re: The Origins of the D Cookbook

2016-08-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 5 August 2016 at 23:58:27 UTC, H.Loom wrote: sorry, I'm not English native speaker and i didn't know that it has a bad connotation...I meant "famous". yeah, i'm just kidding.

This Week in D: debugging uncaught exceptions

2016-08-07 Thread Adam D. Ruppe via Digitalmars-d-announce
I decided to write up a think on untrapping exceptions this week: http://arsdnet.net/this-week-in-d/2016-aug-07.html Next week I'll prolly talk about calling D from Ruby. Last week, we had a status report from Stefan Koch on his CTFE engine. If you aren't already following this, every Sunday

Re: columnar struct storage template

2017-01-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 29 January 2017 at 13:09:18 UTC, Nestor wrote: This no longer compiles on recent versions of DMD :( Trivial fix though, it just needs to say "\n" instead of plain \n (it is missing quotes, D used to allow that for whatever stupid reason and has since been fixed). Actually, tbh,

Re: two points

2017-02-09 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 9 February 2017 at 08:02:23 UTC, Walter Bright wrote: I suppose I could write a cheat sheet and tape it to the wall of my office, but why not just use your name? It shouldn't matter who wrote it. Review the code, not the author, especially on small ones like this which new

Re: New (page-per-artifact) standard library doc examples are now editable and runnable

2017-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 27 February 2017 at 16:49:13 UTC, David Nadlinger wrote: See e.g. https://dlang.org/library-prerelease/std/algorithm/comparison/among.html from above. This leaves quite the bad impression, as it makes the page look like an unstructured mess at first glance. What's up with the bullet

Re: Joakim Intreviews Walter for the D Blog

2016-08-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 30 August 2016 at 11:50:52 UTC, Mike Parker wrote: Joakim has put together an interview He did four (IIRC) of these for This Week in D too if you want more like that: Sönke Ludwig http://arsdnet.net/this-week-in-d/mar-15.html Dmitry Olshansky

Re: DlangUI 0.9.0: Console backend added

2016-09-09 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: Now it's possible to build DlangUI apps to run in console (Linux, Windows). Very nice. Part of key modifiers do not work in linux console. Mouse events working ok. Which parts are you having trouble with? I have implemented

Re: Project Highlight: Timur Gafarov

2016-09-16 Thread Adam D. Ruppe via Digitalmars-d-announce
"Interestingly, he was actually attracted by one of the things often cited as a turn-off about D back then: the lack of libraries. It was a situation in which he saw opportunities to create things from scratch, without worrying about reinventing the wheel." Amen. My experience with

Re: Vision document for H1 2017

2017-01-04 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 5 January 2017 at 02:32:00 UTC, Chris Wright wrote: I'm curious as to why. I'm guessing this is for things like creating runtime type information? There's a lot of benefits to it: it'd simplify the compiler a bit, it'd simplify making custom runtimes, and it'd give us options to

Re: Terminix Year In Review

2017-01-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 2 January 2017 at 00:53:04 UTC, Gerald wrote: Terminix is a GTK 3 tiling terminal emulator that has been designed following the GNOME Human Interface Guidelines. So, how hard would it be for you to swap out parts of the backend? I wrote a terminal emulator in scratch in D for

Re: Terminix Year In Review

2017-01-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 2 January 2017 at 18:23:53 UTC, Gerald wrote: idea what would be involved in creating a GTK widget in D as I've never tried it myself. Yeah, I don't use GTK at all, my backend is pure code (it is an abstract class where you implement a few methods to actually do user interaction,

Re: Terminix Year In Review

2017-01-03 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 2 January 2017 at 21:11:47 UTC, Getald wrote: I'm not sure a textview would be viable, it might work for the command prompt but I doubt it would handle ncurses type applications like vi or nano very well. I don't know GTK at all, but my terminal thing's frontend just needs

Re: D Blog Stats

2017-01-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 6 January 2017 at 14:54:45 UTC, Mike Parker wrote: https://dlang.org/blog/2016/06/03/recent-d-foundation-activities/ errr I think you mean this url: https://dlang.org/blog/2017/01/06/the-d-blog-in-2016-seven-months-page-views/

Re: SpaceD - a racing game written in D

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 21 March 2017 at 00:49:14 UTC, WebFreak001 wrote: I just released my racing game I have been working on for the past few days for a linux game jam on itch.io[1]. Nice!

Re: Terminix renamed to Tilix

2017-03-20 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote: Terminix, a Linux GTK3 tiling terminal emulator written in D, has been renamed to Tilix due to trademark infringement issues with the Terminix International corporation. I'm sure you don't want the hassle, but you might be able to fight

Re: Update roll-up on my arsd libraries

2017-04-13 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 13 April 2017 at 18:11:10 UTC, H. S. Teoh wrote: Hooray! Finally! Maybe now I can play videos over SSH (albeit ultra-pixelated). :-P Hah though actually, my terminal emulator has support for outputting png images... But truth is, this is one reason why I prefer things

Re: Update roll-up on my arsd libraries

2017-04-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 14 April 2017 at 06:23:00 UTC, Basile B. wrote: Thanks particularly for this one, which is certainly a reference about how to use the nightmare-ish X11 API in D. I actually don't think X is that bad for what it does. just that it is ridiculously underpowered compared to the

Re: Update roll-up on my arsd libraries

2017-04-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 14 April 2017 at 19:55:54 UTC, Jerry wrote: You have mixed spaces and tabs, not in the good way either. https://github.com/adamdruppe/arsd/blob/master/simpledisplay.d#L3642 Some code is copied from C headers, some come from open source contributors who may use different styles than

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 00:39:24 UTC, Mike wrote: Looking at your code though, I probably should have used Adam's dom.d too; std.xml was weird to say the least. There's a couple functions in dom.d too that might have simplified this: foreach(EnumsTop;

Re: On Tilix and D: An Interview with Gerald Nunn

2017-08-11 Thread Adam D. Ruppe via Digitalmars-d-announce
So yeah reminder on the terminal emulator thing, if anyone who knows gtk wants to try to wrap my emulator in it.. it should be pretty easy. I have done a terminal.d frontend and a simpledisplay.d frontend and it isn't that hard. I just don't know gtk.

Re: args.d | a command line argument and config file parser

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 15:44:34 UTC, Robert burner import args; I suggest adding a module declaration with some kind of top level namespace as soon as possible. This is liable to conflict with some other module with the same name from a user's project.

Re: DMD now has colorized syntax highlighting in error messages

2017-05-15 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 14 May 2017 at 14:07:20 UTC, Walter Bright wrote: The only downside is now we have to rather tediously tweak the error message texts so they use backticks. It also dilutes the meaning of color. I've been wanting to see highlighted matches and failures in overload resolution and

Re: DMD now has colorized syntax highlighting in error messages

2017-05-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 16 May 2017 at 14:17:41 UTC, Adam D. Ruppe wrote: Similarly, what I want to see in the future is highlighting of specific parts of code where the error applies. Fear me. I combined Walter's code with my own to form some kind of Voltron! https://github.com/dlang/dmd/pull/6806

Re: DMD now has colorized syntax highlighting in error messages

2017-05-16 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 16 May 2017 at 15:38:53 UTC, Walter Bright wrote: It includes DOS and Windows consoles. Only under specific circumstances. On the VGA hardware, underline shares a bit with blue and needs a register tweaked to make it visible (the default 16 color VGA text mode does NOT display

Re: DMD now has colorized syntax highlighting in error messages

2017-05-15 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 15 May 2017 at 14:18:30 UTC, Walter Bright wrote: I eventually want to make the console color package into a generic module, it could improve a number of console apps. FYI we already have a few D modules that do console color (among other things) like consoled or my terminal.d.

Re: DMD now has colorized syntax highlighting in error messages

2017-05-15 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 15 May 2017 at 14:31:20 UTC, Walter Bright wrote: I'm glad this sparks interest in improving the error message display, this is good. I've been meaning to do this for years... I want overload resolution and template constraints to tell which conditions were passed, failed, and

Re: Trip notes from Israel

2017-05-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 26 May 2017 at 11:32:21 UTC, Andrei Alexandrescu wrote: Every person in the room took a significant fraction of the meeting time to tear me a new one about dub and http://code.dlang.org. Each in a different place Just a couple days ago, people asked me if my libs were on dub...

Re: Trip notes from Israel

2017-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 22 May 2017 at 15:05:24 UTC, Andrei Alexandrescu wrote: mixin is a statement so it needs a terminator, hence the semicolon at the very end. In turn, mixin takes a string (the concatenation of variable op That actually depends on context! The mixin statement needs statements, but

Re: Trip notes from Israel

2017-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 22 May 2017 at 15:26:26 UTC, Andrei Alexandrescu wrote: Yah, didn't want to overload the article (or the discussion) with the expression/statement distinction. -- Andrei Yeah, the details might be too much for a general audience (and I realize you know this, I'm commenting more for

Re: DMD now has colorized syntax highlighting in error messages

2017-05-16 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 16 May 2017 at 15:11:21 UTC, Walter Bright wrote: error: undefined identifier maybe Colorizing code distinguishes it from text. What's important there? The generic syntax that you get from a syntax highlighter or the fact that it is the user input? Drawing attention to

Re: DMD now has colorized syntax highlighting in error messages

2017-05-16 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 16 May 2017 at 14:04:34 UTC, Walter Bright wrote: With all the complaints about color, note that dmd already has been using color in error messages for years with no complaints My complaint isn't about the presence of color* but rather about the OVERUSE of it. The old way of

Re: Life in the Fast Lane (@nogc blog post)

2017-06-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 17 June 2017 at 07:03:53 UTC, Petar Kirov [ZombineDev] wrote: 2. However, there's this long list of things that you have to avoid. There's like 10 things to avoid in the language itself: http://dlang.org/spec/garbage.html#op_involving_gc and most of them are obviously array

Re: Life in the Fast Lane (@nogc blog post)

2017-06-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 17 June 2017 at 16:59:56 UTC, Dukc wrote: If that Walter's DIP about reference-counted exceptions gets trough it should ease problem like that quite a bit. Possibly. There's a lot of solutions to the exception thing though, and it doesn't actually bother me if you see @nogc as

Re: Life in the Fast Lane (@nogc blog post)

2017-06-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 17 June 2017 at 13:09:42 UTC, Guillaume Piolat wrote: As a counterpoint: It's true that it's a bit niche, but when you have "no gc" then @nogc really helps with peace of mind (only one allocation and you may crash). Yes, when you actually need it it might be helpful, and then the

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 29 April 2017 at 14:13:18 UTC, Patrick Schluter wrote: For the same reason it is in C. If the ambition for D is to be a system language then it should avoid introducing artificial abstractions and work with the machine it runs on, not against. The C model isn't much like x86 at

Re: DConf hackathon: idea list

2017-05-04 Thread Adam D. Ruppe via Digitalmars-d-announce
I just added two things: 1) error messages, which are code intensive but a HUGE payoff in productivity (and thus marketing) and 2) Opposite attributes, which are trivial to implement but painful to get merged. I think dconf is a good opportunity for you guys to get things like #2

Re: D as a Better C

2017-08-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 30 August 2017 at 22:22:23 UTC, Azi Hassan wrote: extern(C) int main(int argc, char*[] argv, char*[] env) That's a D array of pointers. A D array is larger than a C "array" argument, thus you're skipping past it. The correct declaration is (int argc, char** argv, char** env).

Re: database 0.0.8 released

2017-09-13 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 13 September 2017 at 06:46:59 UTC, Brian wrote: Welcome to participate! :) Alas, looking at your source, it is actually not what I wanted... I want to use the database features rather than a reimplemented class. BTW the "escapedVariants" function can help you fill in that

Re: database 0.0.8 released

2017-09-12 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 12 September 2017 at 17:14:27 UTC, Brian wrote: dlang database library: Database abstraction layer for D programing language, support PostgreSQL / MySQL / SQLite. not bad. - Statement Database.prepare(sql) Create a prepared Statement ooh, this is something I have been wanting

Re: D as a Better C

2017-08-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 30 August 2017 at 00:29:19 UTC, Parke wrote: The above D code yields 445,187 bytes when compiled with -release -betterC. DMD64 D Compiler 2.075.0-b2 on Linux on x86-64. -betterC does virtually nothing on that version of dmd... But my original question was about what you

Re: Release: nanovega.d rendering lib like html5 canvas

2018-04-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 28 April 2018 at 09:55:17 UTC, drug wrote: least I've spent more time trying to run using glfw than total time I spent using both simpledisplay and sdl2. simpledisplay I find is a lot... well, simpler way to display than any of the alternatives since it sidesteps the dependency

Re: D only has Advantages

2018-06-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 15 June 2018 at 02:02:52 UTC, Tony wrote: Have their been other languages - besides D - that compiled to object code and used a garbage collector? You can use a GC with C++ and you can compile Java to native code ahead of time. The distinctions aren't really that sharp, it just

Re: I have a plan.. I really DO

2018-06-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 30 June 2018 at 03:02:15 UTC, Joakim wrote: Honestly, Dmitry's posts The writing style doesn't match the name.

Re: dxml 0.2.0 released

2018-02-12 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 12 February 2018 at 14:54:48 UTC, rikki cattermole wrote: Just because something is 'good enough' does not make it 'good enough' for Phobos. In the words of Andrei "Good enough is not good enough", we need to aim higher to show what we actually can do. About 5 years ago (I think,

Re: dxml 0.2.0 released

2018-02-12 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 12 February 2018 at 14:04:38 UTC, Jonathan M Davis wrote: XML parsers are one of those things that everyone seems to want and no one seems to want to work on. I wrote one 8 years ago... though mine is more focused on HTML parsing, and the XML aspect is just a side effect!

Re: Documentation for any* dub package, any version

2018-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 February 2018 at 15:49:19 UTC, Jonathan M Davis wrote: Yeah. Any project that uses .ddoc files to define additional macros isn't going to work properly It is actually more than that: I don't support user-defined ddoc macros at all. About 3/4 of the ones I've seen are just link

Re: Documentation for any* dub package, any version

2018-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 February 2018 at 15:21:55 UTC, aliak wrote: Questions: Tried it with optional and undocumented stuff is also shown. Oh, fixed now. since there's no ddoc at all in that file, it should have been skipped, I just had a testing "return true;" in the method I forgot to remove. And

Re: Documentation for any* dub package, any version

2018-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 February 2018 at 19:47:29 UTC, Jesse Phillips wrote: It also would be good for you to like to the Dub page and Git Repo. Yeah, its on my list. The project homepage from the dub.json too. Couldn't you provide a robots.txt file which Google should honor so that 'nofollow' isn't

Re: Documentation for any* dub package, any version

2018-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 February 2018 at 21:16:07 UTC, Antonio Corbi wrote: Trying it onto gtk-d got an error saying to send you the failing link, so here you are : gtk-d is actually just too big for this, so it timed out. But I also already made gtkd docs on the main site:

Re: Documentation for any* dub package, any version

2018-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 February 2018 at 20:15:13 UTC, aliak wrote: Awesome. good start at least, and just to throw an approach out there for your consideration, a .adrdox.yml file with a include/exclude/style/etc keys might be a good way to go. Yeah, that's basically what I was thinking (though not

Re: I have a plan.. I really DO

2018-07-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 17:39:06 UTC, SrMordred wrote: After the GC.collect you now get 1GB of memory usage. http://dpldocs.info/experimental-docs/core.memory.GC.minimize.html

Re: Documentation for any* dub package, any version

2018-03-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 7 March 2018 at 22:47:48 UTC, bauss wrote: How would you go about updating docs? Either go to the url for the specific version you want like http://diamond.dpldocs.info/v2.7.0/index.html and it will download (once dub scrapes it anyway) or ping me and I'll manually update the

<    1   2   3   4   5   6   >