On Monday, 11 January 2016 at 07:29:02 UTC, Eliatto wrote:
Hello! I have a project, which consists of 2 parts: web part
(based on vibe.d) and core part (C++/Qt 5.5.x). Core will be
used in a shared object (c-style exported functions). Both
parts must interact with PostgreSQL. Core dynamic libra
Hello! I have a project, which consists of 2 parts: web part
(based on vibe.d) and core part (C++/Qt 5.5.x). Core will be used
in a shared object (c-style exported functions). Both parts must
interact with PostgreSQL. Core dynamic library will be
contributor to my database (INSERTS/UPDATES), wh
On Sunday, 10 January 2016 at 22:22:03 UTC, Robert M. Münch wrote:
I made to compile a bunch of libs on Win64 and got my D project
compiled as well. Only problem left are some strange unresolved
externals.
Linking...
dmd
-of.dub\build\application-debug-windows-x86_64-dmd_2069-F0A1450B9B033D5C
On 2016-01-11 01:47:54 +, Jason Jeffory said:
and how does one link in compiled static libraries into a dub project?
I tried adding stuff like
"lflags" : ["+C:\\MyLibs\\"],
with the .lib file in it, but that doesn't work. (I'd expect to have to
supply the file name somewhere, at least)
On Monday, 11 January 2016 at 00:50:37 UTC, Ilya Yaroshenko wrote:
I will add such function. But it is not safe to do so (Slice
can have strides not equal to 1). So it is like a hack (&ret[0,
0, 0])[0 .. ret.elementsCount]).
Have you made comparison between my and yours parallel versions?
http
On Monday, 11 January 2016 at 01:24:44 UTC, Jason Jeffory wrote:
On Monday, 11 January 2016 at 01:22:28 UTC, Jason Jeffory wrote:
Dmd's setup construction is a bit weird and has some difficult
issue tracking.
How about if dmd supported, if it already doesn't, some ways
to help the user check
Ok. So I tried it out and having some issues ;/ got it basically
to compile but 2 problems:
1. I have to get dub to include the lib, not a big deal,
shouldn't be issue if I can get the right lib in. (not sure if I
have to do all that conversion just or not, and glfw has several
libs for diff
Dmd's setup construction is a bit weird and has some difficult
issue tracking.
How about if dmd supported, if it already doesn't, some ways to
help the user check the configuration of dmd. It would be quick
and easy to implement.
e.g.,
dmd -showinfo
Target Arch: x86
Libraries: C:\Mylib;C:\
On Monday, 11 January 2016 at 01:22:28 UTC, Jason Jeffory wrote:
Dmd's setup construction is a bit weird and has some difficult
issue tracking.
How about if dmd supported, if it already doesn't, some ways to
help the user check the configuration of dmd. It would be quick
and easy to implement
On Monday, 11 January 2016 at 00:39:04 UTC, Jay Norwood wrote:
On Sunday, 10 January 2016 at 23:31:47 UTC, Ilya Yaroshenko
wrote:
Just use normal arrays for buffer (median accepts array on
second argument for optimisation reasons).
ok, I think I see. I created a slice(numTasks, bigd) over an
On Sunday, 10 January 2016 at 23:14:33 UTC, Dav1d wrote:
On Sunday, 10 January 2016 at 22:37:28 UTC, Jason Jeffory wrote:
[...]
I would recommend using glfw for a context/window, there is a
binding in Deimos https://github.com/D-Programming-Deimos/glfw
- You need to either compile it yoursel
On Sunday, 10 January 2016 at 23:31:47 UTC, Ilya Yaroshenko wrote:
Just use normal arrays for buffer (median accepts array on
second argument for optimisation reasons).
ok, I think I see. I created a slice(numTasks, bigd) over an
allocated double[] dbuf, but slb[task] will be returning some
s
On Sunday, 10 January 2016 at 23:24:24 UTC, Jay Norwood wrote:
On Sunday, 10 January 2016 at 22:23:18 UTC, Ilya Yaroshenko
wrote:
Could you please provide full code and error (git gists)? --
Ilya
ok, thanks.
I'm building with DMD32 D Compiler v2.069.2 on Win32. The
dub.json is included.
On Sunday, 10 January 2016 at 23:24:24 UTC, Jay Norwood wrote:
On Sunday, 10 January 2016 at 22:23:18 UTC, Ilya Yaroshenko
wrote:
Could you please provide full code and error (git gists)? --
Ilya
ok, thanks.
I'm building with DMD32 D Compiler v2.069.2 on Win32. The
dub.json is included.
On Sunday, 10 January 2016 at 22:23:18 UTC, Ilya Yaroshenko wrote:
Could you please provide full code and error (git gists)? --
Ilya
ok, thanks.
I'm building with DMD32 D Compiler v2.069.2 on Win32. The
dub.json is included.
https://gist.github.com/jnorwood/affd05b69795c20989a3
On Sunday, 10 January 2016 at 22:37:28 UTC, Jason Jeffory wrote:
On Sunday, 10 January 2016 at 21:53:45 UTC, Dav1d wrote:
On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory
wrote:
[...]
Hey,
I am the guy behind glad, you are most likely looking for:
https://github.com/Dav1dde/glad#d
On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote:
Seems like it is a very nice way to get into openGL from D.
http://glad.dav1d.de/
I generated the bindings for all the latest versions of the
various specifications.
Does anyone have any tutorials that use this library
effective
On Sunday, 10 January 2016 at 21:53:45 UTC, Dav1d wrote:
On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote:
Seems like it is a very nice way to get into openGL from D.
http://glad.dav1d.de/
I generated the bindings for all the latest versions of the
various specifications.
Does
I made to compile a bunch of libs on Win64 and got my D project
compiled as well. Only problem left are some strange unresolved
externals.
Linking...
dmd
-of.dub\build\application-debug-windows-x86_64-dmd_2069-F0A1450B9B033D5CD11F3F60481557B0\webchat.exe
.dub\build\application-debug-windows-x
On Sunday, 10 January 2016 at 22:00:20 UTC, Jay Norwood wrote:
I cut this median template from Jack Stouffer's article and was
attempting to use it in a parallel function. As shown, it
builds and execute correctly, but it failed to compile if I
attempting to use
medians[i] = median(vec,slb[t
I cut this median template from Jack Stouffer's article and was
attempting to use it in a parallel function. As shown, it
builds and execute correctly, but it failed to compile if I
attempting to use
medians[i] = median(vec,slb[task]);
in place of the
medians[i] = median(vec,dbuf[j .. k]);
On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote:
Seems like it is a very nice way to get into openGL from D.
http://glad.dav1d.de/
I generated the bindings for all the latest versions of the
various specifications.
Does anyone have any tutorials that use this library
effective
Seems like it is a very nice way to get into openGL from D.
http://glad.dav1d.de/
I generated the bindings for all the latest versions of the
various specifications.
Does anyone have any tutorials that use this library effectively?
There's this
https://github.com/Dav1dde/glamour
But not sur
On Sunday, 10 January 2016 at 14:32:02 UTC, Jack wrote:
...
Just to make your code a little more clear, try using aliases
when defining delegate parameters. Like this:
alias Action = void delegate();
Then in your code you use the alias, like this:
class Bar()
{
private Action _action;
On Sunday, 10 January 2016 at 14:17:28 UTC, Adam D. Ruppe wrote:
A `const(void)[]` type can accept any array as input. void[] is
Ah, how i can forget about void[] !
Thanks Adam!
On Sunday, 10 January 2016 at 19:07:52 UTC, Jesse Phillips wrote:
On Sunday, 10 January 2016 at 18:09:23 UTC, Tobi G. wrote:
The bug has been fixed...
Do you have a link for the fix? Is there a BugZilla entry?
Yes sure..
https://issues.dlang.org/show_bug.cgi?id=15545
and the fix at github
On Sunday, 10 January 2016 at 18:09:23 UTC, Tobi G. wrote:
The bug has been fixed...
Do you have a link for the fix? Is there a BugZilla entry?
The bug has been fixed...
On Sunday, 10 January 2016 at 10:38:07 UTC, Johan Engelen wrote:
On Sunday, 10 January 2016 at 10:35:34 UTC, Johan Engelen wrote:
It's pretty strange that there is no "translate" method...
Didn't see it in the online docs, but in the source there is
the "translate" method that you should use.
Okay, I've cleared up some misconception.
On Wednesday, 6 January 2016 at 03:22:47 UTC, Vlad Leberstein
wrote:
The same happens with immutable class(there is related thread
with workaround at
http://www.digitalmars.com/d/archives/digitalmars/D/learn/Sending_an_immutable_object_to_a_thread_7386
On Sunday, 10 January 2016 at 03:23:14 UTC, Ilya wrote:
I will add significantly faster pairwise summation based on
SIMD instructions into the future std.las. --Ilya
Wow! A lot of overhead in the debug build. I checked the
computed values are the same. This is on my laptop corei5.
dub -b r
On Sun, 10 Jan 2016 16:34:51 +, Chris Wright wrote:
> Is there a way to write a pre-build hook in Dub?
>
> Specifically, I want to write unittests in a separate package to the
> rest of my source code. This requires a module that imports all my
> unittest modules. It's safer to automatically
Is there a way to write a pre-build hook in Dub?
Specifically, I want to write unittests in a separate package to the rest
of my source code. This requires a module that imports all my unittest
modules. It's safer to automatically generate this than to rely on my
memory.
My other alternative i
On Sunday, 10 January 2016 at 11:21:53 UTC, Marc Schütz wrote:
I'd say, if `shared` is required, but it compiles without, then
it's still a bug.
Yeah, probably so. Interestingly, without 'shared' and using a
simple assignment from a constant (means[i]= 1.0;), instead of
assignment from the
On Sunday, 10 January 2016 at 12:11:39 UTC, Russel Winder wrote:
foreach( dv; dvp){
if(dv != dv){ // test for NaN
return 1;
}
}
return(0);
}
I am not convinced these "Tests for NaN" actually test for NaN.
I
believe you have to use isNan(dv).
I s
Am 09.01.2016 um 16:45 schrieb Thalamus:
Hi Benjamin,
I wouldn't say I need DLLs to work fully _really_ badly. The only
non-negligible issue with single very large binaries that's crossed my
mind is patching, but we're years away from having to worry about that
too much. That being said, I'm de
On Sunday, 10 January 2016 at 09:41:16 UTC, Keywan Ghadami wrote:
On Friday, 8 January 2016 at 13:53:06 UTC, Guillaume Chatelet
wrote:
I still do not understand half of the syntax(still learning)
but my guess is that it is a bug in the csv reader:
In
https://github.com/D-Programming-Language/ph
On 10.01.2016 15:32, Jack wrote:
//
class Foo()
Those parentheses make this a (zero parameter) class template. I suppose
you just want a plain class. Drop them then.
{
void bar()
{
writeln("Hello World");
}
}
class Bar()
ditto
{
void d
Hello. So I was trying to pass a delegate as an argument in a
function and was wondering if I'm writing the correct code for it.
You see my code is :
//
class Foo()
{
void bar()
{
writeln("Hello World");
}
}
class Bar()
{
void delegate() action;
On Sunday, 10 January 2016 at 10:10:46 UTC, zabruk70 wrote:
void myFunc(char[] arg) { ubyte[] arg2 = cast(ubyte[]) arg; ...}
void myFunc(const(void)[] arg) {
const(ubyte)[] arg2 = cast(const(ubyte)[]) arg;
// use arg2
}
A `const(void)[]` type can accept any array as input. void[] is
a
On Sun, 2016-01-10 at 01:46 +, Jay Norwood via Digitalmars-d-learn
wrote:
>
[…]
> // processed non-parallel works ok
> foreach( dv; dv2){
> if(dv != dv){ // test for NaN
> return 1;
> }
> }
>
> // calculated parallel leaves out processing of
On Sunday, 10 January 2016 at 11:13:00 UTC, Tobi G. wrote:
ubyte[] myFunc(T1,T2)(T1[] a, T2[] b)
Tobi, big thanks!!!
I should learn templates...
On Sunday, 10 January 2016 at 01:16:43 UTC, Ilya Yaroshenko wrote:
On Saturday, 9 January 2016 at 23:20:00 UTC, Jay Norwood wrote:
I'm playing around with win32, v2.069.2 dmd and
"dip80-ndslice": "~>0.8.8". If I convert the 2D slice with
.array(), should that first dimension then be compatible
On Sunday, 10 January 2016 at 10:10:46 UTC, zabruk70 wrote:
Hello.
1st Novice question:
i want function, operates sometimes with char[], sometimes with
ubyte[].
internally it works with ubyte.
i can use overloading:
void myFunc(ubyte[] arg) {...};
void myFunc(char[] arg) { ubyte[] arg2 = cas
On Sunday, 10 January 2016 at 10:35:34 UTC, Johan Engelen wrote:
It's pretty strange that there is no "translate" method...
Didn't see it in the online docs, but in the source there is the
"translate" method that you should use.
On Sunday, 10 January 2016 at 02:51:57 UTC, WhatMeWorry wrote:
I thought just swapping the order would fix things:
transform = transform.rotate(0.78539, vec3(0.0f, 0.0f, 1.0f));
transform = transform.translation(vec3(0.5f, -0.5f, 0.0f));
but now the square is moved to the lower right corner bu
Hello.
1st Novice question:
i want function, operates sometimes with char[], sometimes with
ubyte[].
internally it works with ubyte.
i can use overloading:
void myFunc(ubyte[] arg) {...};
void myFunc(char[] arg) { ubyte[] arg2 = cast(ubyte[]) arg; ...}
It is OK. But i want 2 params (arg1, ar
On Friday, 8 January 2016 at 13:53:06 UTC, Guillaume Chatelet
wrote:
On Friday, 8 January 2016 at 13:22:40 UTC, Tobi G. wrote:
On Friday, 8 January 2016 at 12:13:59 UTC, Guillaume Chatelet
wrote:
On Friday, 8 January 2016 at 12:07:05 UTC, Tobi G. wrote:
No, sorry. Under Windows DMD v2.069.2 it
48 matches
Mail list logo