Re: Who maintains the D website?

2017-08-03 Thread Johnson Jones via Digitalmars-d
On Friday, 4 August 2017 at 00:52:34 UTC, captaindet wrote: On 2017-08-04 12:13, Johnson Jones wrote: No, sorry. The lead team uses nttp which is old school forum technology. They won't move in to the present and instead insist everyone else stay in the past with them. It's sort of like those

Re: Who maintains the D website?

2017-08-03 Thread Johnson Jones via Digitalmars-d
On Thursday, 3 August 2017 at 23:28:36 UTC, 12345swordy wrote: On Thursday, 3 August 2017 at 00:18:38 UTC, Andrej Mitrovic wrote: Is there a single person who's the main maintainer of the D website..? If not, I have some ideas on how to improve it. Not just ideas, I'd like to give a host at

Re: Who maintains the D website?

2017-08-04 Thread Johnson Jones via Digitalmars-d
On Friday, 4 August 2017 at 06:08:04 UTC, captaindet wrote: i see you didn't hold your horses... not sure if i should reply again to such an angry rant. i will stay calm and focused though. How pathetic, you are not worth my time. Seeing how you equate accuracy with typos and insecurity

Re: [OT] - A hacker stole $31M of Ether — how it happened, and what it means for Ethereum

2017-08-04 Thread Johnson Jones via Digitalmars-d
On Friday, 4 August 2017 at 05:57:00 UTC, Nick B wrote: See - https://medium.freecodecamp.org/a-hacker-stole-31m-of-ether-how-it-happened-and-what-it-means-for-ethereum-9e5dc29e33ce But can a digital wallets/crypto currency ever be secure ? Nope... as long as humans continue to build house

Re: Who maintains the D website?

2017-08-04 Thread Johnson Jones via Digitalmars-d
On Friday, 4 August 2017 at 09:13:33 UTC, Mike Parker wrote: On Friday, 4 August 2017 at 06:08:04 UTC, captaindet wrote: i see you didn't hold your horses... not sure if i should reply again to such an angry rant. i will stay calm and focused though. This guy has a history of insulting

Stefan Koch: New CTFE fix

2017-08-14 Thread Johnson Jones via Digitalmars-d
Hi Stefan, I have a suggestion/request for you for newCTFE: string do() { string x; x = "adsf"; pragma(msg, x); return x; } fails because the compiler believes that x is not known at compile time. It obviously is when do is ran as a ctfe. This makes some types of programming

Re: ASCII-ART mandelbrot running under newCTFE

2017-08-04 Thread Johnson Jones via Digitalmars-d
On Friday, 4 August 2017 at 22:50:03 UTC, Stefan Koch wrote: Hey Guys, I just trans-compiled a brainfuck mandelbrot into ctfeable D. newCTFE is able to execute it correctly (although it takes 3.5 minutes to do so). The code is here

Re: Did dmd forget how to read?

2017-08-05 Thread Johnson Jones via Digitalmars-d
On Sunday, 6 August 2017 at 00:22:45 UTC, Cym13 wrote: On Saturday, 5 August 2017 at 23:54:45 UTC, Johnson Jones wrote: main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise. "setCursor" exists, but

Did dmd forget how to read?

2017-08-05 Thread Johnson Jones via Digitalmars-d
main.d(157): Error: no property 'SetCursor' for type 'gdk.Window.Window', did you mean 'getCursor'? um... anyone see bug? It's there, I promise.

ModuleInfo Error

2017-08-09 Thread Johnson Jones via Digitalmars-d
I routinely get this error when I forget to add a module that I import to the project. It throughs me for a loop because the error doesn't really make sense for what is actually wrong(or does it?): Error 42: Symbol Undefined _D9DLLImport12__ModuleInfoZ (DLLImport.__ModuleInfo) Adding

Re: ModuleInfo Error

