Re: Inline code in the docs - the correct way

2018-02-04 Thread Walter Bright via Digitalmars-d
On 2/4/2018 11:34 AM, Steven Schveighoffer wrote: On 2/2/18 7:10 PM, Walter Bright wrote: On 2/1/2018 6:09 AM, Steven Schveighoffer wrote: On 1/31/18 9:58 PM, Walter Bright wrote: On 1/31/2018 5:37 PM, Steven Schveighoffer wrote: Where it breaks down is when you have many nested tags, and

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Dgame via Digitalmars-d
On Monday, 5 February 2018 at 00:56:20 UTC, welkam wrote: On Sunday, 4 February 2018 at 22:05:45 UTC, Dgame wrote: I want to use a language and if I see problems which are ignored I move on. That is how it is, no offense. So you see a problem and do not work on fixing it then complain that

Re: How to convert hex string to string or ubytes? Thanks.

2018-02-04 Thread FrankLike via Digitalmars-d-learn
On Monday, 5 February 2018 at 06:12:22 UTC, H. S. Teoh wrote: On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via auto input = "48656c6c6f20776f726c6421"; auto str = input.chunks(2) .map!(digits => cast(char) digits.to!ubyte(16))

Re: Inline code in the docs - the correct way

2018-02-04 Thread Seb via Digitalmars-d
On Monday, 5 February 2018 at 06:27:02 UTC, H. S. Teoh wrote: On Sun, Feb 04, 2018 at 02:34:31PM -0500, Steven Schveighoffer via Digitalmars-d wrote: [...] I don't have a hard time with braces. It tends to be worse with parentheses. Generally these are indented properly, and not } all on

Re: Quora: Why hasn't D started to replace C++?

2018-02-04 Thread psychoticRabbit via Digitalmars-d
On Sunday, 4 February 2018 at 18:00:22 UTC, Russel Winder wrote: On Fri, 2018-02-02 at 21:21 +, 12345swordy via Digitalmars-d wrote: […] Would it be easier for hire a proven manager(Or at least look for mangers that are able to volunteer)? What the D Foundation needs is a CEO who is a

Re: How to convert hex string to string or ubytes? Thanks.

2018-02-04 Thread FrankLike via Digitalmars-d-learn
On Monday, 5 February 2018 at 06:12:22 UTC, H. S. Teoh wrote: On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via assert(str == "Hello world!"); Thanks.very good!

Re: Inline code in the docs - the correct way

2018-02-04 Thread H. S. Teoh via Digitalmars-d
On Sun, Feb 04, 2018 at 02:34:31PM -0500, Steven Schveighoffer via Digitalmars-d wrote: [...] > I don't have a hard time with braces. It tends to be worse with > parentheses. Generally these are indented properly, and not } all > on one line. Wait till you see Lisp code. :-P > Note: if

Re: How to convert hex string to string or ubytes? Thanks.

2018-02-04 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via Digitalmars-d-learn wrote: > Now,I can get the string from hex string in compile time,but how to > get it in run time? > > How to get it in run time? [...] Oh wait, I think I misunderstood your original question. Perhaps this is closer to

Re: How to convert hex string to string or ubytes? Thanks.

2018-02-04 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via Digitalmars-d-learn wrote: > Now,I can get the string from hex string in compile time,but how to > get it in run time? > > How to get it in run time? > > Thanks. import std.conv; string hex = "900D1DEA"; uint value

Re: Getting compiler Segfault

2018-02-04 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Feb 04, 2018 at 12:52:22PM +, Ur@nuz via Digitalmars-d-learn wrote: > Getting compiler stack overflow when building my project, but still do > not know how to localize piece of code that triggers this bug. Maybe > this bug is already registered in bugzilla or someone could give some >

How to convert hex string to string or ubytes? Thanks.

