DMD vs. GDC vs. LDC

What are the Pros/Cons of the different D Compilers? How is the performance and the standard compliance/D2 support? How well are debuggers supported? How good are the Error messages and is the IDE...

Sorting a Hash by integer value of hash key in Ruby 1.9

Given the following hash: {"7"=>"Ada (gnat-4.3.2)", "13"=>"Assembler (nasm-2.07)", "45"=>"Assembler (gcc-4.3.4)", "104"=>"AWK (gawk) (gawk-3.1.6)", "105"=>"AWK (mawk) (mawk-1.3.3)", "28"=>"Bash...

VB/A: Streaming data from Excel to PowerPoint

This image shows what a final product should look like: There's an excel spreadsheet with rows and columns. Rows are COUNTRIES. Columns are DATA. However, I am interested in only one column of...

How do I import DMD in Zenoss mapping?

I have Solaris 10 + Zenoss 2.7.0 and I cannot upgrade it without Oracle licence, so I try to find workaround, that's why I ask for your help. I need to prevent the movement of events into History...

DDT error: D Standard Library [Error: none found]

I have installed dmd and ddt as instructed: DMD64 D Compiler v2.066.0 Copyright (c) 1999-2014 by Digital Mars written by Walter Bright Documentation: http://dlang.org/ but when I create a dub...

sdl ttf_rendertext_blended fails randomly

EDIT: Even that the problem still exists, I haven't been able to reproduce this frequently enough to examine it closer. See more info at the end of the question. I started to develop a game, and...

Java DatabaseMetaData.getSchemas() returns empty ResultSet, expected non-empty ResultSet

Trying to understand what is going on here. DatabaseMetaData is returning an empty result set, where as an SQL query that is effectively the same does not. Not a major issue as I am using the...

Double click event on JList element

I've got a problem, and I can't find an answer by myself. I'm making a simple chat in java, and I populated a JList with names. When a name is double-clicked, that name needs to be passed as an...

How to add a linear constraint in CPLEX Python API?

Linear program: Decision Variables: x[] Maximize: Sum(i to n) (fare[i] * x[i]) subject to: x[i] <= demand[i] I am trying to add a linear constraint in cplex using Python, but I am not able to...

Why int x=08; is valid when int x=078; is invalid in `DMD`?

I was recently looking into the details of literals in the D programming language. Because octal literals use 0 as prefix to the numbers, int x = 078; is invalid naturally. But then why int x =...

How to exit from a D program gracefully when ctrl+c happens?

I would like to shut down a vibe.d application gracefully by stopping the eventloop. import vibe.vibe; import core.sys.posix.signal; void main() { enum SIGINT = 2; signal(SIGINT, &stopapp); ...

Trying to import some modules but get "..which can not be read"

I am new to D and am trying to create a simple starter project with sub modules. I have been following the d2d source structure, as an example, but I can't get my project to compile using DUB. My...

VSCode: 'thread' is not a member of 'std'

I copy this code and compile it but I got some error #include <thread> #include <iostream> struct F { void operator() () const { std::cout<<"Printing from another thread"<<std::endl; ...

Compile D project with DMD

This might be stupidiest and newbie's question, but how do I actually compile D project with DMD on windows? I tried these commands: dmd * dmd *.d cd .. && dmd {DirectoryName} dmd file1.d...

How to distinguish if Python or Matlab is wrong/faulty?

I am trying to use SVD and an Eigendecomposition for some data analysis using Dynamic Mode Decomposition. I am running into a simple problem of getting different results from Matlab and Python....

Random segmentation fault in D lang on switch break

I was debugging a fairly simple program written in D, that seems to have a random chance to receive a SEGV signal. Upon further inspection I observed that using different compilers and build...

Understanding mixins vs mixin templates

In the process of learning the D language, I'm trying to make a generic Matrix class which supports type promotion of the contained object. That is, when I multiply a Matrix!(int) to a...

Parse complexe xml in spark

Extract Xml data from TSV/CSV file in databricks I need little help on xml data which coming in between Tsv file. Saw answer on few Databricks question forum . I am not sure if any UDF type...

Debugging Segmentation Fault for D program using LLDB

I'm currently trying to debug a Segmentation Fault: 11 on Mac in an executable produced by the DMD compiler, using LLDB. The thing is I'm quite lost since I'm not too familiar with debugging...

Ways to make a D program faster

I'm working on a very demanding project (actually an interpreter), exclusively written in D, and I'm wondering what type of optimizations would generally be recommended. The project makes heavy...

Promoted widgets do not appear in main application created with qt designer

I'm writting an application composed of several independant widgets to make an experiment running. For example, the aim is to control differents instruments (e. g. a scope, cameras or mechanical...

Every program I build with dmd crashes with a segfault

Every single D program that I compile with dmd crashes with a segfault when I to run them. I stripped more and more out of the program I was writing to get the smallest program that does this and...

Check if value of one array matches with key of another array - PHP

I have two array as : <?php $arr1 = ["","2nd Level","11' Ceilings","1016 SF","1168SF","1186-1204SF","11ft Ceilings","1211-1226SF","14 Square Footage","15 Square Footage","16 Square Footage","17...

Logstash http output with user password

I am receiving log data from TCP and sending it to a https url as json using logstash. Here is my configuration input { tcp { port => 8443 codec =>...

Deprecation: returning this escapes a reference to parameter this

Ran into this while updating DMD to 2.094.1 in our codebase. What is it about and how to fix it? Deprecation: returning this escapes a reference to parameter this perhaps annotate the...

'vector<vector<int> >' cannot be initialized with an initializer list in VS Code while c++11 is in settings.json

I have recently started learning C++ and am using Visual Studio Code for it. I have been starting to transfer a Python non-aggregate type 'vector<vector<int> >' cannot be initialized with an...

Why is my D code for finding prime numbers much faster than my C++ code?

I coded two small projects in C++ and D(lang) respectively to calculate a given number of prime numbers. The code is very similar in both projects. However, my D code runs MUCH faster than my C++...

Synthesizing a function binding in Core

I'm writing a GHC Core plugin that eventually adds new function declarations to the module it's called on. Currently I'm struggling with combining the Core helpers to produce an Expr corresponding...

Can't properly install hardhat using Powershell! Persistent Error HH12: Trying to use a non-local installation of Hardhat, which is not supported

Below is a short list of my setup until I stumble upon the HH12 Hardhat Error that I keep getting: mkdir wave (Name of my directory) cd wave npm init -y npm install —save-dev hardhat npx...