2017-08-09 Thread Johnson Jones via Digitalmars-d
On Wednesday, 9 August 2017 at 22:00:56 UTC, Adam D. Ruppe wrote: On Wednesday, 9 August 2017 at 21:29:07 UTC, Johnson Jones wrote: I routinely get this error when I forget to add a module that I import to the project. You learn it pretty quickly though, don't you? no ;/ I have a memory

Re: GC operates in LIFO sequence?

2017-08-09 Thread Johnson Jones via Digitalmars-d
On Wednesday, 9 August 2017 at 17:38:15 UTC, Swoorup Joshi wrote: On Wednesday, 9 August 2017 at 15:47:17 UTC, Guillaume Piolat wrote: On Wednesday, 9 August 2017 at 13:46:29 UTC, MGW wrote: Memory allocation and deallocation when an application is being completed in GC operates in FIFO

Import modules too verbose in some cases

2017-08-09 Thread Johnson Jones via Digitalmars-d
Sometimes one doesn't want to import either the whole module nor specify a single function to import. It seems that basically D has all the info to import the function implicitly because it usually gives a nice error message tells us which module to import for the function. e.g., A.B.C()

Re: Named multi-imports

2017-08-17 Thread Johnson Jones via Digitalmars-d
On Thursday, 17 August 2017 at 21:03:33 UTC, aberba wrote: On Wednesday, 16 August 2017 at 13:57:17 UTC, jmh530 wrote: On Wednesday, 16 August 2017 at 09:54:41 UTC, aberba wrote: This looks really clean for code modularity. import io = std.stdio : {writeln, write}, ... What does this add?

Re: Named multi-imports

2017-08-16 Thread Johnson Jones via Digitalmars-d
On Wednesday, 16 August 2017 at 17:14:49 UTC, jmh530 wrote: On Wednesday, 16 August 2017 at 14:42:51 UTC, Mike Wey wrote: Wouldn't that just move the problem? You then get an package that imports gtk.Window and a other package that imports gdk.Window, and if you want to use both you still

Re: New Features [was Named multi-imports]

2017-08-16 Thread Johnson Jones via Digitalmars-d
On Wednesday, 16 August 2017 at 19:05:54 UTC, Jesse Phillips wrote: On Tuesday, 15 August 2017 at 20:33:18 UTC, Johnson wrote: On Tuesday, 15 August 2017 at 03:37:39 UTC, rikki cattermole wrote: But then that only helps with one specific instance. D is full of language features, I do not see

Re: Named multi-imports

2017-08-17 Thread Johnson Jones via Digitalmars-d
On Thursday, 17 August 2017 at 21:49:38 UTC, Timon Gehr wrote: On 17.08.2017 23:03, aberba wrote: On Wednesday, 16 August 2017 at 13:57:17 UTC, jmh530 wrote: On Wednesday, 16 August 2017 at 09:54:41 UTC, aberba wrote: This looks really clean for code modularity. import io = std.stdio :

Fix D's segfaults!

2017-08-20 Thread Johnson Jones via Digitalmars-d
D has a major issue with segfaults! It always reports the fault in the lowest function that it occurs! This is completely useless! std.file.FileException@std\file.d(755): Attempting to rename file X.lib to Y.lib: The system cannot find the file specified. 0x0041015E

Re: Fix D's segfaults!

2017-08-20 Thread Johnson Jones via Digitalmars-d
uživatel "Johnson Jones via Digitalmars-d" <digitalmars-d@puremagic.com>: D has a major issue with segfaults! It always reports the fault in the lowest function that it occurs! This is completely useless! std.file.FileException@std\file.d(755): Attempting to rename file X.lib to Y

Symbols missing, unmangle!