2018-02-04 Thread FrankLike via Digitalmars-d-learn
Now,I can get the string from hex string in compile time,but how to get it in run time? How to get it in run time? Thanks.

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Laeeth Isharc via Digitalmars-d
On Friday, 2 February 2018 at 15:06:35 UTC, Benny wrote: You want to produce Excel's? Excel-d but it faces the same issue as being the only native project. What if the author ... Since you mention this, there isn't just single author of excel-d. If something happened to me, most likely

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Walter Bright via Digitalmars-d
On 2/4/2018 2:27 PM, Boris-Barboris wrote: Ability to interface with C using C header files of a target library\executable as-is. Being able to understand the interfaces your operating system provides, described on the language it uses, is a huge criteria to pick C for your particular task.

mysql-native v2.0.0-rc1: Release Candidate: Redesigned Prepared

2018-02-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native -- I've tagged a release candidate ("v2.0.0-rc1") which, among other various enhancements and cleanups, includes a redesign of prepared statements which are now connection-independent

Re: NES emulator written in D

2018-02-04 Thread welkam via Digitalmars-d-announce
On Sunday, 4 February 2018 at 20:56:32 UTC, blahness wrote: 2. DMD just doesn't produce fast code compared to other modern compilers. It's a shame LDC or GDC isn't the default D compiler. For the core team improving DMD codegen is not a priority

Re: Should the "front" range primitive be "const" ?

2018-02-04 Thread Simen Kjærås via Digitalmars-d-learn
On Friday, 2 February 2018 at 14:29:34 UTC, H. S. Teoh wrote: Its semantics are not broken; it's just harder to use. Due to const transitivity, it's an all-or-nothing deal. .tailConst gives us the middle ground. If the semantics of const means that users will have to write .tailConst all

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread psychoticRabbit via Digitalmars-d
On Sunday, 4 February 2018 at 20:15:47 UTC, bpr wrote: Which benefits of C are lost? The ability to program on 16-bit platforms (yeah.. they still exist ;-) 16bit doesn't matter? .. it matters to me.

[Issue 18372] error missing line number: Error: undefined identifier __va_list_tag

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18372 Timothee Cour changed: What|Removed |Added CC|

[Issue 18372] REG(2.072): error missing line number: Error: undefined identifier __va_list_tag

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18372 Timothee Cour changed: What|Removed |Added Summary|error missing line number: |REG(2.072): error

[Issue 18372] New: error missing line number: Error: undefined identifier __va_list_tag

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18372 Issue ID: 18372 Summary: error missing line number: Error: undefined identifier __va_list_tag Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread welkam via Digitalmars-d
On Sunday, 4 February 2018 at 22:05:45 UTC, Dgame wrote: I want to use a language and if I see problems which are ignored I move on. That is how it is, no offense. So you see a problem and do not work on fixing it then complain that other people do the same. Ok.

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Walter Bright via Digitalmars-d
On 2/4/2018 12:15 PM, bpr wrote: Personally I agree that BetterC isn't a good alternative for C programmers. Sure, you get some benefits of D, but you will lose many benefits of C Which benefits of C are lost? I'll chime in a bit on that. I recently converted the Digital Mars C++ front end

[Issue 18371] New: allow default parameters after `...` (not just template variadics, which are ok now)

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18371 Issue ID: 18371 Summary: allow default parameters after `...` (not just template variadics, which are ok now) Product: D Version: D2 Hardware: x86 OS: Mac OS X

[Issue 18368] -X should print all static information on stdout if no files are given

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18368 Timothee Cour changed: What|Removed |Added CC|

Re: Beta 2.078.2

2018-02-04 Thread Timothee Cour via Digitalmars-d-announce
if necessary, to help with transition, one could add a hidden flag `-log_when_issue_18315_occurred` that would log stacktrace (or maybe user defined function) when hitting this condition at runtime: ``` void main(){ fun(int.min); } void fun(int v){ writeln(v>0); } ``` dmd

Re: Beta 2.078.2

2018-02-04 Thread Timothee Cour via Digitalmars-d-announce
thanks @aG0aep6G for this PR https://github.com/dlang/dmd/pull/7841 to fix it. this should be in point release because: * ldc2 has correct behavior * the bug disappears with `-O` so the argument that ppl would rely on it is moot On Fri, Feb 2, 2018 at 6:37 AM, Steven Schveighoffer via

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Boris-Barboris via Digitalmars-d
On Sunday, 4 February 2018 at 20:15:47 UTC, bpr wrote: Which benefits of C are lost? Ability to interface with C using C header files of a target library\executable as-is. Being able to understand the interfaces your operating system provides, described on the language it uses, is a huge

