vibedist status

2024-07-30 Thread Menjanahary R. R. via Digitalmars-d-learn
What has become of the project? What are the workaround apart from using ngnix?

Re: Feedback request from production of the usage of DWT

2024-06-15 Thread Menjanahary R. R. via Digitalmars-d-learn
On Friday, 14 June 2024 at 17:39:00 UTC, Ferhat Kurtulmuş wrote: ... I remember that hid comes with a windows SDK, and used there for usb interfacing. https://learn.microsoft.com/en-us/windows-hardware/drivers/hid/ I have a fish memory and didn't touch the repo for a while. You may have to

Re: Feedback request from production of the usage of DWT

2024-06-14 Thread Menjanahary R. R. via Digitalmars-d-learn
On Thursday, 13 June 2024 at 11:31:31 UTC, Ferhat Kurtulmuş wrote: On Thursday, 13 June 2024 at 06:59:49 UTC, Menjanahary R. R. wrote: How important is its adoption? Is GUI App in D frequent? ... https://github.com/aferust/testds5 Wow, Awesome project!  Good illustration of using DWT

Re: Feedback request from production of the usage of DWT

2024-06-14 Thread Menjanahary R. R. via Digitalmars-d-learn
On Thursday, 13 June 2024 at 09:21:50 UTC, Dejan Lekic wrote: On Thursday, 13 June 2024 at 06:59:49 UTC, Menjanahary R. R. wrote: How important is its adoption? Is GUI App in D frequent? There are quite few D GUI projects we are aware of, Tilix being one of the popular ones. I have few

Re: Setting field of struct object

2024-05-14 Thread Menjanahary R. R. via Digitalmars-d-learn
On Monday, 22 January 2024 at 08:54:21 UTC, Danilo wrote: On Monday, 22 January 2024 at 08:35:01 UTC, Joel wrote: [...] Nonetheless, this usually used with Objects (new class/struct instances), like so: ```d import std; [...] Fluent Interface 

Re: Range handling difficulties

2024-04-24 Thread Menjanahary R. R. via Digitalmars-d-learn
On Wednesday, 24 April 2024 at 14:22:10 UTC, H. S. Teoh wrote: On Wed, Apr 24, 2024 at 08:08:06AM +, Menjanahary R. R. via Digitalmars-d-learn wrote: [...] evenfib.until!(n => n > 4_000_000).sum.writeln; T Thanks a lot! You've made my day 

Range handling difficulties

2024-04-24 Thread Menjanahary R. R. via Digitalmars-d-learn
I tried to solve Project Euler [problem #2](https://projecteuler.net/problem=2) using [Recurrence/recurrence](https://dlang.org/library/std/range/recurrence.html). Assuming `genEvenFibonacci` is the appropriate funtion in Explicit form, I got what I need like so: ``` auto evenfib =

Re: Mutability issue