2017-08-30 Thread Johnson Jones via Digitalmars-d
It would be nice if, when symbols are missing, they are unmangled! Error 42: Symbol Undefined _D12mMunchhousin12iMunchhousin11__T4GoTsZ4GoMFS12mMunchhousin18__T10MunchhousinTsZ10sMunchhousinfE12mMunchhousin9eGoffZv (void Munchhousin.Munchhousin.Go!(short).Go() I know some like to read

Re: gtk arch issues

2017-07-31 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 31 July 2017 at 17:16:32 UTC, Johnson Jones wrote: how does one allow both gtk x86 and x64 to work side by side seamlessly? I installed x64 first and it seems, because whatever is using the path to find the gtk runtime, it looks for that first even in x86 build. Seems like

Re: gtk arch issues

2017-07-31 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 31 July 2017 at 17:50:08 UTC, Johnson Jones wrote: On Monday, 31 July 2017 at 17:16:32 UTC, Johnson Jones wrote: [...] I fixed up gtkd so that it uses x86 and x64 versions of dlls but it doesn't seem to help with x64. I was able to get x86 to compile and run but x64 just loads

gtk arch issues

2017-07-31 Thread Johnson Jones via Digitalmars-d-learn
how does one allow both gtk x86 and x64 to work side by side seamlessly? I installed x64 first and it seems, because whatever is using the path to find the gtk runtime, it looks for that first even in x86 build. Seems like gtkd's dll resolution is not very intelligent. While I could

Re: Bug in gtkd?

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 20:18:19 UTC, Mike Wey wrote: On 01-08-17 21:44, Johnson Jones wrote: On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.

custom drawing with gktd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
I have a need to draw custom objects with gtkD, is this possible? I see that with drawing area one can use cario, and it seems that gtkD supports this. I'd rather use openGL if possible. I see there is a gtkDGL but no reference to how to use it. I need pretty simple drawing stuff... lines,

Re: gtk arch issues(fixed)

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:59:39 UTC, Mike Wey wrote: On 01-08-17 22:50, Johnson Jones wrote: So, the problem is simple(but unfortunately a lot of wasted time). gtkD needs to be updated to work well with x64 and x86. I think all one has to do is be able to specify which path of gtk

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

gtkD load images

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
How can be use gtkD to load images, I assume through gdkpixbuf? While I am getting errors loading images through glade's image: (test.exe:8188): Gtk-WARNING **: Could not load image 'a.jpg': Couldn't recognize the image file format for file 'test\a.jpg' (loads fine in glade)

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

Re: Bug in gtkd?

2017-08-02 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 03:00:02 UTC, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything. Great, unfortunately "Use msys2" seems to

Re: gtk arch issues

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
nvm, the file exists. Why it is not being found is unknown. I did some stuff and it says it is not a valid win32, this is using that gtk3 runtime I linked to... says it's x64 version but probably x86. Would be nice if the error message printed the full path of what was being loaded so it's

Re: gtk arch issues(fixed)

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
So, The error I currently get is object.Exception@generated\gtkd\gtkd\Loader.d(125): Library load failed (libgdk-3-0x64.dll): is not a valid Win32 application. and libgdk-3-0x64.dll was libgdk-3-0.dll from the 64-bit gtk package. (I simply added the extension)... the package downloaded

Re: Bug in gtkd?

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote: On 01-08-17 05:53, Johnson Jones wrote: GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0. Which version of glade are you using? The latest: Glade 3.8.5

Re: gtk arch issues

2017-08-01 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 1 August 2017 at 15:14:50 UTC, Mike Wey wrote: On 01-08-17 01:37, Johnson Jones wrote: So, the question is, is this a gtkd problem or a gtk problem? In either case, what's the way to get them both to work. Do you guys actually test out both versions installed on the same system?

Re: Bug in gtkd?

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 15:11:46 UTC, Mike Wey wrote: On 03-08-17 05:00, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.

Re: Bug in gtkd?

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 15:11:46 UTC, Mike Wey wrote: On 03-08-17 05:00, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.

Re: Bug in gtkd?

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 15:11:46 UTC, Mike Wey wrote: On 03-08-17 05:00, Johnson Jones wrote: On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote: On 02-08-17 08:04, Johnson Jones wrote: Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.

Re: gtkD load images

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 13:12:03 UTC, Mengu wrote: On Thursday, 3 August 2017 at 03:59:40 UTC, Johnson Jones wrote: How can be use gtkD to load images, I assume through gdkpixbuf? While I am getting errors loading images through glade's image: (test.exe:8188): Gtk-WARNING

Re: Visual D no bp's on x64

2017-08-03 Thread Johnson Jones via Digitalmars-d-debugger
On Thursday, 3 August 2017 at 07:06:06 UTC, Rainer Schuetze wrote: On 31.07.2017 19:51, Johnson Jones wrote: On Saturday, 22 July 2017 at 12:54:17 UTC, Rainer Schuetze wrote: On 18.06.2017 20:25, Mike B Johnson wrote: [...] After installing VS2017 on a fresh Win10 install I could

Re: gtkD load images

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 13:12:03 UTC, Mengu wrote: On Thursday, 3 August 2017 at 03:59:40 UTC, Johnson Jones wrote: How can be use gtkD to load images, I assume through gdkpixbuf? While I am getting errors loading images through glade's image: (test.exe:8188): Gtk-WARNING

Re: Bug in gtkd?

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 3 August 2017 at 21:00:17 UTC, Mike Wey wrote: On 03-08-17 22:40, Johnson Jones wrote: Ok, so, I linked the gtk to the msys gtk that I installed before when trying to get glade to work and it worked! seems that msys is much more up to date than anything else as it just works(I

Re: Fix gtkD api display

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
Also, interfaces are not linkable. e.g., for gtk.ApplicationWindow, it inherits from gtk.Window but I have to go back to the packages and scroll down to find gtk.Window to see it's properties and methods. Would be nice if I could just click on the gtk.Window and it jump me to it.

Fix gtkD api display

2017-08-03 Thread Johnson Jones via Digitalmars-d-learn
https://api.gtkd.org It is difficult to navigate. 1. clicking the documentation on the main site takes it to the gtk.AboutDialog api. That is all it shows, I was confused at first, as I'm sure most people would be. 2. The packages list lists all the packages, but all the sub elements are

Re: gtkD load images

2017-08-04 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 4 August 2017 at 06:58:00 UTC, Antonio Corbi wrote: On Thursday, 3 August 2017 at 21:06:36 UTC, Johnson Jones wrote: [...] Hi! I load images using Gtk like this (I use gtk under gnu/linux): [...] Thanks! I'm sure it will if it works ;)

Re: string hash significant speedup

2017-08-10 Thread Johnson Jones via Digitalmars-d-learn
On Thursday, 10 August 2017 at 20:07:35 UTC, Steven Schveighoffer wrote: On 8/10/17 3:36 PM, Johnson Jones wrote: when using T[string], hashing is used. Computing the hash is slow(relatively speaking). Does D cache the hashes? Strings are immutable so there is absolutely no reason why the

Debugging Visual D using Visual D

2017-08-13 Thread Johnson Jones via Digitalmars-d-debugger
So, just to let you know, I seemed to be able to setup Visual Studio so that I can debug Visual D(with visual D). To do this: Load the experimental hive: https://blog.agchapman.com/updating-registry-settings-for-visual-studio-2017/ Load the privateregistry.bin file from

Re: Debugging Visual D using Visual D

2017-08-13 Thread Johnson Jones via Digitalmars-d-debugger
One can prevent building the other projects using the configuration manager. Seems to work fine. One problem is that I cannot seem to get breakpoints to work. Same issues as I mentioned before with visual D saying the symbols haven't been loaded for the document. I do not know if it's the

wth!! ctfe cannot format floating point at compile time?

2017-08-13 Thread Johnson Jones via Digitalmars-d-learn
Error: uncaught CTFE exception std.format.FormatException("Cannot format floating point types at compile-time") called from here: to(0.75) pretty simply, trying to convert a floating point to a string in a ctfe function and it thinks that it is too complex to do in a ctfe, really?

string hash significant speedup

2017-08-10 Thread Johnson Jones via Digitalmars-d-learn
when using T[string], hashing is used. Computing the hash is slow(relatively speaking). Does D cache the hashes? Strings are immutable so there is absolutely no reason why the hash ever need to be computed more than once. Essentially the hash should be attached to strings like their length

Re: Fix gtkD api display

2017-08-04 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 4 August 2017 at 15:24:51 UTC, Gerald wrote: On Friday, 4 August 2017 at 15:08:27 UTC, Mike Wey wrote: Improving the documentation is something i want to do but there are always some more important things to do. Like the Questions/Issues you posted earlier. So unless somebody

Re: Fix gtkD api display

2017-08-04 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 4 August 2017 at 13:59:11 UTC, Adam D. Ruppe wrote: On Friday, 4 August 2017 at 02:08:31 UTC, Johnson Jones wrote: https://api.gtkd.org/gtkd/gtk/ApplicationWindow.html So I ran gtkd through my doc generator too

Re: Fix gtkD api display

2017-08-04 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 4 August 2017 at 23:14:38 UTC, Adam D. Ruppe wrote: On Friday, 4 August 2017 at 21:53:14 UTC, Johnson Jones wrote: When I click on gtk on the link you gave it gives basically an empty page(a single module). Yeah, there is no overview page in the source code... but I can make it

Re: Create class on stack

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 23:09:09 UTC, Moritz Maxeiner wrote: On Saturday, 5 August 2017 at 17:08:32 UTC, Johnson Jones wrote: using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to

gtkD: events being triggered twice

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
GtkEventBox - Enter GtkEventBox - Enter Down GtkEventBox - Leave Up GtkEventBox - Leave GtkEventBox - Leave That is when I move the mouse over the event box then click then move out out then release. I would expect Enter Down Leave Up The fact that enter and leave are not paired equally is

gtkD window centering message up and no app on taskbar

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display. I'd basically like to center the window on the main display or at least be able to set coordinates

Create class on stack

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
using gtk, it has a type called value. One has to use it to get the value of stuff but it is a class. Once it is used, one doesn't need it. Ideally I'd like to treat it as a struct since I'm using it in a delegate I would like to minimize unnecessary allocations. Is there any way to get D to

Re: lambda function with "capture by value"

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 18:17:49 UTC, Simon Bürger wrote: If a lambda function uses a local variable, that variable is captured using a hidden this-pointer. But this capturing is always by reference. Example: int i = 1; auto dg = (){ writefln("%s", i); }; i = 2; dg(); //

Re: gtkD window centering message up and no app on taskbar

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 21:37:40 UTC, Mike Wey wrote: On 07-08-17 23:52, Johnson Jones wrote: On Monday, 7 August 2017 at 20:57:08 UTC, Mike Wey wrote: On 07-08-17 22:46, Johnson Jones wrote: [...] This appears to be a GTK issue, a work around might be to get the Window handle from

Re: gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 22:59:16 UTC, Moritz Maxeiner wrote: On Monday, 7 August 2017 at 22:02:21 UTC, Johnson Jones wrote: I have an icon that I toggle which clicked. It seems that I can't toggle it any faster than about a second. The handler is being called each click but it seems the

Re: rename file, execute os, etc at compile time

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 12:39:31 UTC, lobo wrote: On Monday, 7 August 2017 at 00:07:26 UTC, Johnson Jones wrote: On Sunday, 6 August 2017 at 23:11:56 UTC, Nicholas Wilson wrote: On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote: [...] It is deliberately not possible.

Re: x64 build time 3x slower?

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
On Tuesday, 8 August 2017 at 00:01:05 UTC, Johnson Jones wrote: On Monday, 7 August 2017 at 22:56:37 UTC, Moritz Maxeiner wrote: On Monday, 7 August 2017 at 22:19:57 UTC, Johnson Jones wrote: Why would that be. Program take about 4 seconds to compile and 12 for x64. There is fundamentally no

Re: Get Dll functions at compile time

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 9 August 2017 at 02:11:13 UTC, Johnson Jones wrote: I like to create code that automates much of the manual labor that we, as programmers, are generally forced to do. D generally makes much of this work automatable. For example, I have created the following code which makes

Get Dll functions at compile time

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
I like to create code that automates much of the manual labor that we, as programmers, are generally forced to do. D generally makes much of this work automatable. For example, I have created the following code which makes loading dlls similar to libs: /* Import DLL functions in to type T.

Re: gtk arch issues

2017-07-31 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 31 July 2017 at 20:37:11 UTC, Mike Wey wrote: On 31-07-17 19:16, Johnson Jones wrote: how does one allow both gtk x86 and x64 to work side by side seamlessly? I installed x64 first and it seems, because whatever is using the path to find the gtk runtime, it looks for that first

Bug in gtkd?

2017-07-31 Thread Johnson Jones via Digitalmars-d-learn
Trying a very simple interface. When I add a notebook I get the following error (test.exe:4504): Gtk-ERROR **: failed to add UI: C:\Test\Main.Glade:27:43 Invalid property: GtkNotebook.tab_hborder When removing it from the glade file it then crashes with on the homogenous

Thread sequencer

2017-08-08 Thread Johnson Jones via Digitalmars-d-learn
I'm wondering if there is an easy way to create a single extra thread that one can pass delegates(code) to and it executes it properly. The thread never closes except at shutdown. The idea is that isn't of creating one thread per task, there is one thread that executes each task. Obviously

Re: Get Dll functions at compile time

2017-08-09 Thread Johnson Jones via Digitalmars-d-learn
Was buggy due to refactoring. module DLLImport; /* Import DLL functions in to type T. The following example shows methodology struct DLL_gdk { @("DLLImport") public static extern(Windows) { @("libgdk-3-0.dll") {

Re: gtkD window centering message up and no app on taskbar

2017-08-09 Thread Johnson Jones via Digitalmars-d-learn
On Wednesday, 9 August 2017 at 15:10:46 UTC, Mike Wey wrote: On 09-08-17 01:00, Johnson Jones wrote: But, finally, this does seem to work: // Fixup missing taskbar icon void SetTaskBarIcon(gtk.ApplicationWindow window) { version(Windows) version(X86) {

delegates/lambas do not pick up calling convention

2017-08-09 Thread Johnson Jones via Digitalmars-d-learn
given somethign like Threads.threadsAddIdle which takes an extern(C) int (void*) we can't seem to do threadsAddIdle((void*) { }, null); nor because D complains is not the correct type nor can we do delegate(void*) or extern(C) delegate(void*) {} and have to resort to verbosity to get

Re: gtkD window centering message up and no app on taskbar

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 20:57:08 UTC, Mike Wey wrote: On 07-08-17 22:46, Johnson Jones wrote: [...] This appears to be a GTK issue, a work around might be to get the Window handle from gtk and use the Windows API to set the taskbar visibility. Yeah, I was thinking about that but

Re: gtkD window centering message up and no app on taskbar

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:56:10 UTC, Mike Wey wrote: Windows will only show the taskbar icon if you are not running the application from the console. Now in x64 it is showing, not in x86. So, not sure what's going on but at least it is showing. I was in a windows console and added a

Re: gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 22:59:16 UTC, Moritz Maxeiner wrote: On Monday, 7 August 2017 at 22:02:21 UTC, Johnson Jones wrote: I have an icon that I toggle which clicked. It seems that I can't toggle it any faster than about a second. The handler is being called each click but it seems the

Visual D: Unexpected symbol reader error while processing test.exe

2017-08-07 Thread Johnson Jones via Digitalmars-d-debugger
I'm very few BP's are working now ;/ Getting that error on most of the lines of code I have https://ibb.co/cVVSSF Not sure why it broke all of a sudden. Since these things seem to be relatively random I'll play around with it after a while. Maybe a more informative error message could be

x64 build time 3x slower?

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
Why would that be. Program take about 4 seconds to compile and 12 for x64. There is fundamentally no difference between the two versions. I do link in gtk x86 and gtk x64 depending on version, and that's it as far as I can tell. Debug x86 4 x64 12 Release x86 3 x64

Re: x64 build time 3x slower?

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 22:56:37 UTC, Moritz Maxeiner wrote: On Monday, 7 August 2017 at 22:19:57 UTC, Johnson Jones wrote: Why would that be. Program take about 4 seconds to compile and 12 for x64. There is fundamentally no difference between the two versions. I do link in gtk x86 and gtk

gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
I have an icon that I toggle which clicked. It seems that I can't toggle it any faster than about a second. The handler is being called each click but it seems the gui is not updated more than about 1fps in that case? Although, I'm sure it update faster than 1fps, just seems the icon/image

Re: gtkD: events being triggered twice

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 21:01:33 UTC, Mike Wey wrote: On 06-08-17 21:27, FoxyBrown wrote: [...] Also seems to be working properly with a Separator. Ok, I guess it's on my end, I don't see how since I'm not doing a hell of a lot and only gtk is calling those event handlers, I'll try to

Re: gtkD load images

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 12:51:13 UTC, Mike Wey wrote: On 03-08-17 21:56, Johnson Jones wrote: If I do something like import gdkpixbuf.Pixbuf; Pixbuf.newFromResource("C:\\a.jpg"); There are two issues here, you need to properly escape the slash: "C:a.jpg". And a.jpg is not a

gtk: get property

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
I am trying to get the handle size of panned. Not sure if I'm doing it right but Value value = new Value(); paned.getProperty("handle-size", value); GLib-GObject-CRITICAL **: g_object_get_property: assertion 'G_IS_VALUE (value)' failed or I get stuff like GLib-GObject-WARNING **:

gtk get actual pixel height of widget

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
I am trying to set positions of widgets automatically. e.g., I have a paned widget and I to set the position of the handle manually based on a percentage of the window. e.g., 0.5 will set the handle midway and both children will have the same height. I 0.2 will set it to to 20%. I want it to

Re: gtk: get property

2017-08-05 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 15:19:43 UTC, Gerald wrote: On Saturday, 5 August 2017 at 15:08:21 UTC, Johnson Jones wrote: I am trying to get the handle size of panned. Not sure if I'm doing it right but [...] I'm using this in Tilix: Value handleSize = new Value(0);

Re: gtkD window centering message up and no app on taskbar

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:56:10 UTC, Mike Wey wrote: On 05-08-17 20:14, Johnson Jones wrote: When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display.

rename file, execute os, etc at compile time

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
is it possible to do? I would like to pre-configure some stuff at "pre-compilation"(in ctfe but before the rest of the program actually gets compiled). I know it's not safe and all that but in my specific case it would help. I'll probably use pre-build events, which is probably the best,

Re: rename file, execute os, etc at compile time

2017-08-06 Thread Johnson Jones via Digitalmars-d-learn
On Sunday, 6 August 2017 at 23:11:56 UTC, Nicholas Wilson wrote: On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote: is it possible to do? I would like to pre-configure some stuff at "pre-compilation"(in ctfe but before the rest of the program actually gets compiled). I know it's

VisualD: Intellisense broke?

2017-08-07 Thread Johnson Jones via Digitalmars-d-debugger
Tried to do some work this morning and Intellisense is not showing. Not sure what happened. Working fine yesterday. It seems that when I converted my code to automatically generate some fields, the semantic engine is not seeing them ;/ I went from something like struct X { int a; } to

Re: gtkD window centering message up and no app on taskbar

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 5 August 2017 at 20:56:10 UTC, Mike Wey wrote: On 05-08-17 20:14, Johnson Jones wrote: When trying to center the window. If one uses ALWAYS_CENTERED any resizing of the window is totally busted. CENTER also does not work. move(0,0) seems to not be relative to the main display.

Re: gtkD window centering message up and no app on taskbar

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
and I do have skipTaskbar disabled... tried enabling it with no long... and fidgeting with other settings and using a Window instead of Application Window. Maybe gtk needs to be told that that the window is the "main window" of the application?

Re: gtkD: events being triggered twice

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
On Monday, 7 August 2017 at 16:13:18 UTC, Adam D. Ruppe wrote: On Sunday, 6 August 2017 at 19:27:15 UTC, FoxyBrown wrote: I don't know gtk, but I would suspect moving the mouse over the child triggers the enter/leave notifications too and it bubbles up to

Re: Debugging Visual D using Visual D

2017-08-17 Thread Johnson Jones via Digitalmars-d-debugger
On Thursday, 17 August 2017 at 21:18:35 UTC, Johnson Jones wrote: On Thursday, 17 August 2017 at 17:45:35 UTC, Rainer Schuetze wrote: On 17.08.2017 19:05, Johnson wrote: On Wednesday, 16 August 2017 at 19:35:19 UTC, Rainer Schuetze wrote: On 16.08.2017 21:18, Johnson Jones wrote: What's

Problem with BP's

2017-08-17 Thread Johnson Jones via Digitalmars-d-debugger
I was doing something strange ;/ I had code like mixin(import("Myfile.d")); CallSomeFunctionInMyFile(); And no BP's could be hit in side the function call. D would say that there was an error in the symbols for the project. but making MyFile.d a module(adding module MyFile; at the top)

Re: Debugging Visual D using Visual D

2017-08-17 Thread Johnson Jones via Digitalmars-d-debugger
On Thursday, 17 August 2017 at 17:45:35 UTC, Rainer Schuetze wrote: On 17.08.2017 19:05, Johnson wrote: On Wednesday, 16 August 2017 at 19:35:19 UTC, Rainer Schuetze wrote: On 16.08.2017 21:18, Johnson Jones wrote: What's strange is that with your changes, privateregistry seems to use

Re: Debugging Visual D using Visual D

2017-08-16 Thread Johnson Jones via Digitalmars-d-debugger
On Wednesday, 16 August 2017 at 17:54:39 UTC, Rainer Schuetze wrote: On 16.08.2017 16:48, Johnson wrote: On Wednesday, 16 August 2017 at 06:58:49 UTC, Rainer Schuetze wrote: On 16.08.2017 08:32, Rainer Schuetze wrote: On 16.08.2017 04:49, Johnson wrote: VisualD.dllC:\Program

Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't compile the module then the error results, just like standard extern

Re: Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 19 August 2017 at 02:07:25 UTC, Johnson Jones wrote: Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't

ffmpeg

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Trying to get it to work. 1. The libraries from the main download site seem to be in coff format for x86. This means they don't really work for dmd. I use omf and I tried to use coffimplib on the lib files and it says they are not import libraries. 2. The x64 version works without issue.

Re: Problem with BP's

2017-08-17 Thread Johnson Jones via Digitalmars-d-debugger
On Friday, 18 August 2017 at 00:02:23 UTC, Johnson Jones wrote: On Thursday, 17 August 2017 at 22:41:51 UTC, Johnson Jones wrote: I was doing something strange ;/ I had code like mixin(import("Myfile.d")); CallSomeFunctionInMyFile(); And no BP's could be hit in side the function call. D

GtkD: How to respond to cell edit's?

2017-08-17 Thread Johnson Jones via Digitalmars-d-learn
Trying to setup a callback that will propagate changes from a cell(and editable GtkCellRendererText) to my model. Can't seem to find any way to get the actual GtkCellRendererText CellRendererText has an addOnEdited but I can't find a way to get the CellRendererTExt for a TreeViewColumn ;/

Re: GtkD: How to respond to cell edit's?

2017-08-17 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for all the edits. auto cb =

Re: Problem with BP's

2017-08-17 Thread Johnson Jones via Digitalmars-d-debugger
On Thursday, 17 August 2017 at 22:41:51 UTC, Johnson Jones wrote: I was doing something strange ;/ I had code like mixin(import("Myfile.d")); CallSomeFunctionInMyFile(); And no BP's could be hit in side the function call. D would say that there was an error in the symbols for the project.

  1   2   >