[Issue 18315] wrong code for `i > 0`

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18315 ag0ae...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #5 from

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Dgame via Digitalmars-d
On Sunday, 4 February 2018 at 12:02:25 UTC, psychoticRabbit wrote: On Sunday, 4 February 2018 at 10:31:17 UTC, Dgame wrote: On Sunday, 4 February 2018 at 01:46:34 UTC, psychoticRabbit wrote: Your suggestions are welcome. Just don't tell people that if they don't listen to them, then their

[Issue 18370] New: std.algorithm.skipOver should handle BOMs

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18370 Issue ID: 18370 Summary: std.algorithm.skipOver should handle BOMs Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 18369] New: std.algorithm.skipOver should be @nogc and nothrow

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18369 Issue ID: 18369 Summary: std.algorithm.skipOver should be @nogc and nothrow Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: NES emulator written in D

2018-02-04 Thread blahness via Digitalmars-d-announce
On Sunday, 4 February 2018 at 04:51:00 UTC, Jonathan Marler wrote: How did it compare to the Go version? I started implementing one myself as a learning experience and recall I looked at the Go version a few times (https://github.com/marler8997/hacknes). Mine was in C++ though since I was

Re: NES emulator written in D

2018-02-04 Thread welkam via Digitalmars-d-announce
Could you share your experience with us? How it compares to go implementation? Did D made it harder or easier to implement emulator?

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread bpr via Digitalmars-d
On Sunday, 4 February 2018 at 11:14:43 UTC, JN wrote: On Friday, 2 February 2018 at 15:06:35 UTC, Benny wrote: You want to produce PDFs? fpdf 2015-Apr-06, a very limited PDF generation tool last updated 3 years go. While not as trivial as just using a dub package, D easy interop with C

Re: Interfacing with C++

2018-02-04 Thread Timothee Cour via Digitalmars-d-learn
Calypso (https://github.com/Syniurge/Calypso/) is the most promising way to interface with C++, it requires 0 bindings and understands all of C++ (templates etc); there are some caveats/kinks that are being ironed out (and any help is welcome). On Sun, Feb 4, 2018 at 4:37 AM, rjframe via

[Issue 6138] Using dirEntries and chdir() can have unwanted results

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6138 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

Re: Inline code in the docs - the correct way

2018-02-04 Thread Steven Schveighoffer via Digitalmars-d
On 2/2/18 7:10 PM, Walter Bright wrote: On 2/1/2018 6:09 AM, Steven Schveighoffer wrote: On 1/31/18 9:58 PM, Walter Bright wrote: On 1/31/2018 5:37 PM, Steven Schveighoffer wrote: Where it breaks down is when you have many nested tags, and you end with ) Long ago, I adjusted my text

Re: Quora: Why hasn't D started to replace C++?

2018-02-04 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 4 February 2018 at 18:00:22 UTC, Russel Winder wrote: What the D Foundation needs is a CEO who is a good CEO. Good CTOs rarely make good CEO, though it is possible. Well, I don't think making some hard decisions about memory management, which is the most apparent issue with D, is

[Issue 18368] New: -X should print all static information on stdout if no files are given

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18368 Issue ID: 18368 Summary: -X should print all static information on stdout if no files are given Product: D Version: D2 Hardware: All OS: All Status:

[Issue 18367] dmd should not segfault on -X with libraries, but no source files

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18367 Seb changed: What|Removed |Added Keywords||pull --- Comment #1 from Seb

[Issue 18367] New: dmd should not segfault on -X with libraries, but no source files

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18367 Issue ID: 18367 Summary: dmd should not segfault on -X with libraries, but no source files Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 13844] core.stdc.config isn't listed in the docs

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13844 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13844] core.stdc.config isn't listed in the docs

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13844 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/bd783a518953aae7135fdb8bc62704e6e5e5a687 Fix Issue 13844 - core.stdc.config isn't listed in

Re: Quora: Why hasn't D started to replace C++?

