Re: D Binding to GUI libraries

2018-10-22 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/22/18 1:58 AM, Neia Neutuladh wrote: Unity 7 and prior for the desktop use Nux, an OpenGL-based widget toolkit. Unity 8 and all mobile versions of Unity use Qt. The application set that Ubuntu shipped with Unity was, I think, heavier on the GTK+ side. Fascinating. I'm actually shocked b

Re: D Binding to GUI libraries

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/22/18 1:08 AM, Gerald wrote: On Monday, 22 October 2018 at 04:41:08 UTC, Nick Sabalausky (Abscissa) wrote: On 10/21/18 1:13 PM, Russel Winder wrote: [...] First of all, minor nitpick: Unless some bombshell news occurred that I managed to miss, Ubuntu pushes their own Unity, NOT Gnome.

Re: D alternative for node.js's socket.IO?

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 11:59 PM, Neia Neutuladh wrote: On Sun, 21 Oct 2018 23:05:06 -0400, Nick Sabalausky (Abscissa) wrote: I'm afraid I'm not familiar with socket.io, and the homepage doesn't seem to tell me much (it doesn't even say whether it uses TCP or UDP). But that said, in D, the gold-standard for

Re: D Binding to GUI libraries

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 1:29 PM, Russel Winder wrote: No, D should not forget DWT. It's one of the few (they only?) D GUI toolkit that has a native look and feel. Apart from GtkD on GTK+ systems, and dqml, QtE5, qtD, and dqt on Qt, and wxD on wxWidgets. Qt and wxWidgets pride themselves on being able to use

Re: D Binding to GUI libraries

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 1:13 PM, Russel Winder wrote: On Sun, 2018-10-21 at 04:15 -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: […] That's pure nonsense: It's Linux - unless one option actually goes away (KDE is still actively used and developed), then there's no such thing

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 7:36 AM, Andre Pany wrote: While talking about bindings, do not forget Delphi. It has still a good eco system. Combining Delphi's advanced Runtime reflection capabilities with D's advanced compile reflection capabilities opens this eco system. I created a proof of concept and the

