Re: Visual D 0.51.0 - semantic engine based on dmd frontend
On Tuesday, 8 September 2020 at 19:38:17 UTC, mw wrote: On Tuesday, 8 September 2020 at 19:36:51 UTC, mw wrote: On Tuesday, 8 September 2020 at 18:42:28 UTC, James wrote: how is the dub support work? i don't understand how to load it in visual studio is there any guide? given you have dub.json build already, ``` C:\\ dub.exe generate visuald ``` then open the generated `proj.sln` file with VisualD https://dub.pm/commandline thanks a lot!
Re: Visual D 0.51.0 - semantic engine based on dmd frontend
how is the dub support work? i don't understand how to load it in visual studio is there any guide? thanks!
Re: DConf 2018 Call for Submissions
On Thursday, 16 November 2017 at 00:45:58 UTC, codephantom wrote: On Wednesday, 15 November 2017 at 23:53:40 UTC, Ali Çehreli wrote: I would like to see Chuck Allison talk about the experiences of students approaching D. I think that would be really worthwhile - or even yourself for that matter, given your strong interest in this area. Technical stuff is good and helpful, but I like to know about peoples experiences too...that's what really interests me the most, and should be at the core of any language design. So somebody examining D from this perspective could be really insightful to those contributing to the language. It's really critical that D remain accessible to newcomers, or its' replacement is just around the corner. Chucks already done a talk like that - it was berry, berry good... -=mike=-
Re: D as a Better C
On Friday, 25 August 2017 at 15:29:54 UTC, Swoorup Joshi wrote: On Friday, 25 August 2017 at 08:54:02 UTC, Kagamin wrote: On Thursday, 24 August 2017 at 19:09:58 UTC, Parke wrote: What is "intermediate D"? D with minimal runtime. 5 years later... D - BetterC++ (no gc) D - BetterJava (full on gc + other goodie tissue) D - BetterRust (full interoperability with rust) Forgive my cynicism D - BetterC# (no simple and easy-to-use generics, complex templates instead) Phobos - Better.NET (pointless names, weird structure, outdated stuff) DCD - BetterIntelliSense (tends to always not find about ~10 of all real possibilities, is rather "patched into" IDEs/editors than integrated)
Re: Release D 2.075.0 does not install on Windows 10 with VS2017
On Thursday, 20 July 2017 at 16:28:54 UTC, jan wrote: seems like i am not the first one to have that problem. please fix. everything working fine from here :) Maybe you should state what exactly is not working for you and paste some error messages...
Re: DMD now has colorized syntax highlighting in error messages
On Sunday, 14 May 2017 at 14:07:20 UTC, Walter Bright wrote: https://github.com/dlang/dmd/pull/6777 It turned out to be unexpectedly easy to implement. The only downside is now we have to rather tediously tweak the error message texts so they use backticks. The next step is Color D... https://github.com/narke/colorForth -=mike=-
Re: 2.069.0 Installation problem with .exe for Windows
On Wednesday, 11 November 2015 at 03:13:18 UTC, Martin Nowak wrote: On Tuesday, 10 November 2015 at 14:17:28 UTC, Mike James wrote: The x64 sub-directory does not exist on my system. We found the bug and I build a new installer with the fix. https://dlang.dawg.eu/downloads/dmd.2.069.0~fix15824/ As soon as someone confirms the fix, we'll make a new point release. Hi Martin, I can confirm it installs correctly on: Windows 10 64-bit. Windows Vista 32-bit. Windows 7 64-bit. Thanks. Regards, -=mike=-
Re: 2.069.0 Installation problem with .exe for Windows
On Monday, 9 November 2015 at 13:44:59 UTC, Martin Nowak wrote: On 11/09/2015 09:46 AM, Mike James wrote: Hi Martin, I've tried the new install with Windows Vista and Windows 7 and the problem is the same as before. Regards, -=mike=- Can you try again, I updated the installer and tried to revert the other part of the change (though I don't see why that would fix the problem). More details would help a lot at this point, e.g. what windows are open (also look whether the uninstaller hides any window) and what files are left in the install dir (C:\D by default) while the installation hangs. And let's please continue this in Bugzilla. https://issues.dlang.org/show_bug.cgi?id=15284 Hi Martin, I've not got a login for the bug tracking so here is part of the log file... Call: 2674 Jump: 2691 Jump: 2708 Check previous dmd installation Check dmd already installed Remove dmd already installed MessageBox: 33,"DMD v2.068.2 is installed on your system Press 'OK' to replace by DMD 2.069.0" Call: 2734 Jump: 2756 Exec: command="C:\D\uninstall.exe /IC False _?=C:\D" Exec: success ("C:\D\uninstall.exe /IC False _?=C:\D") Exec: command="C:\D\uninstall.exe /IC False /S" Exec: success ("C:\D\uninstall.exe /IC False /S") Uninstall done DetectVSAndSDK Call: 2564 Read VisualStudio\*\Setup\VC detect ucrt detect KitsRoot* IfFileExists: file "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\x64\kernel32.lib" does not exist, jumping 0 IfFileExists: file "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64\kernel32.lib" does not exist, jumping 0 detect KitsRoot* IfFileExists: file "C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\x64\kernel32.lib" does not exist, jumping 0 IfFileExists: file "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64\kernel32.lib" does not exist, jumping 0 detect KitsRoot* with the last 2 lines repeating... The x64 sub-directory does not exist on my system. Hope this helps. Regards, -=mike=-
Re: 2.069.0 Installation problem with .exe for Windows
On Sunday, 8 November 2015 at 23:33:31 UTC, Martin Nowak wrote: On 11/04/2015 10:05 AM, Mike James wrote: Copied here for extra visibility... Hi. There seems to be an install problem with the .exe version for Windows. The installer removes the old DMD then doesn't install the 2.069.0 version. In the task manager it's still running at 50% CPU time. It fails on Windows Vista and Windows 7. Could some try and verify that this installer fixes the issue. I wasn't able to reproduce the issue myself. https://dlang.dawg.eu/downloads/dmd.2.069.0~fix15824/ Hi Martin, I've tried the new install with Windows Vista and Windows 7 and the problem is the same as before. Regards, -=mike=-
2.069.0 Installation problem with .exe for Windows
Copied here for extra visibility... Hi. There seems to be an install problem with the .exe version for Windows. The installer removes the old DMD then doesn't install the 2.069.0 version. In the task manager it's still running at 50% CPU time. It fails on Windows Vista and Windows 7. Regards, --
Re: Release D 2.069.0
On Wednesday, 4 November 2015 at 01:50:38 UTC, Martin Nowak wrote: Glad to announce D 2.069.0. http://dlang.org/download.html http://downloads.dlang.org/releases/2.x/2.069.0/ This is the first release with a self-hosted dmd compiler and comes with even more rangified phobos functions, std.experimental.allocator, and many other improvements. See the changelog for more details. http://dlang.org/changelog/2.069.0.html -Martin Hi. There seems to be an install problem with the .exe version for Windows. The installer removes the old DMD then doesn't install the 2.069.0 version. In the task manager it's still running at 50% CPU time. It fails on Windows Vista and Windows 7. Regards, --
Re: 1st Ever Artificial Consciousness to be Written in D Language
On Wednesday, 2 September 2015 at 15:20:13 UTC, Rikki Cattermole wrote: On 03/09/15 2:41 AM, GrandAxe wrote: [...] To save time maybe I should send my bank details right now... Western Union anyone? -- [...] That's quite a large set of features, considering the site still says 2014 for copyright I am sure it is worthy of being doubted. I on the other hand hope it is indeed real and will succeed! Would love to have my own digital personal assistant. Not that Cortana / Google Now really works for me. Humpth maybe my evil bytecode dreams for D may be a good use case for it. After all, I'm sure being able to evaluate code could be quite useful.
Re: DMD 2.067.0 Programming Language Specifications
On Monday, 6 April 2015 at 12:04:40 UTC, Jordi Sayol wrote: D Programming Language Specifications for dmd 2.067.0 in several formats, available at: http://d-apt.sourceforge.net/ dlangspec-2.067.0.chm -- (Microsoft Compiled HTML Help) dlangspec-2.067.0.epub -- (Electronic Publication for e-book readers) dlangspec-2.067.0.mobi -- (Mobipocket e-book for Kindle) dlangspec-2.067.0.pdf -- (Portable Document Format) That's great. Just a small observation - why does the kindle not remember the page when you close the mobile file then open it up again? regards, -=mike=-
Re: DlangUI
On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - SNIP Hi Vadim, I have just installed the latest D 2.067.0, ran the git install and the build now fails. The errors are as follows: C:\D\dmd2\gui\dlanguidub run dlangui:example1 --build=release Building package dlangui:example1 in C:\D\dmd2\gui\dlangui\examples\example1\ Target gl3n 1.0.1 is up to date. Use --force to rebuild. Building dlib ~master configuration library, build type release. Running dmd... ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\dlib\image\io\jpeg.d(681): Warning: instead of C-style syntax, use D-style syntax 'ubyte[64] dezigzag' ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\dlib\filesystem\windows\directory.d(77): Error: undefin ed identifier wcslen FAIL ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\.dub\build\library-release-windows-x86-dmd_2067-17 3DBA1310DF90D85EA81F6AA09FBD95\ dlib staticLibrary Error executing command run: dmd failed with exit code 1. C:\D\dmd2\gui\dlangui any clues? Thanks. Regards, Mike.
Re: DlangUI
On Thursday, 26 March 2015 at 11:47:59 UTC, Vadim Lopatin wrote: On Thursday, 26 March 2015 at 11:41:17 UTC, Mike James wrote: On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - SNIP Hi Vadim, I have just installed the latest D 2.067.0, ran the git install and the build now fails. The errors are as follows: C:\D\dmd2\gui\dlanguidub run dlangui:example1 --build=release Building package dlangui:example1 in C:\D\dmd2\gui\dlangui\examples\example1\ Target gl3n 1.0.1 is up to date. Use --force to rebuild. Building dlib ~master configuration library, build type release. Running dmd... ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\dlib\image\io\jpeg.d(681): Warning: instead of C-style syntax, use D-style syntax 'ubyte[64] dezigzag' ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\dlib\filesystem\windows\directory.d(77): Error: undefin ed identifier wcslen FAIL ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master\.dub\build\library-release-windows-x86-dmd_2067-17 3DBA1310DF90D85EA81F6AA09FBD95\ dlib staticLibrary Error executing command run: dmd failed with exit code 1. C:\D\dmd2\gui\dlangui any clues? Thanks. Regards, Mike. Try `dub upgrade --force-remove` followed by `dub build --force` Thanks Vadim, That did the trick. regards, -=mike=-
Re: DlangUI
Hi Vadim, When I follow the Build and Run Demo App using DUB I get the following... C:\D\dmd2\srcgit clone https://github.com/buggins/dlangui.git Cloning into 'dlangui'... remote: Counting objects: 13291, done. remote: Compressing objects: 100% (186/186), done. remote: Total 13291 (delta 113), reused 0 (delta 0) Receiving objects: 100% (13291/13291), 8.78 MiB | 538.00 KiB/s, done. Resolving deltas: 100% (10144/10144), done. C:\D\dmd2\srccd dlangui C:\D\dmd2\src\dlanguidub run dlangui:example1 --build=release Building package dlangui:example1 in C:\D\dmd2\src\dlangui\examples\example1\ Fetching derelict-util 1.9.1 (getting selected version)... Placing derelict-util 1.9.1 to C:\Users\mikej\AppData\Roaming\dub\packages\... Building dlib 0.4.1 configuration library, build type release. Running dmd... Building derelict-util 1.9.1 configuration library, build type release. Running dmd... Building derelict-ft 1.0.1 configuration library, build type release. Running dmd... Building derelict-sdl2 1.9.1 configuration library, build type release. Running dmd... Building derelict-gl3 1.0.12 configuration library, build type release. Running dmd... Building dlangui:dlanguilib 0.4.35+commit.4.gf902ceb configuration library, build type release. Running dmd... src\dlangui\graphics\resources.d(152): Error: file btn_background.xml\x0d cannot be found or not in a path specified with -J src\dlangui\graphics\resources.d(153): Error: data.length cannot be evaluated at compile time src\dlangui\graphics\resources.d(166): Error: template instance dlangui.graphics.resources.embedResource!res/btn_background.xml\x0d error instantiating src\dlangui\graphics\resources.d(173): Is the setup missing extra directories? Regards, -=mike=-
Re: Anyone interested in embedding a JVM in their D app?
I think the goal of this may be backwards of what most people are thinking. What I am trying for is not to write extensions to a java app in D through JNI. Anyone is welcome to use any of this work to achieve that if they'd like. The actual goal is to embed a JVM inside of a D program. This is actually a practice from C++ that happens more than one would think. This also makes several things easier as the D subsystem is correctly initialized. There are several things that come with Java APIs only. A few that come to mind are some database drivers (hsql recommends doing JNI from C++ to Java to use their driver). Anyone familiar with hadoop, their remote file system driver is the same way (in older versions anyways). They do provide a c library that does the embedding for you (so you may not of noticed). There are other languages that do this to take advantage of the massive amount of DB support in java (last time I checked that's how DB drivers in R worked). Anyone familiar with doing this from C or C++ knows it looks nothing like java though. If you look at https://github.com/jamesmahler/djvm#example ... that's the equivalent of System.out.println(100) with the cleaned up api in djvm. While using JNI inside a java app is messy... using JNI inside a C app is sometimes way easier. Anyways, you are free to continue discussing trying to use D in Android. I'd be willing to share any information and try to assist with that project as able. On Wednesday, 14 January 2015 at 09:29:25 UTC, Russel Winder via Digitalmars-d-announce wrote: On Wed, 2015-01-14 at 02:00 +, james via Digitalmars-d-announce wrote: I've been playing with jni.h and D. I think I've got a fully working jni.d and I have the start of a nicer D wrapper around it with djvm.d. Whilst I have tinkered with JNI, I have never had to really use it in anger. And I, and many others, really want to keep it that way even though there are many who use it. It's like trying to program Python from C, only worse performance. There is JNA of course, which does some similar stuff, many use that I have never used it. The current fashion is (or will be) JNR (which leads to JEP 191). As far as I know JNA, JNR (and JEP 191) use JNI, more or less because they have to. The issue is to make using the adaptor as easy as possible. JNI is not easy; JNA is easy but slow; JNR is supposedly easy and fast, so hopefully JEP 191 will be.
Anyone interested in embedding a JVM in their D app?
I've been playing with jni.h and D. I think I've got a fully working jni.d and I have the start of a nicer D wrapper around it with djvm.d. https://github.com/jamesmahler/djvm There is an example usage in the README.md. There's also why I'd do such a thing in there. I'm not sure if anyone else would be interested in this. I'm open to help and merge requests if anyone wants to join in. In the short term, I still have several low level things to wrap with the more D interfaces. In the longer term, I want to have D interfaces around JDBC.
Re: DlangUI project update
On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui Recent changes: - new controls: ScrollWidget, TreeView, ComboBox, ... - new dialogs: FileOpenDialog, MessageBox - a lot of bugfixes - performance improvements in software renderer - killer app: new example - Tetris game :) Try Demos: # download sources git clone https://github.com/buggins/dlangui.git cd dlangui # example 1 - demo for most of widgets dub run dlangui:example1 --build=release # tetris - demo for game development dub run dlangui:tetris --build=release DlangUI is cross-platform GUI library written in D. Main features: - cross platform: uses SDL for linux/macos, Win32 API or SDL for Windows - hardware acceleration: uses OpenGL for drawing when built with version USE_OPENGL - easy to extend: since it's native D library, you can add your own widgets and extend functionality - Unicode and internationalization support - easy to customize UI - look and feel can be changed using themes and styles - API is a bit similar to Android - two phase layout, styles Screenshots (a bit outdated): http://buggins.github.io/dlangui/screenshots.html See project page for details. I would like to get any feedback. Will be glad to see advises, bug reports, feature requests. Best regards, Vadim Hi Vadim, When I follow the building and the running of the demo app using DUB I get the following error: C:\D\dmd2\srcgit clone https://github.com/buggins/dlangui.git Cloning into 'dlangui'... remote: Counting objects: 5700, done. remote: Compressing objects: 100% (56/56), done. remote: Total 5700 (delta 21), reused 0 (delta 0) Receiving objects: 100% (5700/5700), 5.33 MiB | 1.51 MiB/s, done. Resolving deltas: 100% (/), done. C:\D\dmd2\srccd dlangui C:\D\dmd2\src\dlanguidub run dlangui:example1 --build=release Building package dlangui:example1 in C:\D\dmd2\src\dlangui\examples\example1\ WARNING: A deprecated branch based version specification is used for the dependency derelict-ft. Please use numbered ver sions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a b ranch instead. WARNING: A deprecated branch based version specification is used for the dependency derelict-sdl2. Please use numbered v ersions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead. WARNING: A deprecated branch based version specification is used for the dependency derelict-fi. Please use numbered ver sions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a b ranch instead. WARNING: A deprecated branch based version specification is used for the dependency dlangui:dlanguilib. Please use numbe red versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead. WARNING: A deprecated branch based version specification is used for the dependency derelict-gl3. Please use numbered ve rsions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead. Target derelict-util 1.9.0 is up to date. Use --force to rebuild. Target derelict-ft ~master is up to date. Use --force to rebuild. Target derelict-sdl2 ~master is up to date. Use --force to rebuild. Target derelict-fi ~master is up to date. Use --force to rebuild. Target dlib ~master is up to date. Use --force to rebuild. Target derelict-gl3 ~master is up to date. Use --force to rebuild. Building dlangui:dlanguilib 0.2.2+commit.2.g15226e8 configuration library, build type release. Running dmd... Building dlangui:example1 0.2.2+commit.2.g15226e8 configuration application, build type release. Compiling using dmd... src\dlangui\core\files.d(114): Error: module windows is in file 'win32\windows.d' which cannot be read import path[0] = examples\example1\src import path[1] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\derelict-ft-master\source import path[2] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\derelict-util-1.9.0\source import path[3] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\derelict-sdl2-master\source import path[4] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\derelict-fi-master\source import path[5] = src import path[6] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\dlib-master import path[7] = ..\..\..\..\Users\mikej\AppData\Roaming\dub\packages\derelict-gl3-master\source import path[8] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[9] = C:\D\dmd2\windows\bin\..\..\src\druntime\import FAIL examples\example1\.dub\build\application-release-windows-x86-dmd_2066-A150B7CA4D2F564C56024EE584D1E13A\ example1 ex ecutable Error executing command run: dmd failed
Re: Mono-D v2.4.9 - Parser fixes
Alexander Bothe i...@alexanderbothe.com wrote in message news:clmyaoqgxizsicodj...@forum.dlang.org... Hi everyone, just wanted to announce a further small version bump of Mono-D. And yeah, despite my 2 week-break, development still continues! Cheers, Alex Great. Any news of an integrated debugger... :-) -=mike=-
Re: Offtopic: AMA (Was: Interview at Lang.NEXT)
On Saturday, 7 June 2014 at 04:21:15 UTC, Craig Dillabaugh wrote: On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote: On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ Andrei This is offtopic, but why are people obsessed with writing English acronyms? I always have to lookup the meaning and then I'm polluting my head with acronyms. Is there any difference in time/convenience between writing Interviewee here. Ask me anything Between Interviewee. AMA? :-( Its all the fault of people texting on their cell phones and the like! Too much work to write proper English words. Amirite? You should see it in the rail industry - it's all TLAs. -=mike=-
Re: DlangUI
Vadim Lopatin coolreader@gmail.com wrote in message news:fylchhowgmwmqhkew...@forum.dlang.org... Hello! I would like to announce my project, DlangUI library - cross-platform GUI for D. https://github.com/buggins/dlangui License: Boost License 1.0 Native library written in D (not a wrapper to other GUI library) - easy to extend. As a backend, uses SDL2 on any platform, Win32 API on Windows, XCB on Linux. Other backends can be added easy. Tested on Windows and Linux. Supports hardware acceleration - drawing using OpenGL when built with version=USE_OPENGL. Unicode support. Internationalization support. Uses Win32 API fonts on Windows, and FreeType on other platforms. Same look and feel can be achieved on all platforms. Flexible look and feel - themes and styles. API is a bit similar to Android UI. Flexible layout, support of different screen DPI, scaling. Uses two phase layout like in Android. Supports drawable resources in .png and .jpeg, nine-patch pngs and state drawables like in Android. Single threaded. Use other threads for performing slow tasks. Mouse oriented. Actually, it's a port (with major redesign) of my library used for cross-platform version of my application CoolReader from C++. State of project: alpha. But, already can be used for simple 2D games and simple GUI apps. I'm keeping in mind a goal to write D language IDE based on dlangui. :) Adding support of 3D graphics is planned. Currently implemented widgets: TextWidget - simple static text (TODO: implement multiline formatting) ImageWidget - static image Button - simple button with text label ImageButton - image only button TextImageButton - button with icon and label CheckBox - check button with label RadioButton - radio button with label EditLine - single line edit EditBox - multiline editor VSpacer - vertical spacer - just an empty widget with layoutHeight == FILL_PARENT, to fill vertical space in layouts HSpacer - horizontal spacer - just an empty widget with layoutWidth == FILL_PARENT, to fill horizontal space in layouts ScrollBar - scroll bar TabControl - tabs widget, allows to select one of tabs TabHost - container for pages controlled by TabControl TabWidget - combination of TabControl and TabHost Layouts - Similar to layouts in Android LinearLayout - layout children horizontally or vertically depending on orientation VerticalLayout - just a LinearLayout with vertical orientation HorizontalLayout - just a LinearLayout with vertical orientation FrameLayout - all children occupy the same place; usually onle one of them is visible TableLayout - children are aligned into rows and columns of table List Views - similar to lists in Android UI API. ListWidget - layout dynamic items horizontally or vertically (one in row/column) with automatic scrollbar; can reuse widgets for similar items ListAdapter - interface to provide data and widgets for ListWidget WidgetListAdapter - simple implementation of ListAdapter interface - just a list of widgets (one per list item) to show Sample project, example1 contains demo code for most of dlangui API. Try it using DUB: git clone https://github.com/buggins/dlangui.git cd dlangui dub run dlangui:example1 Fonts note: on Linux, several .TTFs are loaded from hardcoded paths (suitable for Ubuntu). TODO: add fontconfig support to access all available system fonts. Helloworld: // main.d import dlangui.all; mixin DLANGUI_ENTRY_POINT; /// entry point for dlangui based application extern (C) int UIAppMain(string[] args) { // resource directory search paths string[] resourceDirs = [ appendPath(exePath, ../res/), // for Visual D and DUB builds appendPath(exePath, ../../res/) // for Mono-D builds ]; // setup resource directories - will use only existing directories Platform.instance.resourceDirs = resourceDirs; // select translation file - for english language Platform.instance.uiLanguage = en; // load theme from file theme_default.xml Platform.instance.uiTheme = theme_default; // create window Window window = Platform.instance.createWindow(My Window, null); // create some widget to show in window window.mainWidget = (new Button()).text(Hello worldd).textColor(0xFF); // red text // show window window.show(); // run message loop return Platform.instance.enterMessageLoop(); } DDOC generated documentation can be found there: https://github.com/buggins/dlangui/tree/master/docs For more info see readme and example1 code. I would be glad to see any feedback. Can this project be useful for someone? What features/widgets are must have for you? Best regards, Vadim coolreader@gmail.com Hi Vadim, I am evaluating GUIs for a project I have in mind and the DLangUI looks interesting... First problem: you need to add gl3n to the git clone list for developing under Visual-D. I am having problems running (debugging) the example1 program. When loading
Re: DlangUI
On Thursday, 5 June 2014 at 15:15:48 UTC, Casper Færgemand wrote: On Thursday, 5 June 2014 at 14:22:46 UTC, Mike James wrote: I am having problems running (debugging) the example1 program. When loading the resources it gets to tab_up_background.9.png (line 579 in file resources.d) and then fails with an exception: Unhandled exception at 0x0044f932 in example1.exe: 0xC005: Access violation reading location 0x. Do you have any clues as to what the problem could be? I didn't compile this, so take it with a grain of salt. Access violation reading 0x is a null pointer dereference. Looking at the source: _drawbuf = loadImage(_filename); if (_filename.endsWith(.9.png)) _drawbuf.detectNinePatch(); I'm making a wild guess that loadImage returns a null if it can't find the file. Dereferencing thus throws. You probably lack the image or it's in the wrong place. Hi Casper, I checked the sub-directory the loading refers to and all the pngs seems to be there. Regards, -=mike=-
Re: Adam D. Ruppe's D Cookbook now available!
Walter Bright newshou...@digitalmars.com wrote in message news:lm5924$7r8$1...@digitalmars.com... http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/ After watching Adam's most excellent presentation at Dconf, I'm sure the book will be great! My copy gets here on Friday. Just got a copy - now I need the time to read it... :-) -=mike=-
Re: My D book is now officially coming soon
On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote: On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote: Will epub version be available too? Yeah, I think it is already on the packt website. I'm looking at getting the ebook version - does that version include the errata described above? -mike-
Re: My D book is now officially coming soon
On Wednesday, 28 May 2014 at 09:06:12 UTC, Alix Pexton wrote: On 28/05/2014 9:00 AM, Mike James wrote: On Tuesday, 27 May 2014 at 14:20:49 UTC, Adam D. Ruppe wrote: On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote: Will epub version be available too? Yeah, I think it is already on the packt website. I'm looking at getting the ebook version - does that version include the errata described above? -mike- I've not checked them side-by-side the whole way through but the ePub does have the same triple colons as the PDF. the ePub uses colour instead of font weight for the keywords in the text and the notes and tips are styled differently, but as far as I've seen so far the content is the same. A... Thanks. As 'early adopters' do we get a chance to upgrade :-) -mike-