2018-02-04 Thread Russel Winder via Digitalmars-d
On Fri, 2018-02-02 at 21:21 +, 12345swordy via Digitalmars-d wrote: > […] > Would it be easier for hire a proven manager(Or at least look for > mangers that are able to volunteer)? What the D Foundation needs is a CEO who is a good CEO. Good CTOs rarely make good CEO, though it is possible.

Re: Quora: Why hasn't D started to replace C++?

2018-02-04 Thread Russel Winder via Digitalmars-d
On Sun, 2018-02-04 at 01:53 +, psychoticRabbit via Digitalmars-d wrote: > > […] > In my experience, there is nothing worse than a 'learnt' manager > ;-) I disagree. > People either have the gift, or they do not. Most do not. Again I disagree. > (if they have the gift, then improving

Re: Setting up DMD on windows

2018-02-04 Thread Seb via Digitalmars-d-learn
On Sunday, 4 February 2018 at 17:11:21 UTC, Rubn wrote: On Sunday, 4 February 2018 at 01:33:05 UTC, Seb wrote: On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote: On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote: [...] I think you have to build with an old version of MSVC,

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
On 2018-02-04 12:41:16 +, notna said: ... found this a nice read some time ago... https://blog.plan99.net/modern-garbage-collection-911ef4f8bd8e Thanks, pretty interesting. BTW: I used this stuff about 20 years ago: http://www.microquill.com/ and they are still around. And yes, it was

Re: Setting up DMD on windows

2018-02-04 Thread Rubn via Digitalmars-d-learn
On Sunday, 4 February 2018 at 01:33:05 UTC, Seb wrote: On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote: On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote: [...] I think you have to build with an old version of MSVC, 2010 maybe? It's been a while since I built it I don't

Re: My LDC talk this weekend @ FOSDEM'18

2018-02-04 Thread Nicholas Wilson via Digitalmars-d-announce
On Friday, 2 February 2018 at 19:37:42 UTC, Kai Nacke wrote: Hi everybody! I am still around and try to get more active. Like last year, I am going to FOSDEM this weekend. I am a speaker in the LLVM toolchain devroom @ FOSDEM'18. My talk is about DCompute which I consider to be an awesome

Re: Getting compiler Segfault

2018-02-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, February 04, 2018 13:54:17 Stefan Koch via Digitalmars-d-learn wrote: > On Sunday, 4 February 2018 at 12:52:22 UTC, Ur@nuz wrote: > > Getting compiler stack overflow when building my project, but > > still do not know how to localize piece of code that triggers > > this bug. Maybe this

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Dmitry Olshansky via Digitalmars-d
On Sunday, 4 February 2018 at 09:04:41 UTC, rikki cattermole wrote: On 04/02/2018 8:49 AM, Robert M. Münch wrote: On 2018-02-04 08:41:04 +, rikki cattermole said: "It doesn't need to be concurrent, since Lua states are completely independent." Single threaded simplifies a lot. So no,

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Dmitry Olshansky via Digitalmars-d
On Sunday, 4 February 2018 at 08:33:35 UTC, Robert M. Münch wrote: Hi, not sure if anyone is aware of this: http://wiki.luajit.org/New-Garbage-Collector I don't know if anythin like this would fit for D but the concept is described pretty extensive. Generational -> write barriers -> no, not

Re: Getting compiler Segfault

2018-02-04 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 4 February 2018 at 12:52:22 UTC, Ur@nuz wrote: Getting compiler stack overflow when building my project, but still do not know how to localize piece of code that triggers this bug. Maybe this bug is already registered in bugzilla or someone could give some advice where to dig into?

[Issue 18365] header file generation doesn't include the return attribute

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18365 --- Comment #2 from Seb --- PR: https://github.com/dlang/dmd/pull/7836 --

[Issue 18366] header file generation doesn't include the return attribute

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18366 Seb changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18366] New: header file generation doesn't include the return attribute

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18366 Issue ID: 18366 Summary: header file generation doesn't include the return attribute Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 18365] header file generation doesn't include the return attribute

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18365 --- Comment #1 from Seb --- *** Issue 18366 has been marked as a duplicate of this issue. *** --

