Re: Thin UTF8 string wrapper

2019-12-06 Thread Jonathan Marler via Digitalmars-d-learn
On Friday, 6 December 2019 at 16:48:21 UTC, Joseph Rushton Wakeling wrote: Hello folks, I have a use-case that involves wanting to create a thin struct wrapper of underlying string data (the idea is to have a type that guarantees that the string has certain desirable properties). The

Re: Any 3D Game or Engine with examples/demos which just work (compile) out of the box on linux ?

2019-10-20 Thread Jonathan Marler via Digitalmars-d-learn
On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş wrote: On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote: Already >1 year I consider to move from C++ to Dlang or to Rust in my hobby game development (mostly based on physical simulations

Re: Is betterC affect to compile time?

2019-07-25 Thread Jonathan Marler via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:46:48 UTC, Oleg B wrote: On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's fundamental idea or temporary implementation? Yes it is very sad.

Re: Mixin mangled name

2019-07-01 Thread Jonathan Marler via Digitalmars-d-learn
On Monday, 1 July 2019 at 19:40:09 UTC, Andrey wrote: Hello, Is it possible to mixin in code a mangled name of some entity so that compiler didn't emit undefined symbol error? For example mangled function name or template parameter? If you've got undefined symbol "foo", you could just add

Re: make C is scriptable like D

2019-06-20 Thread Jonathan Marler via Digitalmars-d-learn
On Thursday, 20 June 2019 at 06:20:17 UTC, dangbinghoo wrote: hi there, a funny thing: $ cat rgcc #!/bin/sh cf=$@ mycf=__`echo $cf|xargs basename` cat $cf | sed '1d' > ${mycf} gcc ${mycf} -o a.out rm ${mycf} ./a.out $ cat test.c #!/home/user/rgcc #include

dmd -nodefaultlibs?

2019-05-21 Thread Jonathan Marler via Digitalmars-d-learn
Is there a way to prevent dmd from adding any default libraries to its linker command? Something equivalent to "-nodefaultlibs" from gcc? https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html I'd still like to use the dmd.conf file, so I don't want to use "-conf="

Re: D Logic bug

2018-10-11 Thread Jonathan Marler via Digitalmars-d
On Thursday, 11 October 2018 at 23:29:05 UTC, Steven Schveighoffer wrote: On 10/11/18 7:17 PM, Jonathan Marler wrote: I had a look at the table again, looks like the ternary operator is on there, just called the "conditional operator".  And to clarify, D's operator precedence is close to

Re: D Logic bug

2018-10-11 Thread Jonathan Marler via Digitalmars-d
On Thursday, 11 October 2018 at 21:57:00 UTC, Jonathan M Davis wrote: On Thursday, October 11, 2018 1:09:14 PM MDT Jonathan Marler via Digitalmars-d wrote: On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson wrote: > Took me about an hour to track this one down! > > A + (B

Re: D Logic bug

2018-10-11 Thread Jonathan Marler via Digitalmars-d
On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson wrote: Took me about an hour to track this one down! A + (B == 0) ? 0 : C; D is evaluating it as (A + (B == 0)) ? 0 : C; The whole point of the parenthesis was to associate. I usually explicitly associate precisely because of

Re: Yet another binding generator (WIP)

2018-10-01 Thread Jonathan Marler via Digitalmars-d
On Monday, 1 October 2018 at 13:51:10 UTC, evilrat wrote: Hi, Early access program is now live! Limited offer! Preorder until 12.31.2017 BC and you will receive* unique pet - "Cute Space Hamster"! !! *(Limited quantity in stock) [...] Based on clang? I approve. I'll have to try it out

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

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 22 September 2018 at 21:04:04 UTC, Vladimir Panteleev wrote: On Saturday, 22 September 2018 at 20:46:27 UTC, Jonathan Marler wrote: Decided to play around with this for a bit. Made a "proof of concept" library: I suggest using GetFullPathNameW instead of GetCurrentDirectory +

Re: Rather D1 then D2

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote: On Saturday, 22 September 2018 at 20:40:14 UTC, Jonathan Marler wrote: On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote: [...] That works for types but wouldn't work for keywords. Keywords have special meaning in the

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

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Thursday, 20 September 2018 at 19:49:01 UTC, Nick Sabalausky (Abscissa) wrote: 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

Re: Rather D1 then D2

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote: On Saturday, 22 September 2018 at 15:45:09 UTC, Jonathan Marler wrote: On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote: On Saturday, 22 September 2018 at 14:31:20 UTC, Jonathan Marler wrote: On Saturday, 22 September

Re: Rather D1 then D2

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 22 September 2018 at 15:25:32 UTC, aberba wrote: On Saturday, 22 September 2018 at 14:31:20 UTC, 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

Re: Rather D1 then D2

2018-09-22 Thread Jonathan Marler via Digitalmars-d
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. This is someone who saw enough potential with D

Re: Rather D1 then D2

2018-09-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 22 September 2018 at 08:48:37 UTC, Nemanja Borić wrote: On Friday, 21 September 2018 at 21:07:57 UTC, Jonathan M Davis wrote: [...] Sociomantic "maintains" (well, much more in the past than today) D1 compiler and you can find latest releases here (Ubuntu):

Re: rund users welcome

2018-09-20 Thread Jonathan Marler via Digitalmars-d
On Thursday, 20 September 2018 at 23:19:17 UTC, aliak wrote: Somewhat along these lines, I just found a watched a video by a guy who's been working on a programming language called Jai (it has some awesome concepts) and one of the sections he went in to about source files building themselves I

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

2018-09-19 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 19 September 2018 at 06:11:22 UTC, Vladimir Panteleev wrote: On Wednesday, 19 September 2018 at 06:05:38 UTC, Vladimir Panteleev wrote: [...] One more thing: There is the argument that the expected behavior of Phobos functions creating filesystems objects with long paths is to

Re: Why the hell do exceptions give error in the library rather than the user code?

2018-09-14 Thread Jonathan Marler via Digitalmars-d
On Friday, 14 September 2018 at 14:34:36 UTC, Josphe Brigmo wrote: std.file.FileException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\file.d(3153): It is very annoying when the only error info I have is pointing to code in a library which tells me absolutely nothing about where the error

Re: filtered imports

2018-09-13 Thread Jonathan Marler via Digitalmars-d
On Thursday, 13 September 2018 at 17:54:03 UTC, Vladimir Panteleev wrote: On Thursday, 13 September 2018 at 16:23:21 UTC, Jonathan Marler wrote: The immediate example is to resolve symbol conflicts. I've ran into this a few times: import std.stdio; import std.file; void main(string[] args)

Re: filtered imports

2018-09-13 Thread Jonathan Marler via Digitalmars-d
On Thursday, 13 September 2018 at 11:58:40 UTC, rikki cattermole wrote: On 13/09/2018 11:54 PM, Jonathan Marler wrote: "Selective imports" limit the symbols imported from a module by providing a list of all the symbols to include: import std.stdio : writeln, writefln; The complement of this

filtered imports

2018-09-13 Thread Jonathan Marler via Digitalmars-d
"Selective imports" limit the symbols imported from a module by providing a list of all the symbols to include: import std.stdio : writeln, writefln; The complement of this would be a "Filtered import", meaning, import all the symbols except the ones in the provided list. I imagine the

Re: rund users welcome

2018-09-12 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 12 September 2018 at 10:06:29 UTC, aliak wrote: On Wednesday, 12 September 2018 at 01:11:59 UTC, Jonathan Marler wrote: On Tuesday, 11 September 2018 at 19:55:33 UTC, Andre Pany wrote: On Saturday, 8 September 2018 at 04:24:20 UTC, Jonathan Marler wrote: I've rewritten rdmd into

Re: rund users welcome

2018-09-11 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 11 September 2018 at 19:55:33 UTC, Andre Pany wrote: On Saturday, 8 September 2018 at 04:24:20 UTC, 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

Re: rund users welcome

2018-09-11 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 11 September 2018 at 17:36:09 UTC, Kagamin wrote: On Tuesday, 11 September 2018 at 15:20:51 UTC, Jonathan Marler wrote: The Posix/Windows 10 cases seem fine, but Windows <10 is not great. MSDN says symbolic links are supported since Vista. Yeah but I think you need Admin

Re: rund users welcome

2018-09-11 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 11 September 2018 at 08:53:46 UTC, Kagamin wrote: On Saturday, 8 September 2018 at 04:24:20 UTC, Jonathan Marler wrote: https://github.com/marler8997/rund I have an idea how to push shebang to userland and make it crossplatform: if, say, `rund -install prog.d` would copy/link

Re: rund users welcome

2018-09-10 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 11 September 2018 at 01:02:30 UTC, Vladimir Panteleev wrote: On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler wrote: - -od (e.g. for -od.) Hmmm, yeah it looks like rund is currently overriding this. I've attempted a fix but it's hard to cover all the different

Re: rund users welcome

2018-09-09 Thread Jonathan Marler via Digitalmars-d
On Sunday, 9 September 2018 at 09:55:19 UTC, Vladimir Panteleev wrote: On Sunday, 9 September 2018 at 04:32:32 UTC, Jonathan Marler - The .d extension is not implied, like for dmd/rdmd I haven't come up with any reasons to support this. Maybe you can enlighten me? "rund prog" is shorter

Re: rund users welcome

2018-09-08 Thread Jonathan Marler via Digitalmars-d
On Sunday, 9 September 2018 at 03:33:49 UTC, Vladimir Panteleev wrote: On Saturday, 8 September 2018 at 04:24:20 UTC, 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

rund users welcome

2018-09-07 Thread Jonathan Marler via Digitalmars-d
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 comments to the beginning of your D code to set

Re: -op can be quite strange

2018-09-01 Thread Jonathan Marler via Digitalmars-d
On Saturday, 1 September 2018 at 23:29:01 UTC, Nicholas Wilson wrote: On Saturday, 1 September 2018 at 14:48:55 UTC, Jonathan Marler wrote: Note that we would want this to be a new option so as not to break anyone depending on "-op" semantics. Maybe "-om" for "output path based on 'Module'

-op can be quite strange

2018-09-01 Thread Jonathan Marler via Digitalmars-d
The -od (output directory) and -op (perserve source paths) work great when you're compiling multiple modules in a single invocation. For example, say we have the following: /foolib/src/foo/bar.d /myapp/src/main.d Current Directory: /myapp ``` dmd -I=../foolib/src -I=src -od=obj -op -c

Re: Embrace the from template?

2018-08-25 Thread Jonathan Marler via Digitalmars-d
On Saturday, 25 August 2018 at 09:30:27 UTC, Jonathan M Davis wrote: On Saturday, August 25, 2018 2:02:51 AM MDT Jonathan Marler via Digitalmars- d wrote: [...] Honestly, I don't want to be doing _anything_ like from with _any_ syntax. It's not just a question of from itself being too long

Re: Embrace the from template?

2018-08-25 Thread Jonathan Marler via Digitalmars-d
On Saturday, 25 August 2018 at 04:25:56 UTC, Jonathan M Davis wrote: On Friday, August 24, 2018 7:03:37 PM MDT Jonathan Marler via Digitalmars-d wrote: > What uses does this actually have, I only see one example > from the article and it is an oversimplistic example that > ef

Re: Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
On Saturday, 25 August 2018 at 00:40:54 UTC, tide wrote: On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler wrote: Ever since I read https://dlang.org/blog/2017/02/13/a-new-import-idiom/ I've very much enjoyed using the new `from` template. It unlocks new idioms in D and have been so

Re: Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
On Friday, 24 August 2018 at 20:36:06 UTC, Seb wrote: On Friday, 24 August 2018 at 20:04:22 UTC, Jonathan Marler wrote: I'd gladly fix it but alas, my pull requests are ignored :( They aren't! It's just that sometimes the review queue is pretty full. I have told you before that your

Re: Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
On Friday, 24 August 2018 at 18:34:20 UTC, Daniel N wrote:I don't use dub myself. On Friday, 24 August 2018 at 18:34:20 UTC, Daniel N wrote: FYI Andrei has an open pull request: https://github.com/dlang/druntime/pull/1756 Oh well I guess great minds think alike :) Too bad it's been stalled

Re: Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
On Friday, 24 August 2018 at 10:58:29 UTC, aliak wrote: On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler wrote: Ever since I read https://dlang.org/blog/2017/02/13/a-new-import-idiom/ I've very much enjoyed using the new `from` template. It unlocks new idioms in D and have been so

Re: Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
On Friday, 24 August 2018 at 12:06:15 UTC, Anton Fediushin wrote: On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler wrote: [...] There's no reason to mess with `object.d` or add it to phobos. Just make a dub package and use it! I just published it on the dub registry in public

Embrace the from template?

2018-08-24 Thread Jonathan Marler via Digitalmars-d
Ever since I read https://dlang.org/blog/2017/02/13/a-new-import-idiom/ I've very much enjoyed using the new `from` template. It unlocks new idioms in D and have been so useful that I thought it might be a good addition to the core language. I've found that having it in a different place in

Re: reduxed - Redux for D

2018-08-23 Thread Jonathan Marler via Digitalmars-d-announce
On Thursday, 23 August 2018 at 19:48:19 UTC, Robert burner Schadek wrote: It is still rough around the corners and https://issues.dlang.org/show_bug.cgi?id=19084 gives me somewhat of a hard time, but give it try and scream at me because it is not nogc. I've posted a comment on issue 19084

Re: [OT] Leverage Points

2018-08-23 Thread Jonathan Marler via Digitalmars-d
On Saturday, 18 August 2018 at 13:33:43 UTC, Andrei Alexandrescu wrote: A friend recommended this article: http://donellameadows.org/archives/leverage-points-places-to-intervene-in-a-system/ I found it awesome and would recommend to anyone in this community. Worth a close read - no skimming,

Re: [OT] Leverage Points

2018-08-19 Thread Jonathan Marler via Digitalmars-d
On Saturday, 18 August 2018 at 22:20:57 UTC, Walter Bright wrote: On 8/18/2018 9:59 AM, Jonathan Marler wrote: In your mind, what defines the D language's level of success? It no longer needs me or Andrei. Yes, I think this state would be a good indicator of success. This requires

Re: [OT] Leverage Points

2018-08-18 Thread Jonathan Marler via Digitalmars-d
On Saturday, 18 August 2018 at 13:33:43 UTC, Andrei Alexandrescu wrote: A friend recommended this article: http://donellameadows.org/archives/leverage-points-places-to-intervene-in-a-system/ I found it awesome and would recommend to anyone in this community. Worth a close read - no skimming,

Re: ./install.sh dmd broken?

2018-08-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 10 August 2018 at 13:19:21 UTC, Jean-Louis Leroy wrote: jll@euclid:~/dlang$ ./install.sh dmd Downloading and unpacking http://downloads.dlang.org/releases/2.x/2.081.1/dmd.2.081.1.linux.tar.xz # 100.0% Invalid

Re: Implement a file system for use in embedded systems

2018-08-05 Thread Jonathan Marler via Digitalmars-d
On Sunday, 5 August 2018 at 05:53:20 UTC, Mike Franklin wrote: On Saturday, 4 August 2018 at 18:24:28 UTC, B Krishnan Iyer wrote: I had some questions regarding the project and also needed some pointers to get started with the project. Also, more it would be great if more description of the

Re: string literal string and immutable(char)* overload ambiguity

2018-08-04 Thread Jonathan Marler via Digitalmars-d
On Saturday, 4 August 2018 at 12:16:00 UTC, Steven Schveighoffer wrote: On 8/3/18 10:26 AM, Jonathan Marler wrote: On Tuesday, 31 July 2018 at 15:07:04 UTC, Steven Schveighoffer wrote: On 7/31/18 10:13 AM, Nicholas Wilson wrote: [...] Absolutely, I didn't realize this was an ambiguity. It

Re: skinny delegates

2018-08-03 Thread Jonathan Marler via Digitalmars-d
On Friday, 3 August 2018 at 17:34:47 UTC, kinke wrote: On Friday, 3 August 2018 at 16:46:53 UTC, Jonathan Marler wrote: [...] [...] You're right, thanks for elaborting.

Re: skinny delegates

2018-08-03 Thread Jonathan Marler via Digitalmars-d
On Friday, 3 August 2018 at 16:19:04 UTC, kinke wrote: On Friday, 3 August 2018 at 14:46:59 UTC, Jonathan Marler wrote: After thinking about it more I suppose it wouldn't be that complicated to implement. For delegate literals, you already need to gather a list of all the data you need to put

Re: skinny delegates

2018-08-03 Thread Jonathan Marler via Digitalmars-d
On Thursday, 2 August 2018 at 17:21:47 UTC, Steven Schveighoffer wrote: On 8/2/18 12:21 PM, Jonathan Marler wrote: On Monday, 30 July 2018 at 21:02:56 UTC, Steven Schveighoffer wrote: Would it be a valid optimization to have D remove the requirement for allocation when it can determine that

Re: string literal string and immutable(char)* overload ambiguity

2018-08-03 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 31 July 2018 at 15:07:04 UTC, Steven Schveighoffer wrote: On 7/31/18 10:13 AM, Nicholas Wilson wrote: is there any particular reason why void foo(string a) {} void foo(immutable(char)* b) {} void bar() {     foo("baz"); } result in Error: foo called with argument types (string)

Re: skinny delegates

2018-08-02 Thread Jonathan Marler via Digitalmars-d
On Thursday, 2 August 2018 at 16:21:58 UTC, Jonathan Marler wrote: On Monday, 30 July 2018 at 21:02:56 UTC, Steven Schveighoffer wrote: Would it be a valid optimization to have D remove the requirement for allocation when it can determine that the entire data structure of the item in question

Re: skinny delegates

2018-08-02 Thread Jonathan Marler via Digitalmars-d
On Monday, 30 July 2018 at 21:02:56 UTC, Steven Schveighoffer wrote: Would it be a valid optimization to have D remove the requirement for allocation when it can determine that the entire data structure of the item in question is an rvalue, and would fit into the data pointer part of the

Re: Way to override/overload D’s runtime assertions to use custom handlers?

2018-07-25 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 25 July 2018 at 15:24:50 UTC, Alexander Nicholi wrote: Hello, A project I’m helping develop mixes D code along with C and C++, and in the latter two languages we have custom macros that print things the way we need to, along with app-specific cleanup tasks before halting the

Re: DIP 1011--extern(delegate)--Preliminary Review Round 1

2018-07-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 21 July 2018 at 17:54:17 UTC, soolaïman wrote: I know this one year old already but the DIP is still in formal review. [...] This doesn't work because the ABI of a normal function is NOT THE SAME as the ABI of a delegate. That's the only reason the DIP exists is to solve this

Re: Completely Remove C Runtime with DMD for win32

2018-07-16 Thread Jonathan Marler via Digitalmars-d
On Sunday, 15 July 2018 at 20:29:29 UTC, tcb wrote: I've been trying to compile a trivial program (extern C int main() {return 0;}) without linking parts of the C runtime with no success. I compile with dmd -debuglib= -defaultlib= -v -L=/INFORMATION -betterC but optlink shows a lot of things

Re: A Case for Oxidation: A potential missed opportunity for D

2018-06-29 Thread Jonathan Marler via Digitalmars-d
On Friday, 29 June 2018 at 09:25:08 UTC, Mike Franklin wrote: Please allow me to bring your attention to an interesting presentation about choosing a modern programming language for writing operating systems: https://www.youtube.com/watch?v=cDFSrVhnZKo It's a good talk and probably worth

Re: What's happening with the `in` storage class

2018-06-09 Thread Jonathan Marler via Digitalmars-d
On Saturday, 9 June 2018 at 07:40:08 UTC, Mike Franklin wrote: On Saturday, 9 June 2018 at 07:26:02 UTC, Walter Bright wrote: Your time is valuable, too, and while I'm not going to tell you want to work on, I'd prefer something more important. If that's how you feel then I clearly don't

Re: Tiny D suitable for embedded JIT

2018-05-24 Thread Jonathan Marler via Digitalmars-d
On Thursday, 24 May 2018 at 20:22:15 UTC, Dibyendu Majumdar wrote: On Wednesday, 23 May 2018 at 18:49:05 UTC, Dibyendu Majumdar wrote: The ultimate goal is to have JIT library that is small, has fast compilation, and generates reasonable code (i.e. some form of global register allocation). The

Re: Tiny D suitable for embedded JIT

2018-05-23 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 23 May 2018 at 18:49:05 UTC, Dibyendu Majumdar wrote: Now that D has a better C option I was wondering if it is possible to create a small subset of D that can be used as embedded JIT library. I would like to trim the language to a small subset of D/C - only primitive types and

Re: Support alias this in module scope?

2018-05-23 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 23 May 2018 at 03:44:36 UTC, Manu wrote: If we can use `alias this` to mirror an entire C++ namespace into the location we want (ie, the scope immediately outside the C++ namespace!!), then one sanitary line would make the problem quite more tolerable: extern(C++, FuckOff) {

Re: CI buildbots

2018-05-22 Thread Jonathan Marler via Digitalmars-d
On Monday, 21 May 2018 at 22:21:34 UTC, Manu wrote: On 21 May 2018 at 09:22, Jonathan Marler via Digitalmars-d <digitalmars-d@puremagic.com> wrote: On Monday, 21 May 2018 at 04:46:15 UTC, Manu wrote: This CI situation with the DMD/druntime repos is not okay. It takes ages... *

Re: CI buildbots

2018-05-21 Thread Jonathan Marler via Digitalmars-d
On Monday, 21 May 2018 at 04:46:15 UTC, Manu wrote: This CI situation with the DMD/druntime repos is not okay. It takes ages... **hours** sometimes, for CI to complete. It's all this 'auto-tester' one, which seems to lock up on the last few tests. This makes DMD is a rather unenjoyable

Re: DIP 1011 library alternative

2018-05-15 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 15 May 2018 at 21:25:05 UTC, Andrei Alexandrescu wrote: Hello, I was reviewing again DIP 1011 and investigated a library solution. That led to https://gist.github.com/run-dlang/18845c9df3d73e45c945feaccfebfcdc It builds on the opening examples in:

Re: DIP 1011 library alternative

2018-05-15 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 15 May 2018 at 21:25:05 UTC, Andrei Alexandrescu wrote: Hello, I was reviewing again DIP 1011 and investigated a library solution. That led to https://gist.github.com/run-dlang/18845c9df3d73e45c945feaccfebfcdc It builds on the opening examples in:

Re: Bugzilla & PR sprint on the first weekend of every month

2018-05-09 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 8 May 2018 at 18:48:15 UTC, Seb wrote: What do you guys think about having a dedicated "Bugzilla & PR sprint" at the first weekend of very month? We could organize this a bit by posting the currently "hot" bugs a few days ahead and also make sure that there are plenty of

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 23:36:46 UTC, H. S. Teoh wrote: On Fri, Apr 13, 2018 at 11:00:20PM +, Jonathan Marler via Digitalmars-d wrote: [...] @JonathanDavis, the original post goes through an example where you won't get a compile-time or link-time error...it results in a very bad

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 22:29:25 UTC, Steven Schveighoffer wrote: On 4/13/18 5:57 PM, Jonathan M Davis wrote: On Friday, April 13, 2018 16:15:21 Steven Schveighoffer via Digitalmars-d I don't know if the compiler can determine if a version statement affects the layout, I suppose it

Re: D Library Breakage

2018-04-13 Thread Jonathan Marler via Digitalmars-d
On Friday, 13 April 2018 at 10:47:18 UTC, Rene Zwanenburg wrote: On Friday, 13 April 2018 at 05:31:25 UTC, Jesse Phillips wrote: Well if DIP1000 isn't on by default I don't think Phobos should be compiled with it. I think that the version issue is not unique to D and would be good to

D Library Breakage

2018-04-12 Thread Jonathan Marler via Digitalmars-d
Currently phobos is going through a transition where DIP 1000 is being enabled. This presents a unique problem because when DIP 1000 is enabled, it will cause certain functions to be mangled differently. This means that if a module in phobos was compiled with DIP 1000 enabled and you don't

Re: D compiles fast, right? Right??

2018-04-04 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 4 April 2018 at 20:29:19 UTC, Stefan Koch wrote: On Wednesday, 4 April 2018 at 20:04:04 UTC, Jack Stouffer wrote: On Wednesday, 4 April 2018 at 01:08:48 UTC, Andrei Alexandrescu wrote: Exactly, which is why I'm insisting this - and not compiler benchmarking, let alone idle

Re: D compiles fast, right? Right??

2018-04-03 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 3 April 2018 at 23:29:34 UTC, Atila Neves wrote: On Tuesday, 3 April 2018 at 19:07:54 UTC, Jonathan Marler wrote: On Tuesday, 3 April 2018 at 10:24:15 UTC, Atila Neves wrote: On Monday, 2 April 2018 at 18:52:14 UTC, Jonathan Marler wrote: You still missed my point. I got

Re: D compiles fast, right? Right??

2018-04-03 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 3 April 2018 at 10:24:15 UTC, Atila Neves wrote: On Monday, 2 April 2018 at 18:52:14 UTC, Jonathan Marler wrote: My point was that GO's path library is very different from dlang's std.path library. It has an order of magnitude less code so the point was that you're comparing a

Re: D compiles fast, right? Right??

2018-04-02 Thread Jonathan Marler via Digitalmars-d
On Monday, 2 April 2018 at 12:33:37 UTC, Atila Neves wrote: On Friday, 30 March 2018 at 16:41:42 UTC, Jonathan Marler wrote: Seems like you're comparing apples to oranges. No, I'm comparing one type of apple to another with regards to weight in my shopping bag before I've even taken a bite.

Re: D compiles fast, right? Right??

2018-03-31 Thread Jonathan Marler via Digitalmars-d
On Saturday, 31 March 2018 at 21:37:13 UTC, Jonathan M Davis wrote: On Saturday, March 31, 2018 08:28:31 Jonathan Marler via Digitalmars-d wrote: On Friday, 30 March 2018 at 20:17:39 UTC, Andrei Alexandrescu wrote: > On 3/30/18 12:12 PM, Atila Neves wrote: >> Fast code fast, they sa

Re: D compiles fast, right? Right??

2018-03-31 Thread Jonathan Marler via Digitalmars-d
On Friday, 30 March 2018 at 20:17:39 UTC, Andrei Alexandrescu wrote: On 3/30/18 12:12 PM, Atila Neves wrote: Fast code fast, they said. It'll be fun, they said. Here's a D file:     import std.path; Yep, that's all there is to it. Let's compile it on my laptop:     /tmp % time dmd -c 

Re: D compiles fast, right? Right??

2018-03-30 Thread Jonathan Marler via Digitalmars-d
On Friday, 30 March 2018 at 16:12:44 UTC, Atila Neves wrote: Fast code fast, they said. It'll be fun, they said. Here's a D file: import std.path; Yep, that's all there is to it. Let's compile it on my laptop: /tmp % time dmd -c foo.d dmd -c foo.d 0.12s user 0.02s system 98%

Re: dmd -unittest= (same syntax as -i)

2018-03-16 Thread Jonathan Marler via Digitalmars-d
On Friday, 16 March 2018 at 07:47:31 UTC, Johannes Pfau wrote: Am Thu, 15 Mar 2018 23:21:42 + schrieb Jonathan Marler: On Thursday, 15 March 2018 at 23:11:41 UTC, Johannes Pfau wrote: Am Wed, 14 Mar 2018 14:22:01 -0700 schrieb Timothee Cour: [...] And then we'll have to add yet

Re: dmd -unittest= (same syntax as -i)

2018-03-15 Thread Jonathan Marler via Digitalmars-d
On Thursday, 15 March 2018 at 23:11:41 UTC, Johannes Pfau wrote: Am Wed, 14 Mar 2018 14:22:01 -0700 schrieb Timothee Cour: [...] And then we'll have to add yet another "-import" switch for DLL support. Now we have 3 switches doing essentially the same: Telling the compiler which modules

Re: dmd -unittest= (same syntax as -i)

2018-03-15 Thread Jonathan Marler via Digitalmars-d
On Thursday, 15 March 2018 at 12:14:12 UTC, Jacob Carlborg wrote: On Thursday, 15 March 2018 at 05:22:45 UTC, Seb wrote: Hmm how would this solve the StdUnittest use case? I.e. that templated phobos unittests and private unittest symbols are compiled into the users unittests? See also:

Re: dmd -unittest= (same syntax as -i)

2018-03-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 March 2018 at 21:22:01 UTC, Timothee Cour wrote: would a PR for `dmd -unittest= (same syntax as -i)` be welcome? wouldn't that avoid all the complicatiosn with version(StdUnittest) ? eg use case: # compile with unittests just for package foo (excluding subpackage foo.bar)

Re: Special Code String for mixins

2018-03-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 15 March 2017 at 13:50:28 UTC, Inquie wrote: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. How bout, instead, we have a special code string similar to a multiline string that allows us to represent valid D code. The compiler

Re: template auto value

2018-03-05 Thread Jonathan Marler via Digitalmars-d
On Monday, 5 March 2018 at 13:03:50 UTC, Steven Schveighoffer wrote: On 3/2/18 8:49 PM, Jonathan Marler wrote: On Saturday, 3 March 2018 at 00:20:14 UTC, H. S. Teoh wrote: On Fri, Mar 02, 2018 at 11:51:08PM +, Jonathan Marler via Digitalmars-d wrote: [...] Not true: template

Re: State of D: The survey is killing man, way too much

2018-03-03 Thread Jonathan Marler via Digitalmars-d
On Saturday, 3 March 2018 at 17:42:25 UTC, David Gileadi wrote: On 3/3/18 8:08 AM, 0x wrote: The D survey is killing maan! Those are lots of questions in there If I ever get hold of the people behind it... Is it a coincidence that your user handle is "negative one"? ;) He's

Re: template auto value

2018-03-02 Thread Jonathan Marler via Digitalmars-d
On Saturday, 3 March 2018 at 00:20:14 UTC, H. S. Teoh wrote: On Fri, Mar 02, 2018 at 11:51:08PM +, Jonathan Marler via Digitalmars-d wrote: [...] Not true: template counterexample(alias T) {} int x; string s; alias U = counterexample!x; // OK

template auto value

2018-03-02 Thread Jonathan Marler via Digitalmars-d
I believe I found small hole in template parameter semantics. I've summarized it here (https://github.com/marler8997/dlangfeatures#template-auto-value-parameter). Wanted to get feedback before I look into creating a PR for it. -- COPY/PASTED from

Re: -libpath?

2018-02-21 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 21 February 2018 at 04:07:38 UTC, Mike Franklin wrote: On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific

Re: -libpath?

2018-02-20 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific flags, i.e. GCC: -L-L/usr/lib MSVC: -L-libpath:C:\mylibs OPTLINK:

Re: How to represent multiple files in a forum post?

2018-02-18 Thread Jonathan Marler via Digitalmars-d
On Sunday, 18 February 2018 at 23:46:05 UTC, Sönke Ludwig wrote: Am 14.02.2018 um 19:33 schrieb Jonathan Marler: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? Why not multipart/mixed? Since this is NNTP based, wouldn't

Re: How to represent multiple files in a forum post?

2018-02-18 Thread Jonathan Marler via Digitalmars-d
On Monday, 19 February 2018 at 01:26:43 UTC, Jonathan M Davis wrote: Okay. Maybe, I'm dumb, but what is the point of all of this? Why would any kind of standard be necessary at all? Good question. Having a standard allows computers to interface with the archive as well as humans. It's not

Re: How to represent multiple files in a forum post?

2018-02-18 Thread Jonathan Marler via Digitalmars-d
On Sunday, 18 February 2018 at 21:40:34 UTC, Martin Nowak wrote: On Sunday, 18 February 2018 at 04:04:48 UTC, Jonathan Marler wrote: If there is an existing standard that's great, I wasn't able to find one. If you find one let me know. Found ptar (https://github.com/jtvaughan/ptar) and shar

Re: How to represent multiple files in a forum post?

2018-02-17 Thread Jonathan Marler via Digitalmars-d
On Saturday, 17 February 2018 at 22:11:28 UTC, Martin Nowak wrote: On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? Oh, I thought it already was a

Re: How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 February 2018 at 20:16:32 UTC, John Gabriele wrote: Can the har file delimiter be more than three characters? Yes. So long as the delimiter is the consistent across the whole file, i.e. file1 file2 (See

Re: How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 February 2018 at 18:52:35 UTC, user1234 wrote: On Wednesday, 14 February 2018 at 18:47:31 UTC, Jonathan Marler wrote: On Wednesday, 14 February 2018 at 18:44:06 UTC, user1234 wrote: how does it mix with markdown, html etc ? They'll have to use escapes to be compliant, haven't

Re: How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 February 2018 at 18:44:06 UTC, user1234 wrote: how does it mix with markdown, html etc ? They'll have to use escapes to be compliant, haven't they ? Works great with mardown. ``` --- file1 Contents of file1 --- file2 Contents of file2 ```

Re: How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 14 February 2018 at 18:45:59 UTC, Seb wrote: On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? What's wrong with https://gist.github.com?

How to represent multiple files in a forum post?

2018-02-14 Thread Jonathan Marler via Digitalmars-d
@timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? So we decided to take a stab at creating a standard! (queue links to https://xkcd.com/927) We're calling it "har" (inspired by the name tar). Here's the REPO:

Re: Dub, Cargo, Go, Gradle, Maven

2018-02-12 Thread Jonathan Marler via Digitalmars-d
On Monday, 12 February 2018 at 10:35:06 UTC, Russel Winder wrote: In all the discussion of Dub to date, it hasn't been pointed out that JVM building merged dependency management and build a long time ago. Historically: Make → Ant → Maven → Gradle and Gradle can handle C++ as well as JVM

Re: Casts

2018-02-06 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 6 February 2018 at 21:35:11 UTC, Steven Schveighoffer wrote: On 2/6/18 4:16 PM, timotheecour wrote: On Wednesday, 22 October 2008 at 18:43:15 UTC, Denis Koroskin wrote: On Wed, 22 Oct 2008 22:39:10 +0400, bearophile wrote: [...] You can use the

  1   2   3   4   5   >