Re: D alternative for node.js's socket.IO?

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 4:58 PM, Fleel wrote: On Sunday, 21 October 2018 at 20:41:41 UTC, JN wrote: On Sunday, 21 October 2018 at 20:14:46 UTC, Fleel wrote: Does anyone know of a good D alternative for the socket.IO server (https://socket.io)? I would like to transition my server from node.js to D, but I

Re: We need an internal keyword.

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/20/18 11:17 PM, 12345swordy wrote: So that classes can share some of their variables but not others in a module. IE. class A { internal int A; //This is shared in the module private int B; // But not this. } No need to reintroduce the "Friend" feature from cpp. I've always felt the sa

Re: Interesting Observation from JAXLondon

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 1:47 AM, Joakim wrote: Simple, C++ is increasingly seen as irrelevant by those choosing a new language, so D's real competition is now Go, Rust, Swift, Nim, Zig, etc. These are people who want to write "fast code fast," well except for Rust users, who value ownership more. Never

Re: D Binding to GUI libraries

2018-10-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/21/18 3:33 AM, Russel Winder wrote: On Sat, 2018-10-20 at 21:25 -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: I've heard a lot of very good things about GtkD, and honestly, I have no doubts about any of it. Unfortunately though, the main problem with GtkD is simply GTK i

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/20/18 6:28 AM, Gregor Mückl wrote: Even though web and mobile UIs seem to be the rage at the moment, I believe a solid support for desktop UIs is very important for a general purpose language, if it wants to be successful in the market. I think that may be doubly true in the case of D,

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/20/18 5:25 AM, Russel Winder wrote: On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: […] I periodically look at how I can make use of D for small projects. Most often, I shy away because I want to build a GUI and none of the libraries that I can find look mature

Re: Interesting Observation from JAXLondon

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/12/18 4:05 AM, Vijay Nayar wrote: But the D community has also been very receptive of changes to the language The community is. I don't feel like it's been true of the leadership for some years now (and I don't mean just W&A.) One thing that does concern me, is the avenues in which p

Re: automatically closing stale pull requests

2018-10-16 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/16/18 4:16 PM, notna wrote: another interesting discussion [1]... and old/stale pull requests are also discussed here now and then... not sure if this [2] is known to many ppl?! - [1] https://marc.info/?t=15392665871&r=1&w=2 - [2] https://github.com/probot/stale I've encountered st

Re: [OT] Is this a feature is any Linux terminal?

2018-10-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/15/18 2:00 AM, Nick Sabalausky (Abscissa) wrote: Unfortunately, Tilix doesn't appear to support using envvars from the current terminal in the custom command above (if that would even be possible), so I'll have to manually change SESSION_NAME_HERE to my KDevelop session name once per sess

Re: [OT] Is this a feature is any Linux terminal?

2018-10-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/14/18 10:31 PM, Gerald wrote: Tilix supports this. You can define a custom regex and then use the values extracted by the regex to launch an editor to load the file at the right line number. https://gnunn1.github.io/tilix-web/manual/customlinks/ The screenshot shows a configuration th

Re: [OT] Is this a feature is any Linux terminal?

2018-10-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/14/18 10:28 PM, Basile B. wrote: VTE can certainly do this. It's the library many people use to embed a terminal in their app (or to make terminals, like Tilix). You can look at the API to get a better idea of what's possible https://developer.gnome.org/vte/0.48/VteTerminal.html. Click

[OT] Is this a feature is any Linux terminal?

2018-10-14 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
Was just thinking about this: I've often liked the idea of having a terminal emulator built-into my code editor, so it could auto-highlight errors/etc and do jump-to-line on ANY variation of build command, without having to set up a custom build tool in the editor for "the is the exact command

Re: Deep nesting vs early returns

2018-10-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/04/2018 11:40 PM, rikki cattermole wrote: On 05/10/2018 8:23 AM, Nick Sabalausky (Abscissa) wrote: I was in college during the height of the Java craze, so my instructors highly recommended the deep nesting approach. This was because return statements are control-flow, and control-flow is

Re: Deep nesting vs early returns

2018-10-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/02/2018 02:14 PM, Andrei Alexandrescu wrote: Kate Gregory makes a good argument on something I've often commented in code reviews: https://youtu.be/n0Ak6xtVXno?t=2682 I was in college during the height of the Java craze, so my instructors highly recommended the deep nesting approach. Thi

Re: Warn on unused imports?

2018-10-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/26/2018 06:00 AM, Anonymouse wrote: On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature wrote: I'm playing with a branch of DMD that would warn on unused imports: Would just like to say that I love the idea and would use it immediately. Same here. Periodically, my import li

Re: Please don't do a DConf 2018, consider alternatives

2018-10-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/02/2018 02:26 AM, Joakim wrote: I'm sure some thought and planning is now going into the next DConf, so I'd like to make sure people are aware that the conference format that DConf uses is dying off, as explained here: https://marco.org/2018/01/17/end-of-conference-era People are now ex

Re: Warn on unused imports?

2018-10-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/01/2018 11:00 PM, Jonathan M Davis wrote: The very fact that we have -w causes problems, because it forks the language. e.g. anyone that doesn't compile a library with -wi or -w and then releases it with dub can cause problems when someone else uses that project and then _does_ compile wit

Re: Warn on unused imports?

2018-10-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/01/2018 04:58 PM, Jonathan M Davis wrote: On Monday, October 1, 2018 2:44:32 PM MDT Nick Sabalausky (Abscissa) via Digitalmars-d wrote: Nobody said anything about making them part of the build process. We're talking about them being included in the compiler, not about them being i

Re: Warn on unused imports?

2018-10-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/01/2018 03:32 PM, Jonathan M Davis wrote: On Monday, October 1, 2018 12:36:49 PM MDT Nick Sabalausky (Abscissa) via Digitalmars-d wrote: Yes, that's exactly what warnings are for. If people need to treat them differently than that (ex: C++), that's a failing of the language.

Re: Warn on unused imports?

2018-10-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/25/2018 09:13 PM, Jonathan M Davis wrote: IMHO, the only time that anything along the lines of a warning makes sense is when the programmer is proactively running a tool to specifically ask to be informed of a potential type of problem where they will then go look at each of them individual

Re: Warn on unused imports?

2018-09-27 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/26/2018 04:37 AM, Dejan Lekic wrote: On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature wrote: I'm playing with a branch of DMD that would warn on unused imports: I humbly believe this does not belong to the compiler. These sort of things belong to a static code analyser TOO

Re: D IDE

2018-09-26 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/26/2018 10:33 PM, Shachar Shemesh wrote: On 27/09/18 04:54, Nick Sabalausky (Abscissa) wrote: Man, I wish SOO much, that was true of my favorite editor (Programmer's Notepad 2). I love it, but it's a windows thing and has some issues under wine. Can you elaborate on what issues? Merely

Re: D IDE

2018-09-26 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/05/2018 01:34 PM, ShadoLight wrote: I sometimes wonder if the Vim/Emacs 'affectionados' spend so much time mastering their editors (which by all accounts have a steep learning curve), that they forgot that IDE development did not stagnate after they left! I sometimes wonder similar th

Re: D IDE

2018-09-26 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/05/2018 01:05 PM, Ecstatic Coder wrote: For instance, even for contract work, I use Geany for all my developments. And a portable IDE like Geany is especially useful when developping *crossplatform* C++ multimedia applications which must be edited and tested both on Windows, MacOS and L

Re: Rather D1 then D2

2018-09-25 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/22/2018 10:31 AM, Jonathan Marler wrote: On Saturday, 22 September 2018 at 13:25:27 UTC, rikki cattermole wrote: Then D isn't the right choice for you. I think it makes for a better community if we can be more welcoming, helpful a gracious instead of responding to criticism this way. Th

Re: How to correctly deal with dmd.conf with multiple dmd installations - [ref osx, brew, digger]

2018-09-25 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/25/2018 06:34 AM, aliak wrote: Alo, I'm wondering what’s the deal with dmd.conf and what’s the correct way to handle it with dmd installations. Basically, you want an appropriate, matching `dmd.conf` together with (ie, "in the same directory as") each `dmd` executable. No other `dmd

Re: Warn on unused imports?

2018-09-25 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/25/2018 09:14 AM, Jonathan M Davis wrote: On Tuesday, September 25, 2018 7:03:30 AM MDT FeepingCreature via Digitalmars-d wrote: I'm playing with a branch of DMD that would warn on unused imports: https://github.com/FeepingCreature/dmd/tree/feature/Issue-3507-warn-on-unu sed-imports Two

Re: phobo's std.file is completely broke!

2018-09-22 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/22/2018 04:46 PM, Jonathan Marler wrote: Decided to play around with this for a bit.  Made a "proof of concept" library: https://github.com/marler8997/longfiles It's just a prototype/exploration on the topic.  It allows you to include "stdx.longfiles" instead of "std.file" which will

Re: Jai compiles 80,000 lines of code in under a second

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/20/2018 07:13 PM, aliak wrote: On a related note: He also mentions some really cool compilation features like having compiler hooks that tell you when compilation is done, when executable and where it will be written so you can create your build recipe inside the program itself. Also al

Re: phobo's std.file is completely broke!

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 11:27 PM, Vladimir Panteleev wrote: On Thursday, 20 September 2018 at 03:25:05 UTC, Nick Sabalausky (Abscissa) wrote: On 09/19/2018 11:23 PM, Nick Sabalausky (Abscissa) wrote: rmdir(path); Obviously meant "rmdir(dir);" here. Editing mishap. and MAX_PATH instead of MAX_LENGTH,

Re: phobo's std.file is completely broke!

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 11:45 PM, Vladimir Panteleev wrote: On Thursday, 20 September 2018 at 03:23:36 UTC, Nick Sabalausky (Abscissa) wrote: (Not on a Win box at the moment.) I added the output of my test program to the gist: https://gist.github.com/CyberShadow/049cf06f4ec31b205dde4b0e3c12a986#file-out

Re: phobo's std.file is completely broke!

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/20/2018 03:59 AM, Nick Sabalausky (Abscissa) wrote: On 09/19/2018 11:15 PM, Vladimir Panteleev wrote: When the OS itself fails to properly deal with such files, I don't think D has any business in *facilitating* their creation by default. I used to be a pure Windows user for a long,

Re: phobo's std.file is completely broke!

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 11:15 PM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 06:11:22 UTC, Vladimir Panteleev wrote: One point of view is that the expected behavior is that the functions succeed. Another point of view is that Phobos should not allow programs to create files and director

Re: phobo's std.file is completely broke!

2018-09-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/20/2018 03:38 AM, Kagamin wrote: On Thursday, 20 September 2018 at 02:48:06 UTC, Nick Sabalausky (Abscissa) wrote: What drives me mad is when allegedly cross-platform tools deliberately propagate non-cross-platform quirks that could easily be abstracted away and pretend that's somehow "he

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 11:23 PM, Nick Sabalausky (Abscissa) wrote: rmdir(path); Obviously meant "rmdir(dir);" here. Editing mishap.

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 07:04 AM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: 2. Detect and reject any non-\\?\ path longer than MAX_PATH-12 bytes[5]. This is not a good criteria: relative paths whose pointing to objects whose absolute pa

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 01:49 PM, Neia Neutuladh wrote: On Wednesday, 19 September 2018 at 08:54:42 UTC, Vladimir Panteleev wrote: BTW, something follows from the above: write(`C:\` ~ (short path) ~  `con`) will fail but: write(`C:\` ~ (long path) ~ `con`) will succeed. This is just one issue I've not

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 02:33 AM, Jonathan Marler wrote: What drives me mad is when you have library writers who try to "protect" you from the underlying system by translating everything you do into what they "think" you're trying to do. What drives me mad is when allegedly cross-platform tools delibe

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 04:41 AM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 08:37:17 UTC, Nick Sabalausky (Abscissa) wrote: What's the other issue(s)? Essentially they boil down to "it is impossible to prove the algorithm is correct" (for both detecting when the path fix is needed, a

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 02:55 AM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 06:34:33 UTC, Nick Sabalausky (Abscissa) wrote: - Does it actually, necessarily perform those additional OS calls? We need to expand relative paths to absolute ones, for which we need to fetch the current dir

Re: phobo's std.file is completely broke!

2018-09-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 02:26 AM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 05:49:41 UTC, Nick Sabalausky (Abscissa) wrote: [...] Someone mentioned in this thread that .NET runtime does do the long-path workaround automatically. One thing we could do is copy EXACTLY what C# is doing

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/19/2018 12:04 AM, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 01:50:54 UTC, Nick Sabalausky (Abscissa) wrote: And at least for me, moving from Windows to Linux would have been a LOT harder if it weren't for the OS abstractions that are already in Phobos. It's one thing

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/17/2018 11:27 AM, Patrick Schluter wrote: On Monday, 17 September 2018 at 12:37:13 UTC, Temtaime wrote: It's problem with phobos. It should be able handle all the paths whatever length they have, on all the platforms without noising the user. Even with performance penalty, but it shoul

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/18/2018 09:46 PM, Jonathan M Davis wrote: On Tuesday, September 18, 2018 7:28:43 PM MDT Nick Sabalausky (Abscissa) via Digitalmars-d wrote: It's worth noting that the discussion made it very clear that Walter's viewpoint on the matter was based on his own misunderstanding (ie,

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 06:40 AM, Vladimir Panteleev wrote: On Saturday, 15 September 2018 at 10:05:26 UTC, Josphe Brigmo wrote: Also, windows 10 does not have this problem What do you mean by "windows 10"? Do you mean Explorer, the default file manager? According to MS docs: "Starting in Windows

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 08:14 PM, Jonathan M Davis wrote: The issue was reported in bugzilla quite some time ago. https://issues.dlang.org/show_bug.cgi?id=8967 However, while Walter's response on it basically indicates that we should just close it as "won't fix," we never actually did It's worth notin

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/18/2018 05:25 AM, Vladimir Panteleev wrote: On Tuesday, 18 September 2018 at 06:16:50 UTC, Ecstatic Coder wrote: I expect that calling the function F on system X will work the same as calling that same function on system Y. You ask for the impossible. I think it's safe to assume a ".

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/18/2018 06:14 PM, Bastiaan Veelo wrote: On Tuesday, 18 September 2018 at 19:57:09 UTC, Nick Sabalausky (Abscissa) wrote: Yes, the OP needs to file a bug report (and if he's already done so, then please post a link here for our reference). It’s an old issue, and the OP posted the link a b

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 08:09 PM, Vladimir Panteleev wrote: On Saturday, 15 September 2018 at 23:50:43 UTC, Josphe Brigmo wrote: [...] D is generally described as a system programming language. There is value in favoring a simple and obvious implementation ("do what I say") over going out of one's way

Re: phobo's std.file is completely broke!

2018-09-18 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 09:54 AM, tide wrote: On Friday, 14 September 2018 at 19:17:58 UTC, bachmeier wrote: On Friday, 14 September 2018 at 19:06:14 UTC, Josphe Brigmo wrote: For very long file names it is broke and every command fails. These paths are not all that long but over 256 limit. (For windows)

Re: phobo's std.file is completely broke!

2018-09-17 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 06:57 AM, Josphe Brigmo wrote: You are missing the point, MAX_PATH is more than just phobos. It's built in to the windows design. Windows enforces it. All ansi api calls are limited by MAX_PATH. The way to fix it is to use the wide api calls which are not limited or to use oth

Re: More fun with autodecoding

2018-09-16 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/15/2018 04:29 PM, Jonathan M Davis wrote: Adding any sort of Concepts feature to D would be very much at odds with DbI. I'm not very familiar with C++'s attempted approaches to concepts, so maybe we're thinking of two different things by "concepts", but I don't see why it would be at o

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-13 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/10/2018 11:13 PM, tide wrote: On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote: That's why PC sales keep dropping while mobile sales are now 6-7X that per year: This shouldn't be misunderstood as such, which I think you as misunderstanding it. The reason mobile sales are so hi

Re: More fun with autodecoding

2018-09-13 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/11/2018 09:06 AM, Steven Schveighoffer wrote: Then I found the true culprit was isForwardRange!R. This led me to requestion my sanity, and finally realized I forgot the empty function. This is one reason template-based interfaces like ranges should be required to declare themselves as

Re: rund users welcome

2018-09-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/09/2018 12:32 AM, Jonathan Marler wrote: On Sunday, 9 September 2018 at 03:33:49 UTC, Vladimir Panteleev wrote: - No --main, though that can probably be substituted with -main Yeah, I don't see any reason to duplicate the flag already supported by dmd.  Maybe there's a reason I'm not aw

Re: rund users welcome

2018-09-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/08/2018 12:24 AM, Jonathan Marler wrote: I've rewritten rdmd into a new tool called "rund" and have been using it for about 4 months. It runs about twice as fast making my workflow much "snappier". It also introduces a new feature called "source directives" where you can add special comme

Re: John Regehr on "Use of Assertions"

2018-09-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/05/2018 03:35 PM, Meta wrote: I think the only sane way to use asserts as an optimization guide is when the program will abort if the condition does not hold. That, to me, makes perfect sense, since you're basically telling the compiler "This condition must be true past this assertion

Re: This is why I don't use D.

2018-09-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/08/2018 08:43 AM, Guillaume Piolat wrote: We have something similar with dpldocs which builds docs lazily, and is now linked from code.dlang.org It's a matter of extending it with downloading toolchain and building. I can't speak for anyone else but it looks to me as a realistic way to

Re: This is why I don't use D.

2018-09-07 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/07/2018 10:29 AM, 0xEAB wrote: On Friday, 7 September 2018 at 08:12:05 UTC, Nick Sabalausky (Abscissa) wrote: Personally, I think that's a really good way to go. However, for awhile now, I've been starting to think: "Wouldn't it be awesome to have a packager manager that AUTOMATICALLY pic

Re: This is why I don't use D.

2018-09-07 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/06/2018 09:12 AM, Steven Schveighoffer wrote: The compiler doesn't change all that often, and when it does, it's usually a long deprecation cycle. Even with perfect backwards compatibility in the compiler, minimum compiler version will still tend to matter. Also, cherry-picking specifi

Re: This is why I don't use D.

2018-09-07 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/05/2018 05:49 PM, H. S. Teoh wrote: On Wed, Sep 05, 2018 at 04:40:19PM -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: [...] What we need is for DUB to quit pretending the compiler (and DUB itself, for that matter) isn't a dependency just like any other. I pointed thi

Re: This is why I don't use D.

2018-09-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/04/2018 09:58 PM, Jonathan M Davis wrote: On Tuesday, September 4, 2018 7:18:17 PM MDT James Blachly via Digitalmars-d wrote: Are you talking about this? https://github.com/clinei/3ddemo which hasn't been updated since February 2016? This is part of why it's sometimes been discussed t

Re: This thread on Hacker News terrifies me

2018-09-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/04/2018 06:35 PM, Walter Bright wrote: Another example I read on HackerNews today: "I recall that during their most recent s3 outage Amazon's status page was green across the board, because somehow all the assets that were supposed to be displayed when things went wrong were themselves h

Re: D IDE

2018-09-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/04/2018 04:00 PM, Jonathan M Davis wrote: On Tuesday, September 4, 2018 5:56:54 AM MDT ShadoLight via Digitalmars-d wrote: We work full-time for employers which, in my case, employs thousands of engineers - and as a result engineering principles are applied to everything - including tools.

Random thought: Alternative stuct

2018-09-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
We have classes and structs: Classes: - Default Storage: GC Heap - Indirection Overhead: Yes - Semantics: Reference - Passed By: Copying the Data's Address Structs: - Default Storage: Stack - Indirection Overhead: No - Semantics: Value - Passed By: Copying the Data (except where the compiler can

Half-baked thought: Out-of-process asserts

2018-09-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
It seems pretty well established around here that: 1. Doing anything after a process has entered an unknown state is dangerous, and the more activity, the more danger (Note also, the transition to an unknown state actually occurs *before* any assert which is intended to detect it.) 2. For pr

Re: D IDE

2018-09-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/03/2018 02:55 PM, Joakim wrote: On Monday, 3 September 2018 at 16:55:10 UTC, Jonathan M Davis wrote: But if you're ever expecting IDE support to be a top priority of many of the contributors, then you're going to be sorely disappointed. It's the sort of thing that we care about because we

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/03/2018 12:46 AM, H. S. Teoh wrote: On Sun, Sep 02, 2018 at 09:33:36PM -0700, H. S. Teoh wrote: [...] The reason I picked memory corruption is because it's a good illustration of how badly things can go wrong when code that is known to have programming bugs continue running unchecked. [..

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 09:20 PM, Walter Bright wrote: On 9/1/2018 8:18 PM, Nick Sabalausky (Abscissa) wrote: [...] My take on all this is people spend 5 minutes thinking about it and are confident they know it all. Wouldn't it be nice if we COULD do that? :) A few years back some hacker claimed the

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 07:17 PM, Gambler wrote: But in general, I believe the statement about comparative reliability of tech from 1970s is true. I'm perpetually impressed with is all the mainframe software that often runs mission-critical operations in places you would least expect. I suspect it may b

Re: John Regehr on "Use of Assertions"

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 04:15 PM, Walter Bright wrote: https://blog.regehr.org/archives/1091 This does make me think of one thing: Shouldn't assert expressions be required to be pure? (even if only weakly pure) Not sure how much practical problems that would create, but at least in theory it certain

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 03:47 PM, Everlast wrote: It's because programming is done completely wrong. All we do is program like it's 1952 all wrapped up in a nice box and bow tie. WE should have tools and a compiler design that all work interconnected with complete graphical interfaces that aren't based

Re: [OT] college

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 05:43 AM, Joakim wrote: Most will be out of business within a decade or two, as online learning takes their place. I kinda wish I could agree with that, but schools are too much of a sacred cow to be going anywhere anytime soon. And for that matter, the online ones still have to

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 02:06 AM, Joakim wrote: On Sunday, 2 September 2018 at 05:16:43 UTC, Nick Sabalausky (Abscissa) wrote: Smug as I may have been at the at the time, it wasn't until later I realized the REAL smart ones were the ones out partying, not the grads or the nerds like me. Why? Please d

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 12:21 AM, Jonathan M Davis wrote: The C APIs on the other hand require that you check the return value, and some of the C++ APIs require the same. Heh, yea, as horrifically awful as return value errors really are, I have to admit, with them, at least it's actually *possible* to

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/31/2018 07:47 PM, Jonathan M Davis wrote: However, many teachers really aren't great programmers. They aren't necessarily bad programmers, but unless they spent a bunch of time in industry before teaching, odds are that they don't have all of the software engineering skills that the studen

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 09:15 AM, Jonathan M Davis wrote: I don't know if any DVD players have ever used Java, but all Blu-ray players do require it, because unfortunately, the Blu-ray spec allows for the menus to be done via Java (presumably so that they can be fancier than what was possible on DVDs).

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/02/2018 12:53 AM, Jonathan M Davis wrote: Ouch. Seriously, seriously ouch. Heh, yea, well...that particular one was state party school, so, what y'gonna do? *shrug* Smug as I may have been at the at the time, it wasn't until later I realized the REAL smart ones were the ones out par

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 02:15 AM, Ola Fosheim Grøstad wrote: The root cause of bad software is that many programmers don't even have an education in CS or software engineering, or didn't do a good job while getting it! Meh, no. The root cause trifecta is: A. People not caring enough about their own

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 01:51 AM, rikki cattermole wrote: But in saying that, we had third year students starting out not understanding how cli arguments work so... How I wish that sort of thing surprised me ;) As part of the generation that grew up with BASIC on 80's home computers, part of my spa

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/31/2018 07:20 PM, H. S. Teoh wrote: The problem is that there is a disconnect between academia and the industry. The goal in academia is to produce new research, to find ground-breaking new theories that bring a lot of recognition and fame to the institution when published. It's the resea

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 05:06 PM, Ola Fosheim Grøstad wrote: If you have a specific context (like banking) then you can develop a software method that specifies how to build banking software, and repeat it, assuming that the banks you develop the method for are similar Of course, banking has changed q

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/31/2018 05:09 PM, H. S. Teoh wrote: It's precisely for this reason that the title "software engineer" makes me cringe on the one hand, and snicker on the other hand. I honestly cannot keep a straight face when using the word "engineering" to describe what a typical programmer does in the

Re: This thread on Hacker News terrifies me

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/31/2018 03:50 PM, Walter Bright wrote: https://news.ycombinator.com/item?id=17880722 Typical comments: "`assertAndContinue` crashes in dev and logs an error and keeps going in prod. Each time we want to verify a runtime assumption, we decide which type of assert to use. We prefer `asser

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 07:46 PM, Walter Bright wrote: On 9/1/2018 3:58 PM, Adam D. Ruppe wrote: On Saturday, 1 September 2018 at 22:10:27 UTC, Nick Sabalausky wrote: I've used StackOverflow. It's NOT a place for asking and answering questions. I generally agree, but the D tag on it isn't so bad since

Re: John Regehr on "Use of Assertions"

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 08:44 PM, Nick Sabalausky (Abscissa) wrote: You're both wrong. ;) Or actually, you're both right... That said, it IS a very interesting, well-written article.

Re: John Regehr on "Use of Assertions"

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 08:44 PM, Nick Sabalausky (Abscissa) wrote:    "Are Assertions Enabled in Production Code?"    "This is entirely situational."    "The question of whether it is better to stop or keep going when an internal bug is detected is not a straightforward one to answer." All in all,

Re: John Regehr on "Use of Assertions"

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 07:54 PM, Walter Bright wrote: On 9/1/2018 3:23 PM, Guillaume Boucher wrote: On Saturday, 1 September 2018 at 20:15:15 UTC, Walter Bright wrote: [John agrees with me.] [No, he doesn't.] [Yea-huh, he does.] You're both wrong. ;) Or actually, you're both right... There's a

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/22/2018 01:28 PM, H. S. Teoh wrote: On Wed, Aug 22, 2018 at 04:06:38PM +, Neia Neutuladh via Digitalmars-d wrote: [...] I'm a little paranoid about centralized services like Github. I'd prefer a federated service for source control / project management, where you could easily fork pro

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/21/2018 10:18 AM, Seb wrote: There are a few good points to move D.learn to Stack Overflow and that's actually one thing that we have talked about a few times and somehow never has happened. In the D survey there was a 2:1 "consensus" for StackOverflow. Eeew, god no. That would be HOR

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/31/2018 03:28 PM, tide wrote: Don't use a NNTP client, I prefer to just use a browser. For many of us it's the opposite. If you prefer to use a browser then you're free to keep using it. So you've never posted a snippet of code on here? I honestly doubt that. Syntax formatting is us

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/21/2018 05:41 PM, tide wrote: What about if you accidentially press a button that posts the comment? Then the world ends and everybody dies horribly. Erm...wait, I mean: You post a follow-up and move on. Why can't syntax formatting be implemented, does anyone disagree that is a usel

Re: Engine of forum

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 08/20/2018 11:42 PM, Ali wrote: Every now and then someone new to D comes and ask, why arent we using better forum software. There *is* better forum software than what they're used to using. *MUCH* better. It's called Thunderbird. :)

Re: Dicebot on leaving D: It is anarchy driven development in all its glory.

2018-09-01 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 09/01/2018 07:12 AM, Chris wrote: Hope is usually the last thing to die. But one has to be wise enough to see that sometimes there is nothing one can do. As things are now, for me personally D is no longer an option, because of simple basic things, like autodecode, a flaw that will be ther

  1   2   3   4   >