[Issue 18365] New: header file generation doesn't include the return attribute

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18365 Issue ID: 18365 Summary: header file generation doesn't include the return attribute Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 18364] header file generation doesn't print the package name in package(XXX)

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18364 Seb changed: What|Removed |Added Keywords||pull --- Comment #1 from Seb

Getting compiler Segfault

2018-02-04 Thread Ur@nuz via Digitalmars-d-learn
Getting compiler stack overflow when building my project, but still do not know how to localize piece of code that triggers this bug. Maybe this bug is already registered in bugzilla or someone could give some advice where to dig into? Just runed building under gdb and got the following stack

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread notna via Digitalmars-d
On Sunday, 4 February 2018 at 09:04:41 UTC, rikki cattermole wrote: On 04/02/2018 8:49 AM, Robert M. Münch wrote: On 2018-02-04 08:41:04 +, rikki cattermole said: "It doesn't need to be concurrent, since Lua states are completely independent." Single threaded simplifies a lot. So no,

Re: Interfacing with C++

2018-02-04 Thread rjframe via Digitalmars-d-learn
On Sun, 04 Feb 2018 08:33:20 +, Mike Parker wrote: > Though, I'm curious why anyone would want to declare a callback in a C++ > program as cdecl only on Windows and use the default C++ > convention everywhere else. I suggest you dig into it and make sure > that's what's intended. And good

[Issue 18364] New: header file generation doesn't print the package name in package(XXX)

2018-02-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18364 Issue ID: 18364 Summary: header file generation doesn't print the package name in package(XXX) Product: D Version: D2 Hardware: All OS: All Status:

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread psychoticRabbit via Digitalmars-d
On Sunday, 4 February 2018 at 10:31:17 UTC, Dgame wrote: On Sunday, 4 February 2018 at 01:46:34 UTC, psychoticRabbit wrote: Your suggestions are welcome. Just don't tell people that if they don't listen to them, then their community is bad. That's not how an open source community works. I've

Re: rdmd main.d leads to Segmentation fault

2018-02-04 Thread Timoses via Digitalmars-d-learn
On Thursday, 1 February 2018 at 09:01:34 UTC, Kagamin wrote: On Wednesday, 31 January 2018 at 16:59:15 UTC, Timoses wrote: And I would need to do what about it? Sorry, I'm not familiar with assembly code stuff in detail. You can try to see if it works on another distro or version. It does

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread JN via Digitalmars-d
On Friday, 2 February 2018 at 15:06:35 UTC, Benny wrote: You want to produce PDFs? fpdf 2015-Apr-06, a very limited PDF generation tool last updated 3 years go. While not as trivial as just using a dub package, D easy interop with C means you can use C libraries for PDF like libharu or w/e.

Re: Interfacing with C++

