Re: implementing --version?
On Monday, 21 November 2016 at 19:33:54 UTC, mab-on wrote: I would like to implement a "--version" switch for a command line application. Is there a clever way to do that without using the brain on every build? :) A dub-solution would be nice - but i didnt find it. There is a package in the dub registry called commando (https://code.dlang.org/packages/commando) for that. Example usage can be found at https://github.com/SirTony/commando/tree/master/examples/find. The README file describes the code found in the src folder.
Re: PDF generation in D?
On Friday, 11 November 2016 at 09:10:38 UTC, Edwin van Leeuwen wrote: On Thursday, 10 November 2016 at 22:30:34 UTC, Karabuta wrote: Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :) Thanks everyone. I will try the various options you suggested. Personally I would generate markdown and use a command line tool (pandoc) to compile it to pdf. Of course ggplotd can save figures in pdf format (using cairod) I want to generated invoice in PDF format. I think markdown and HTML-to-pdf approach sounds manageable to me. Too bad fpdf does not support Unicode (has a potential though).
PDF generation in D?
Hello community, does anyone have on something for PDF generation in D? I may need a PDF generation library in a vibe.d project I'm working on. :)
Re: SoundTab Theremin software synthesizer
On Wednesday, 2 November 2016 at 09:35:20 UTC, Vadim Lopatin wrote: On Monday, 31 October 2016 at 22:33:38 UTC, Karabuta wrote: On Friday, 28 October 2016 at 08:28:41 UTC, Vadim Lopatin wrote: Hello, I've open sourced my project SoundTab: https://github.com/buggins/soundtab/ I've published derelict-wintab (Wacom tablet API) and wasapi (windows audio API) libraries used for this project. +1
Re: Linux Kernel in D?
On Wednesday, 2 November 2016 at 13:56:22 UTC, qznc wrote: On Tuesday, 1 November 2016 at 16:22:58 UTC, Andrei Alexandrescu wrote: [...] Nevertheless, I don't see a successful D kernel in the foreseeable future. Building a kernel for IoT devices is trendy, but you want a lot more portability for that and C compilers are everywhere. On the server, you could build a hypervisor OS with D, but currently containers are hyped so much more. You'd only have a chance, if you also port the JVM onto your D-OS. Still, where is the advantage to Linux? Who knew containers will suddenly become a thing? You never know what might happen, a D kernel might as well be the game changer.
Re: Linux Kernel in D?
On Tuesday, 1 November 2016 at 13:41:04 UTC, Wild wrote: On Tuesday, 1 November 2016 at 12:12:29 UTC, Heisenberg wrote: Just an idea. Do you think it would have any advantage compared to the one that is written in C? It is better to instead design a new kernel from scratch, and structure everything in a way that seems more logical for D code. This is what I target with my kernel PowerNex (The current code structure is horrible, I'm currently planning to fix it so it matches the D style). Really excited to see that you plan to improve the code style to fit D's. I glanced through your code and that was the only killer issue (IMO).
Re: Minimizing "reserved" words
On Monday, 31 October 2016 at 20:45:56 UTC, Jacob Carlborg wrote: The "reserved" words I'm referring to are not necessarily keywords in the language but otherwise words that should be avoided, especially for defining methods in aggregates. I'm mostly thinking of built-in properties like .init, .classinfo, .sizeof, .outer and so on. All of the above can be used as variable names. Some of the above names can be used as methods in aggregates but some cannot. Of the above names only "sizeof" cannot be used as a method name. classinfo, sizeof... do not match the D coding convention (which is necessary to write D code that don't conflict with built-in keywords) when used. camelCase is recommended.
Re: SoundTab Theremin software synthesizer
On Friday, 28 October 2016 at 08:28:41 UTC, Vadim Lopatin wrote: Hello, I've open sourced my project SoundTab: https://github.com/buggins/soundtab/ For better experience, use Wacom digitizer with pressure detection. These are are the kind of stuff needed to build enterprise level softwares for real-world use case. I really love to see more similar hardware interface libraries like reading from scanners, sensors, printing, PDF generators for printing, WebRTC, peer-to-peer, etc. and more IoT stuff/packages in dub registry. I think we have a QRCode library in dub so the more the better - D becomes more competitive for both hobbyists, independent and enterprise developers.
Re: DLang Youtube channel
On Friday, 28 October 2016 at 16:22:18 UTC, Patric Dexheimer wrote: There isn't a official D youtube channel right? Would be be nice to have all the D related videos spread on youtube centralized in one place :) Who handles YouTube for the community?
Re: [vibe.d] showing images
On Wednesday, 26 October 2016 at 12:42:09 UTC, Nicholas Wilson wrote: doctype html html body -foreach(s; images) // it doesn't seem to like #{s} or !{s} img(src=s) [...] Inherit from Web interface?
Re: getting started with web server - vibe.d dub giving link error
On Monday, 24 October 2016 at 04:46:34 UTC, aman wrote: On Sunday, 23 October 2016 at 19:23:04 UTC, Karabuta wrote: [...] Oh, I see. Actually it got installed auto-magically during dub installation I guess. Now I installed dmd with the script mention on the dlang download page. curl -fsS https://dlang.org/install.sh | bash -s dmd [...] Make sure you install all the vibe.d dependencies. You can refer to my blog post at https://aberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/ under the "Setting up your development environment" section.
Re: getting started with web server - vibe.d dub giving link error
On Sunday, 23 October 2016 at 14:53:48 UTC, aman wrote: On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote: [...] This time i started out with a fresh Ubuntu server and followed instructions on the blog. Here's output. Please help:- /usr/lib/gcc/x86_64-linux-gnu/5/include/d/core/atomic.d:1381:13: error: static assert "Invalid template type specified." static assert(0, "Invalid template type specified."); ^ ../.dub/packages/vibe-d-0.7.29/source/vibe/http/server.d:1388:51: note: instantiated from here: atomicLoad!(cast(MemoryOrder)5, shared(HTTPServerContext)[]) else return cast(HTTPServerContext[])atomicLoad(g_contexts); ^ gdc failed with exit code 1. I used DMD compiler for the tutorial, you are using GCC which might be the problem. GCC compiler seems too outdated. Try using DMD
Re: getting started with web server - vibe.d dub giving link error
On Saturday, 22 October 2016 at 17:21:45 UTC, Karabuta wrote: On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. Below are the details. [...] I wrote a blog post at https://aberba.gtihub.io which has Fedora users covered. But somehow GitHub pages is not working so you can find it here too https://github.com/aberba/aberba.github.io/blob/master/_posts/2016-08-20-hello-world-app-with-the-vibe.d-web-framework.md Sorry for the typo, blog link is rather https://aberba.github.io/#blog
Re: getting started with web server - vibe.d dub giving link error
On Saturday, 22 October 2016 at 14:50:14 UTC, aman wrote: I just started on vibe.d on fedora and the experience is not pretty getting hello-world running. Please help. Below are the details. [...] I wrote a blog post at https://aberba.gtihub.io which has Fedora users covered. But somehow GitHub pages is not working so you can find it here too https://github.com/aberba/aberba.github.io/blob/master/_posts/2016-08-20-hello-world-app-with-the-vibe.d-web-framework.md
Re: I can't use nodejs anymore. Please vibe.d, don't follow that path
On Friday, 21 October 2016 at 11:14:41 UTC, Sönke Ludwig wrote: Am 20.10.2016 um 22:25 schrieb Karabuta: This is actually a nodejs project's dependencies for a small code-base. (...) Dependencies upon dependencies. Each package comes along with its own dependencies. I give up nodejs, you win. Now I am investing my time in Vibe.d which I hope ... I personally always try to minimize external dependencies, because at some point they always cause problems. Sometimes it's possible to resolve those quickly, but even then, it usually leaves a bad taste if they are required for the whole system to function reliably. On the other hand, my plan is definitely to split vibe.d itself up into separate libraries, so that they can be maintained and versioned according to their individual development pace. But that means just that they are in separate repositories instead of submodules within the same one, not finer granularity. The thing about nodejs web frameworks is the usually lack of some basic functionality you would expect from say PHP without external libs. Little/single packages are more trouble, each with its own API design convention. Makes maintenance tedious. When one package dies out of support, problem comes: you have to find something else (which involves making huge code changes).
I can't use nodejs anymore. Please vibe.d, don't follow that path
This is actually a nodejs project's dependencies for a small code-base. { "name": "Houston", "version": "0.3.0", "description": "Backend for AppHub", "main": "build/houston/index.js", "dependencies": { "babel-core": "^6.9.1", "babel-loader": "^6.2.5", "babel-plugin-syntax-async-functions": "^6.8.0", "babel-plugin-syntax-export-extensions": "^6.8.0", "babel-plugin-transform-export-extensions": "^6.8.0", "babel-plugin-transform-regenerator": "^6.9.0", "babel-polyfill": "^6.9.1", "babel-preset-es2015": "^6.9.0", "babel-register": "^6.9.0", "bluebird": "^3.4.0", "co": "^4.6.0", "css-loader": "^0.25.0", "debug": "^2.2.0", "del": "^2.2.0", "dockerode": "^2.2.10", "gulp-babel": "6.0.0", "gulp-postcss": "^6.2.0", "gulp-webpack": "^1.5.0", "gulp": "3.9.0", "ini": "^1.3.4", "jade": "^1.11.0", "jsonwebtoken": "^7.1.9", "koa-convert": "^1.2.0", "koa-passport": "^2.1.0", "koa-router": "^7.0.1", "koa-session": "^3.3.1", "koa-static": "^3.0.0", "koa-views": "^4.1.0", "koa": "^2.0.0", "lodash": "^4.13.1", "moment": "^2.15.1", "mongoose": "^4.4.19", "monq": "^0.3.4", "nodegit": "^0.14.1", "nunjucks": "^2.4.2", "passport-github": "^1.1.0", "pluralize": "^1.2.1", "postcss-cssnext": "^2.8.0", "postcss-loader": "^0.13.0", "raven": "^0.12.1", "raw-body": "^2.1.6", "semver": "^5.1.0", "socket.io-client": "^1.4.6", "socket.io": "^1.4.6", "style-loader": "^0.13.1", "superagent": "^2.0.0", "syslogd": "^1.1.2", "webpack": "^2.1.0-beta.20" }, "devDependencies": { "ava": "^0.16.0", "babel-eslint": "^6.1.2", "babel-plugin-webpack-alias": "^2.1.1", "eslint-config-a-standard": "^1.0.6", "eslint-config-standard": "^6.0.1", "eslint-plugin-ava": "^3.0.0", "eslint-plugin-babel": "^3.3.0", "eslint-plugin-promise": ">=1.0.8", "eslint-plugin-standard": ">=1.3.1", "eslint": "^3.6.0", "mock-require": "^1.2.1", "nock": "^7.7.2", "stylelint": "^7.4.2" }, Dependencies upon dependencies. Each package comes along with its own dependencies. I give up nodejs, you win. Now I am investing my time in Vibe.d which I hope ...
Re: Why are homepage examples too complicated?
On Thursday, 20 October 2016 at 19:52:32 UTC, Andrei Alexandrescu wrote: On 10/20/2016 03:48 PM, Karabuta wrote: On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu wrote: On 10/20/2016 07:38 AM, Nick Treleaven wrote: On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote: [...] https://github.com/dlang/dlang.org/pull/1500 I think it would be best if we kept both. -- Andrei Test using bottom- up approach. Test on a newbie. We ought to test on different newbies with different sensibilities. The PR replaces one style of doing things with another. For some the first style may be more pleasant than the second ("you mean I need to go back to for loops now?") etc. -- Andrei Generally. All examples you assume will be effective for beginners.
Re: Why are homepage examples too complicated?
On Thursday, 20 October 2016 at 14:04:06 UTC, Andrei Alexandrescu wrote: On 10/20/2016 07:38 AM, Nick Treleaven wrote: On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote: I think this example is a bit awkward for D newbies to decipher. I think here we are showing D's ctRegex; dropping the functional map and lambdas would make this more universally understood. https://github.com/dlang/dlang.org/pull/1500 I think it would be best if we kept both. -- Andrei Test using bottom- up approach. Test on a newbie.
Re: Why are homepage examples too complicated?
On Wednesday, 19 October 2016 at 09:28:28 UTC, Benjiro wrote: On Tuesday, 18 October 2016 at 20:51:24 UTC, Karabuta wrote: [...] True. Anybody can make a website. A website that is efficient, takes time. A stupid travel booking website took over a year with constant meeting to design around here. The result is a efficient design but it takes time. [...] On Wednesday, 19 October 2016 at 09:28:28 UTC, Benjiro wrote: I like this guy :) (You are the first person I ever liked here)
Re: Render SVG To Display And Update Periodically
On Monday, 17 October 2016 at 07:18:40 UTC, ketmar wrote: On Monday, 17 October 2016 at 07:05:24 UTC, ketmar wrote: On Monday, 17 October 2016 at 02:07:47 UTC, rikki cattermole wrote: [...] 'cmon, you know that i have a working port of NanoSVG! and it works on top of NanoVG, so no toolkit is required. ah... oops, forgot to give some links. ;-) nanovg and nanosvg ports: http://repo.or.cz/iv.d.git/tree/HEAD:/nanovg some demos: http://repo.or.cz/iv.d.git/tree/HEAD:/nanovg_demo to make it actually draw something, i'm using Adam's excellect simpledisplay from here: https://github.com/adamdruppe/arsd fetching color.d and simpledisplay.d is enough, you don't need the whole repository. ;-) it works at least in GNU/Linux and Windows. OSX is not tested. This thing really needs a GitHub repo + documentation after all the hardwork.
Re: Why are homepage examples too complicated?
On Tuesday, 18 October 2016 at 10:04:35 UTC, Benjiro wrote: On Tuesday, 18 October 2016 at 09:26:56 UTC, Chris wrote: The issue is, that in order to understand the example, you are already required to have a knowledge of the language. I can only use myself as a example. Only started to really use D a few days ago because i have a specific project. I instantly look for the methods that interest me, totally bypassing half the manual. The ! looked like a operator and not a template. To show you how much a nice example flow matters: a month or 3 ago ( because of this future project ) i started to look at several languages: Go, Nim, Haxe, etc... Notice something missing? Yes... i knew about D but totally skipped it for two reasons. Its the same reasons as to why Rust got skipped. I did not like the syntax example's. And in case of D, the whole community issue with D1 vs D2 in several reddit topics that still gets propagated. They will not understand. Those are the UX stuff you learn when you are a web designer/developer. It is easy to not understand the impact when your already know D. Test it on a new user and see. Moreover, unless D is not meant to be a first programming language to learn, then we are far from gaining new adopters with the current information. The tour examples are clearly written by people who have less/limited/lacking teaching skills. How do you win a visitor's interest in 2-5 seconds?
Re: Why are homepage examples too complicated?
On Monday, 17 October 2016 at 19:39:14 UTC, Benjiro wrote: On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote: How is a new visitor supposed to know "!" is for templates and not some complicated syntax? As a dlang newbie ( only started to learn a few days ago ), the example on the front page is just complex for new users. Its not a lack of knowledge ( 15+ years php, some C in high school, Perl 3 years and some other languages over the years ) but i had no clue that "!" ( used a lot in examples ) is actually templates ( or macro's ). I was focused on other parts ( shared libraries creation & loading etc ) so never got around to some of the "basics". Just assumed it was a operator. I would suggest they remove all templates and make it its own example. It is easy to add more high-level features if you already know D, but think like someone who is coming from C or PHP or JavaScript. * Basic functional/ranges example = map, filter, reduce * basic helloworld = write the string "Hello, World!" * Basic sort example * basic maths example * basic UFCS example I also support removing Args and Input. Make things simple. People want to see clean syntax, because they just languages by syntax. We all at times perceive things by appearance first time.
Re: Why are homepage examples too complicated?
On Sunday, 16 October 2016 at 12:14:34 UTC, Adam D. Ruppe wrote: On Friday, 14 October 2016 at 21:18:45 UTC, Karabuta wrote: The "!" is more trouble than good (IMO for the majority). @Adam Roupe did a talk at previous DConf which he testifies to this. Couldn't be me, I don't think I ever talked about it... and I'm actually pro-!. It is a perfectly fine syntax and not hard to learn. You said people ask you about it and you just say "its a compile-time argument". (check your talk, not you asking for help, people asking you :) )
Re: Why are homepage examples too complicated?
On Thursday, 13 October 2016 at 22:12:42 UTC, Guillaume Piolat wrote: On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote: I agree, something friendly and familiar would be called for. Instead we have weird float-rounding programs. The goal of such program should be to push the reader to continue reading by apealing to familiarty. I think this strongly conveys the message that D is complicated and "not for me". See also: https://golang.org/ https://www.rust-lang.org/fr-FR/ https://crystal-lang.org/ https://www.ruby-lang.org/fr/ https://www.python.org/ Do you notice something? The language branded as "simple" have the simplest landing page programs. Apparently someone here thinks showing CPU internals is the best way to teach a beginner programming for him to write efficient code from learning stage. The art of teaching does not work that way in the real world. The "!" is more trouble than good (IMO for the majority). @Adam Roupe did a talk at previous DConf which he testifies to this.
Re: Why are homepage examples too complicated?
On Thursday, 13 October 2016 at 19:30:30 UTC, Meta wrote: On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote: How's a new user supposed to know <> is for templates when looking at a C++ example? They don't; it's just something that has to be learned, ... Does that make it a standard for everyone to follow?
Why are homepage examples too complicated?
I assume the purpose for those demonstrations are to win the interest of the user as to how easy and clean D code can be. Then why; // Round floating point numbers import std.algorithm, std.conv, std.functional, std.math, std.regex, std.stdio; alias round = pipe!(to!real, std.math.round, to!string); static reFloatingPoint = ctRegex!`[0-9]+\.[0-9]+`; void main() { // Replace anything that looks like a real // number with the rounded equivalent. stdin .byLine .map!(l => l.replaceAll!(c => c.hit.round) (reFloatingPoint)) .each!writeln; } How is a new visitor supposed to know "!" is for templates and not some complicated syntax?
Re: tanya event loop v0.1.0
On Saturday, 8 October 2016 at 19:43:16 UTC, Eugene Wissner wrote: A month ago I announced the first pre-alpha release of tanya, a general purpose library with an event loop. After a month of almost every day work, I think I can make a second announcement. [...] Really clean API design from the look of the above code. +1
Re: Easy sockets - don't exist yet?
On Monday, 26 September 2016 at 23:40:10 UTC, Vincent wrote: Hello, guys! I was very surprised that module 'socketstream' was deprecated. Usually if something become obsolete, there is some perfect replacement! But my digging in Inet and forums gave nothing, but "outdated" examples with 'SocketStream' class. So first question is WHAT Phobos has to replace SocketStream? To avoid unnecessary mail bouncing, I write upfront what I expect from normal Socket implementation (kind of interface) : [...] This is how a usable socket in a standard library should be http://dsfml.com/docs/sockets.html. This is using DSFML (a D bindings to SFML).
Re: PowerNex - The Userspace update! (also first birthday)
On Tuesday, 4 October 2016 at 11:08:51 UTC, Dejan Lekic wrote: On Sunday, 2 October 2016 at 22:46:17 UTC, Wild wrote: Congratulations!! It definitely looks promising, even though I really do not like the coding style, but that is just a matter of taste I guess. :) The coding convention is not the official Dlang type. I feels same way too.
Re: WinTab (wacom tablet API) and Windows Core Audio bindings - new DUB packages
On Thursday, 6 October 2016 at 07:10:29 UTC, Vadim Lopatin wrote: Hello, I've published two new DUB packages. derelict-wintab: derelict binding of WinTab32.DLL - API for Wacom digitizer tablets. wasapi: translation of Windows Core Audio interfaces (Core Audio interfaces: MMDevice, WASAPI, EndpointVolume API). I'm using them in my - Theremin-like synthesizer app which uses Wacom tablet as input device. Just in hope it might be useful for someone. Best regards, Vadim Nice stuff, will the SoundTab project work on Linux?
Re: Why I am switching to Go
On Wednesday, 21 September 2016 at 16:13:13 UTC, bachmeier wrote: On Wednesday, 21 September 2016 at 13:56:01 UTC, Nick Sabalausky wrote: On 09/20/2016 03:14 PM, Intersteller wrote: Vibe.d looks great on the surface but lack of documentation, http://vibed.org/docs http://vibed.org/api There's also two examples right on the homepage. Did you try scrolling? To someone like me, who has done little web development, that documentation isn't very helpful. I have copies of both D Web Development and Learning D (which includes a nice example) and *that* got me going. Overall, there are currently better alternatives to Vibe.d for someone wanting to learn web development. I you have "D Web Development" then that's enough to do almost anything with vibe.d in web development.
Re: Using Libraries
On Wednesday, 21 September 2016 at 16:23:35 UTC, Darren wrote: Also I've been making a bit of a mess in dub apparently. I'm getting: Locally registered package gl3n ~master was not found. Please run "dub remove-local C:\Users\Darren\D stuff\opengl\lib". whenever dub gets used. Then if I run what it says I get: "Missing path to package." Is there a way to return this to a default setting? If you have not changed anything in the dub.json file, then run "dub build" to rebuild the packages OR try clearing the dub cache and rebuild. I'm not really familiar with C++ - D bindings (I never wrote C++ code beyond printing a helloworld to the screen). The How To tutorials at https://wiki.dlang.org/Tutorials may help you with bindings and linking process.
Re: SQLite-D goes beta!
On Monday, 30 May 2016 at 18:07:09 UTC, Stefan Koch wrote: It is my pleasure to announce that I now consider SQLite-D to be in Beta stage. The reader is now stable enough to read all the test tables I have been given. The fact that it took around 20 minutes to complete index-tree support convinced mt that I have chosen a solid design. I have received the request to add examples and documentation to sqlite-d. And I will do so as time permits. This project will be boost licensed. So don't be shy :) https://github.com/UplinkCoder/sqlite-d Great work! Can't wait to see sample code :)
Re: Why I am switching to Go
On Tuesday, 20 September 2016 at 19:47:12 UTC, WebFreak001 wrote: On Tuesday, 20 September 2016 at 19:14:41 UTC, Intersteller wrote: Vibe.d looks great on the surface but lack of documentation, commonly used functionality, and that it looks like it is dying suggests that putting any effort in to it will be a waste. Go, OTH, has tons of frameworks, most are actively support, very well documented(beego, revel, etc), and feature rich. What is vibe.d missing? It works great for me and the documentation is great imo too because it has everything I need. I use vibe.d at the company I work at and I use it for all my websites. I never had any problems with it Lets me say from a beginners perspective, * How do I build a file upload form (single and multiple file uploads) * How do I work with mongoDB to do CRUD. * How do I use the Web API beyond hello world! * Form validation? * Data sanitization? * How do I structure my application for real-world (reusable and maintainable code) e.g for a simple blog, simple CMS etc. :) ... Some of these things may seem easy to figure-out but can be difficult for a beginner unless he/she has a copy of Kai's book at the moment (D Web Development) :)
Re: Using Libraries
On Tuesday, 20 September 2016 at 15:38:55 UTC, Darren wrote: On Tuesday, 20 September 2016 at 15:07:53 UTC, rikki cattermole wrote: Ok lets start at the very beginning... I think I need to start before that, haha. I might need more of a step-by-step guide. I'm a complete beginner to programming, not just D. I worked through Programming in D, where I was just compiling with dmd, then when I decided to learn OpenGL I seem to be using dub for everything. There have been a few libraries I've wanted to use but couldn't because they didn't have a pre-compiled binary, which is all I've been able to get working through sheer trial and error. Some sites say to use things like CMake and cygwin, but I'm uncomfortable using things I have no idea about. Dub is like a package manager for D (like what npm is to node.js). All dub libraries are hosted at code.dlang.org. When you see a library at code.dlang.org you want to use, you could either type "dub install packagename" whilst in the dub project ROOT or specify dependencies in the dub.json file. You can then run "dub run" which will take care of fetching and building dependencies/libraries from code.dlang.org (including linking and running the binary). For example, there is a web framework called vibe.d. If I want to use vide.d, I can specify dependencies as; dependencies: { "vide-d":"^0.7.29" } In my app.d file (which is available for any dub project created using "dub init projectname") I can import vibe.d using; import vide.d; void main() { ... } I can now compile and run the program with "dub run" or "dub build" to only build and link without running.
Re: What blogs about D do you read?
On Monday, 19 September 2016 at 19:29:25 UTC, A D dev wrote: On Monday, 19 September 2016 at 17:42:51 UTC, A D dev wrote: Hi list, What blogs about D do you read? To be more clear: - what blogs that include posts on D, would you recommend to a D beginner? Thanks. I have one here on Vibe.d for beginners https://laberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/ I will be writing more for-beginners blogs in the coming few weeks.
Re: Replace/Rename DWT forum with GUIs forum?
On Sunday, 18 September 2016 at 23:21:26 UTC, Gerald wrote: I would like to suggest that the existing DWT forum be renamed or replaced with a more generic GUIs forum. As far as I can tell, the DWT forum doesn't get much traffic these days and I don't believe any of the current GUI options for D are sufficiently popular to warrant their own specific forum. While I primarily work with and have an interest in GtkD, I'm interested in posts with regards to all of the available GUI options (GtkD, DLangUI, etc) for D since I have general interest in desktop applications. I think grouping everything in one forum, similar to what is done for IDEs and Debuggers, would bring together posts and people that share a common interest. +1. Someone once posted a thread about this some time ago. I think using "GUIs" is more useful and representative.
Re: mysql-native v0.1.6
On Thursday, 8 September 2016 at 21:21:24 UTC, Nick Sabalausky wrote: Another small update, v0.1.6, to fix this: Linker error when using dub to import *just* vibe-d:core, but not all of vibe.d. At least once code.dlang.org notices the new tag. Please add a little sample usage code in the README.
Any video transcoding lib like this?
Hello community, has anyone done a lib published/unpublihed in D like https://github.com/senko/python-video-converter . It was developed in python and uses ffmpeg behind the scene. It works this way; from converter import Converter c = Converter() info = c.probe('test1.ogg') conv = c.convert('test1.ogg', '/tmp/output.mkv', { 'format': 'mkv', 'audio': { 'codec': 'mp3', 'samplerate': 11025, 'channels': 2 }, 'video': { 'codec': 'h264', 'width': 720, 'height': 400, 'fps': 15 }}) for timecode in conv: print "Converting (%f) ...\r" % timecode
Re: Joakim Intreviews Walter for the D Blog
On Tuesday, 30 August 2016 at 11:50:52 UTC, Mike Parker wrote: Joakim has put together an interview with Walter that's all about D. It's an enjoyable read. You can parse the interview at [1] and visit the reddit thread at [2]. I anticipate publishing more of Joakim's interviews on the blog in the future. [1] https://dlang.org/blog/2016/08/30/ruminations-on-d-an-interview-with-walter-bright/ [2] https://www.reddit.com/r/programming/comments/50aox1/ruminations_on_d_an_interview_with_walter_bright/ Good write-up. However the font-family and font-size makes reading a little difficult.
Thsi Youtube Channel Complete intro
Complete tutorial for beginners https://www.youtube.com/user/KeyEventHandler/playlists
Hosting a vibe.d website
Hello community, I usually host PHP websites for clients using shared hosting services but I'm not familiar with hosting compiled programming language websites. What processes are involved hosting a vibe.d website developed locally on a web server (shared hosting plan). And what hosting services/packages are available for that?
Re: Check out blog post on vibe.d
On Monday, 22 August 2016 at 15:50:55 UTC, Edwin van Leeuwen wrote: On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote: I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or hardcore coders :) Please let me know what you think. Sounds good, but where is it :) Oh my bad :) What was I thinking? Here https://laberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/
Check out blog post on vibe.d
I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or hardcore coders :) Please let me know what you think.
Re: [OT] I am a developer and I hate documentation
On Thursday, 18 August 2016 at 08:40:23 UTC, Kagamin wrote: Article: https://dzone.com/articles/why-developers-write-horrible-documentation-and-ho Also: https://www.reddit.com/r/programming/comments/4y6pws/why_video_documentation_isnt_the_answer/ Ha ha ha! I read the article :) What sort of thinking went into writing this article? Videos as documentation? So when you want to understand a single function, you just search for that section in the video which a bet will take more time. If you cannot write well (with all the corrections you can make when writing), how can you speak well in one shot. So the question is, "Are programmers good verbal communicators than writers or vice versa"? "Damian Wolf is an tech enthusiast and marketing professional. He loves to write about cloud technology, knowledge management and business performance.". Mhmm, that's why. Developers Don't Need Documentation Video documentation is the answer. This article is dangerous
Re: [OT] of [OT] I am a developer and I hate documentation
On Thursday, 18 August 2016 at 23:14:44 UTC, H. S. Teoh wrote: On Fri, Aug 19, 2016 at 12:02:09AM +0200, Marco Leise via Digitalmars-d wrote: [...] By the way, AFAIK someone implemented `code` as an alternative to $(D code) quite a while ago. So you can use that instead. I'd like ordered/unordered lists to also follow markup style one day. I find it more natural and readable than $(OL $(LI first item) $(LI another important thing) ) [...] Sigh. Eventually we're just reinventing Markdown in ddoc. Why can't we just use Markdown (with some ddoc extensions) in the first place? T That will be way better, don't know why markdown is not used already. . Cant imagine how a compiler generated documentation for D templates will look like :)
Re: Establishing a recommended statndard for documenting dub packages
On Tuesday, 16 August 2016 at 21:05:29 UTC, jmh530 wrote: On Tuesday, 16 August 2016 at 19:59:16 UTC, Karabuta wrote: Looking through documentations for the various packages available in the dub registry, I noticed that some packages have very good documentation whilst others are quite not there yet. ... Therefore I suggest the community put-up some kind of documentation guideline to standardize the learning curve for packages/libraries. The IPFS project (ipfs.io) has something like this which makes some things easy to pick up and has motivated me to suggest this idea. What is your opinion on this? How about that standard applies to phobos while we're at it? Why not?
Establishing a recommended statndard for documenting dub packages
Looking through documentations for the various packages available in the dub registry, I noticed that some packages have very good documentation whilst others are quite not there yet. ... Therefore I suggest the community put-up some kind of documentation guideline to standardize the learning curve for packages/libraries. The IPFS project (ipfs.io) has something like this which makes some things easy to pick up and has motivated me to suggest this idea. What is your opinion on this?
Re: [OT] The coolest (literally) desktop machine I've ever had
On Friday, 12 August 2016 at 19:13:12 UTC, Andrei Alexandrescu wrote: I was using a large Lenovo Y70-70 laptop as a pseudo-desktop machine and additional monitor. It's quite powerful, but its fans would run at all times. Getting really tired of that, I googled for the better part of an afternoon for "fanless desktop" and it turns out it's much harder to find one than I'd initially thought. (Slow fanless machines are easy to find, but I was looking for one as powerful as any desktop.) At about the time I was ready to give up I found an obscure site of an Israeli company that claimed to make a real i7 fanless machine. It was releases very recently, too, so I'm thinking it might be of interest to some others. So I got it from Amazon: https://www.amazon.com/dp/B01CP4S15E. I fitted it with 8 GB RAM and 512 GB SSD. It's more expensive than a traditional desktop of the same configuration, but as soon as you turn it on, you know where that extra money went. (Speaking of money, ironically, the extra expenditure has had an unexpected return: I occasionally daytrade, and when I do I need CNBC on. That made the laptop's fans make even more noise than usual, so I was avoiding it. Nowadays I can keep CNBC on no problem, which allowed me to handily cover the extra expense.) I've put Linux Mint on it (which is what they recommend) and it works swimmingly. The handling of multiple desktops is just awesome. The one thing I don't like about the machine is it always powers the discrete graphics card, which I don't use. Their engineers (who've been very active to respond to my emailed questions) said a future BIOS upgrade will allow powering off the card. Thought this might help others looking for a fanless dekstop. Andrei You give talks about CPU technologies, optimization techniques etc. how did you not know that liquid cooling exist :) Or that is not what you wanted?
Re: D lang for android development
On Sunday, 14 August 2016 at 17:19:17 UTC, eugene wrote: Hello, everyone, did you try to write apps in D for android? Is it ok currently to write in D for android or there are issues or something? I think DlangUI has some initial support for Android. The developer even did a mindcraft demo (whatever that game is called :) ). Go to code.dlang.org and search for "dlangui" and check his Github repo
Re: Why D is not popular enough?
On Monday, 1 August 2016 at 15:31:35 UTC, Emre Temelkuran wrote: For years, i was travelling along Golang, Rust, Perl, Ruby, Python, PHP, JScript, JVM Languages. Lastly Crystal Lang and Nimrod, Julia, Haskell, Swift and many more that i can't remember. I'm 24 years old, my first lang was PHP and VBasic then C,C++ and i first heard about D after 2005 when i was 14-15 years old. I always ignored D, i prejudiced that D failed, because nobody were talking about it. I decided to check it yesterday, it has excellent documentation, i almost covered all aspects. I think D is much better than the most of the other popular langs. It's clear as JScript, Swift, Julia and PHP, also it's capable enough as C,C++. I think D deserves a bigger community. Why people need NodeJS, Typescript etc, when there is already better looking lang? Everyone talking about how ugly is Golang. So why people are going on it? Performance concerns? Why languages that are not backed up by huge companies are looking like they failed? That guy who was very popular in your high school, you remember? How did he become so popular? D doesn't have much of what it takes to become popular that is why it is not :) Just ask yourself, why is JavaScript so popular? How about PHP?
Re: IPFS
On Sunday, 14 August 2016 at 21:21:25 UTC, Nordlöw wrote: I advice you all to read about IPFS at https://ipfs.io/ and https://techcrunch.com/2015/10/04/why-the-internet-needs-ipfs-before-its-too-late/ A D frontend is lacking... :) More details at: https://github.com/ipfs/papers/raw/master/ipfs-cap2pfs/ipfs-p2p-file-system.pdf I mentioned IPFS here some time ago and said it even has JavaScript, Go had front-end, apparently no one saw the potential just like no one respondent to your thread. Too bad though :( IPFS is the future. Always chasing after mainstream ...
Re: Why D isn't the next "big thing" already
On Tuesday, 26 July 2016 at 15:11:00 UTC, llaine wrote: Hi guys, I'm using D since a few month now and I was wondering why people don't jump onto it that much and why it isn't the "big thing" already. Everybody is into javascript nowadays, but IMO even for doing web I found Vibe.d more interesting and efficient than node.js for example. I agree that you have to be pragmatic and choose the right tools for the right jobs but I would be interested to have other opinion on thoses questions. I think we need more frameworks like vibe.d to build things with them. Currently there is not much so only a class of programmers will find the language useful. Another thing is that the language is not marketed well enough. Someone need to handle marketing of the language, like real marketing. Most people are still unaware of D.
Re: New Diet template engine almost complete, ready for comments
On Monday, 25 July 2016 at 09:29:38 UTC, Sönke Ludwig wrote: The Diet template language is aimed at providing a way to ... - Supports AngularJS special attribute names Is there a way to get react JS to work with vibe.d in anyway(server-side)?
Re: What is the current progress on "Safety and Memory Management"?
On Sunday, 17 July 2016 at 06:05:27 UTC, qznc wrote: On Saturday, 16 July 2016 at 21:45:17 UTC, maik klein wrote: I was actually thinking of contributing something bigger as part of my bachelor thesis. (Not sure if I am allowed to do that) What I wanted to do is to translate a big part of Rust's std to D. Stuff like Rc, Arc, Box, Optional + all the necessary tools for ownership semantics. Also implement data structures that work with ownership semantics (Rc, Box, Arc etc) like Vec, HashMap. Add ownership semantics to phobos, for example a lot of stuff in phobos can't be used with non copyable types. (A lot of things rely on copying) If I were your advisor, I would suggest not to think about Phobos. Just build your own library and publish via dub. Getting a contribution into Phobos is not a good use of time for a bachelor thesis. Apart from that: Ownership semantics as a library is a great topic! Go for it. +1
Re: DConf Videos
On Tuesday, 7 June 2016 at 04:25:42 UTC, Mike Parker wrote: On Monday, 6 June 2016 at 18:48:30 UTC, Karabuta wrote: On Monday, 6 June 2016 at 16:22:18 UTC, Gary Willoughby wrote: On Monday, 6 June 2016 at 10:40:01 UTC, sarn wrote: What's the best source of DConf videos at the moment? Are there are any edited versions released? I'd like to share some of my favourite talks. Also, where are the DConf 2016 videos? I was under the impression that they would be released on YouTube? So I thought. It's only been a month. In the past, it's generally been a few weeks after each conference before the video uploads began. I'm sure they'll be coming soon. Yet still no videos. This is so not good.
Re: Vision document for H2 2016
On Thursday, 7 July 2016 at 19:55:51 UTC, Andrei Alexandrescu wrote: https://wiki.dlang.org/Vision/2016H2 -- Andrei Promote video tutorials? :)
Re: D is crap
On Sunday, 3 July 2016 at 04:37:02 UTC, D is crap wrote: Sorry, I've spend the last month trying my best to get simple shit done. At every turn there is some problem that has to be dealt with that is unrelated to my actual work. Be it the IDE, debugging, the library, or user shared code, it is just crap. D cannot be used successfully for semi-large projects without significant man hours invested in getting everything to work. [...] I do believe you are a die hard user of Visual Studio. These guys cannot leave outside their comfort zone. Ha ha. +1 For stability though. Ha ha.
Re: pure D mpeg2 decoder
On Friday, 24 June 2016 at 07:35:51 UTC, Ruslan Mullakhmetov wrote: Hi all! I saw pure jpeg decoder was announced recently and I decided to publish pure D mpeg2 decoder that I wrote just for myself, with study aims. I didn't test it exhaustively, so don't judge me for bugs) Currently it supports only progressive sequences with no B frames. As for performance, it's 5 times slower than ffmpeg implementation, optimizations are required. link: https://github.com/theambient/mpeg2 Does someone want to write pure D AVC or HEVC decoder/encoder? =) P.S. It sometimes has some artifacts, I didn't try to fix them. Does it or do you plan to super decoding and and encoding programmatically (using built-in APIs)?
Re: pure D mpeg2 decoder
On Friday, 24 June 2016 at 07:35:51 UTC, Ruslan Mullakhmetov wrote: Hi all! I saw pure jpeg decoder was announced recently and I decided to publish pure D mpeg2 decoder that I wrote just for myself, with study aims. I didn't test it exhaustively, so don't judge me for bugs) Currently it supports only progressive sequences with no B frames. As for performance, it's 5 times slower than ffmpeg implementation, optimizations are required. link: https://github.com/theambient/mpeg2 Does someone want to write pure D AVC or HEVC decoder/encoder? =) P.S. It sometimes has some artifacts, I didn't try to fix them. Video decoder and encoder will be really helpful to me :)
Re: DConf Videos
On Monday, 6 June 2016 at 16:22:18 UTC, Gary Willoughby wrote: On Monday, 6 June 2016 at 10:40:01 UTC, sarn wrote: What's the best source of DConf videos at the moment? Are there are any edited versions released? I'd like to share some of my favourite talks. Also, where are the DConf 2016 videos? I was under the impression that they would be released on YouTube? So I thought.
Re: Andrei's list of barriers to D adoption
On Monday, 6 June 2016 at 02:20:52 UTC, Walter Bright wrote: Andrei posted this on another thread. I felt it deserved its own thread. It's very important. - I go to conferences. Train and consult at large companies. Dozens every year, cumulatively thousands of people. I talk about D and ask people what it would take for them to use the language. Invariably I hear a surprisingly small number of reasons: * The garbage collector eliminates probably 60% of potential users right off. * Tooling is immature and of poorer quality compared to the competition. * Safety has holes and bugs. * Hiring people who know D is a problem. * Documentation and tutorials are weak. * There's no web services framework (by this time many folks know of D, but of those a shockingly small fraction has even heard of vibe.d). I have strongly argued with Sönke to bundle vibe.d with dmd over one year ago, and also in this forum. There wasn't enough interest. * (On Windows) if it doesn't have a compelling Visual Studio plugin, it doesn't exist. * Let's wait for the "herd effect" (corporate support) to start. * Not enough advantages over the competition to make up for the weaknesses above. Tutorial, tutorials, tutorials Serach youtube for D tutorials and you will find none that is helpful to many people. Check rust tutorials, yeah JavaScript tutorials, abundance. Go tutorials, plenty. Java tutorials, yeah. Clearly there seem to be a problem with tutorials.
Re: Game Development Using D
On Saturday, 21 May 2016 at 15:53:18 UTC, David wrote: Hi, I want to try to create a game using D. I'm a complete newbie though (other than having C/C++ experience). Where would I start? Does D have an openGL binding? I am assuming I'll need to leverage a good amount C APIs? Any list of these that would be useful it a game setting? Obviously this all depends on *how* much work I want to do. Ideally, I'd like a collection of tools that will get me roughly the equivalent of what XNA provides. If you don't know much OpenGL, go for DSFML https://github.com/Jebbs/DSFML
Re: Dconf videos offline download?
On Tuesday, 10 May 2016 at 21:23:00 UTC, Marco Leise wrote: Until edited 1080p videos become available, you can use FlashGot in Firefox to get at the flash video files in ustream.tv. Here is a set of extracted links: [...] Thank you very much
Re: Dconf videos offline download?
On Tuesday, 10 May 2016 at 21:02:05 UTC, John Colvin wrote: On Tuesday, 10 May 2016 at 20:50:04 UTC, Karabuta wrote: How can I get them? http://offliberty.com/# Sweet!
Dconf videos offline download?
How can I get them?
Re: Gnome Builder IDE
On Sunday, 1 May 2016 at 16:21:16 UTC, WebFreak001 wrote: On Tuesday, 19 April 2016 at 16:29:41 UTC, Karabuta wrote: Anyone tried this IDE for D coding? Seems to work pretty well. It deserves some D attention. https://wiki.gnome.org/Apps/Builder I would make a plugin but it seems that you can't make external plugins without recompiling builder from source yet You should contact Hegert(the lead developer). I think that's what he wrote in his blog. Try issues in the github repo.
Re: DlangUI on Android
On Sunday, 24 April 2016 at 11:57:18 UTC, Chris wrote: On Sunday, 24 April 2016 at 06:19:14 UTC, thedeemon wrote: On Saturday, 23 April 2016 at 18:16:38 UTC, Chris wrote: Anyone interested in taking DlangUI and turning it into something like Swing/JavaFX for D? What exactly do you mean by that? Embrace DlangUI or something based on it in the same way DUB was embraced. Atm, only Vadim works on it as a hobby. It would be a pity to see it come to a standstill one day - for what ever reason. I think a D based UI is important, especially now that D is getting some attention. +1
Re: XDG-APP and D
On Thursday, 21 April 2016 at 18:55:23 UTC, Gerald wrote: For those not familiar, xdg-app is a Linux virtualization system targeted at desktop apps, it's been under pretty heavy development and is available for use in Gnome 3.20. Mathias Clausen recently wrote a blog entry about creating his first xdg-app and the application he chose to play with was Terminix, a terminal emulator, which is written in D. He had some D specific challenges to deal with which may be interesting to others looking to support xdg-app. You can read his blog entry here: https://blogs.gnome.org/mclasen/2016/04/15/my-first-xdg-app. This whole sandbox apps seem interesting. Canonical also talking about snaps :)
Re: Gnome Builder IDE
On Wednesday, 20 April 2016 at 06:40:38 UTC, Russel Winder wrote: On Tue, 2016-04-19 at 16:29 +, Karabuta via Digitalmars-d wrote: Anyone tried this IDE for D coding? Seems to work pretty well. It deserves some D attention. https://wiki.gnome.org/Apps/Builder I downloaded gnome-builder 3.20.0 on Fedora Rawhide, and ran it, and got an immediate SIGSEGV. Not as yet at all impressed. Works well for Fedora 23 in software centre. I will recommended Fedora 24 for 3.20
Re: Gnome Builder IDE
On Tuesday, 19 April 2016 at 17:16:45 UTC, WebFreak001 wrote: On Tuesday, 19 April 2016 at 16:29:41 UTC, Karabuta wrote: Anyone tried this IDE for D coding? Seems to work pretty well. It deserves some D attention. https://wiki.gnome.org/Apps/Builder Cool, it supports plugins using libpeas. Gonna make a plugin using workspace-d Can't wait to try it :)
Gnome Builder IDE
Anyone tried this IDE for D coding? Seems to work pretty well. It deserves some D attention. https://wiki.gnome.org/Apps/Builder
Re: Females in the community.
On Monday, 11 April 2016 at 17:12:03 UTC, Ola Fosheim Grøstad wrote: On Saturday, 26 March 2016 at 19:52:18 UTC, QAston wrote: A person who advocates for a more welcoming community and wishes for objective moderation introduces a divisive topic You need to relax. The topic wasn't divisive. I haven't asked for moderation. I haven't argued in favour of objectivity. What is appropriate and not appropriate in an off-topic social thread like this is entirely cultural. I don't consider politics to be particularly contentious, and have never seen it been made an issue of, outside of very narrow US contexts, in my past _30_ years on the Internet. The overall problem with this mentality is that you aren't supposed to mention politics _in case_ someone gets offended, not because they actually do get offended. Which pretty much makes it very difficult to get a working democracy. What _is_ a problem in these forums are the level of butt-hurt personal focus, not the occasional social thread. This community would be much better if there were more social threads, actually. A general forum is _usually_ a catch-all forum, so if you guys want to allow socialization, but don't want off-topic threads you probably should consider creating a separate social forum. Of course, it seems like socialization is not a priority, but then you won't see the formation of strong bonds either (outside of IRC etc). Github doesn't really form strong ties. The basic idea that people will form strong teams based on code alone is not entirely well-founded. +1
Re: Where do I learn to use GtkD
On Monday, 14 March 2016 at 03:46:02 UTC, Gerald wrote: On Sunday, 13 March 2016 at 19:53:35 UTC, karabuta wrote: On Sunday, 13 March 2016 at 19:34:36 UTC, WebFreak001 wrote: and in the (not quite complete) documentation you can find widgets you might want to use. Its a great place for getting ideas on which widgets to use imo. http://api.gtkd.org/src/gtk/AboutDialog.html That thing really need some work to make it consumable :) I contributed a script (makeddocs.sh) to generate the documentation in ddox instead of candydocs, ddox is miles better then candydocs and using it is way more efficient IMHO. Where can I find and use?
Re: Upcoming appearance
On Sunday, 27 March 2016 at 06:18:26 UTC, Saurabh Das wrote: On Saturday, 26 March 2016 at 20:45:49 UTC, Andrei Alexandrescu wrote: I'll be at ACCU teaching a day-long tutorial on D (http://accu.org/index.php/conferences/accu_conference_2016/accu2016_sessions#The_D_Language,_or_The_Art_of_Going_Meta) and delivering a keynote (http://accu.org/index.php/conferences/accu_conference_2016/accu2016_sessions#Fastware). Hope to see some of you there! There has been high interest in the tutorial with over 30 registrations as of a while ago. Andrei Will there be a live stream? Thanks, Saurabh Record too :)
Re: GtkD 3.3.0 released, GTK+ with D.
On Wednesday, 23 March 2016 at 18:16:02 UTC, Mike Wey wrote: GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. A new version of GTK was released today, and with that comes a new GtkD release so you can use the new features in D. GtkD 3.3.0 is now available on gtkd.org: http://gtkd.org/download.html Awesome! Great work.
Re: mondo - a d library for mongodb
On Monday, 21 March 2016 at 16:10:38 UTC, Andrea Fontana wrote: I just released on behalf of the company I work for (http://lab.2night.it) "mondo", a library to work with mongodb. Mondo is a collection of classes (and struct) built over mongo-c-driver. Low-level bindings are generated automatically using dstep + a small script to patch some issues with original source. More info on github page. It obviusly depends on mongo-c-driver library (quite easy to compile). GH: https://github.com/2night/mondo Dub: http://code.dlang.org/packages/mondo Comments are welcome. Andrea Fontana Sweet! Exactly what I waited for.
Using ffmpeg in command line with D
Hi all, I'm trying to convert an array of video filenames to another format using spawnProcess() from std.process. I want to convert all files in sequence with the command "ffmpeg -i filename.mp4 -o outputfile.webm" where process will be run one process after the other. I am new to this kind of multimedia stuff and all this is currently theoretical. Will this work and is it the right approach used by video convertor front-ends?
Re: Females in the community.
On Thursday, 17 March 2016 at 17:07:28 UTC, deadalnix wrote: On Thursday, 17 March 2016 at 16:17:46 UTC, Karabuta wrote: Are there any female programmers using D? :) Are you programing by slamming your dick on the keyboard ? No ? Me neither. Therefore, your genitalia don't matter here. Moreover, the socia Media representation of D sucks. I think we need a female, at least someone soft and mortal who actually understand how to communicate and build a community. Coders suck at these things and its not helping. This is not about gender balance crap, it about building a community. Forgive me for my brutal opinion. It is not brutal, it is dull and cringe-worthy. Really, you guys feel that way? Maybe it's because we are from different cultural and social backgrounds :) Anyway, the point I'm trying to make is what I intend to pass forward for discussion.
Re: Females in the community.
On Thursday, 17 March 2016 at 16:55:29 UTC, Jack Stouffer wrote: On Thursday, 17 March 2016 at 16:17:46 UTC, Karabuta wrote: Moreover, the socia Media representation of D sucks. I think we need a female, at least someone soft and mortal who That's a lot of stereotypes of both men and women, especially male coders. I don't appreciate the implication that women would be better than me at communicating because I'm a guy. And I'm sure women don't appreciate being called "soft" and "moral". Let's drop this whole discussion before it gets embarrassing for everyone. "Mortal" not "moral", it's a figure of speech called "Metaphor" :)
Re: Females in the community.
On Friday, 18 March 2016 at 12:09:45 UTC, qznc wrote: On Thursday, 17 March 2016 at 16:17:46 UTC, Karabuta wrote: Are there any female programmers using D? :) Moreover, the socia Media representation of D sucks. I think we need a female, at least someone soft and mortal who actually understand how to communicate and build a community. Coders suck at these things and its not helping. This is not about gender balance crap, it about building a community. Forgive me for my brutal opinion. Destroy :) I guess this thread now only serves as a lesson in "political" writing. Karabuta wanted to discuss that "the social media representation of D sucks". Unfortunately, he opened his post with a question for "female programmers using D". Even the title is "Females in the community". The discussion derailed into sexism and whatnot. I would advice Karabuta (or anyone else) to make another top-level post without any references to gender, if you want to discuss social media. Yeah, you are totally right. I though that it was clear that the statement contained "metaphors". Howerver, people had there own "words they wanted to spit out" :) I will try not to use metaphors in coders forum next time :) It bothers me that some "BAD" programming languages have marketing edge on the social media, whilst D has none. You know, that's where "everybody" is nowadays. On the side note, you saw through all the various comments and realized what I meant. That's amazing :)
Females in the community.
Are there any female programmers using D? :) Moreover, the socia Media representation of D sucks. I think we need a female, at least someone soft and mortal who actually understand how to communicate and build a community. Coders suck at these things and its not helping. This is not about gender balance crap, it about building a community. Forgive me for my brutal opinion. Destroy :)
Re: Females in the community.
On Thursday, 17 March 2016 at 16:55:29 UTC, Jack Stouffer wrote: On Thursday, 17 March 2016 at 16:17:46 UTC, Karabuta wrote: Moreover, the socia Media representation of D sucks. I think we need a female, at least someone soft and mortal who actually understand how to communicate and build a community. That's how good documentations are written. That's a lot of stereotypes of both men and women, especially male coders. I don't appreciate the implication that women would be better than me at communicating because I'm a guy. And I'm sure women don't appreciate being called "soft" and "moral". I don't mean it that way. It's a figure of speech :) Let's drop this whole discussion before it gets embarrassing for everyone. Now you are dropping my main point I personally don't care whether male or female. I care about the community and that is where I would like to see more activity. The community(social) has currently received less attention IMO. It's not that D is not yet good for more adoption, the issue is with social marketing.
Re: the most D-ish GUI library
On Wednesday, 16 March 2016 at 07:26:24 UTC, Saša Janiška wrote: Karabutawrites: I run on Linux so i would sadly go for Gtk :( whilst keeping an eye on DlangUI Do you have any opinion for DWT (https://github.com/d-widget-toolkit/dwt which *might* be a nice one? Sincerely, Gour My dear, forget about DWT, not a chance :)
Re: the most D-ish GUI library
On Wednesday, 16 March 2016 at 09:44:22 UTC, Vadim Lopatin wrote: On Tuesday, 15 March 2016 at 22:26:15 UTC, Karabuta wrote: DlangUI has a nice API design but still need serious design and art work to catch up with Gtk 3.18 - 2.0 in terms of UI look and feel. I also find that it just have basic widgets. With Gtk you have Switch, Stack, Notebook, HeaderBar, and many modern input widgets for a modern GUI toolkit. Some of such widgets are easy to implement. Switch - just need to add new style for button to theme. Switch, Stack, Notebook, HeaderBar - new styles for TabHeader, TabHost, TabWidget Can be implemented in one day. Some other controls like Rich Edit or HTML view are much harder to implement, and require a lot of development time. Making of OSX native looking controls seems easy - new theme based on OSX screenshots is to be created. Well, the absence of those widgets is what keeps me from completely adopting DlangUI for my projects. I wish they were added. Modern UI is not just textboxes, lables and tables. Once those widgets are added,I will create my own themes and make it super great.
Re: the most D-ish GUI library
On Sunday, 13 March 2016 at 22:26:48 UTC, Saša Janiška wrote: Hello, After long pause and trying some other languages, I've decided to try (again) with D for writing open-source multi-platform desktop (GUI) application. I've selected three different libraries: a) dlangui (https://github.com/buggins/dlangui DlangUI has a nice API design but still need serious design and art work to catch up with Gtk 3.18 - 2.0 in terms of UI look and feel. I also find that it just have basic widgets. With Gtk you have Switch, Stack, Notebook, HeaderBar, and many modern input widgets for a modern GUI toolkit. b) GtkD (https://github.com/gtkd-developers/GtkD and Modern as it has gone through a lot of Widget try and error for the past few years. Currently looks realy great(on linux) and more matured. It's almost like Qt built for Linux in terms of features :) Unfortunately being old and written in C has introduced some bad API design, inconsistencies and naming conventions which makes using it for advanced/complex stuff really tedious. A Projects like elementary OS have built a framework (granite) on top of Gtk which makes things a bit easy for their developers(unfortunately it can only be used in Vala and it's design for their desktop environment (Pantheon). Recently, Gtk is introducing/advancing CSS integration which might bring down the complexity and more customization. It recommended Gtk ATM if you care more about Linux. c) tkd (https://github.com/nomad-software/tkd) Tkd works on Windows and Linux in my experience but look like from the 1980s - 90s. It's Look will definitely not sell when used for commercial (in 2016). Moreover it lacks some modern Widgets. However, it has IMO a really nice API design and it's easy for quick prototyping and it's also more stable. I run on Linux so i would sadly go for Gtk :( whilst keeping an eye on DlangUI
Re: Where do I learn to use GtkD
On Sunday, 13 March 2016 at 19:34:36 UTC, WebFreak001 wrote: On Sunday, 13 March 2016 at 19:28:57 UTC, karabuta wrote: Any help on where I can get better leaning materials(GtkD)? Repo, blogs post, etc please there isn't much about GtkD specificly, but as a start there is this: https://sites.google.com/site/gtkdtutorial/ Funny thing is that I just found that and was about to post it :) Thanks I think the closest are GTK# and the one for Vala. I will do that right away :) But gtkd is just a nice wrapper for gtk. I'm not really someone who can write tutorials but you or someone else could make some tutorials for it. Might attract more people. Great idea. I thinks I will just keep my code and use it as a guide/tutorial in my repo just like the pygtk book. and in the (not quite complete) documentation you can find widgets you might want to use. Its a great place for getting ideas on which widgets to use imo. http://api.gtkd.org/src/gtk/AboutDialog.html That thing really need some work to make it consumable :)
Where do I learn to use GtkD
Gtk3 from python3 has got I nice book with examples that are not so advanced but enough to get you doing real work(from a beginner point of view). GtkD seem to have changed the API structure compared to python3 Gtk3 and the demo examples just "show-off" IMO :). The documentation is really^ not good :) Any help on where I can get better leaning materials(GtkD)? Repo, blogs post, etc please
Re: Argon: an alternative parser for command-line arguments
On Wednesday, 9 March 2016 at 18:56:10 UTC, Markus Laker wrote: On Saturday, 5 March 2016 at 16:28:25 UTC, karabuta wrote: I think he meant: [git status --help], where you have three attributes with the last one being the flag. So in addition to: [status --help] by default, you also have: [git status --help] to get help on status only. Argon doesn't directly support subcommands. That probably stems from a bias of mine: that subcommands make it harder for the author to parse the command and to generate good error messages, and also that they make it harder for users to use unfamiliar commands, because users must read a man page that documents eleven things they have no interest in doing just to get to the one thing that they need to do in order to get on with their day. At work, where I have written and I still maintain many hundreds of commands, I've moved away from subcommands completely: every operation gets a command of its own. But I know that not everyone agrees with me, and that's OK. If we want to debate this topic further, we should probably move the discussion from Announce to General. .. It shouldn't be hard to write some reusable code to do this, if it were a common requirement. I don't like subcommands myself. That's why Linux is such as mess with so much inconsistencies.
Re: ABOUT PROGRAMMING LANGUAGE
On Wednesday, 9 March 2016 at 09:31:35 UTC, Aliyu Ibrahim wrote: What did people mean about the programming and if you will give some step and how to build a java game and how i wil operate it on my desktop. I will so glad and if you send your reply to my e-mail. Thanks Download this book a from http://ddili.org/ders/d.en/Programming_in_D.pdf which will teach you what computer programming means and how to program in the D programming language. When you learn how to program for some time, then you can learn how to program a game in D instead of Java. I recommend D for game development from 2016 onwards. But make sure you know how to program using a particular programing language before you start making games with it.
Re: Argon: an alternative parser for command-line arguments
On Friday, 4 March 2016 at 17:34:08 UTC, Markus Laker wrote: On Friday, 4 March 2016 at 12:21:25 UTC, Jacob Carlborg wrote: No, I mean a longer description, more like documentation. Look at the help for git when using --help, it has different behavior than -h. The first one is more like a man page. Ah, I see. Sorry for the misunderstanding. An app could do that trivially: have a --short-help option with shortcut -h and a --help option with no shortcut, and then respond to the two switches differently. Mark the --short-help option as undocumented, and then it won't appear in an auto-generated syntax summary. Markus I think he meant: [git status --help], where you have three attributes with the last one being the flag. So in addition to: [status --help] by default, you also have: [git status --help] to get help on status only. By the way, that styles used by git seems confusing. Why not make it show the default help when you do: [git --help], whilst you can do: [git --help=status] OR [git --help status] for help on status only? git --help git -h git --help=status git --help status git -h=status
Re: Dconf gets a new logo
On Wednesday, 2 March 2016 at 03:37:48 UTC, Andrei Alexandrescu wrote: Many thanks to https://github.com/aG0aep6G who contributed the DConf 2016 logo (the Berlin tower https://github.com/D-Programming-Language/dconf.org/pull/95). After discussing it with Sociomantic, they proposed a new one that is not Berlin-specific and also looks terrific on T-shirts. Take a look: http://dconf.org Very excited about the up-and-coming DConf 2016! Andrei Really rox!
Suggestion for a book
Whilst coding in D, there so many approaches one can take to structure his project. As the code base grow large, one can get really confused as to how best to structure code (modules, directories, classes, using class or structs, utilizing language features, etc.). Making a good decision initially will save a project a whole lot of development time (+ debugging & testing time). Using D for large project is kind of new (a least to me) and there are so many syntactic sugar and approaches one can take. For this, I suggest a book written to tackle these issues will be of good help to devs and shape the quality(familiar) code base in the D ecosystem. Probably make it more of a marketing strategy for I know D is flexible enough for enterprise development. This approach has not been used by many so we can utilize the opportunity. I know there are many experienced devs in the community who have much insights in using D for real world development and software development in general. What is your opinion on this?
Re: Where to go after "Programming in D"
On Wednesday, 2 March 2016 at 01:14:15 UTC, tsbockman wrote: On Tuesday, 1 March 2016 at 17:21:16 UTC, David DeWitt wrote: On Tuesday, 1 March 2016 at 16:50:12 UTC, karabuta wrote: I am aiming to become a hardcore and better coder(quality code) than you :) Please suggest. I'd probably skim thru the Language Reference and Phobos. Just to add to this - the quality and style of the code in Phobos varies greatly from module to module, mostly as a function of age. Many of the older Phobos modules were designed before anyone really knew how to use D2 properly. The newer modules are generally of high quality and reflect a more mature understanding of the language; I strongly suggest surveying the code base as a whole before studying any one module too closely - otherwise you might pick up some bad habits from the more out-dated parts of Phobos. Also, if you're looking for examples of good, idiomatic code, stay away from DMD (which was only recently converted to D, and still contains many artifacts of its C++ heritage) and D runtime, which hasn't benefited from the same high level of attention and continual reworking as Phobos. thanks for the tip :)
Re: Where to go after "Programming in D"
On Tuesday, 1 March 2016 at 17:53:27 UTC, David DeWitt wrote: On Tuesday, 1 March 2016 at 17:21:16 UTC, David DeWitt wrote: On Tuesday, 1 March 2016 at 16:50:12 UTC, karabuta wrote: I am almost done with the "programming in D" book. Where will you suggest a go from there. My current focus is on network programming, database systems, data manipulation and software architectures for database related apps(mostly Linux platforms with D). I am aiming to become a hardcore and better coder(quality code) than you :) Please suggest. Forgot to add: https://github.com/PhilippeSigaud/D-templates-tutorial Big thanks
Where to go after "Programming in D"
I am almost done with the "programming in D" book. Where will you suggest a go from there. My current focus is on network programming, database systems, data manipulation and software architectures for database related apps(mostly Linux platforms with D). I am aiming to become a hardcore and better coder(quality code) than you :) Please suggest.
Re: D Vulkan API
On Tuesday, 1 March 2016 at 11:33:26 UTC, Nicholas Wilson wrote: So i've spent the last few days making more D feeling bindings for vulkan, based off Satoshi's because going strait from the spec was a PITA and very inconsistent, and they're almost done. I would like to request some feedback on the code itself as well as the generated code and general feel of the interface for a an article/blog post on meta-programming and text processing in D. (I know I should replace most of those c-style for loops with join(er),but some of the ones dealing with arrays are quite complicated, and I really ought to factor out a lot of code). Also I just realised that all the extension functions will have to be called through obtained function pointers. Just one non-technical thing, the module naming does not follow the D style. This is common is some few projects and makes things inconsistent :) *** Modules Module and package names should be all lowercase, and only contain the characters [a..z][0..9][_]. This avoids problems when dealing with case-insensitive file systems. *** Code: http://dpaste.dzfl.pl/3146cdf9d382 outputted code http://dpaste.dzfl.pl/811796605755 Satoshi's bindings: https://github.com/Rikarin/VulkanizeD/blob/master/Vulkan.d Nic
Re: Terminix 0.51.0 Released
On Saturday, 27 February 2016 at 23:13:47 UTC, Gerald wrote: Terminix is a tiling Linux terminal emulator I've been working on designed for the Gnome 3 environment and using GtkD. This newest release fixes a number of bugs and adds some new features. I'm announcing it here primarily for D programmers interested in development using GtkD since this might be useful as a real world GtkD program that exercises a significant percentage of the GTK API. Also, if anyone wants to contribute to the effort I'm always looking for help. Terminix can be found here: https://github.com/gnunn1/terminix Sweet! Hope you will announce it in the elementary, Ubuntu and Linux G+ community, right?
Re: D in Ubuntu apps ecosystem
On Friday, 26 February 2016 at 09:25:19 UTC, Joseph Rushton Wakeling wrote: On Thursday, 25 February 2016 at 19:21:48 UTC, Joakim wrote: Well, if I understand right, the hardest part of the work (making sure things run OK on ARM) has substantially been done by you and others. Assuming that works, I would anticipate that the major part of the requirements would be the bindings to the Ubuntu SDK. Yes the SDK. That is the part that remains, asides bindings to the APIs. Much work has gone into iOS and Android but still more remains to actually use it for everyday apps. Ubuntu on the other hand is just straight forward. As I mentioned earlier, QML binding is done (dqml), remaining API bindings and integration into the SDK. https://developer.ubuntu.com/api/ https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/ https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04.1/ I do think the Ubuntu offerings are compelling in terms of how they restructure the phone/tablet experience, particularly in terms of how they structure things like the security and permissions models, and the separation between hardware-interaction-layer vs. core OS vs. application space and the prospects there for consistent software deployment (and updates) across many different devices. That's my point, write one app and sell it to users of phones, phables, tablet, PC, IoT, etc. No change of code. Everything is handled by the Adaptive Layout.
D in Ubuntu apps ecosystem
Maybe you might only be thinking about Android or iOS, but Ubuntu Touch (a single Ubuntu OS meant to run across multiple devices from PC to Phones) is really gaining traction. The good news is that QML is officially the way to build apps and D already has dqml(https://github.com/filcuc/dqml). Back-end(optional) is also C++ with API bindings in Go and JavaScript. D currently has good support for C++. SIDE NOTE: Ubuntu just lunched a phone with 4GB ram running on a x64 Octacore Arm processors in addition to a table with similar high spec, which can all pretty much handle D(even with GC) IMO. All subsequent devices will be high spec since the OS will run desktop apps on phone and even IoT. So, do you not think Ubuntu ecosystem makes a good and easy to enter market? Unfortunately, I don't have the fuel and engine power to make API bindings, so anyone willing to help here? http://www.ubuntu.com/phone http://www.ubuntu.com/phone/features http://www.ubuntu.com/tablet https://developer.ubuntu.com/en/apps/qml/