On 06/11/2016 07:58 PM, Era Scarecrow wrote:
> recent DConf 2016 which sorta covers this
For convenience, here's the link:
http://www.ustream.tv/recorded/86352137/highlight/699197
However although I'm very biased :), I still like the following fiber
explanation that emphasizes function cal
On Sunday, 12 June 2016 at 04:19:33 UTC, Joerg Joergonson wrote:
1. I had an older distro(I think) of ldc. The ldc2.exe is 18MB
while the "new" one is 36MB. I copied the old ldc bin dir to
the new one and didn't change anything and everything compiled
EXCEPT
That's just asking for problems
On Sunday, 12 June 2016 at 03:46:31 UTC, Mike Parker wrote:
On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote:
[...]
Your problem is this line:
glBufferData(GL_ARRAY_BUFFER, verts.sizeof, &verts,
GL_STATIC_DRAW);
[...]
Thank you very much. You are right, that fixed my issue
On Friday, 10 June 2016 at 07:03:21 UTC, ketmar wrote:
On Thursday, 9 June 2016 at 22:02:44 UTC, Joerg Joergonson
wrote:
Lol, who says you have access to my software? You know, the
problem with assumptions is that they generally make no sense
when you actually think about them.
oh, yeah. it s
On Sunday, 12 June 2016 at 03:22:06 UTC, Mike Parker wrote:
On Sunday, 12 June 2016 at 02:09:24 UTC, Joerg Joergonson wrote:
Ok, So I started an empty project and I found all the libs
that are required from all of VS, SDK, LDC, DMD, etc and put
them in 4 folders:
Libs\COFF\x86
Libs\COFF\x64
L
On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote:
Hi all.
I am trying to create a basic OpenGL triangle in a GLFW
instance. The window works, I can change the background colour
and everything but for the life of me I can't get the triangle
to show up. Instead of trying to put everyth
On Sunday, 12 June 2016 at 02:09:24 UTC, Joerg Joergonson wrote:
Ok, So I started an empty project and I found all the libs that
are required from all of VS, SDK, LDC, DMD, etc and put them in
4 folders:
Libs\COFF\x86
Libs\COFF\x64
Libs\OMF\x86
Libs\OMF\x64
There's no need for OMF\x64. OPTLI
On Sunday, 12 June 2016 at 03:11:14 UTC, Mike Parker wrote:
I think that's reasonable. All three compilers share the same
Sorry, I mean I *don't* think that's reasonable.
On Sunday, 12 June 2016 at 01:51:05 UTC, Joerg Joergonson wrote:
Well, it's definitely not as simple as you make it out to be. I
have tried all kinds of combinations of libs and settings and
nothing works. If it's not one error it's another and it
becomes hard to know exactly what is going on
On Sunday, 12 June 2016 at 02:16:52 UTC, Peter Lewis wrote:
Hi all.
I am trying to create a basic OpenGL triangle in a GLFW
instance. The window works, I can change the background colour
and everything but for the life of me I can't get the triangle
to show up. Instead of trying to put everyth
On Sunday, 12 June 2016 at 02:43:40 UTC, Patric Dexheimer wrote:
I learned about Fibers on D, and now I´m starting to read about
it (Threads/Fibers/Coroutines) etc. But when I try to make
something usefull with it I just fail to see the real advantage
over a normal structured programming withou
On Saturday, 11 June 2016 at 14:10:07 UTC, Johan Engelen wrote:
On Saturday, 11 June 2016 at 08:48:42 UTC, Mike Parker wrote:
[... a lot ...]
This looks like a nice writeup Mike, could you get this on the
Wiki or somewhere more permanent where people can find it?
-Johan
I've been meaning to
I learned about Fibers on D, and now i´m starting to read about
it (Threads/Fibers/Coroutines) etc.
But when i try to make something usefull with it i just fail to
see the real advantage over a normal structured programming
without it.
Can someone show some code with usefull/unique/advantageou
Hi all.
I am trying to create a basic OpenGL triangle in a GLFW instance.
The window works, I can change the background colour and
everything but for the life of me I can't get the triangle to
show up. Instead of trying to put everything in the post, I have
put it on github. (https://github.co
Ok, So I started an empty project and I found all the libs that
are required from all of VS, SDK, LDC, DMD, etc and put them in 4
folders:
Libs\COFF\x86
Libs\COFF\x64
Libs\OMF\x86
Libs\OMF\x64
fixed up sc.ini and VD to use them and worked on stuff until I
had no lib errors with the test proje
On Saturday, 11 June 2016 at 08:48:42 UTC, Mike Parker wrote:
On Saturday, 11 June 2016 at 06:22:27 UTC, Joerg Joergonson
wrote:
[...]
That's not true unless I'm not suppose to import them
directly. When I switch to 64-bit build I get same errors.
Basically only dmd x86 works.
It's true if
On Saturday, 11 June 2016 at 13:03:47 UTC, ketmar wrote:
On Friday, 10 June 2016 at 18:47:59 UTC, Joerg Joergonson wrote:
In any case, this is impossible. D has no such concept as
"compile-time-only" values, so any usage of a value risks
embedding it into the binary.
sure, it has.
template Pa
On Saturday, 11 June 2016 at 16:04:45 UTC, Christophe Meessen
wrote:
Real professionals won't have difficulties to find binaries for
ldc: https://github.com/ldc-developers/ldc/releases
They also don't waste their time posting asinine comments.
On Saturday, 11 June 2016 at 22:58:00 UTC, Incognito wrote:
function foo (double x, double y, bool function(bar) callback)
is not callable using argument types
(double, double, bool function() pure nothrow @nogc @safe
function(bar w) pure nothrow @nogc @safe)
I've tried with passing a delegate
function foo (double x, double y, bool function(bar) callback)
is not callable using argument types
(double, double, bool function() pure nothrow @nogc @safe
function(bar w) pure nothrow @nogc @safe)
I've tried with passing a delegate.
I am calling it like
foo(0,0, (bar b) => { return true; }
On 06/11/2016 04:57 PM, TheDGuy wrote:
Hi,
i am wondering why this code doesn't work, even though i set the column
and row position of the button it is always placed at the top left (so
basically first row and first column):
... Code ...
The way GTK manages width and height, usually widgets
On Saturday, 11 June 2016 at 19:45:56 UTC, Random D user wrote:
Any good ideas how to do that?
I couldn't figure it out in a short amount of time, but I
expect that it's possible. I'm probably missing something
obvious here. Probably because D's reflection/meta programming
facilities are a bi
Any good ideas how to do that?
I couldn't figure it out in a short amount of time, but I expect
that it's possible. I'm probably missing something obvious here.
Probably because D's reflection/meta programming facilities are a
bit all over the place (and unnecessarily convoluted IMO).
Also I'm
Hi,
I am trying to create a win32 window using RegisterClass(Ex). It
fails on x64 but works on x86. The error code is 998 =
ERROR_NOACCESS, Invalid access to memory location.
For x64 I used -L/ENTRY:mainCRTStartup because of link error(not
finding entry point). Not sure if this is causing th
Real professionals won't have difficulties to find binaries for ldc:
https://github.com/ldc-developers/ldc/releases
--
Bien cordialement,
Ch.Meessen
> Le 10 juin 2016 à 22:30, Joerg Joergonson via Digitalmars-d-learn
> a écrit :
>
>> On Friday, 10 June 2016 at 19:51:19 UTC, Johan Engelen wrot
Hi,
i am wondering why this code doesn't work, even though i set the
column and row position of the button it is always placed at the
top left (so basically first row and first column):
this(int width, int height, string title){
super(title);
setDefaultSize(width,height);
On Saturday, 11 June 2016 at 08:48:42 UTC, Mike Parker wrote:
[... a lot ...]
This looks like a nice writeup Mike, could you get this on the
Wiki or somewhere more permanent where people can find it?
-Johan
On 06/11/2016 01:59 PM, yawniek wrote:
i forgot to add a few important points:
- the strings in vec_t are not c strings
- vec_t might contain other data than strings
the original ctor i pasted actually doesn't even work, temporarly i
solved it like
this(string s) {
char[] si = cas
On Friday, 10 June 2016 at 18:47:59 UTC, Joerg Joergonson wrote:
In any case, this is impossible. D has no such concept as
"compile-time-only" values, so any usage of a value risks
embedding it into the binary.
sure, it has.
template ParseData (string text) {
private static enum Key = "XXXyy
On Saturday, 11 June 2016 at 10:26:17 UTC, Mike Parker wrote:
On Saturday, 11 June 2016 at 09:32:54 UTC, yawniek wrote:
thanks mike for the in depth answer.
i forgot to add a few important points:
- the strings in vec_t are not c strings
- vec_t might contain other data than strings
the origi
On Saturday, 11 June 2016 at 09:32:54 UTC, yawniek wrote:
so far i defined vec_t as:
struct vec_t {
char *base;
size_t len;
this(string s) { base = s.ptr; len = s.lenght; }
nothrow @nogc inout(char)[] toString() inout @property { return
base[0 .. len]; }
nothrow @nogc @pro
my C library works a lot with strings defined in C as:
struct vec_t {
char *base;
size_t len;
}
is there a easy way to feed regular D strings to functions that
accept vec_t*
without creating a vec_t every time
or do i write wrappers for these functions and if so, what is the
most eleg
On Saturday, 11 June 2016 at 08:48:42 UTC, Mike Parker wrote:
Alternatively, you might try one of the dynamic bindings[1] to
a library you need, such as DerelictGL3. Then there is no link
[1] https://github.com/DerelictOrg
On Saturday, 11 June 2016 at 08:48:42 UTC, Mike Parker wrote:
it looks win the dmd2/windows/lib directory. Since opengl32 and
glu32 do not ship with DMD, it will not find them there. So you
either need to put COFF format libs there or tell the compiler
Obviously, I meant 'OMF format' here.
On Saturday, 11 June 2016 at 06:22:27 UTC, Joerg Joergonson wrote:
OpenGL32.lib and glu32.lib are part of the Windows SDK.
Assuming you've got VS 2015 installed, they should be part of
the installation and should be available out of the box.
Adam's lib is solely for use with OPTLINK when comp
35 matches
Mail list logo