2018-02-04 Thread Seb via Digitalmars-d-learn
On Sunday, 4 February 2018 at 10:42:22 UTC, infinityplusb wrote: On Sunday, 4 February 2018 at 08:33:20 UTC, Mike Parker wrote: [...] it is, everyone keeps saying writing bindings in D is super easy ... I feel this is a slight simplification. :( [...] Sounds easy enough. [...] [...]

Re: Interfacing with C++

2018-02-04 Thread infinityplusb via Digitalmars-d-learn
On Sunday, 4 February 2018 at 08:33:20 UTC, Mike Parker wrote: On Sunday, 4 February 2018 at 08:17:31 UTC, Mike Parker wrote: Assuming this is OpenCV ... it is, everyone keeps saying writing bindings in D is super easy ... I feel this is a slight simplification. :( version(Windows)

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Dgame via Digitalmars-d
On Sunday, 4 February 2018 at 01:46:34 UTC, psychoticRabbit wrote: Your suggestions are welcome. Just don't tell people that if they don't listen to them, then their community is bad. That's not how an open source community works. I've never said that the community is bad. :)

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Dgame via Digitalmars-d
On Saturday, 3 February 2018 at 23:45:21 UTC, bachmeier wrote: On Saturday, 3 February 2018 at 23:39:00 UTC, Dgame wrote: On Saturday, 3 February 2018 at 23:29:58 UTC, Christof Schardt wrote: On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote: I congratulate you on your decision. I also

Re: An idea for commercial support for D

2018-02-04 Thread Iain Buclaw via Digitalmars-d
On 2 February 2018 at 11:21, Joakim via Digitalmars-d wrote: > On Friday, 2 February 2018 at 09:26:51 UTC, Iain Buclaw wrote: >> >> On 31 January 2018 at 09:43, Joakim via Digitalmars-d >> wrote: >>> >>> I'm sure you can find much better

Re: An idea for commercial support for D

2018-02-04 Thread psychoticRabbit via Digitalmars-d
On Sunday, 4 February 2018 at 08:26:54 UTC, Joakim wrote: I don't think it affects them much, as none of the motivations above would be hurt by paid contributors. If anything, it _increases_ their drive, as they have a lot more OSS code to work on with mixed codebases. Well, it's not

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread rikki cattermole via Digitalmars-d
On 04/02/2018 8:49 AM, Robert M. Münch wrote: On 2018-02-04 08:41:04 +, rikki cattermole said: "It doesn't need to be concurrent, since Lua states are completely independent." Single threaded simplifies a lot. So no, not useful. Well, I wouldn't be able to judge that fast from a single

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
On 2018-02-04 08:41:04 +, rikki cattermole said: "It doesn't need to be concurrent, since Lua states are completely independent." Single threaded simplifies a lot. So no, not useful. Well, I wouldn't be able to judge that fast from a single line in the text, if the concept can/can't be

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread rikki cattermole via Digitalmars-d
On 04/02/2018 8:33 AM, Robert M. Münch wrote: Hi, not sure if anyone is aware of this: http://wiki.luajit.org/New-Garbage-Collector I don't know if anythin like this would fit for D but the concept is described pretty extensive. "It doesn't need to be concurrent, since Lua states are

For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
Hi, not sure if anyone is aware of this: http://wiki.luajit.org/New-Garbage-Collector I don't know if anythin like this would fit for D but the concept is described pretty extensive. -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Re: Interfacing with C++

2018-02-04 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 4 February 2018 at 08:17:31 UTC, Mike Parker wrote: So assuming CV_CDECL is cdecl, this should do it: extern(C) alias CvCmpFunc = int function(const(void)*, const(void)*, void*); Assuming this is OpenCV, Looking at [1], it's cdecl only on Windows. Empty everywhere else. So

Re: An idea for commercial support for D

2018-02-04 Thread Joakim via Digitalmars-d
On Sunday, 4 February 2018 at 02:15:32 UTC, psychoticRabbit wrote: On Saturday, 3 February 2018 at 13:14:04 UTC, rjframe wrote: Except it doesn't. The GPL can be used to keep a competitor from stepping up and using your work to create an alternative product, allowing you to have a mixed

Re: Interfacing with C++

2018-02-04 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 4 February 2018 at 07:54:12 UTC, infinityplusb wrote: Hi all I'm looking to try and write an interface to C++, but given I'm a casual dabbler in D, it's slightly beyond my current ability in terms of both C++ and D! As a leg up, how would one translate something like this from

Re: Interfacing with C++

2018-02-04 Thread rikki cattermole via Digitalmars-d-learn
On 04/02/2018 7:54 AM, infinityplusb wrote: Hi all I'm looking to try and write an interface to C++, but given I'm a casual dabbler in D, it's slightly beyond my current ability in terms of both C++ and D! As a leg up, how would one translate something like this from C++ to D? `typedef int

Re: My choice to pick Go over D ( and Rust ), mostly non-technical

2018-02-04 Thread Joakim via Digitalmars-d
On Sunday, 4 February 2018 at 01:57:26 UTC, Rubn wrote: On Saturday, 3 February 2018 at 23:07:30 UTC, Norm wrote: On Saturday, 3 February 2018 at 15:22:37 UTC, Rubn wrote: On Saturday, 3 February 2018 at 08:18:57 UTC, H. S. Teoh wrote: On Fri, Feb 02, 2018 at 08:16:25PM -0800, Walter Bright