Re: std.variant Is Everything Cool About D
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D Blog. The blog: https://dlang.org/blog/2018/03/29/std-variant-is-everything-cool-about-d/ Reddit: https://www.reddit.com/r/programming/comments/881hmi/stdvariant_is_everything_cool_about_d/ What is the difference between https://dlang.org/phobos/std_typecons.html#Nullable and Algebraic!(T, typeof(null))?
Re: Dynamic Bindings to libui (x-platform GUI)
On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote: Hey folks, libui is a crossplatform GUI lib written in C. This makes it a perfect candidate to be used in D! What they say about libui on their site: "Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports." find libui on github: https://github.com/andlabs/libui So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell. Let me know if you find any issues. -Stephan Hi, I'm on Arch Linux (64-bit). `dub --config=test` gives me the following error: (Please be noted that I have libui installed in my system already) $ dub --config=test Performing "debug" build using /usr/bin/dmd for x86_64. derelict-util 2.1.0: target for configuration "library" is up to date. derelict-libui 0.3.0+commit.2.g079a15e: target for configuration "test" is up to date. To force a rebuild of up-to-date targets, run again with --force. Running ./lib/DerelictLibui derelict.util.exception.SymbolLoadException@../../.dub/packages/derelict-util-2.1.0/derelict-util/source/derelict/util/sharedlib.d(177): Failed to load symbol uiControlVerifyDestroy from shared library libui.so.0 ??:? void* derelict.util.sharedlib.SharedLib.loadSymbol(immutable(char)[], bool) [0xd457b00a] ??:? void* derelict.util.loader.SharedLibLoader.loadSymbol(immutable(char)[], bool) [0xd45792aa] ??:? void derelict.util.loader.SharedLibLoader.bindFunc(void**, immutable(char)[], bool) [0xd4579300] ??:? void derelict.libui.libui.DerelictLibuiLoader.loadSymbols() [0xd4576983] ??:? void derelict.util.loader.SharedLibLoader.load(immutable(char)[][]) [0xd457912a] ??:? void derelict.util.loader.SharedLibLoader.load(immutable(char)[]) [0xd45790a4] ??:? void derelict.util.loader.SharedLibLoader.load() [0xd4578f87] ??:? _Dmain [0xd45783a4] Program exited with code 1
Re: GtkD 3.7.0 released, GTK+ with D.
On Tuesday, 5 December 2017 at 18:38:06 UTC, aberba wrote: On Saturday, 2 December 2017 at 08:17:24 UTC, helxi wrote: [...] I wanted to do this using some examples I have whilst learning it. Its at the bottom of my list of things I love to do. its not difficult though. It's quite close to the C# and Vala bindings If you are doing so, may I suggest you like to publish it in ways that others can help you by contributing to the tutorial? Something like gitbook. It would be great for the community.
Re: GtkD 3.7.0 released, GTK+ with D.
On Sunday, 15 October 2017 at 20:18:37 UTC, Mike Wey wrote: GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. Apart form the biannual update to the latest glib/gtk version, this release adds bindings for Gstreamer Mpegts and Gstreamer AppSink. Full changelog: http://gtkd.org/changelog.html Download: http://gtkd.org/Downloads/sources/GtkD-3.7.0.zip I highly appreciate that the project is being actively maintained but I want to express my concern. It would be really nice if there was an easy tutorial for the library. At this moment, all we got is a documentation page that drops you in gtkdialog page. It's almost like a solid blackbox, especially for people that are not familiar with developing GUI. There is a tutorial out there but it looks unfinished, slightly outdated and most importantly the installation instruction of gtkd is for only windows and doesn't make use of dub. I wish there was a nice and up to date tutorial like https://mmstick.github.io/gtkrs-tutorials/