Re: Engine of forum
On Tuesday, 21 August 2018 at 00:54:17 UTC, jurr wrote: ...If you just want to make a comment on a topic without replying to any specific person... I don't get because I think most of the time when you post something, you do by replying to someone anyway, you don't say things out of blue, you need a context. For me most of the the things brought up here in this topic are not a problem at all. This is one of best "forum-like" that I use, it is direct to the point, no fancy things to distract and thankfully no delete/change messages allowed. Matt.
Re: that is bug?
On Monday, 9 April 2018 at 15:20:58 UTC, Patrick Schluter wrote: ... For me as a C programmer this is different. What happens in this case? It will be assign foo to either a or b? Except that it is not allowed in standard C. gcc says ... Yes I know, that's why I said, it's different... ("From where I came"). Matt.
Re: that is bug?
On Monday, 9 April 2018 at 03:35:07 UTC, Ali Çehreli wrote: ... I don't have any problem with that part either. The following makes sense to me. I may have even used it in the past (likely in C++): (cond ? a : b) = foo; ... For me as a C programmer this is different. What happens in this case? It will be assign foo to either a or b? Matt.
Re: rvalues -> ref (yup... again!)
On Saturday, 24 March 2018 at 11:57:25 UTC, John Colvin wrote: I understand what you want, but I'm struggling to understand why it's such a huge deal. ... What I would do in D currently to get the same performance and API: void foo(float[32] v) { foo(v); } void foo(ref float[32] v) { ... } or void foo()(auto ref float[32] v) { ... } What is so totally unacceptable about those solutions? I hope OP answers that, because that was what I tried to refer in my post. As your example, it works like in C and I'd prefer to use it in my code, instead of passing a rvalue as reference. Matt.
Re: rvalues -> ref (yup... again!)
On Friday, 23 March 2018 at 23:58:05 UTC, Jonathan M Davis wrote: On Friday, March 23, 2018 23:35:29 MattCoder via Digitalmars-d wrote: Well, to be honest I still can't understand why would you want to pass a RValue as reference. Well, it's frequently the case that you don't want to copy an object if you don't have to... - Jonathan M Davis Well the concept it's OK. (Differences between passing by value vs reference, copy etc.). Except for the const thing in C++, because I don't know this language, and by the way thanks for explaining that. Question: In C++ the signature of the function which will receive the references like in this case, need to be "const ref" parameters, right? - If yes, then since it's const ref parameter, will not change the value passed, even if it's lvalue, right? Matt.
Re: rvalues -> ref (yup... again!)
On Friday, 23 March 2018 at 22:01:44 UTC, Manu wrote: ... By contrast, people will NOT forgive the fact that they have to change: func(f(x), f(y), f(z)); to: T temp = f(x); T temp2 = f(y); T temp3 = f(z); func(temp, temp2, temp3); ... Or you could do this: func(tx=f(x), ty=f(y), tz=f(z)); I know it will not solve your problem, but except for the explicit variables, it's almost like your first example. Well, to be honest I still can't understand why would you want to pass a RValue as reference. Matt.
Re: How do you get comfortable with Dlang.org's Forum?
On Friday, 23 February 2018 at 13:47:16 UTC, biocyberman wrote: 1. No post editing... You should be grateful for this, because I hate systems like: Forums, Reddit and whatever, where people can edit/delete posts changing the context of things. MattCoder.
Re: Will D continu to live after walter death?
On Tuesday, 17 October 2017 at 08:40:18 UTC, Walter Bright wrote: On 10/16/2017 2:09 AM, Iain Buclaw wrote: I would be a lot more worried if something happened to me, if I were you. You're right, you're a heluva amazing one man show with gdc. Deserves a patreon. I'd contribute. Matheus.
Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS
On Friday, 23 September 2016 at 13:28:26 UTC, Ilya Yaroshenko wrote: Could someone with big reddit rating please post the link there? (maybe Andrei?) Don't forget hackernews!
Re: Our docs should be more beautiful
On Tuesday, 19 July 2016 at 01:38:54 UTC, Andrei Alexandrescu wrote: ... http://i.imgur.com/UTLpK42.png PS: Click to see the full image. I like the styling on the right - the vertical spacing between paragraph is ridiculous in the left version, and the "Jump to:" box is too tall. -- Andrei This is why I don't go through this and help on this matter, I mean the layout is too subjective, I think the left version (Which was changed by my friend) is much better to read than the version on the right. Another thing: using "font-weight" or "bold" sometimes looks weird on high resolutions, which was avoided on the left, maybe is not too visible here but anyway... And finally: Keep in mind that some folks (like myself) use Tablet to read manuals, and the font size matters a lot on tiny screens. By the way, this is not a rant, :) I'm just saying that making layout for others is something that I don't like because the different tastes. Mattcoder.
Re: Our docs should be more beautiful
On Monday, 18 July 2016 at 22:16:45 UTC, Mattcoder wrote: On Monday, 18 July 2016 at 15:56:29 UTC, Andrei Alexandrescu wrote: I was proofreading http://dtest.thecybershadow.net/artifact/website-f26d7179b8449e89e1961391fde9f221813c707c-04d0496c2d8cecedc4d75c919646d564/web/phobos-prerelease/std_experimental_checkedint.html and there are a few ways in which our docs could look better. ... Look over this: changed(left) and the old(right) versions, what you think? http://i.imgur.com/UTLpK42.png PS: Click to see the full image. Mattcoder. Oh and by the way, we should use something like google page insights or alternatives, because it usually show good points. For example the space between the links, it's frustrating when browsing using mobile and you click on a link and opens the other link. Google page insights: https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fdtest.thecybershadow.net%2Fartifact%2Fwebsite-f26d7179b8449e89e1961391fde9f221813c707c-04d0496c2d8cecedc4d75c919646d564%2Fweb%2Fphobos-prerelease%2Fstd_experimental_checkedint.html=mobile Mattcoder.
Re: Our docs should be more beautiful
On Monday, 18 July 2016 at 15:56:29 UTC, Andrei Alexandrescu wrote: I was proofreading http://dtest.thecybershadow.net/artifact/website-f26d7179b8449e89e1961391fde9f221813c707c-04d0496c2d8cecedc4d75c919646d564/web/phobos-prerelease/std_experimental_checkedint.html and there are a few ways in which our docs could look better. ... Look over this: changed(left) and the old(right) versions, what you think? http://i.imgur.com/UTLpK42.png PS: Click to see the full image. Mattcoder.
Dlang homepage (CSS files)
I was taking a look over the network files during the page load, and there are some files that I think it should be integraded in just one file, for example the CSS. Look this network status: http://i.imgur.com/YhKcue5.png The print.css takes around ~700ms to download, and inside there are just these lines: body{background:white}pre{overflow:visible;overflow-X:hidden;font-size:100%}#search-box,#header,#navigation,#lastupdate,#tools,#footernav,#copyright,#github-ribbon,#top,.page-contents{display:none}div#content{background:white;border:0;margin:0;padding:0;font-family:serif;font-size:10pt} Integraded or even should be inline in the HTML.
Re: [dlang.org] getting the redesign wrapped up
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote: My implementation of the redesign is pretty much complete. check it out: http://d-ag0aep6g.rhcloud.com/ Well I think it's very good, the layout is clean and very presentable. I know that isn't your fault, but that logo needs a change. ;) Matt.
Re: LDC with Profile-Guided Optimization (PGO)
On Tuesday, 22 December 2015 at 17:09:21 UTC, CraigDillabaugh wrote: Maybe many folks reading your post don't know what PGO is? https://en.m.wikipedia.org/wiki/Profile-guided_optimization Matt.
Re: LDC with Profile-Guided Optimization (PGO)
On Tuesday, 22 December 2015 at 14:49:51 UTC, Johan Engelen wrote: On Tuesday, 15 December 2015 at 23:05:38 UTC, Johan Engelen Would it help if binaries are available? Definitely! Matt.
Re: https everywhere update - dlang.org gets an "A" now!
On Wednesday, 2 December 2015 at 22:17:20 UTC, Walter Bright wrote: Dlang.org gets an "A" now! Thanks to Jan Knepper's efforts. This is what I get when I try: https://www.dlang.org/ "Your connection is not private Attackers might be trying to steal your information from www.dlang.org (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID" Matheus.
Re: I love any DUB config format
On Thursday, 26 November 2015 at 18:56:20 UTC, Sebastiaan Koppe wrote: On Thursday, 26 November 2015 at 08:50:42 UTC, Sönke Ludwig wrote: Thanks, Sönke Thank you (and others) for your time developing dub. I don't understand any feelings for or against the configuration's format. From a maintainability perspective JSON wins, from readability SDL wins. Pick _one_. Move on. ... Yes man and like I said previously, this should be settled directly with developer, it is too much drama for such a small thing. And thinking more about it, now I start to understand Linus Torvalds rants on code and I really think this community needs someone like him to shake up things, and stopping those nonsense complaints. :) Matheus.
Re: I hate new DUB config format
Sorry but for me this is another "HOT" thread for a sh*t problem. The OP dislikes SDL, so use JSON. What's the big deal, and as Sönke Ludwig said, it was announced before (http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/2/) and most agree with this change. I'm here almost every day reading the topics. And is weird to see how the sh*t ones usually got attraction. Matheus.
Re: Is facebook moving away from D?
On Tuesday, 24 November 2015 at 14:54:38 UTC, rsw0x wrote: On Tuesday, 24 November 2015 at 10:05:36 UTC, Bruce Adams wrote: What do you guys think? I don't think Facebook ever really moved towards D. Yes I agree, it was more a toy thing or small snippets of code, like they do with Haskell and other languages. Matheus.
Re: DConf keynote speaker ideas
On Thursday, 19 November 2015 at 13:10:18 UTC, Mike Parker wrote: On Thursday, 19 November 2015 at 10:34:09 UTC, Andrea Fontana wrote: On Wednesday, 18 November 2015 at 04:29:29 UTC, Saurabh Das wrote: On Tuesday, 17 November 2015 at 20:20:22 UTC, Meta wrote: John Carmack would be an amazing speaker; I love listening to his Quakecon/Oculus Connect talks. Problem is he can go for hours on end and routinely goes way over time. Also he's busy building the foundation for an entire new paradigm in entertainment. +1 - John Carmack has my vote too. +1 for Carmack +1 for Carmack +1 for Tim Sweeney as a 2nd choice. I think those talks would be great to listening and to gather newcomers. I'm pretty sure if John Carmack accepted this invitation, he would take a look over the language and share his thoughts. Matheus.
Re: IRC dead?
On Wednesday, 18 November 2015 at 18:33:26 UTC, Niklas wrote: Is the IRC dead? I just tried now: https://webchat.freenode.net/ Channel: #d And there are a lot of guys there, but not sure if they are all alive! :) Matheus.
Re: Please vote for the DConf logo
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei Alexandrescu wrote: Reply to this with 1.1, 1.2, 2, or 3: 1) by ponce: Variant 1: https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png Variant 2: https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png 2) by Jonas Drewsen: https://dl.dropboxusercontent.com/u/188292/g4421.png 3) by anonymous: PNG: http://imgur.com/GX0HUFI SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084 Thanks, Andrei 3 - It's clean, no noise and transmits the message! Matheus.
Re: Out for the week
On Wednesday, 4 November 2015 at 00:31:14 UTC, Andrei Alexandrescu wrote: I'm leaving for http://codedive.pl/en/agenda/ to destroy... I hope NSA isn't filtering this thread! ;] Good luck!
Re: I have this game engine...
On Sunday, 1 November 2015 at 02:36:16 UTC, Manu wrote: ... Does it support Dreamcast? :P I don't know if you are being serious here but if yes... what's the catch with Dreamcast? I mean this is a Fan thing or what? PS: I'm asking this because I used to code for GBA a long time ago but just for fun and hobby! Matheus.
Re: Downoads stats page is back up
On Wednesday, 21 October 2015 at 14:42:58 UTC, Andrei Alexandrescu wrote: ... Interesting numbers, I think it's ~1200 avg? Maybe I'm too lazy, but I'm still using the 2.066 (Oct. 2014)! :) Matheus.
Re: Walter Bright, Scott Meyers and me live on the most watched morning show in Romania
On Saturday, 17 October 2015 at 09:36:08 UTC, Andrei Alexandrescu wrote: D got mentioned as well. ... Awesome! Just a note: the guy in red suit (George Buhnici?), looks like you Andrei. :) Matheus.
Re: Walter and I talk about D in Romania
On Friday, 2 October 2015 at 11:25:44 UTC, Andrei Alexandrescu wrote: We need to start recording those events. 300 people could turn into 10 or 100 times more counting those who would like to watch the videos later. This is not the first time we heard about a conference about D without recording or it was improvised by good soul with a cam at last moment. Matheus.
Re: Short history of how great job, release team is doing.
On Friday, 18 September 2015 at 20:01:56 UTC, nazriel wrote: ... So - now we are two folks in our team at Fujitsu writing tools in D - more are coming for sure! ... Cool story, and indeed this is a nice way to "sell" anything... I mean showing them how easy is. Matheus.
Re: D could catch this wave: web assembly
On Thursday, 18 June 2015 at 08:05:48 UTC, John Colvin wrote: ... I hope this don't turn into this: https://imgs.xkcd.com/comics/standards.png Matheus.
Re: Martin Nowak is officially MIA
On Thursday, 18 June 2015 at 16:41:51 UTC, Andrei Alexandrescu wrote: I definitely am sorry for not handling this better. What I should have done in retrospect is to resume efforts to reach Martin privately after evidence came about that he's alive and well, then discuss reasonable communication expectations with him, and only after that resume the public search for more release czars. I apologize to Martin and the community for not taking that course of action. Now you are talking! Thanks for being humble enough, I was a bit scared for your second post, but now I think everything is fine! :) Matheus.
Re: You too can work on D for iOS
On Friday, 12 June 2015 at 12:00:17 UTC, Steven Schveighoffer wrote: ... That a pretty steep hike, I wonder why it's so much more expensive! Import taxes and currency (Brazilian $ 3.20 = U$ 1.00). Welcome to the jungle! :) Matheus.
Re: You too can work on D for iOS
On Friday, 12 June 2015 at 04:51:29 UTC, Steven Schveighoffer wrote: The cost is really minimal if you are serious. A Mac Mini costs $500 new, and you get Xcode free. I don't want to be that guy but living in Brazil that Mac Mini (Yosemite) costs 6x more in here. I mean it can be more cheap to travel to U.S. and buy one there and go back than buying directly in here. Matheus.
Re: forum.dlang.org, version 2 (BETA)
On Saturday, 6 June 2015 at 16:02:23 UTC, Andrei Alexandrescu wrote: Before I forget: avatar photo covers text. http://imgur.com/8r679dX -- Andrei I think it's otherwise! :) Matheus.
Re: Proposal for new dlang.org fonts
On Friday, 5 June 2015 at 23:10:33 UTC, Andrei Alexandrescu wrote: Take a look at https://github.com/D-Programming-Language/dlang.org/pull/1009. Preview: http://erdani.com/d/phobos-prerelease/ ... Well if you increase the font size I think it will looks better, see: http://i.imgur.com/RzoVSRs.jpg And like I said on the other thread (About the new Forum layout) please remember that some people uses Tablet/Phone to access, and tiny fonts is horrible on tiny screens like 7 both to read or touch (links). Matheus.
Re: forum.dlang.org, version 2 (BETA)
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ Like everyone said, AWESOME! PS: I think you could increase the font size a bit on the top links( Index » Announce / Log in · Settings · Help) and the page numbers on the bottom, at least for mobile. Matheus.
Re: Daily downloads in decline
On Monday, 1 June 2015 at 21:47:46 UTC, Jonathan M Davis wrote: I really need to get my website set up so that I can post stuff like this. I've had the domain for a while but just haven't gotten around to setting it up. :( - Jonathan M Davis What about writing articles using medium.com? I see many articles on reddit from this site. Matheus.
Re: Laptop volunteer wanted for tomorrows live-stream
On Friday, 29 May 2015 at 04:00:22 UTC, John Colvin wrote: At the very least, I will need to use my laptop for my own talk. I would also really like to be able to use it during the day beforehand. Or you could borrow another laptop for the presentation/slides and let your own for the live stream. Matheus.
Re: Interrogative: What's a good blog title?
On Tuesday, 28 April 2015 at 01:08:51 UTC, Vladimir Panteleev wrote: Must blogs have a name? Inevitably, people will still refer to it as Andrei's blog rather than Greasemonkey Philosopher etc. This! Matheus.
Re: Post increment and decrement
On Wednesday, 11 March 2015 at 20:05:03 UTC, mattcoder wrote: On Wednesday, 11 March 2015 at 17:23:15 UTC, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. Believe or not I always used pre-increment. But yes, I see the former in most of the codes out there. ... and I'm with you! :) Matheus.
Re: Post increment and decrement
On Wednesday, 11 March 2015 at 17:23:15 UTC, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. Believe or not I always used pre-increment. But yes, I see the former in most of the codes out there. Matheus.
Re: quick-and-dirty minimalistic LISP engine
http://ketmar.no-ip.org/milf_for_the_masses.zip I'd like to see the source but on the other hand I'm so afraid to download this zip. :) Matheus.
Re: [website redesign] PR for the one with the big red menu bar
On Wednesday, 28 January 2015 at 15:54:31 UTC, anonymous wrote: Here's a variant with a grey background and the old logo, suggested by veelo on GitHub: http://ag0aep6g-dlang.rhcloud.com/variants/grey-oldlogo/ I like it too! :) PS: One thing that I think which would be nice from this new layout is to take out the border and the padding-top of the main content, example: http://i.imgur.com/fhkZYCP.png Matheus.
Re: I'll be presenting at NWCPP on Jan 21 at Microsoft
On Saturday, 24 January 2015 at 13:03:33 UTC, Andrej Mitrovic wrote: On 1/23/15, MattCoder via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: My right ear can't hear too! :) While the youtube engineers are too lazy to fix this, in the meantime you can use the youtube-dl tool to download the video, watch it in VLC and select Audio-Select channel-Left (or something like that). Worked for me! I'll do this. Thanks! Matheus.
Re: I'll be presenting at NWCPP on Jan 21 at Microsoft
On Saturday, 24 January 2015 at 13:32:20 UTC, Paulo Pinto wrote: On Saturday, 24 January 2015 at 13:03:33 UTC, Andrej Mitrovic wrote: On 1/23/15, MattCoder via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: My right ear can't hear too! :) While the youtube engineers are too lazy to fix this, in the meantime you can use the youtube-dl tool to download the video, watch it in VLC and select Audio-Select channel-Left (or something like that). Worked for me! Funny enough, I didn't have any audio problems. Just watched with FF Flash plugin in Windows 8.1. -- Paulo Using FF but no Flash installed, so I'm using HTML5 player. Matheus.
Re: I'll be presenting at NWCPP on Jan 21 at Microsoft
On Friday, 23 January 2015 at 05:54:41 UTC, Walter Bright wrote: On 1/22/2015 12:52 PM, Gary Willoughby wrote: Me too, is there any video available? https://www.youtube.com/watch?v=IkwaV6k6BmM I can't bear to watch it, you'll have to do it for me! My right ear can't hear too! :) Matheus.
Re: [WORK] groupBy is in! Next: aggregate
On Friday, 23 January 2015 at 18:08:30 UTC, Andrei Alexandrescu wrote: So H.S. Teoh awesomely took https://github.com/D-Programming-Language/phobos/pull/2878 to completion. We now have a working and fast relational group by facility. See it at work! #!/usr/bin/rdmd void main() { import std.algorithm, std.stdio; [293, 453, 600, 929, 339, 812, 222, 680, 529, 768] .groupBy!(a = a 1) .writeln; } [[293, 453], [600], [929, 339], [812, 222, 680], [529], [768]] Sorry if this a dumb question, but since you're grouping an array according some rule, this shouldn't be: [293, 453, 929, 339, 529][600, 812, 222, 680, 768] ? Because then you have the array of trues and falses according the condition (a 1). Matheus.
Re: dlang.org redesign n+2 (the one with the bold red vertical menu)
On Saturday, 24 January 2015 at 02:43:47 UTC, anonymous wrote: Inspired by the recent developments, and Sebastiaan Koppe's version [1] specifically, I gave it a go, too: http://ag0aep6g-dlang.rhcloud.com/ Interesting, and just for fun I changed the CSS a bit: http://i.imgur.com/ijLxXe2.png :) Matheus.
Re: [WORK] groupBy is in! Next: aggregate
On Friday, 23 January 2015 at 22:20:19 UTC, H. S. Teoh wrote: It's kind of a misnomer, because it actually only considers *consecutive runs* of equivalent elements; it doesn't look at the whole range before deciding what goes in which group. So technically it should be called consecutiveGroupBy or consecutivePartitionBy, but that's too big a mouthful to be a usable name. What you describe could be an interesting candidate to add, though. It could iterate over distinct values of the predicate, and traverse the forward range (input ranges obviously can't work unless you allocate, which makes it no longer lazy) each time. This, however, has O(n*k) complexity where k is the number of distinct predicate values. If it's anything bigger than bool or a relatively small enum, it would be impractical. Moreover, the requirement to traverse the range multiple times kinda sux; you might as well just call filter() with different expected values yourself, in a loop. In fact, you could ostensibly implement it something along these lines: auto globalPartition(alias pred, R)(R range) { alias Values = typeof(pred(range.front, range.front)); return iota(Values.min, Values.max) .map!(v = range.save.filter!(pred(e) == v)); } ... Alright and thanks for the whole explanation. Matheus.
Re: dlang.org redesign n+2 (the one with the bold red vertical menu)
On Saturday, 24 January 2015 at 04:09:58 UTC, Andrei Alexandrescu wrote: Interesting, and just for fun I changed the CSS a bit: http://i.imgur.com/ijLxXe2.png :) The red band at the top is a bit odd. Really? Oh yeah it's. I just was trying to fill the top with something... Bad luck! :) Matheus.
Re: 404 on dlang.org
On Thursday, 22 January 2015 at 15:28:34 UTC, Andrei Alexandrescu wrote: Woke up, rebased, pushed. It's up folks, take a look! http://dlang.org. -- Andrei Neat! I think all the efforts you made till now is a improvement from what the original site was. I know It will be hard to please everyone, but as I said in another topic the site was in need of fresh air. PS: Maybe the titles: Last Announcements, Active Discussions and Tweets could have another background color, for example: http://i.imgur.com/Fkm6179.png Matheus.
Re: dlang.org redesign n+1
On Thursday, 22 January 2015 at 17:03:52 UTC, Meta wrote: On Thursday, 22 January 2015 at 17:00:55 UTC, MattCoder wrote: On Thursday, 22 January 2015 at 16:58:39 UTC, Meta wrote: On Thursday, 22 January 2015 at 05:27:04 UTC, Zekereth wrote: First of all I like the new design. Way better than what's here now. I'll just throw another site into the mix that I like which is Ocaml's site: https://ocaml.org/ . That's quite nice. It even has a section with recent forum posts. Maybe we should try to emulate it. We are already doing that: http://dlang.org/ - Look at your right :) Matheus. It doesn't show up on my phone. Oh yes, In mine It doesn't show up only when Vertical, but I can see in Horizontal. Anyway, I more meant that we should model our general design off of ocaml.org as their site looks pretty good but still has a lot of information. Indeed, that https://ocaml.org/ is a good start. Matheus.
Re: dlang.org redesign n+1
On Thursday, 22 January 2015 at 16:58:39 UTC, Meta wrote: On Thursday, 22 January 2015 at 05:27:04 UTC, Zekereth wrote: First of all I like the new design. Way better than what's here now. I'll just throw another site into the mix that I like which is Ocaml's site: https://ocaml.org/ . That's quite nice. It even has a section with recent forum posts. Maybe we should try to emulate it. We are already doing that: http://dlang.org/ - Look at your right :) Matheus.
Re: dlang.org redesign n+1
On Wednesday, 21 January 2015 at 17:34:46 UTC, H. S. Teoh via Digitalmars-d wrote: z +1. I didn't like it either. But then again, the majority of people rarely agree with me, so I didn't say anything. But obviously I'm not alone in disliking this spaced-out layout. Well, of course it needs some polishing, for example: I think the top menu should be visible on screen while you scroll down, because imagine that you are at bottom of the page and want to go somewhere else (Forums, Documentation etc). There are some spaces not filled. Yes the font size needs a scale up. About the layout (Vertical Wall Text), I think they became popular because the mobile, you know those 7 or 8 size screens, then you can read the site like an ebook or maybe because the technical side, like partial loading. Matheus.
Re: dlang.org redesign n+1
On Wednesday, 21 January 2015 at 17:52:56 UTC, Kiith-Sa wrote: Suggested improvement: http://imgur.com/a/zgSJa Or: http://i.imgur.com/ciSn8vM.png Matheus.
Re: New menus are up
On Wednesday, 21 January 2015 at 14:47:09 UTC, John Colvin wrote: On Wednesday, 21 January 2015 at 14:27:23 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 21 January 2015 at 13:38:25 UTC, MattCoder wrote: On Wednesday, 21 January 2015 at 13:28:22 UTC, Tofu Ninja wrote: On Tuesday, 20 January 2015 at 03:29:23 UTC, Andrei Alexandrescu wrote: Can we have the old menus back : Why would you want that? Usability? The new ones flicker because they don't load with the right class set. This should be done on the server. The flickering is annoying when browsing library pages. not seeing any flickering here on OS X 10.10 + Safari Neither I, Linux + FF 34.0! Matheus.
Re: dlang.org redesign n+1
On Wednesday, 21 January 2015 at 14:46:22 UTC, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: http://dlang.skoppe.eu Well like everyone else said, this is awesome. I don't know if this is problem in my browser (I'm using FF 34.0), but some boxes seems smaller than should be, example: http://i.imgur.com/Ge1ljck.png Matheus.
Re: New menus are up
On Tuesday, 20 January 2015 at 03:29:23 UTC, Andrei Alexandrescu wrote: Suggestion: The font-style used in one menu differs from the other, ex: http://i.imgur.com/fRwdFNj.png Which I think it should be the same, and as you can see in the image above, some words doesn't fit in the menu width, for example: std.container.package. Matheus.
Re: dlang.org redesign n+1
On Wednesday, 21 January 2015 at 19:57:25 UTC, H. S. Teoh via Digitalmars-d wrote: On Wed, Jan 21, 2015 at 05:52:06PM +, MattCoder via Digitalmars-d wrote: On Wednesday, 21 January 2015 at 17:34:46 UTC, H. S. Teoh via Digitalmars-d wrote: z +1. I didn't like it either. But then again, the majority of people rarely agree with me, so I didn't say anything. But obviously I'm not alone in disliking this spaced-out layout. Well, of course it needs some polishing, for example: I think the top menu should be visible on screen while you scroll down, because imagine that you are at bottom of the page and want to go somewhere else (Forums, Documentation etc). I'm not talking about polishing. I'm talking about the design itself. (Obviously, the following is just my personal opinion, so please don't take it personally.) Never, I don't take anything like this personally, this is a discussion board and sometimes we will agree and some don't! :) There are some spaces not filled. Yes the font size needs a scale up. Please, no. The fonts are WAY TOO BIG already. So, reading from my Galaxy Tab 7 on Horizontal I found harder to read than other sites, but this is a minor problem, it could be solved with CSS and media thing. This is why I have said before, and I say again, that for mobile devices you need a different kind of layout. You cannot use that kind of layout for a PC browser. It simply doesn't translate. Yes, but on the technical side the partial loading will be same on mobile and desktop, but in this case if it is easy or not to do this partial loading with this layout is a purely guessing of my part, I'm not a web-developer! Matheus.
Re: dlang.org redesign n+1
On Wednesday, 21 January 2015 at 19:51:57 UTC, Walter Bright wrote: On 1/21/2015 6:46 AM, Sebastiaan Koppe wrote: Just for fun and proof-of-concept I went ahead and forked the dlang.org site. I basically took the `do-what-everybody-else-is-doing` approach: Thank you very much for doing this! I very much appreciate the hard work you put into it. For comparison, here are some other language front doors: I always thought that D deserved something like this: http://learnyouahaskell.com/ Matheus.
Re: New menus are up
On Wednesday, 21 January 2015 at 13:28:22 UTC, Tofu Ninja wrote: On Tuesday, 20 January 2015 at 03:29:23 UTC, Andrei Alexandrescu wrote: Can we have the old menus back : Why would you want that? Matheus.
Re: D on Slashdot
On Wednesday, 21 January 2015 at 13:19:00 UTC, Adam D. Ruppe wrote: It is a lot easier to just run wine dmd and distribute the finished exe than it is to copy all the development files to the windows computer and run it there. For what I'm seeing Wine isn't an emulator like VMWare, it's a layer, so you can compile with wine dmd, but can you test your software too? Matheus.
Re: Like Go/Rust, why not to have func keyword before function declaration
On Tuesday, 20 January 2015 at 13:47:11 UTC, ketmar via Digitalmars-d wrote: void function foo () { ... } foo(); do you see the subtle difference? yes, that tiny whitespace in declaration. i borrowed that habit from some Oberon code decades ago, and it serves me well since then. Hmm, nice one. I think I'll do this too. Matheus.
Re: New menus are up
On Tuesday, 20 January 2015 at 03:29:23 UTC, Andrei Alexandrescu wrote: Take a look at http://dlang.org. New menus are in place for the main site and library. Well let be honest the site was in need of some fresh air. And the new menu is really good. Congratulations. Matheus.
Re: Better README.md for dlang.org
On Monday, 19 January 2015 at 23:04:40 UTC, ponce wrote: Does IE7/IE8 are to be supported or IE9+ is the target? (IE9+ is more pleasant). Please let's bury those 2 altogether with IE9. :) Matheus.
Re: [DRAFT] This Week in D - Jan 18
On Monday, 19 January 2015 at 11:57:51 UTC, Mengu wrote: hello all yesterday i took the liberty of asking a dear designer friend of mine to help us have a better newsletter. luckily, he was able to put some design together for it. please see it at http://bit.ly/1DTLuPS and let us know what you guys think. let's have some elegance with rock solid code. I liked It's clean. Matheus.
Re: [DRAFT] This Week in D - Jan 18
Ok I'm afraid to ask this and sound like annoying person, but according to my sign: their 'attention to detail' is for a reason: to help others. So: Would be strange with get rid of : in this text: This Week in D: ? Because everytime that I look to it, this D: look like a sad face. :] Matheus.
Re: This Week in D, issue 2
On Monday, 19 January 2015 at 17:05:54 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/jan-18.html http://www.reddit.com/r/programming/comments/2sy7lg/this_week_in_d_january_18_2015/ Awesome, and please take my upvote! :D Matheus.
Re: [DRAFT] This Week in D - Jan 18
On Monday, 19 January 2015 at 16:37:51 UTC, Adam D. Ruppe wrote: On Monday, 19 January 2015 at 11:57:51 UTC, Mengu wrote: yesterday i took the liberty of asking a dear designer friend of mine to help us have a better newsletter. luckily, he was Cool, thanks! I combined the two suggestions to form this: http://arsdnet.net/this-week-in-d/jan-18.html Final draft for this week? I wanna release in like half an hour, then we can do more tweaks for next week too. Wow, is look beautiful! Congratulations! Hey Mengu you could share those icons from his demonstration (Calendar, statistic): http://i.imgur.com/VRmCwCT.png Matheus.
Re: [DRAFT] This Week in D - Jan 18
On Monday, 19 January 2015 at 16:46:41 UTC, MattCoder wrote: On Monday, 19 January 2015 at 16:37:51 UTC, Adam D. Ruppe wrote: On Monday, 19 January 2015 at 11:57:51 UTC, Mengu wrote: yesterday i took the liberty of asking a dear designer friend of mine to help us have a better newsletter. luckily, he was Cool, thanks! I combined the two suggestions to form this: http://arsdnet.net/this-week-in-d/jan-18.html Final draft for this week? I wanna release in like half an hour, then we can do more tweaks for next week too. Wow, is look beautiful! Congratulations! Hey Mengu you could share those icons from his demonstration (Calendar, statistic): http://i.imgur.com/VRmCwCT.png Matheus. OPS: Wow, looks beautiful! Congratulations! I forgot: Maybe you should put these pipeline code and divideBy examples inside a content like you did with UFCS. Matheus.
Re: Please help me with improving dlang.org
On Monday, 19 January 2015 at 01:41:04 UTC, Andrei Alexandrescu wrote: Content discussion to follow soon. -- Andrei As I asked in another Topic without any answer, I wasn't able to find (or at least is not easily visible) anything related to CONTRIBUTE even on sitemap. I think there should be a button for this on the main site. Matheus.
Re: Please help me with improving dlang.org
On Monday, 19 January 2015 at 02:19:30 UTC, Andrei Alexandrescu wrote: On 1/18/15 6:09 PM, MattCoder wrote: On Monday, 19 January 2015 at 01:41:04 UTC, Andrei Alexandrescu wrote: Content discussion to follow soon. -- Andrei As I asked in another Topic without any answer, I wasn't able to find (or at least is not easily visible) anything related to CONTRIBUTE even on sitemap. I think there should be a button for this on the main site. Great idea. Could you please put that in bugzilla, it's important and shouldn't be forgotten. -- Andrei My first time using bugzilla: https://issues.dlang.org/show_bug.cgi?id=14006 Please could anyone tell if I did right? Matheus.
Re: Idea: featuring forum content on dlang.org?
On Monday, 19 January 2015 at 02:34:32 UTC, Andrei Alexandrescu wrote: With all this discussion on more dynamic content on dlang.org, I sat down (figuratively; I've been on a hike today) and thought - what is dynamic about D? Are you becoming a web-developer? :) We already have twitter which is nice. Adding some of the above to the homepage would be awesome. What do you all think? Yes, it could be nice, but you do you have in mind? Put for example the last 10 posts of the forum on the main page? Matheus.
Re: The ugly truth about ddoc
On Monday, 19 January 2015 at 02:18:32 UTC, Andrei Alexandrescu wrote: TL;DR: I've uploaded new menu colors at http://erdani.com/d/, this time aiming for a more martian red ethos. Please let me know. Well I'd prefer less red-ish: http://i.imgur.com/AIvcoWl.png But you know this is a personal thing, and if you looking for martian aspect so you're ok. Anyway this menu is better than your previous one. :) Matheus.
Re: The ugly truth about ddoc
On Monday, 19 January 2015 at 03:01:44 UTC, Andrei Alexandrescu wrote: No personal aspect to this. What hex colors did you use? -- background-color: #6E6E6E; And I cleaned: #cssmenu ul li a { font-size: 14px; display: block; background: url(http://erdani.com/d/images/xpattern.png.pagespeed.ic.QEXJsY5pYW.png;) repeat scroll left top transparent; border-right: 1px solid #893A28; border-width: medium 1px 1px; border-style: none solid solid; border-color: -moz-use-text-color #893A28 #893A28; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; color: #FFF; text-shadow: 0px -1px 1px #751D0C; } to #cssmenu ul li a { font-size: 14px; display: block; color: #FFF; text-shadow: 0px -1px 1px #751D0C; } Matheus.
Re: Use proper frameworks for building dlang.org
On Sunday, 18 January 2015 at 14:06:06 UTC, weaselcat wrote: ... I agree that the current site seems like an ugly ddoc hack, I just recently tried to fix a broken link on the frontpage(should be easy, right?) and was confused by ddoc so I had to submit a bug request. You know, I quit my job for my own wish, you know I want a fresh air and do others things this year. I could try to help with the site, but there is two main problems: 1) I don't have that UX skills like those professionals out there. 2) I don't know where to start, and I'd like to ask if there is a doc anywhere teaching how to contribute, for example this site, if I want to try some experiments where should I start? Matheus.
Re: while(...){ ... }else ...
On Sunday, 18 January 2015 at 15:52:24 UTC, Jens Bauer wrote: ... Ah, much more readable. Maybe I misunderstood your question, but what you think about this way: while(1){ if(c = '0' c = '9') { /* number */ c = *s++; ... do something with c ... } else if ((c = 'A' c = 'Z') || (c ='a' c = 'z') || c == '_') { /* token */ c = *s++; } else if(debug) { /* error */ break; } } Matheus.
Re: Use proper frameworks for building dlang.org
On Sunday, 18 January 2015 at 14:00:57 UTC, aldanor wrote: On Sunday, 18 January 2015 at 13:01:48 UTC, MattCoder wrote: On Sunday, 18 January 2015 at 10:24:29 UTC, Jacob Carlborg wrote: What do you think? I'm seeing a lot a topics regards about fixing website, styles an so on. Maybe is time to try to raise money and hire someone with good knowledge and of course freetime to work only on it? Matheus. It also looks a bit wrong seeing Andrei as one of the core devs putting so much time into the website issues, styling in particular (don't get me wrong, this is absolutely fantastic that someone's willing to do that, thanks Andrei -- and it looks like most of the community now recognizes the need). Sure and that are my feelings too. And of course we all recognize Andrei's efforts. Matheus.
Re: Use proper frameworks for building dlang.org
On Sunday, 18 January 2015 at 15:27:36 UTC, MattCoder wrote: You know, I quit my job for my own wish, you know I want a fresh air and do others things this year. I could try to help with the site, but there is two main problems: Sorry I'm not english, so I think the text above isn't quite right, so: You know, I quit my job for own will, you know, I was looking for a fresh air and do others things this year. I could try to help with the site, but there are two main problems: Matheus.
Re: dlang.org should do it in style
On Sunday, 18 January 2015 at 10:01:37 UTC, Jacob Carlborg wrote: On 2015-01-17 19:39, MattCoder wrote: Indeed! But, if the body had a width setted this wouldn't occur. For example, adding width: 1024px on body in style.css it will now be fine to see on mobile. No, that's not the correct solution. The correct solution is to use media queries in the CSS and specify different widths depending on the resolution. Also known as responsive design. Or you have a separate mobile site. Just to be clear, I didn't mention in my previous post that width: 1024px or min-width: 1024px is the correct solution, I just suggest this because it's a little effort (add 1 line in the stylesheet) to make it look less ugly in mobile than it looks today (http://i.imgur.com/9JYNVNk.png). Matheus.
Re: Use proper frameworks for building dlang.org
On Sunday, 18 January 2015 at 10:24:29 UTC, Jacob Carlborg wrote: What do you think? I'm seeing a lot a topics regards about fixing website, styles an so on. Maybe is time to try to raise money and hire someone with good knowledge and of course freetime to work only on it? Matheus.
Re: while(...){ ... }else ...
On Sunday, 18 January 2015 at 22:54:16 UTC, Jens Bauer wrote: On Sunday, 18 January 2015 at 16:03:24 UTC, MattCoder wrote: On Sunday, 18 January 2015 at 15:52:24 UTC, Jens Bauer wrote: ... First check: Is it a number; if so, get the entire number... If not, try the second check: is it a token; if so, get the entire token, otherwise let us know that it's something unknown (but only if we're debugging). Alright I see the purpose about: while(){}else(){}, but unfortunately D doesn't have this. Anyway looking at your first post, I'd like to suggest a way to improve your code: /* Create a type check function/method... you named it returning a defined type */ import std.string; type checkType(sometype s){ if(isNumeric(s)){ return TYPE_NUMBER; } // Check using regex for A..Z, a..z and '_' return TYPE_TOKEN; return TYPE_UNDEFINED; } // And then somewhere in your code you could do this: ... { switch(checkType(s)){ case TYPE_NUMBER : doNumberThing(s); break; case TYPE_TOKEN : doTokenThing(s); break; default : checkDebug(); } } It's not what you proposed earlier, but I think it can make things easier. Matheus.
Re: Please help me with improving dlang.org
On Sunday, 18 January 2015 at 21:27:25 UTC, NVolcz wrote: Googles pagespeed also gives some nice guidelines: https://developers.google.com/speed/pagespeed/insights/?url=dlang.org Nice and for image processing/compression I'd like to recommend this free tool (Win/Linux/Mac): http://advsys.net/ken/utils.htm#pngoutkziplicense Matheus.
The Redmonk programming language rankings 2015
There you go: http://www.reddit.com/r/programming/comments/2su31i/the_redmonk_programming_language_rankings_january/ Unfortunately no D this time... YET! Matheus.
Re: The Redmonk programming language rankings 2015
On Sunday, 18 January 2015 at 20:45:09 UTC, MattCoder wrote: Unfortunately no D this time... YET! I forgot to add: Compared with 2014 D grew: 2014 - http://sogrady-media.redmonk.com/sogrady/files/2014/01/lang-rank-114-wm-e1390419878523.png 2015 - http://sogrady-media.redmonk.com/sogrady/files/2015/01/lang.rank_.plot_.q1151-e1421252765953.png Matheus.
Re: dlang.org should do it in style
On Saturday, 17 January 2015 at 15:28:57 UTC, Mathias LANG wrote: http://w0rp.com:8010/ I don't know about others but for me the layout above looks more attractive than the actual one. In fact yesterday I was showing the main page for a friend on his smartphone (Moto G), and the code example at main page looks awful, since it's all wrapped on mobile. Here is an example what I'm talking about: http://i.imgur.com/9JYNVNk.png Matheus.
Re: Deadcode: A code editor in D
On Saturday, 17 January 2015 at 16:54:32 UTC, Jonas Drewsen wrote: It you have thoses dependencies already then why not use gtksourceview for the editor stuff? Sure, but then I'd miss all the fun, as you said below: It took me quite some time to do that ie. undo/redo system, text layout, highlight system, navigation, text anchors, efficient text and line gapbuffers etc. You get that for free with gtksourceview. I'm liking to play around with all these stuff. I'm writing this editor very slowly, a bit every weekend or when I've free time. :) Matheus.
Re: dlang.org should do it in style
On Saturday, 17 January 2015 at 19:35:01 UTC, Andrei Alexandrescu wrote: A tested PR would be great. Who can take this? -- Andrei A last note about this: using width:1024px will fix the mobile wrap-text problem, but the site will look like this on higher resolutions: http://i.imgur.com/MZSmn87.png (Look the space on the left and right). So another solution would trying to set min-width:1024px on body tag, so the site will continue to be the same as is today even on higher resolutions, and I'm pretty sure this will correct the problem above on mobile devices. If anyone change I'd be glad to test. PS: I'm assuming 1024 pixels because it's used as minimum standard these days. Matheus.
Re: dlang.org should do it in style
On Saturday, 17 January 2015 at 17:59:07 UTC, Andrei Alexandrescu wrote: In fact yesterday I was showing the main page for a friend on his smartphone (Moto G), and the code example at main page looks awful, since it's all wrapped on mobile. Here is an example what I'm talking about: http://i.imgur.com/9JYNVNk.png To make a website look good on a mobile device, one needs to do work to make the website look good on a mobile device. Indeed! But, if the body had a width setted this wouldn't occur. For example, adding width: 1024px on body in style.css it will now be fine to see on mobile. Matheus.
Re: Eliminate comparison.html?
On Sunday, 18 January 2015 at 01:13:53 UTC, H. S. Teoh via Digitalmars-d wrote: Maybe it can be replaced with one of the frames from: http://eusebeia.dyndns.org/~hsteoh/tmp/mascot.png :-) Well I can see a pattern there: http://i.imgur.com/k0FpgIn.png PS: I hope Walter don't mind! :) Matheus.
Re: Eliminate comparison.html?
On Sunday, 18 January 2015 at 02:33:24 UTC, MattCoder wrote: PS: I hope Walter don't mind! :) *Doesn't Matheus.
Re: Eliminate comparison.html?
On Saturday, 17 January 2015 at 18:04:24 UTC, Andrei Alexandrescu wrote: I think http://dlang.org/overview.html is long in the tooth and needs a rewrite or replacement. It's not appropriate for D at this moment, e.g. questions like Why D? etc. don't need answered anymore. And please change that logo: http://dlang.org/images/d3.png is so early 90's. I don't mean anything wrong with that, but I don't think it fit in the current standard. Matheus.
Re: Please help me with improving dlang.org
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all think? Is it an improvement over what we have now? Nice but I changed a bit, so what do you think about this: http://i.imgur.com/AIvcoWl.png ? Matheus.
Re: dlang.org should do it in style
On Saturday, 17 January 2015 at 22:27:08 UTC, H. S. Teoh via Digitalmars-d wrote: Also, I am skeptical of a single style that will work for both desktop and mobile browsers. Isn't that what mobile stylesheets are for? We can have the same content, but we shouldn't break the desktop layout or make it look laughably spaced out just for the sake of mobile devices. Let the mobile devices have their own stylesheet. Sure, but for what I see adding: min-width:1024px; (or what unit you want) on body will NOT break the site on desktop and will make the site more readable on mobile. Ideally you would want a stylesheet for mobile, but this would take more time than adding a single line in the current stylesheet. Matheus.
Re: Deadcode: A code editor in D
On Saturday, 17 January 2015 at 06:14:12 UTC, Jonas Drewsen wrote: Do you have some info/link to your editor? I'm currently writing in D using GtkD (http://code.dlang.org/packages/gtk-d), and using Cairo to manage the text drawing. It will not have a menu, just a console at bottom. I'm wanting it to be simple with some features that I like most and the keybindings that fit in my Dvorak layout better. I'll release it at some point, but I want to polish more before that. :) Matheus.
Re: Deadcode: A code editor in D
On Friday, 16 January 2015 at 21:19:08 UTC, Jonas Drewsen wrote: I have been working on an editor written in D for use with D for some time now and have made a blog post about it. Any feedback or suggestions are welcome. Neat and nice use of the libdparser! In fact I'm writing a editor for myself and I will do something like this too. Matheus.
Re: auto return for some recursive functions in C++11
On Wednesday, 14 January 2015 at 22:29:09 UTC, bearophile wrote: According to Wikipedia: http://en.wikipedia.org/wiki/C%2B%2B14#Function_return_type_deduction C++14 is able to compile code like this: auto correct(int i) { if (i == 1) return i; else return correct(i - 1) + i; } ... According to the wiki link: If multiple return expressions are used in the function's implementation, then they must all deduce the same type. So this will NOT work: auto Correct(int i) { if (i == 1){ return (int)5; }else{ return (float)10; } } Error: prog.cpp: In function 'auto Correct(int)': prog.cpp:8:19: error: inconsistent deduction for 'auto': 'int' and then 'float' return (float)10; ^ So could you please tell me a good use case to for using return type deduction? Matheus.
Re: auto return for some recursive functions in C++11
On Thursday, 15 January 2015 at 00:24:09 UTC, Ola Fosheim Grøstad wrote: On Thursday, 15 January 2015 at 00:13:38 UTC, MattCoder wrote: So could you please tell me a good use case to for using return type deduction? Templates. Thanks! - In fact after posting I took a look and found this: http://stackoverflow.com/questions/15737223/when-should-i-use-c14-automatic-return-type-deduction Matheus.
Re: DConf 2015: Chuck Allison to deliver keynote
On Tuesday, 13 January 2015 at 19:44:38 UTC, Andrei Alexandrescu wrote: http://dconf.org -- Andrei Nice, he seems to be a nice guy and speaks very well! Matheus.
Re: This Week in D, issue 1
On Tuesday, 13 January 2015 at 21:55:27 UTC, David Nadlinger wrote: On Tuesday, 13 January 2015 at 14:08:58 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/jan-12.html Great idea, hope the project will take off! One thing: I found the link coloring to be _very_ counter-intuitive. So much so that I in fact had to fire up the dev tools to figure out why some of the links were blue and some of them green. Since the default link color on pretty much all platforms is blue, green inevitably breaks with the user expectation that visited links are styled in some shade similar Perhaps I misunderstood you. But here all links on that page are blue, even the visited ones. I didn't see any green link there, the only green text that I can see there, are the comments in the code examples. PS: I'm using Firefox. Matheus.