2024-03-24 Thread Menjanahary R. R. via Digitalmars-d-learn
On Saturday, 23 March 2024 at 20:49:14 UTC, Nick Treleaven wrote: On Saturday, 23 March 2024 at 19:30:29 UTC, Menjanahary R. R. wrote: for (T candidate = T(5); candidate * candidate <= n; candidate += T(6)) { When T is `const int`, the above code declares and initializes a const

Re: Mutability issue

2024-03-24 Thread Menjanahary R. R. via Digitalmars-d-learn
On Saturday, 23 March 2024 at 20:38:40 UTC, Jonathan M Davis wrote: On Saturday, March 23, 2024 1:30:29 PM MDT Menjanahary R. R. via Digitalmars- d-learn wrote: [...] Well, when nextPrime is instantiated, the type of T is inferred from the function argument. So, if num is int, then T is int

Re: Mutate immutable inside shared static constructor

2024-03-24 Thread Menjanahary R. R. via Digitalmars-d-learn
On Saturday, 23 March 2024 at 21:59:57 UTC, Nick Treleaven wrote: On Saturday, 23 March 2024 at 21:53:43 UTC, Jonathan M Davis wrote: Yes, it's a bug. It's a clear violation of the type system if a non-mutable variable is ever given a value more than once. It should be initialized, and then it

Mutability issue

2024-03-23 Thread Menjanahary R. R. via Digitalmars-d-learn
The next code works as is but ... ``` import std.stdio; import std.traits; bool isPrime(T)(T n) if (isIntegral!T) { if (n <= T(3)) return n > T(1); if (n % T(2) == T(0) || n % T(3) == T(0)) return false; for (T candidate = T(5); candidate * candidate <= n; candidate += T(6)) {

Re: How to unpack a tuple into multiple variables?

2024-02-07 Thread Menjanahary R. R. via Digitalmars-d-learn
On Wednesday, 7 February 2024 at 05:03:09 UTC, Gary Chike wrote: ... But overall it's an elegant way to indirectly add names to tuples in D for ergonomic access. Nice find! --- Refactored it a bit to have a ready to run and easy to grasp code. Enjoy! ```d import std.stdio : writefln; import

Re: DConf Online '24 Schedule

2024-02-07 Thread Menjanahary R. R. via Digitalmars-d-announce
On Tuesday, 6 February 2024 at 18:25:39 UTC, Mike Parker wrote: The DConf Online '24 schedule is live: https://dconf.org/2024/online/index.html See you on Saturday, March 16th! Good news!

Re: how can I load html files and not .dt or diet files in vibe.d

2024-02-01 Thread Menjanahary R. R. via Digitalmars-d-learn
On Thursday, 1 February 2024 at 03:20:31 UTC, dunkelheit wrote: this is my code, I'm a begginer on vibe, and I want to use html and not diet files `import vibe.vibe; void main() { auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses =

Project Euler solution in D

2024-02-01 Thread Menjanahary R. R. via Digitalmars-d-announce
I came accross D early in 2004... It was since then a never ending _Love story_. Time to give back now! https://github.com/pe-solutions/pe-dlang #math #code #dlang

Re: How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Sunday, 1 December 2019 at 20:05:40 UTC, Marcone wrote: My program have Qt5 GUI that use dlls, icons, pictures, etc. How bundles a Dlang application and all its dependencies into a single .exe package? I've used https://github.com/rikkimax/Bin2D in the past. I've never thought about the

Re: optional process

2019-11-29 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Friday, 29 November 2019 at 15:24:31 UTC, Paul Backus wrote: On Friday, 29 November 2019 at 15:17:35 UTC, Taylor R Hillegeist wrote: I know phobos has choose which is close. But what I want is something like: bool sortOutput; if(sortOutput){ read(Textfile) .splitter("\n")

optional process

2019-11-29 Thread Taylor R Hillegeist via Digitalmars-d-learn
When using the standard library. and making command-line applications I find myself wanting optional processes in line. for me, this typically makes the following structure. bool sortOutput; if(sortOutput){ read(Textfile) .splitter("\n") .filter(a=>a.contains("data)) .sort!("a <

Re: Simple casting?

2019-11-26 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 23:29:12 UTC, Ali Çehreli wrote: On 11/26/19 2:08 PM, Taylor R Hillegeist wrote:> On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote: >> int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array; > > > how did you know to do that?

Re: Simple casting?

2019-11-26 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote: int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array; how did you know to do that?

Re: Simple casting?

2019-11-26 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 06:45:19 UTC, Alex wrote: On Tuesday, 26 November 2019 at 05:17:54 UTC, Taylor R Hillegeist wrote: [...] What exactly is the problem, as this works for me if I understood your goal correctly: ´´´ void main() { import std.algorithm.comparison : equal

Re: Simple casting?

2019-11-25 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 05:05:48 UTC, Taylor R Hillegeist wrote: I'm attempting to do a segment group. details: alias ProbePoint[3]=triple; triple[] irqSortedSet = UniqueTriples.keys .sort!("a[1].irqid < b[1].irqid",SwapSt

Simple casting?

2019-11-25 Thread Taylor R Hillegeist via Digitalmars-d-learn
I'm attempting to do a segment group. details: alias ProbePoint[3]=triple; triple[] irqSortedSet = UniqueTriples.keys .sort!("a[1].irqid < b[1].irqid",SwapStrategy.stable) .array; 83:triple[][] irqSortedSets =

Re: Splitting a stream of data on based on data change.

2019-11-21 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Thursday, 21 November 2019 at 22:11:59 UTC, Alex wrote: On Thursday, 21 November 2019 at 21:36:08 UTC, Taylor R Hillegeist wrote: I was looking through the standard library for a good way to split a range into several ranges based on value changes in the stream: AAABB would

Splitting a stream of data on based on data change.

2019-11-21 Thread Taylor R Hillegeist via Digitalmars-d-learn
I was looking through the standard library for a good way to split a range into several ranges based on value changes in the stream: AAABB would be split on the AB transition into: AAA BB I just couldn't figure out an elegant way to do it? Any ideas?

Re: InsertBefore in DList of structs

2019-03-05 Thread r-const-dev via Digitalmars-d-learn
On Tuesday, 5 March 2019 at 08:39:56 UTC, drug wrote: On 05.03.2019 2:01, r-const-dev wrote: [...] dataPoints is an aggregate type variable, not a range and slice operator opSlice/[] returns a range of this aggregate type. I have no appropriate links unfortunately but these can be useful

Re: InsertBefore in DList of structs

2019-03-04 Thread r-const-dev via Digitalmars-d-learn
; auto r = findSplit!((a, b) => a.time == b)(dataPoints[], [time]); auto dp = dataPoints[].find(r[1].front); writeln("before: ", dataPoints[]); dataPoints.insertBefore(dp, DataPoint(20_000_000, 2)); writeln("after: ", dataPoints[]); } ``` Thanks, seem

InsertBefore in DList of structs

2019-03-04 Thread r-const-dev via Digitalmars-d-learn
I have a DList of structs, DataPoint, ordered by a struct field, time. I'm trying to insert a new entry preserving order, so I'm trying to use `until` to find the insertion point and `insertBefore` with the result. struct DataPoint { immutable ulong time; ulong value; } void main() {

Re: Shared with synchronized

2019-03-03 Thread r-const-dev via Digitalmars-d-learn
On Sunday, 3 March 2019 at 22:35:54 UTC, r-const-dev wrote: I'm trying to implement a thread safe class, guarding data access with synchronized and atomicOp. Inside the class I'm using non-shared fields, such as Nullable, but I guarantee the thread safety using synchronized. How can I tell

Shared with synchronized

2019-03-03 Thread r-const-dev via Digitalmars-d-learn
I'm trying to implement a thread safe class, guarding data access with synchronized and atomicOp. Inside the class I'm using non-shared fields, such as Nullable, but I guarantee the thread safety using synchronized. How can I tell the compiler to allow using non-shared fields/methods inside

Process Information

2019-02-23 Thread r-const-dev via Digitalmars-d-learn
Is there a way to get information about the current process? Memory usage, CPU usage, PID.

Re: Vision document for H1 2018

2018-03-11 Thread R via Digitalmars-d-announce
On Sunday, 11 March 2018 at 07:59:53 UTC, rumbu wrote: Because, even the language creators seem to not recognize this, D looks like C# with *native compilation*, the syntax is 95% identical. Basically, if my source code doesn't use any .NET framework function, it will compile successfully with

Re: Vision document for H1 2018

2018-03-10 Thread R via Digitalmars-d-announce
On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: Well, no. I'm more concerned with the fact that the D Language Foundation is focused on BetterC, yet does not mention DLLs at all. For God's sake, if D is the future, why does it continue to leech off C/C++? Other languages like

Re: My first experience as a D Newbie

2017-10-13 Thread Peter R via Digitalmars-d
Replying to a couple of the comments here "I don't know if it's a different expectation or a different mindset or something else." I'd like to think I'm fairly knowledgeable, but Yes, I expect installing/configuring to be easy and quick, so I can get to the actual programming. I expect solid

My first experience as a D Newbie

2017-10-11 Thread Peter R via Digitalmars-d
I've recently started evaluating D, and I thought as a D newbie (but 20 year game dev veteran) I should share the things I felt were missing or unclear, so you can decide if you want to do something to cater new users. So my first notes are 1. Reading about D online: There is a decent amount

Re: Call for arms: Arch Linux D package maintenance

2017-04-17 Thread R McGuire via Digitalmars-d-announce
On Thursday, 13 April 2017 at 09:34:00 UTC, Atila Neves wrote: On Tuesday, 11 April 2017 at 16:17:32 UTC, John Colvin wrote: On Thursday, 16 February 2017 at 19:58:47 UTC, Rory McGuire wrote: [...] Any news on this? The arch packages are listed as orphaned. Same question, and adding that I

Bitbucket Pipelines

2017-04-17 Thread R McGuire via Digitalmars-d-announce
Hi, Thought some of us might be interested in this, it is now really simple to set up testing within bitbucket, by using "Bitbucket Pipelines", docker based testing with what seems to be standard bash script in the YAML file. The below config is for a dub package. bitbucket-pipelines.yml

Re: [WORK] std.file.update function

2016-10-18 Thread R via Digitalmars-d
On Monday, 19 September 2016 at 02:57:01 UTC, Chris Wright wrote: You have an operating system that automatically checksums every file? There are a few filesystems that keep checksums of blocks, but I don't see one that keeps file checksums.

Re: iPhone vs Android

2016-09-15 Thread R via Digitalmars-d
On Monday, 12 September 2016 at 22:57:23 UTC, Andrei Alexandrescu wrote: [snip] If it is, that provides more impetus for reference counting for D by the following logic: (a) it is likely that in the future more code will run on portable, battery-powered systems; (b) battery power does not

Re: Promotion rules ... why no float?

2016-09-07 Thread R via Digitalmars-d
On Tuesday, 6 September 2016 at 15:00:48 UTC, Sai wrote: Thanks for the replies. I tend to use a lot of float math (robotics and automation) so I almost always want float output in case of division. And once in a while I bump into this issue. I am wondering what are the best ways to work

Re: associative arrays: how to insert key and return pointer in 1 step to avoid searching twice

2016-09-07 Thread R via Digitalmars-d
On Tuesday, 6 September 2016 at 04:32:52 UTC, Daniel Kozak wrote: Dne 6.9.2016 v 06:14 mogu via Digitalmars-d napsal(a): On Tuesday, 6 September 2016 at 01:17:00 UTC, Timothee Cour wrote: is there a way to do this efficiently with associative arrays: aa[key]=value; auto ptr=key in aa;

Question about version ( ) keyword

2016-03-21 Thread Vincent R via Digitalmars-d
Hi, When looking at core definitions like core.sys.posix.pthread I can see some "duplicated" code because it seems version doesn't support Or as we would do in C/C++ with #ifdefined. For instance if can read this: version( CRuntime_Glibc ) { enum PTHREAD_BARRIER_SERIAL_THREAD = -1;

Re: How can I report what I think a compiler's frontend bug

2016-03-21 Thread Vincent R via Digitalmars-d
On Monday, 21 March 2016 at 11:00:08 UTC, Vincent R wrote: On Monday, 21 March 2016 at 09:46:18 UTC, Vincent R wrote: On Monday, 21 March 2016 at 01:51:09 UTC, Marco Leise wrote: Am Sun, 20 Mar 2016 22:37:37 + schrieb Vincent R <l...@dlang.org>: [...] Thanks and you see I was

Re: How can I report what I think a compiler's frontend bug

2016-03-21 Thread Vincent R via Digitalmars-d
On Monday, 21 March 2016 at 09:46:18 UTC, Vincent R wrote: On Monday, 21 March 2016 at 01:51:09 UTC, Marco Leise wrote: Am Sun, 20 Mar 2016 22:37:37 + schrieb Vincent R <l...@dlang.org>: [...] Thanks and you see I was right to post here since I finally found the problem a

Re: How can I report what I think a compiler's frontend bug

2016-03-21 Thread Vincent R via Digitalmars-d
On Monday, 21 March 2016 at 01:51:09 UTC, Marco Leise wrote: Am Sun, 20 Mar 2016 22:37:37 + schrieb Vincent R <l...@dlang.org>: [...] Thanks and you see I was right to post here since I finally found the problem and got an answer :-)

Re: How can I report what I think a compiler's frontend bug

2016-03-20 Thread Vincent R via Digitalmars-d
On Sunday, 20 March 2016 at 19:06:32 UTC, Johan Engelen wrote: On Sunday, 20 March 2016 at 17:57:12 UTC, Vincent R wrote: On Sunday, 20 March 2016 at 16:16:18 UTC, Marco Leise wrote: Am Sun, 20 Mar 2016 11:28:19 + schrieb Vincent R <l...@dlang.org>: Hi, I would like to start

Re: How can I report what I think a compiler's frontend bug

2016-03-20 Thread Vincent R via Digitalmars-d
On Sunday, 20 March 2016 at 16:16:18 UTC, Marco Leise wrote: Am Sun, 20 Mar 2016 11:28:19 + schrieb Vincent R <l...@dlang.org>: Hi, I would like to start a new project (a bonjour/zeroconf wrapper and a gui browser using it). For the gui part I would like to use my existing skills

How can I report what I think a compiler's frontend bug

2016-03-20 Thread Vincent R via Digitalmars-d
Hi, I would like to start a new project (a bonjour/zeroconf wrapper and a gui browser using it). For the gui part I would like to use my existing skills using wxWidgets wrapper (wxD). So I have started to report a problem a few months ago:

Re: Linker error with dmd when trying to generate wxWidgets wrapper on Windows (msys2/mingw-w64)

2015-12-09 Thread Vincent R via Digitalmars-d
On Tuesday, 1 December 2015 at 16:46:21 UTC, Vincent R wrote: On Tuesday, 1 December 2015 at 10:21:11 UTC, Luis wrote: On Monday, 30 November 2015 at 09:23:33 UTC, Vincent R wrote: On Friday, 27 November 2015 at 09:56:10 UTC, Kagamin wrote: The bug report is https://issues.dlang.org

Re: Linker error with dmd when trying to generate wxWidgets wrapper on Windows (msys2/mingw-w64)

2015-12-01 Thread Vincent R via Digitalmars-d
On Tuesday, 1 December 2015 at 10:21:11 UTC, Luis wrote: On Monday, 30 November 2015 at 09:23:33 UTC, Vincent R wrote: On Friday, 27 November 2015 at 09:56:10 UTC, Kagamin wrote: The bug report is https://issues.dlang.org/show_bug.cgi?id=15324 Just hope it will be fixed soon because I gave

Re: Linker error with dmd when trying to generate wxWidgets wrapper on Windows (msys2/mingw-w64)

2015-11-30 Thread Vincent R via Digitalmars-d
On Friday, 27 November 2015 at 09:56:10 UTC, Kagamin wrote: The bug report is https://issues.dlang.org/show_bug.cgi?id=15324 Just hope it will be fixed soon because I gave up D 7 years ago (too many bugs, war between phobos, tango, very young language) and now I realize it still very

Linker error with dmd when trying to generate wxWidgets wrapper on Windows (msys2/mingw-w64)

2015-11-26 Thread Vincent R via Digitalmars-d
NT -L/SU:WINDOWS:4.0 OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html ..\..\wxd.lib(TreeCtrl) Offset B471FH Record Type 00C3 Error 1: Previous Definition Different : _D2wx8TreeCtrl10TreeItemId6__ctorMFPvZ

Re: How to fix "Error symbol '.....' is already defined"

2015-11-12 Thread Vincent R via Digitalmars-d-learn
On Thursday, 12 November 2015 at 08:45:57 UTC, Kagamin wrote: Looks like a bug in the compiler. In this case it means there is a bug inside dmd and gdc (didn't try ldc)...

How to fix "Error symbol '.....' is already defined"

2015-11-11 Thread Vincent R via Digitalmars-d-learn
Hi, I have a small project and I would like to use D to build it. I am working on Windows and I have already generated a gdc compiler through msys2/mingw64 and now I would like to compile the old.unmaintained wxWidgets wrapper called wxd. I have forked the project here:

Re: Generate wxD with dmc/dmd

2015-11-09 Thread Vincent R via Digitalmars-d
On Saturday, 7 November 2015 at 22:12:55 UTC, Vincent R wrote: Hi, I am trying to generate the wxWidgets wrapper wxD on Windows through msys/mingw64(or cygwin). So I have downloaded wxWidgets-2.8.12 and dmd c++/d compiler respectively dmc/dmd but I still have an error. Let's consider we

Generate wxD with dmc/dmd

2015-11-07 Thread Vincent R via Digitalmars-d
Hi, I am trying to generate the wxWidgets wrapper wxD on Windows through msys/mingw64(or cygwin). So I have downloaded wxWidgets-2.8.12 and dmd c++/d compiler respectively dmc/dmd but I still have an error. Let's consider we are using cygwin: $ export

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:09:02 UTC, Cauterite wrote: On Wednesday, 28 October 2015 at 16:04:52 UTC, Vincent R wrote: [...] enum kDNSServiceOutputFlags = (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional | kDNSServiceFlagsMoreComing | kDNSServiceFlagsAdd

D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
Hi, I am starting my first project in D and I would like to do a Bonjour(Zeroconf) browser app. My first task is to write a binding to the dns_sd library but I have an issue with the following macro: #define kDNSServiceOutputFlags (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:12:08 UTC, Vincent R wrote: On Wednesday, 28 October 2015 at 16:09:02 UTC, Cauterite wrote: On Wednesday, 28 October 2015 at 16:04:52 UTC, Vincent R wrote: [...] enum kDNSServiceOutputFlags = (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional

Re: D bindings for Bonjour

2015-10-28 Thread Vincent R via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 16:53:15 UTC, Daniel Kozák wrote: V Wed, 28 Oct 2015 16:36:32 + Vincent R via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsáno: On Wednesday, 28 October 2015 at 16:12:08 UTC, Vincent R wrote: > On Wednesday, 28 October 2015 at 16:

Mixed Language Programming - e**x crashes

2014-11-15 Thread R**3 via Digitalmars-d-learn
Resistance Capacitance Circuit C Resistance Capacitance Time C T : Seconds C R : Ohms C C : Farads REAL FUNCTION ERCT (T, R, C) RESULT (X) REAL T, R, C, X X = -T / (R * C) X = EXP(X) RETURN END FUNCTION ERCT when used in a .dll (mathproc.dll

Re: Proper C Pointer Binding

2014-03-26 Thread R
void main() { // init screen and OpenGL setup auto font = loadFont(cast (char * ) Arial.TTF); scope (exit) destroyFont(font); // draw some text // close OpenGL and SDL with some second delay } Also I am not sure about the string casting to char * here. I have been told that

Re: D vs Go in real life, part 2. Also, Erlang.

2013-12-05 Thread Jeff R. Allen
I am the buddy who's always going on and on about Go. Here's the blog posting I made explaining why/how I made the MQTT server in Go and what I learned: http://blog.nella.org/mqtt-code-golf/ I was a bit surprised and interested to see that MQTT with small transactions is not easy to

Re: Fragile ABI

2012-08-20 Thread R Grocott
On Monday, 20 August 2012 at 15:26:48 UTC, Kagamin wrote: What you ask for sounds quite similar to COM composition with delegation. Would anybody mind linking to resources which describe COM composition with delegation? It's been suggested twice in this thread as an alternative way to

Re: Fragile ABI

2012-08-18 Thread R Grocott
Hey Michel, posted this question earlier in the thread, but I think you might have missed it: The blog post I linked only talks about rewriting vtables at dynamic-link-time. Would it be possible to implement something similar for the sizes of structs and scope-classes, and the relative

Re: Fragile ABI

2012-08-18 Thread R Grocott
On Saturday, 18 August 2012 at 17:55:22 UTC, Michel Fortin wrote: As for structs, you could do it the same way, but I don't think you'd get enough benefit to compensate the drawback in performance and elsewhere. To truly have non-fragile structs you'd need to disable almost all compile-time

Re: Fragile ABI

2012-08-17 Thread R Grocott
Hm. Come to think of it, I have another question for somebody knowledgeable about this stuff: The blog post I linked only talks about rewriting vtables at dynamic-link-time. Would it be possible to implement something similar for the sizes of structs and scope-classes, and the relative

Re: Fragile ABI

2012-08-17 Thread R Grocott
Paulo - Surely there are ways to work around the OS's native ABI, though, even from within compiled code? Rewriting object vtables (etc.) might be a bit more involved than simple name mangling, but I'm almost certain it would be possible to implement it as part of druntime. The blog post

Re: Fragile ABI

2012-08-17 Thread R Grocott
On Friday, 17 August 2012 at 13:42:27 UTC, Michel Fortin wrote: It's certainly doable if you put it at the right place. But druntime is not the one in charge of dynamic linking: the dynamic linker from the OS is, so that's the ideal place to do such a thing. If you want to do it in druntime

Fragile ABI

2012-08-16 Thread R Grocott
http://michelf.ca/blog/2009/some-ideas-for-dynamic-vtables-in-d/ The above blog post, written in 2009, proposes a system for solving the Fragile ABI Problem in D. Just wondering whether anything like this is a planned feature for druntime. C++'s fragile ABI makes it very difficult to write

Re: Fragile ABI

2012-08-16 Thread R Grocott
I'm aware that just exposing class interfaces (via COM or other means) is an option, but that tends to cause many problems of its own: - You can no longer call new or delete on the underlying class; you're obliged to use factory methods. This leads to issues with templates and stack

Re: Fragile ABI

2012-08-16 Thread R Grocott
that proper interoperability w/r/t classes and inheritance will tend be cleaner than coding strictly against an interface. This can be demonstrated by choosing any base-class derived-class pair, from any OO codebase, and attempting to rewrite that parent-child relationship as a server-client one.

Re: GWAN webserver allowing dynamic pages in D

2012-06-27 Thread Eric R. Schulz (ers35)
I am able to see that post. Am I the only one to see this post:

Re: GWAN webserver allowing dynamic pages in D

2012-06-25 Thread Eric R. Schulz (ers35)
There is an example at 0.0.0.0_8080/#0.0.0.0/csp/hello.d_ in the tarball. To use it, install GDC and rename hello.d_ to hello.d. You may have difficulties depending on the version of GDC you use. I do not recall which version is supported. I will find out and make another reply. On Monday,

Re: GWAN webserver allowing dynamic pages in D

2012-06-25 Thread Eric R. Schulz (ers35)
G-WAN exports a C API and D supports calling C functions. In what way could G-WAN better support D? Perhaps reading the G-WAN manual would help to explain: http://gwan.ch/archives/gwan_linux.pdf Maybe they should give a better support for D language...

Re: GWAN webserver allowing dynamic pages in D

2012-06-25 Thread Eric R. Schulz (ers35)
True. I will investigate writing a D wrapper for the C API. Using C plain api it's not a good way to use D power IMHO :) Encapsulate code with classes/template/etc would be a good idea.

Re: GWAN webserver allowing dynamic pages in D

2012-06-25 Thread Eric R. Schulz (ers35)
See [1] for details on how to run your own benchmark. It would be interesting to compare Warp and G-WAN using both of their provided benchmark tests. [1]http://forum.gwan.com/index.php?p=/discussion/525/nginx1.0.6-vs-lighttpd1.4.29-vs-g-wan2.9.30-rpscpuram On Monday, 25 June 2012 at 15:09:58

Re: Shared objects?

2012-06-20 Thread R. Grocott
I'm not too experienced with Github - am I right in thinking that the SharedRuntime repository has been idle for six months? If so, does this indicate that Martin has likely abandoned the project? Like Wouter, I'm looking into developing a project with D that would eventually require plugins,

Re: CUDA with D?

2009-02-23 Thread Chris R Miller
Trass3r wrote: Is there any tutorial or code for using CUDA with D? Short answer: no. I looked into writing CUDA with D a while back. The problem is that the CUDA C runtime and the D runtime are 100% incompatible. CUDA works by taking C-like code and compiling it with a special NVCC

Re: DB/DBMS in D

2009-02-16 Thread Chris R Miller
Vladimir A. Reznichenko wrote: Dear Mr./Ms., I'd like to ask you about the garbage collector. It slows down an application, doesn't it? In case of DBMS, this is critical. I haven't found any articles or tests about this. Also it would be great to find out about memory management implemented

Re: forward reference hell!

2009-02-15 Thread Chris R Miller
To stop a forward-reference problem you need to declare the type, but not implement it. Eg: $ cat vector.d #- module vector; class Vector(E) { E[] data; } $ cat student.d #- module

Re: Just one more thing...

2009-02-14 Thread Chris R Miller
Extrawurst wrote: Walter Bright wrote: Now includes Mac OSX version! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.040.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.025.zip Expect bugs. Thread local storage isn't

Re: goto

2009-02-06 Thread Chris R Miller
Bill Baxter wrote: On Fri, Feb 6, 2009 at 2:30 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Walter Bright wrote: double euclideanDistance(Range)(Range a, Range b, double limit) { limit *= limit; double result = 0; for (; 1; a.next, b.next) { if

Re: The path to unity

2009-02-06 Thread Chris R Miller
Jarrett Billingsley wrote: On Fri, Feb 6, 2009 at 11:05 AM, Donnos...@nospam.com wrote: With the druntime project, we now have a run time which is shared between Tango and Phobos. This is a huge step forward, but it's still not much use without some common user code. The highest priorities

Re: QtD 0.1 is out!

2009-02-05 Thread Chris R Miller
Nick Sabalausky wrote: Daniel Keepdaniel.keep.li...@gmail.com wrote in message news:gmfujj$2t...@digitalmars.com... Ary Borenszweig wrote: Daniel Keep escribió: No files in this directory. Well that sucks. Oh well, I... hey, wait a second... *unblocks javascript* No files in this

Re: D versus Objective C Comparison

2009-02-02 Thread Chris R Miller
John Reimer wrote: I link to stuff so that people can do more reading if they want. :) And again, I'm not there to really give a history lesson, more to analyze the situation of you want to build an app which does foo, which is better for that purpose? (the answer is that it depends: who do

Re: D versus Objective C Comparison

2009-02-01 Thread Chris R Miller
John Reimer wrote: Hello Chris, http://www.fsdev.net/~cmiller/a/20090123_dvobjc.html Also, I do honor the right of reply. If there's something I have written that is now incorrect or inaccurate I will of course change my page to reflect that. Heck, all the comparisons in the world are

Re: function to slive a quadratic equation

2009-02-01 Thread Chris R Miller
zvia wrote: Is it true? Well, void main will implicitly return 0 to the local operating system, so it must be! void main()

Re: function to slive a quadratic equation

2009-02-01 Thread Chris R Miller
BCS wrote: Hello Christopher, Thrinput's Way was discredited in the late 1700's by a German theologian named Albrecht Kirsch. It was already in decline due to its requirements of extreme asceticism; many scholars, most notably Dr. M. Foster of Yale, attribute its temporary success to its

D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
In my hiatus from D, I decided to take the plunge and teach myself Objective-C. This gave me some interesting insights into both languages. It's so fun, whenever I find another programmer, one of the first twenty things I say is have you ever tried Digital Mars D? It will change your whole

Re: D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
Walter Bright wrote: Chris R Miller wrote: Also, I do honor the right of reply. If there's something I have written that is now incorrect or inaccurate I will of course change my page to reflect that. Heck, all the comparisons in the world are worthless if they aren't accurate! Thanks

Re: D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
Michel Fortin wrote: On 2009-01-31 15:39:17 -0500, Chris R Miller lordsauronthegr...@gmail.com said: Anyways, I decided to write up a comparison of the two languages from a less technical, more deployment oriented standpoint. IOW, examining how well they perform for the last mile

Re: D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
Walter Bright wrote: Chris R Miller wrote: Walter Bright wrote: Chris R Miller wrote: Also, I do honor the right of reply. If there's something I have written that is now incorrect or inaccurate I will of course change my page to reflect that. Heck, all the comparisons in the world

Re: D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
Michel Fortin wrote: On 2009-01-31 18:50:52 -0500, Walter Bright newshou...@digitalmars.com said: Michel Fortin wrote: One area I think Objective-C to be very great and that you haven't touched is for creating stable APIs. In Objective-C, contrary to D and C++, you don't have to recompile

Re: D versus Objective C Comparison

2009-01-31 Thread Chris R Miller
Michel Fortin wrote: On 2009-01-31 17:03:10 -0500, Chris R Miller lordsauronthegr...@gmail.com said: Michel Fortin wrote: On 2009-01-31 15:39:17 -0500, Chris R Miller lordsauronthegr...@gmail.com said: Anyways, I decided to write up a comparison of the two languages from a less technical

Re: People speaketh

2009-01-29 Thread Chris R Miller
Andrei Alexandrescu wrote: first/last - 13: Jarrett, Bill, dsimcha, Sandeep, Chad, Tiago, Robert, Simen, Brian, Bill, Yigal, Gide, Ary. head/toe - 9: Bill, dsimcha, Robert, Simen, Max, Don, Michel, Denis, Brian, front/back - 15: dsimcha, Chad, Steve, Robert, Nick, BCS, Bill, BLS, Yigal,