Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:40:39 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 17:43:54 UTC, Jason Jeffory wrote: On Wednesday, 13 January 2016 at 16:04:32 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: [...] That's not correct. Build a

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my ignorance about D, but I was hoping to get some info about the exception this way(line number, etc...)

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 20:13:49 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 19:20:40 UTC, Jason Jeffory wrote: What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 16:04:32 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: On Tuesday, 12 January 2016 at 20:48:37 UTC, Dav1d wrote: On Tuesday, 12 January 2016 at 19:16:51 UTC, Jason Jeffory wrote: [...] Yup, that's a little bit annoying

Re: Setting up dmd properly

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 01:40:59 UTC, Mike Parker wrote: On Tuesday, 12 January 2016 at 21:08:30 UTC, Jason Jeffory wrote: (I should mention that I am exaggerating a bit, and some of the complaints about D are actually more directed to the programming community in general. D has the

Re: Anyone using glad?

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 20:48:37 UTC, Dav1d wrote: On Tuesday, 12 January 2016 at 19:16:51 UTC, Jason Jeffory wrote: So, I finally got it to work by abandoning demios and static linking. Derelict + dynamic linking worked with only about a min of problems(copying the proper dll to the

Re: Anyone using glad?

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
So, I finally got it to work by abandoning demios and static linking. Derelict + dynamic linking worked with only about a min of problems(copying the proper dll to the correct place). I'd prefer static linking but I can deal with that later. My current problem is: 1. The code doesn't work as

Re: Setting up dmd properly

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 08:42:19 UTC, Robert M. Münch wrote: On 2016-01-12 04:15:36 +, Mike Parker said: You can avoid all of these headaches by using dynamic bindings like those at DerelictOrg [4] if they are available for the libraries you use. Then the compile-time dependency on

Re: Setting up dmd properly

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 20:38:50 UTC, Laeeth Isharc wrote: On Tuesday, 12 January 2016 at 19:38:32 UTC, Jason Jeffory wrote: It seems the whole state of affairs in programming is "Lets do the most minimal work to get X to work in environment Y. To hell with everything else!". The

Re: Setting up dmd properly

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
(I should mention that I am exaggerating a bit, and some of the complaints about D are actually more directed to the programming community in general. D has the same fundamental issues though and it is just a matter of scale. Programming is way more fun when you are actually programming and

Re: LINK : fatal error LNK1104: cannot open file '_CMDLINE' --- errorlevel 1104

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 23:26:51 UTC, Tobi G. wrote: On Monday, 11 January 2016 at 20:19:50 UTC, Jason Jeffory wrote: Sheesh, why is it so hard to do simple stuff? 1) Have you tryed passing --arch=x86_64 to dub? 2) > "versions-x86_64": ["XYZ"] This is like a architecture dependent

Re: LINK : fatal error LNK1104: cannot open file '_CMDLINE' --- errorlevel 1104

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 01:26:06 UTC, Mike Parker wrote: On Monday, 11 January 2016 at 20:19:50 UTC, Jason Jeffory wrote: On Monday, 11 January 2016 at 20:17:23 UTC, Jason Jeffory wrote: Any ideas? Happens when I do a very simple dub project and try to compile using the MS linker(x86

LINK : fatal error LNK1104: cannot open file '_CMDLINE' --- errorlevel 1104

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
Any ideas? Happens when I do a very simple dub project and try to compile using the MS linker(x86 but set in sc.ini or 64). I'm linking in glfw(using correct arch of course) { "name": "Test", "description": "A minimal D application.", "copyright": "Copyright © 2016,

Re: LINK : fatal error LNK1104: cannot open file '_CMDLINE' --- errorlevel 1104

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 20:17:23 UTC, Jason Jeffory wrote: Any ideas? Happens when I do a very simple dub project and try to compile using the MS linker(x86 but set in sc.ini or 64). I'm linking in glfw(using correct arch of course) { "name": "Test", "description": "A

Re: Setting up dmd properly

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 05:46:11 UTC, Robert M. Münch wrote: 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

Re: Anyone using glad?

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 10:01:11 UTC, Dav1d wrote: On Monday, 11 January 2016 at 01:46:11 UTC, Jason Jeffory wrote: 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

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Re: Setting up dmd properly

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Setting up dmd properly

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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:

Re: Setting up dmd properly

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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

Re: Are there any D scripting engines for use with D?

2016-01-05 Thread Jason Jeffory via Digitalmars-d-learn
On Tuesday, 5 January 2016 at 17:37:00 UTC, Chris Wright wrote: On Mon, 04 Jan 2016 20:04:48 +0100, Max Klyga wrote: Croc (previously miniD, a scripting language implemented in D) - http://jfbillingsley.com/croc/ Croc is written in C++. Jarrett got annoyed with D around the D2 switch.

Are there any D scripting engines for use with D?

2016-01-04 Thread Jason Jeffory via Digitalmars-d-learn
We have many scripting engines available for use in D more or less(lua, python, etc...). Is there a D scripting engine that can be easily integrated into a D project? A sort of "exec()". Something that works at compile time and run time possibly? If is a static string then it should be able

Re: Are there any D scripting engines for use with D?

2016-01-04 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 4 January 2016 at 19:25:18 UTC, yawniek wrote: On Monday, 4 January 2016 at 19:04:48 UTC, Max Klyga wrote: On 2016-01-04 18:40:03 +, Jason Jeffory said: The fastest one would probably be Lua - http://code.dlang.org/search?q=lua But there are other options: Python -

Re: Deit Editor

2016-01-03 Thread Jason Jeffory via Digitalmars-d-learn
On Sunday, 3 January 2016 at 18:53:10 UTC, Martin Tschierschke wrote: On Friday, 1 January 2016 at 00:14:08 UTC, Jason Jeffory wrote: Vibe.d uses deit files for html generation. Seems nice but haven't dived into it(just removes a but of nonsense and allows code integration for dynamic

Deit variable referencing

2016-01-01 Thread Jason Jeffory via Digitalmars-d-learn
Ok, So Deit allows D code inside html... looks great. But how do external variables work? If I create a variable in the server(such as a class), can an html file access it easily? (not having to jump through hoops) doctype html html head title D string interpolations

Deit Editor

2015-12-31 Thread Jason Jeffory via Digitalmars-d-learn
Vibe.d uses deit files for html generation. Seems nice but haven't dived into it(just removes a but of nonsense and allows code integration for dynamic generation... sounds great!!). But what about visual editing? It's nice to be ale to see the layout of the page directly without all the