Re: DlangUI project update
Vadim, could you check your email. I Have do not related with DLAGGUI question.
Re: GCCJIT Bindings for D
On Saturday, 27 December 2014 at 10:47:55 UTC, bearophile wrote: Iain Buclaw: For a more practical example, I've added an example jit compiled brainf*** interpreter. https://github.com/ibuclaw/gccjitd/blob/master/tests/brainf.d Here I have put a little program you can use as performance benchmark: http://codepad.org/hogVnlIS Bye, bearophile Sure, what is that supposed to do? Iain.
Re: DlangUI project update
On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote: On Sunday, 28 December 2014 at 06:13:48 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 02:31:56 UTC, Jack wrote: Sorry it took so long, installing dub-git took so long with my net speed. Runnung dub run dlangui:tetris got me this error code: http://dpaste.dzfl.pl/0cf2b2476a85 I think the hello world mentioned in the error is the one inside the dlangui directory. My project is only the one made by dub init package-name. Thank you for taking the time to help me. Could you post error log? It's either in stderr output or in file ui.log What is your OS? There is known problem with fonts. For linux, font paths are hardcoded (there is a ticket to implement FontConfig based font list). For Mac, it will not find Temporary workaround: register some fonts manually: // get free type font manager access auto ft = cast(FreeTypeFontManager)FontManager.instance; // register some fonts like ft.registerFont(/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf, FontFamily.SansSerif, DejaVu, false, FontWeight.Normal); I'm using Arch Linux x64, as for the linux font paths problem, where should I put it? I7've never really begun using dlangui, I've just been trying to build an empty project with it as its dependency. And I don't really know how to access the stderr nor did I find any ui.log Though this is the result of dub run dlangui:tetris -v http://dpaste.dzfl.pl/0e144a999c3d It looks like DUB suppresses stderr output. You can try dub build dlangui:tetris --build=debug then run it manually examples/tetris/bin/tetris You will see log messages on console As well, you can redirect them to file: examples/tetris/bin/tetris 2 ui.log Then check ui.log I've tested under Ubuntu/x64 only. Probably, there is no DejaVuSans.ttf in /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf or it's located in different location under Arch. If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths.
Re: GCCJIT Bindings for D
Iain Buclaw: Sure, what is that supposed to do? Iain. To print a classic image of the Mandelbrot Set (but Codepad seems down currently). Bye, bearophile
Re: Facebook is using D in production starting today
On Sunday, 28 December 2014 at 06:49:26 UTC, Andrei Alexandrescu wrote: On 12/18/14 1:18 AM, Rune Christensen wrote: On Monday, 18 November 2013 at 17:23:25 UTC, Andrei Alexandrescu wrote: On 11/18/13 6:03 AM, Gary Willoughby wrote: On Friday, 11 October 2013 at 00:36:12 UTC, Andrei Alexandrescu wrote: In all likelihood we'll follow up with a blog post describing the process. Any more news on this Andrei? Not yet. I'm the bottleneck here - must find the time to work on that. Andrei Are you still using D in production? Are you using it more than before? Yes, and a bit. -- Andrei You should a lot ,why only a bit?
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 Win32 package is useful for WindowsServiceInD,thank you. Frank
Re: DlangUI project update
On Sunday, 28 December 2014 at 09:32:24 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote: On Sunday, 28 December 2014 at 06:13:48 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 02:31:56 UTC, Jack wrote: Sorry it took so long, installing dub-git took so long with my net speed. Runnung dub run dlangui:tetris got me this error code: http://dpaste.dzfl.pl/0cf2b2476a85 I think the hello world mentioned in the error is the one inside the dlangui directory. My project is only the one made by dub init package-name. Thank you for taking the time to help me. Could you post error log? It's either in stderr output or in file ui.log What is your OS? There is known problem with fonts. For linux, font paths are hardcoded (there is a ticket to implement FontConfig based font list). For Mac, it will not find Temporary workaround: register some fonts manually: // get free type font manager access auto ft = cast(FreeTypeFontManager)FontManager.instance; // register some fonts like ft.registerFont(/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf, FontFamily.SansSerif, DejaVu, false, FontWeight.Normal); I'm using Arch Linux x64, as for the linux font paths problem, where should I put it? I7've never really begun using dlangui, I've just been trying to build an empty project with it as its dependency. And I don't really know how to access the stderr nor did I find any ui.log Though this is the result of dub run dlangui:tetris -v http://dpaste.dzfl.pl/0e144a999c3d It looks like DUB suppresses stderr output. You can try dub build dlangui:tetris --build=debug then run it manually examples/tetris/bin/tetris You will see log messages on console As well, you can redirect them to file: examples/tetris/bin/tetris 2 ui.log Then check ui.log I've tested under Ubuntu/x64 only. Probably, there is no DejaVuSans.ttf in /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf or it's located in different location under Arch. If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths. The path to fonts in Archlinux is: /usr/share/fonts/TTF/DejaVuSans.ttf and running the example lead to a seg fault. I ran the gdb(with ddd) on it and it points to line 93 of /dlangui-0.1.15/src/widgets/controls.d
Re: DlangUI project update
On Sun, 2014-12-28 at 09:32 +, Vadim Lopatin via Digitalmars-d-announce wrote: […] I've tested under Ubuntu/x64 only. Probably, there is no DejaVuSans.ttf in /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf or it's located in different location under Arch. If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths. For Fedora Rawhide the path to the DejaVu typeface is /usr/share/fonts/dejavu/ with there being a multitude of TTF font files in that directory. Ubuntu being a Debian system, the Debian files are in /usr/share/fonts/truetype/dejavu -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Re: DlangUI project update
On Sunday, 28 December 2014 at 17:29:15 UTC, Russel Winder via Digitalmars-d-announce wrote: On Sun, 2014-12-28 at 09:32 +, Vadim Lopatin via Digitalmars-d-announce wrote: […] I've tested under Ubuntu/x64 only. Probably, there is no DejaVuSans.ttf in /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf or it's located in different location under Arch. If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths. For Fedora Rawhide the path to the DejaVu typeface is /usr/share/fonts/dejavu/ with there being a multitude of TTF font files in that directory. Ubuntu being a Debian system, the Debian files are in /usr/share/fonts/truetype/dejavu Added two more font paths (temporary solution, will be replaced with libfontconfig based solution later). /usr/share/fonts/TTF/DejaVuSans.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf
Re: DlangUI project update
On Sunday, 28 December 2014 at 14:31:57 UTC, FrankLike wrote: On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote: Hello! DlangUI project is alive and under active development. ... Win32 package is useful for WindowsServiceInD,thank you. Frank So you are going to use dlangui in win app? Please let me know if you find any issues (better, file issue on github). If some necessary widgets are missing, I can add them.
Re: DlangUI project update
On Sunday, 28 December 2014 at 15:29:02 UTC, Jack wrote: On Sunday, 28 December 2014 at 09:32:24 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote: If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths. The path to fonts in Archlinux is: /usr/share/fonts/TTF/DejaVuSans.ttf and running the example lead to a seg fault. I ran the gdb(with ddd) on it and it points to line 93 of /dlangui-0.1.15/src/widgets/controls.d It crashes on null font reference - no fonts in font manager. Try v0.1.16 - it should work on your system.
Re: GCCJIT Bindings for D
On 28 December 2014 at 10:24, bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Iain Buclaw: Sure, what is that supposed to do? Iain. To print a classic image of the Mandelbrot Set (but Codepad seems down currently). Bye, bearophile Thanks - turns out that I had to increase the stack size to make it work. As I'd know you'd want to hear it, these are benchmarks done on my machine - if you had any specific BFI in mind bearophile, let me know. 1.086s: bfgccjitd-runtime-O2 1.139s: bfgccjitd-runtime-O1 2.759s: bfgccjitd-O1 3.646s: bfgccjitd-O2 4.959s: bff-O2 5.065s: bff4-O2 6.104s: bff4-O1 6.145s: bfsree-O2 6.200s: bff 7.361s: bff-O1 8.185s: bfsree-O1 11.071s: bff4 13.107s: bfsree 16.945s: bfgccjitd-runtime 17.599s: bfgccjitd There are two readings for the gccjitd timings, one taking into account the entire compilation time (parse, compile, link, load, run), the other (-runtime) just the execution time of the compiled function once loaded. For instance, you can observe that running mandelbrot.b with -O2 is faster, but you end up loosing time overall on account that it takes gcc 1 second longer to compile with such high optimisations. bff, bff4 and bfsree can be found at the following locations respectively. https://github.com/apankrat/bff http://mazonka.com/brainf www.kotay.com/sree/bf Regards, Iain.
Re: DlangUI project update
On Fri, 26 Dec 2014 12:33:03 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with exception while loading image from file. it's not working, but at least it's not working every time i check it. ;-) signature.asc Description: PGP signature
My D Cookbook on sale: $5 ebook from the publisher
I just noticed they temporarily reduced the price of my book: https://www.packtpub.com/application-development/d-cookbook If you haven't gotten a copy yet, start off the new year right! :) Among the stuff covered are how to use ranges, reflection, structs for resource management, OS APIs, and even a little on starting to write a kernel level program in D. Practical to fun, educational all around! PS for those of you who have read it and haven't yet, write an amazon review! http://www.amazon.com/gp/product/1783287217/ref=s9_simh_gw_p14_d0_i1?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-2pf_rd_r=1P864AG6WY9Y7H86MVFGpf_rd_t=101pf_rd_p=1688200382pf_rd_i=507846
Re: GCCJIT Bindings for D
Iain Buclaw: 1.086s: bfgccjitd-runtime-O2 1.139s: bfgccjitd-runtime-O1 2.759s: bfgccjitd-O1 3.646s: bfgccjitd-O2 4.959s: bff-O2 Five times faster than bff is a lot :-) My best timings are usually around two times faster than bff. I guess gccjit is not an average JIT-tter. Bye, bearophile
Re: My D Cookbook on sale: $5 ebook from the publisher
On Sunday, 28 December 2014 at 21:13:50 UTC, Adam D. Ruppe wrote: I just noticed they temporarily reduced the price of my book: https://www.packtpub.com/application-development/d-cookbook If you haven't gotten a copy yet, start off the new year right! :) Among the stuff covered are how to use ranges, reflection, structs for resource management, OS APIs, and even a little on starting to write a kernel level program in D. Practical to fun, educational all around! PS for those of you who have read it and haven't yet, write an amazon review! http://www.amazon.com/gp/product/1783287217/ref=s9_simh_gw_p14_d0_i1?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-2pf_rd_r=1P864AG6WY9Y7H86MVFGpf_rd_t=101pf_rd_p=1688200382pf_rd_i=507846 Nice ! Time to finally get mine :)
Re: My D Cookbook on sale: $5 ebook from the publisher
On Sunday, 28 December 2014 at 21:59:17 UTC, Mathias LANG wrote: On Sunday, 28 December 2014 at 21:13:50 UTC, Adam D. Ruppe wrote: I just noticed they temporarily reduced the price of my book: Nice ! Time to finally get mine :) One more client here :)
Re: My D Cookbook on sale: $5 ebook from the publisher
On 29/12/2014 10:13 a.m., Adam D. Ruppe wrote: I just noticed they temporarily reduced the price of my book: https://www.packtpub.com/application-development/d-cookbook If you haven't gotten a copy yet, start off the new year right! :) Among the stuff covered are how to use ranges, reflection, structs for resource management, OS APIs, and even a little on starting to write a kernel level program in D. Practical to fun, educational all around! PS for those of you who have read it and haven't yet, write an amazon review! http://www.amazon.com/gp/product/1783287217/ref=s9_simh_gw_p14_d0_i1?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-2pf_rd_r=1P864AG6WY9Y7H86MVFGpf_rd_t=101pf_rd_p=1688200382pf_rd_i=507846 Happy birthday to me, Happy birthday to me, thank you Adam. Happy birthday to me. Yes it's my birthday, and yes I just bought it.
Re: My D Cookbook on sale: $5 ebook from the publisher
On 12/28/2014 1:13 PM, Adam D. Ruppe wrote: I just noticed they temporarily reduced the price of my book: https://www.packtpub.com/application-development/d-cookbook If you haven't gotten a copy yet, start off the new year right! :) I already bought the hardcopy, but I noticed I could get the kindle matchbook for $2.99 additional, so I bought that too! Thanks for writing a great book.
Re: DlangUI project update
On Sunday, 28 December 2014 at 19:20:53 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 15:29:02 UTC, Jack wrote: On Sunday, 28 December 2014 at 09:32:24 UTC, Vadim Lopatin wrote: On Sunday, 28 December 2014 at 06:39:24 UTC, Jack wrote: If you provide paths to some .ttf fonts under Arch, I can prepare quick fix with such hardcoded paths. The path to fonts in Archlinux is: /usr/share/fonts/TTF/DejaVuSans.ttf and running the example lead to a seg fault. I ran the gdb(with ddd) on it and it points to line 93 of /dlangui-0.1.15/src/widgets/controls.d It crashes on null font reference - no fonts in font manager. Try v0.1.16 - it should work on your system. It worked! Thank you very much. Though I listed dlangui:dlanguilib as a dependency in my project rather than dlangui itself since the hello world started coming up again. Anyway thank you for your hard work! Looking forward to playing with this.
Re: DlangUI project update
On Sunday, 28 December 2014 at 20:30:53 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 26 Dec 2014 12:33:03 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with exception while loading image from file. it's not working, but at least it's not working every time i check it. ;-) Can you check once again - v0.1.16? Just in case. Probably, it's as stable as previous.
Re: DlangUI project update
On Mon, 29 Dec 2014 04:09:41 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Sunday, 28 December 2014 at 20:30:53 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 26 Dec 2014 12:33:03 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with exception while loading image from file. it's not working, but at least it's not working every time i check it. ;-) Can you check once again - v0.1.16? Just in case. Probably, it's as stable as previous. i wrote this just after i did 'git clone' (i tend to rm it all after unsuccessfull attempt). besides the bug in src/dlangui/graphics/ftfonts.d at line 40 (extra 'const', my patched compiler is not tolerant to it), it's still the same image error as ever. GNU/Linux x86 is you need that info. and here's the message log: Running ./examples/example1/bin/example1 2014-12-29 06:20:19.859 W resource theme_default is not found 2014-12-29 06:20:19.859 E Cannot load theme from resource theme_default - will use default theme 2014-12-29 06:20:20.092 E exception while loading image from file /mnt/tigerclaw/D/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86-dmd_2067-AA7A6EC68D298A63D0B7CD4C8C934A19/../../../res/mdpi/tx_fabric.jpg signature.asc Description: PGP signature
Re: Get your D Lang shirts!
On 12/27/2014 1:32 AM, Iain Buclaw via Digitalmars-d-announce wrote: On 24 Dec 2014 22:20, Vic via Digitalmars-d-announce digitalmars-d-announce@puremagic.com mailto:digitalmars-d-announce@puremagic.com wrote: http://teespring.com/d-lang-sv Non profit, I hope other follow suit. I like the sentiment, but I think I'd prefer my own designs. ;) Yes, own car I heavily customized, and on and on :-)
Re: DlangUI project update
On Monday, 29 December 2014 at 04:23:49 UTC, ketmar via Digitalmars-d-announce wrote: On Mon, 29 Dec 2014 04:09:41 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Sunday, 28 December 2014 at 20:30:53 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 26 Dec 2014 12:33:03 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with exception while loading image from file. it's not working, but at least it's not working every time i check it. ;-) Can you check once again - v0.1.16? Just in case. Probably, it's as stable as previous. i wrote this just after i did 'git clone' (i tend to rm it all after unsuccessfull attempt). besides the bug in src/dlangui/graphics/ftfonts.d at line 40 (extra 'const', my patched compiler is not tolerant to it), it's still the same image error as ever. GNU/Linux x86 is you need that info. and here's the message log: Running ./examples/example1/bin/example1 2014-12-29 06:20:19.859 W resource theme_default is not found 2014-12-29 06:20:19.859 E Cannot load theme from resource theme_default - will use default theme 2014-12-29 06:20:20.092 E exception while loading image from file /mnt/tigerclaw/D/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86-dmd_2067-AA7A6EC68D298A63D0B7CD4C8C934A19/../../../res/mdpi/tx_fabric.jpg Compilation is fixed. It looks like you don't have libfreeimage installed. It causes crash.
Re: DlangUI project update
On Mon, 29 Dec 2014 05:52:10 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 29 December 2014 at 04:23:49 UTC, ketmar via Digitalmars-d-announce wrote: On Mon, 29 Dec 2014 04:09:41 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Sunday, 28 December 2014 at 20:30:53 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 26 Dec 2014 12:33:03 + Vadim Lopatin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hello! DlangUI project is alive and under active development. https://github.com/buggins/dlangui ah, i really love this project! it's stable as a rock: every time i tried it, it crashing with exception while loading image from file. it's not working, but at least it's not working every time i check it. ;-) Can you check once again - v0.1.16? Just in case. Probably, it's as stable as previous. i wrote this just after i did 'git clone' (i tend to rm it all after unsuccessfull attempt). besides the bug in src/dlangui/graphics/ftfonts.d at line 40 (extra 'const', my patched compiler is not tolerant to it), it's still the same image error as ever. GNU/Linux x86 is you need that info. and here's the message log: Running ./examples/example1/bin/example1 2014-12-29 06:20:19.859 W resource theme_default is not found 2014-12-29 06:20:19.859 E Cannot load theme from resource theme_default - will use default theme 2014-12-29 06:20:20.092 E exception while loading image from file /mnt/tigerclaw/D/dlangui/examples/example1/.dub/build/application-debug-linux.posix-x86-dmd_2067-AA7A6EC68D298A63D0B7CD4C8C934A19/../../../res/mdpi/tx_fabric.jpg Compilation is fixed. It looks like you don't have libfreeimage installed. It causes crash. wow, now it works. it's look funny without images though. btw, i have freeimage installed, but the loader wants to find FreeImage_ConvertToRGB16 function in it, which it seems to not even use. that's the joy of Derelict: it loads everything whether, it needs it or not. ah, and another thing: freeimage sux for GNU/Linux. it looks completely alien and no sane GUI software requires it. i didn't looked at the code, but i hope that image loading is well abstracted in DlangUI? if it is, i can try to write a loaders for png and jpg (jpg? in GUI? holy heavens, why?!). it's better to check if the system has the corresponding libraries with corresponding versions (imlib2 rocks, for example), but i suppose that dub cannot into configure checks, am i right? signature.asc Description: PGP signature