Re: D Users Survey: Primary OS?

2014-05-30 Thread MrSmith via Digitalmars-d
On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom

Re: Perlin noise benchmark speed

2014-06-20 Thread MrSmith via Digitalmars-d
On Friday, 20 June 2014 at 12:56:46 UTC, David Nadlinger wrote: On Friday, 20 June 2014 at 12:34:55 UTC, Nick Treleaven wrote: On 20/06/2014 13:32, Nick Treleaven wrote: It apparently shows the 3 main D compilers producing slower code than Go, Rust, gcc, clang, Nimrod: Also, it does appear

Re: Icons for .d and .di files

2014-06-20 Thread MrSmith via Digitalmars-d
On Friday, 20 June 2014 at 16:52:55 UTC, Meta wrote: On Friday, 20 June 2014 at 16:41:14 UTC, Jordi Sayol via Digitalmars-d wrote: El 20/06/14 18:02, Jordi Sayol via Digitalmars-d ha escrit: El 20/06/14 11:49, FreeSlave via Digitalmars-d ha escrit: Thanks, but they are still logos, not icons

Re: Review: std.logger

2014-07-14 Thread MrSmith via Digitalmars-d
While trying to use logger i've found that this doesn't work. The execution stalls and thread is not executed, while eith writeln it works fine. import std.logger; import std.parallelism; void worker() { log(in worker); } void main() { auto pool = taskPool;

Re: Review: std.logger

2014-07-14 Thread MrSmith via Digitalmars-d
On Monday, 14 July 2014 at 18:54:35 UTC, Robert burner Schadek wrote: On Monday, 14 July 2014 at 18:12:44 UTC, MrSmith wrote: While trying to use logger i've found that this doesn't work. The execution stalls and thread is not executed, while eith writeln it works fine. import std.logger;

Re: Voting: std.logger

2014-07-30 Thread MrSmith via Digitalmars-d
Yes for inclusion into std.experimental

Extracting string parameter from template instance received via alias parameter

2014-09-12 Thread MrSmith via Digitalmars-d
Given the following program: - import std.stdio; template first(string s) { string first(string par) { if (par == s) return true; else return false; } }

Re: Extracting string parameter from template instance received via alias parameter

2014-09-12 Thread MrSmith via Digitalmars-d
On Friday, 12 September 2014 at 20:37:44 UTC, Ali Çehreli wrote: On 09/12/2014 12:44 PM, MrSmith wrote: Given the following program: - import std.stdio; template first(string s) { string first(string par) { if (par == s)

Does RTTI and exceptions work in dlls on windows?

2014-11-24 Thread MrSmith via Digitalmars-d
I've got little test here https://gist.github.com/MrSmith33/8750dd43c0843d45ccf8#file-sharedmodule2-d-L17-L29. I have one application and two dlls. Application loads both dlls, calls their factory functions and then passes each IModule instance that it got from factories to those modules.

Re: Does RTTI and exceptions work in dlls on windows?

2014-11-24 Thread MrSmith via Digitalmars-d
On Monday, 24 November 2014 at 20:56:29 UTC, Rainer Schuetze wrote: On 24.11.2014 19:20, MrSmith wrote: I've got little test here https://gist.github.com/MrSmith33/8750dd43c0843d45ccf8#file-sharedmodule2-d-L17-L29. I have one application and two dlls. Application loads both dlls, calls

Re: Does RTTI and exceptions work in dlls on windows?

2014-11-25 Thread MrSmith via Digitalmars-d
On Tuesday, 25 November 2014 at 10:02:00 UTC, Kagamin wrote: On Monday, 24 November 2014 at 20:56:29 UTC, Rainer Schuetze wrote: The different DLLs have different copies of the RTTI for the classes (you could not link them separately otherwise). Looking for base classes or derived classes only

Re: Does RTTI and exceptions work in dlls on windows?

2014-11-25 Thread MrSmith via Digitalmars-d
On Tuesday, 25 November 2014 at 18:39:56 UTC, Benjamin Thaut wrote: Am 24.11.2014 19:20, schrieb MrSmith: I've got little test here https://gist.github.com/MrSmith33/8750dd43c0843d45ccf8#file-sharedmodule2-d-L17-L29. I have one application and two dlls. Application loads both dlls, calls

Re: Does RTTI and exceptions work in dlls on windows?

2014-11-26 Thread MrSmith via Digitalmars-d
On Wednesday, 26 November 2014 at 07:46:12 UTC, Benjamin Thaut wrote: Am 25.11.2014 21:46, schrieb MrSmith: Is there a bugzilla issue for this? And what is the status of windows dlls? If you want a bit more dll support right now, I suggest that you take a look at these changes and merge them

Re: Does RTTI and exceptions work in dlls on windows?

2014-11-27 Thread MrSmith via Digitalmars-d
On Thursday, 27 November 2014 at 11:24:45 UTC, Martin Nowak wrote: On 11/24/2014 07:20 PM, MrSmith wrote: I've got little test here https://gist.github.com/MrSmith33/8750dd43c0843d45ccf8#file-sharedmodule2-d-L17-L29. I have one application and two dlls. Application loads both dlls, calls

Re: Does RTTI and exceptions work in dlls on windows?

2014-12-01 Thread MrSmith via Digitalmars-d
On Saturday, 29 November 2014 at 13:52:11 UTC, Martin Nowak wrote: On Thursday, 27 November 2014 at 21:52:27 UTC, MrSmith wrote: Can you suggest a good way to design mod system? Where each mod can depend on others and use their real functionality. All mods should be in form of dlls. No DLL

Re: Does RTTI and exceptions work in dlls on windows?

2014-12-02 Thread MrSmith via Digitalmars-d
On Tuesday, 2 December 2014 at 10:48:16 UTC, Kagamin wrote: On Monday, 1 December 2014 at 18:35:28 UTC, MrSmith wrote: Can i compile it in the same dll with its implementation? Yes, you can have all implementations in the same dll, interface will only have to be directly accessible to all

Re: std.allocator ready for some abuse

2015-02-11 Thread MrSmith via Digitalmars-d
On Wednesday, 11 February 2015 at 15:57:26 UTC, John Colvin wrote: Should it be in std.experimental? Or at least on code.dlang.org? Yeah, dub package would be really nice!

Re: std.sevenzip - Do you need it?

2015-01-31 Thread MrSmith via Digitalmars-d
On Saturday, 31 January 2015 at 04:30:06 UTC, Daniel Murphy wrote: Brad Anderson wrote in message news:vqkaztokcfgdbykbi...@forum.dlang.org... I'm mostly of the opinion that we should be relying less on Phobos and more on dub going forward. sevenzip would be a great addition to the dub

Re: Phobos colour module?

2015-01-09 Thread MrSmith via Digitalmars-d
You can take a look at what color formats does freeimage supports.

Re: Automatic method overriding in sub-classes

2015-10-27 Thread MrSmith via Digitalmars-d
On Monday, 26 October 2015 at 23:25:49 UTC, Tofu Ninja wrote: I know this has basically no chance of ever actually being added because that is the way of all "I want feature X" threads, but I thought I would post this anyways because I seem to want it constantly. Hey, that is what I needed

Re: Voting For std.experimental.ndslice

2015-12-29 Thread MrSmith via Digitalmars-d
On Tuesday, 29 December 2015 at 21:19:19 UTC, Jack Stouffer wrote: On Tuesday, 29 December 2015 at 17:38:06 UTC, Ilya Yaroshenko wrote: On Tuesday, 29 December 2015 at 17:17:05 UTC, Jack Stouffer wrote: ... First draft: http://jackstouffer.com/hidden/nd_slice.html Please critique. Looks

Re: Entity Component Architecture

2016-08-26 Thread MrSmith via Digitalmars-d
On Wednesday, 24 August 2016 at 17:57:33 UTC, vladdeSV wrote: I am searching for feedback. What do you think it's pros and cons are? Preformance, memory usage, scaleability, etc? Your solution is basically OOP with composition used. It is enough for convenience, but not enough for speed. Also

Re: Dub with ldc on windows

2016-11-14 Thread MrSmith via Digitalmars-d
On Monday, 14 November 2016 at 21:16:23 UTC, Daniel Kozak wrote: Is there any plan to support this? Right now I can use dub only with dmd on windows. On linux it works ok. I've used this patch to fix dub with ldc on windows. Works fine.

Re: D wish list roll call game

2017-07-05 Thread MrSmith via Digitalmars-d
On Monday, 26 June 2017 at 11:20:43 UTC, Andrey wrote: Hi guys!!! Let's play roll call. Add the desired feature in Dlang. Only one. I write my own. The following copy of the previous one and adds his. At the end will receive a list of.

Re: Simulating reference variables using `alias this`

2017-05-10 Thread MrSmith via Digitalmars-d
On Wednesday, 10 May 2017 at 17:12:11 UTC, Carl Sturtivant wrote: Here's the beginning of an interesting little experiment to simulate reference variables using `alias this` to disguise a pointer as a reference. Could add a destructor to set the pointer to null when a reference goes out of

Re: Note from a donor

2017-11-17 Thread MrSmith via Digitalmars-d
On Friday, 17 November 2017 at 23:31:07 UTC, David Nadlinger wrote: The more promising avenue would probably be to distribute LLD with DMD. This still leaves the system library licensing to deal with, but if I remember correctly, one of the usual suspects (Rainer? Vladimir?) was working on

Re: Note from a donor

2017-11-05 Thread MrSmith via Digitalmars-d
On Saturday, 4 November 2017 at 08:16:16 UTC, Joakim wrote: I was intrigued by someone saying in this thread that Go supports Win64 COFF out of the box, so I just tried it out in wine and indeed it works with their hello world example. Running "go build -x" shows that they ship a link.exe for

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-05 Thread MrSmith via Digitalmars-d
On Saturday, 4 November 2017 at 15:38:42 UTC, Jonathan M Davis wrote: In principle, that would be nice, but in practice, it's not really feasible. In the general case, there's no way to save the state of the parameter at the beginning of the function call (you could with some types, but for

Re: Project Elvis

2017-11-05 Thread MrSmith via Digitalmars-d
On Monday, 30 October 2017 at 19:46:54 UTC, Andrei Alexandrescu wrote: I see from comments that different people think of it in a different way. I suggest them to read this section from Kotlin docs to understand the reasoning behind the elvis operator. The principle of least astonishment

Re: Tiny D suitable for embedded JIT

2018-05-28 Thread MrSmith via Digitalmars-d
On Wednesday, 23 May 2018 at 18:49:05 UTC, Dibyendu Majumdar wrote: Now that D has a better C option I was wondering if it is possible to create a small subset of D that can be used as embedded JIT library. I would like to trim the language to a small subset of D/C - only primitive types and

Re: Note from a donor

2017-10-26 Thread MrSmith via Digitalmars-d
On Thursday, 26 October 2017 at 17:02:40 UTC, Mike Parker wrote: That's exactly the kind of developer background I'm thinking of. Getting permission to redistribute from MS would be the ideal solution. If not, I'm sure someone will find a way to make it work with the LLVM or MinGW tools

Re: Note from a donor

2017-10-27 Thread MrSmith via Digitalmars-d
On Friday, 27 October 2017 at 09:56:25 UTC, Kagamin wrote: MinGW compiles import libraries from text .def files that are lists of exported symbols: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-crt/lib64/ I will test dmd + lld + use .def files instead of .lib files

Re: Note from a donor

2017-10-28 Thread MrSmith via Digitalmars-d
On Saturday, 28 October 2017 at 09:20:40 UTC, MrSmith wrote: error: test.obj: The file was not recognized as a valid object file Ah, forgot to pass -m64 to dmd

Re: Note from a donor

2017-10-28 Thread MrSmith via Digitalmars-d
On Friday, 27 October 2017 at 16:05:10 UTC, Kagamin wrote: With this the only missing piece will be the C startup code (mainCRTStartup in crtexe.c), though not sure where it's compiled. How do I get lld-link to link .obj files? Clang itself emits .o files, and those link successfully. For

Re: Dll support: testers needed

2018-01-07 Thread MrSmith via Digitalmars-d
On Saturday, 6 January 2018 at 19:32:51 UTC, Benjamin Thaut wrote: You can find a quick start guide here: http://stuff.benjamin-thaut.de/D/getting_started.html If you need more information and examples take a look here: https://github.com/Ingrater/DIPs/blob/ReviveDIP45/DIPs/DIP45.md Does the

Re: Dll support: testers needed

2018-01-09 Thread MrSmith via Digitalmars-d
Is it possible to put common code in exe, and use that code from dlls? Or anything can be exported only by dll? Is it possible to have circular dependencies between dlls? Tips for doing dlls with dub?

Re: Tuple DIP

2018-01-13 Thread MrSmith via Digitalmars-d
On Saturday, 13 January 2018 at 21:05:27 UTC, Timon Gehr wrote: On 13.01.2018 21:49, Timon Gehr wrote: auto (name, email) = fetchUser();     vs auto {name, email} = fetchUser(); BTW: What do you think each of those do? I'd expect the following: --- auto (name, email) = fetchUser(); =>

Re: Feature to get or add value to an associative array.

2018-04-17 Thread MrSmith via Digitalmars-d
On Tuesday, 17 April 2018 at 17:27:02 UTC, Giles Bathgate wrote: I like the name. I think your version is quite low level which ultimately provides more power at the expense of making the callee code less clean. I am not sure with D which of those two aspects is preferred. Perhaps both

Re: bgfx bindings

2014-07-02 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 1 July 2014 at 20:43:27 UTC, ponce wrote: Hi, I'd like to announce DerelictBgfx, a dynamic bindings to the bgfx library. https://github.com/derelictorg/derelictbgfx bgfx is a library which abstract the accelerated graphics API through a common denominator. DX9, DX11, Desktop

D is for Data Science - reddit discussion

2014-11-24 Thread MrSmith via Digitalmars-d-announce
D is for Data Science by Andrew Pascoe http://www.reddit.com/r/programming/comments/2n9gfb/d_is_for_data_science/

Re: D is for Data Science - reddit discussion

2014-11-24 Thread MrSmith via Digitalmars-d-announce
Haven't noticed that it was already posted. Sorry about that. The disscussion is here http://forum.dlang.org/thread/qeyftagcvkhjjeeba...@forum.dlang.org

Concise Binary Object Representation (CBOR) binary serialization library.

2014-12-19 Thread MrSmith via Digitalmars-d-announce
The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary

Re: Concise Binary Object Representation (CBOR) binary serialization library.

2014-12-20 Thread MrSmith via Digitalmars-d-announce
On Friday, 19 December 2014 at 22:25:57 UTC, Nordlöw wrote: On Friday, 19 December 2014 at 18:26:26 UTC, MrSmith wrote: Here is github link: https://github.com/MrSmith33/cbor-d Destroy! It would be nice to have a side-by-side comparison with http://msgpack.org/ which is in current use by a

Re: Concise Binary Object Representation (CBOR) binary serialization library.

2014-12-20 Thread MrSmith via Digitalmars-d-announce
On Friday, 19 December 2014 at 22:33:57 UTC, BBaz wrote: Do you know OGDL ? http://ogdl.org/ It's currently the more 'appealing' thing to me for serialization. That is interesting! Is there a D implementation? Though, it looks like there is not much types of data there.

Re: Concise Binary Object Representation (CBOR) binary serialization library.

2014-12-20 Thread MrSmith via Digitalmars-d-announce
On Friday, 19 December 2014 at 22:46:14 UTC, ponce wrote: On Friday, 19 December 2014 at 22:33:57 UTC, BBaz wrote: On Friday, 19 December 2014 at 18:26:26 UTC, MrSmith wrote: The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of

Re: DlangUI project update

2014-12-30 Thread MrSmith via Digitalmars-d-announce
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

Re: DlangUI project update

2014-12-30 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 30 December 2014 at 18:32:04 UTC, ketmar via Digitalmars-d-announce wrote: On Tue, 30 Dec 2014 18:18:38 + MrSmith via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Is it possible to use your GUI for opengl game? I need to inject a gui in an existing main

Re: Inherit of attributes

2014-04-25 Thread MrSmith via Digitalmars-d-learn
On Friday, 25 April 2014 at 07:59:29 UTC, Temtaime wrote: Hi ! http://dpaste.dzfl.pl/2fa3dd2ea834 Why S.init not pure ? Is it expected behavior or bug ? Thanks! Fix http://dpaste.dzfl.pl/03f73cd958f4

Re: Programming a Game in D? :D

2014-05-25 Thread MrSmith via Digitalmars-d-learn
Also opengl tutorials for D https://github.com/d-gamedev-team/opengl-tutorials

Re: delegate issue

2014-06-02 Thread MrSmith via Digitalmars-d-learn
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote: hi, i stumbled upon something weird - it looks like a bug to me but maybe it is a feature that is unclear to me. so i know i can declare function and delegate pointers at module level. for function pointers, i can initialize with a

Re: Using input ranges with std.regex?

2014-08-11 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 25 April 2012 at 21:43:11 UTC, Dmitry Olshansky wrote: On 25.04.2012 23:08, H. S. Teoh wrote: Does std.regex support input ranges to match()? Or do I need to convert to string first? For now, yes you have to convert them. Any random access range of code units should do the

Re: Ropes (concatenation trees) for strings in D ?

2014-08-16 Thread MrSmith via Digitalmars-d-learn
On Saturday, 16 August 2014 at 02:26:29 UTC, ketmar via Digitalmars-d-learn wrote: On Fri, 15 Aug 2014 19:04:10 -0700 Timothee Cour via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: sounds like my C library based on this article:

Re: Trying to get Derelict.opengl3.gl3 and derelict.glfw3.glfw3 to work together

2014-09-25 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 24 September 2014 at 13:59:41 UTC, csmith wrote: On Wednesday, 24 September 2014 at 11:07:56 UTC, Mike Parker wrote: You're using deprecated OpenGL calls. The gl3 module only declares and loads modern OpenGL. If you really want to use the deprecated stuff, change the gl3 import

Making plugin system with shared libraries. Upcast in shared lib

2014-10-19 Thread MrSmith via Digitalmars-d-learn
I'm using Windows. I was making some sort of modular system where you can define modules that are loaded by host application. Here is a simple example https://gist.github.com/MrSmith33/7692328455a19e820a7c Now i want to separate these modules in separate shared libs and link them on the fly.

Re: Making plugin system with shared libraries. Upcast in shared lib

2014-10-20 Thread MrSmith via Digitalmars-d-learn
On Monday, 20 October 2014 at 14:05:29 UTC, Kagamin wrote: Do it the COM way: publish IModule2 interface and declare GetInterface method, which will return a prepared pointer, which you would reinterpret cast to IModule2. Will it work on linux with simple .so libs? I want it to be as simple

Re: Making plugin system with shared libraries. Upcast in shared lib

2014-10-20 Thread MrSmith via Digitalmars-d-learn
On Monday, 20 October 2014 at 15:30:28 UTC, Martin Nowak wrote: On 10/20/2014 12:32 AM, MrSmith wrote: Than any module can search for registered modules and try to cast them to concrete type (upcast). That can't work because the notion of types only exists during compilation. Therefor it's

Re: Making plugin system with shared libraries. Upcast in shared lib

2014-10-21 Thread MrSmith via Digitalmars-d-learn
On Tuesday, 21 October 2014 at 13:57:23 UTC, Kagamin wrote: On Monday, 20 October 2014 at 15:07:43 UTC, MrSmith wrote: On Monday, 20 October 2014 at 14:05:29 UTC, Kagamin wrote: Do it the COM way: publish IModule2 interface and declare GetInterface method, which will return a prepared pointer,

Re: HTML Parsing lib

2014-10-25 Thread MrSmith via Digitalmars-d-learn
On Saturday, 25 October 2014 at 19:46:01 UTC, MrSmith wrote: On Saturday, 25 October 2014 at 19:44:25 UTC, Suliman wrote: I found only https://github.com/Bystroushaak/DHTMLParser But I can't get it work: C:\Users\Dima\Downloads\DHTMLParser-master\DHTMLParser-masterdmd find_links.d OPTLINK

Re: HTML Parsing lib

2014-10-25 Thread MrSmith via Digitalmars-d-learn
On Saturday, 25 October 2014 at 19:44:25 UTC, Suliman wrote: I found only https://github.com/Bystroushaak/DHTMLParser But I can't get it work: C:\Users\Dima\Downloads\DHTMLParser-master\DHTMLParser-masterdmd find_links.d OPTLINK (R) for Win32 Release 8.00.15 Copyright (C) Digital Mars

Re: HTML Parsing lib

2014-10-25 Thread MrSmith via Digitalmars-d-learn
On Saturday, 25 October 2014 at 19:55:10 UTC, Suliman wrote: How I can build such App with DUB? Unfortunately that library has no dub package. But you can include it in your project. See info here http://code.dlang.org/package-format

Re: Question about eponymous template trick

2014-11-03 Thread MrSmith via Digitalmars-d-learn
On Monday, 3 November 2014 at 14:07:55 UTC, Uranuz wrote: I have an example of code like this: template Node(String) { struct Node {} struct Name {} struct Attr {} } void main() { alias MyNode = Node!(string).Node; alias MyName =

Re: accessing numeric template parameters

2014-11-03 Thread MrSmith via Digitalmars-d-learn
On Monday, 3 November 2014 at 14:27:47 UTC, Dominikus Dittes Scherkl wrote: If I have a struct with numeric template parameter, how can I access it within member functions? Like normal member variables? And how about the constructor? struct polynomial(uint base) { private: uint[] N;

Re: help

2014-11-20 Thread MrSmith via Digitalmars-d-learn
On Thursday, 20 November 2014 at 16:48:29 UTC, MachineCode wrote: On Thursday, 20 November 2014 at 07:25:45 UTC, Suliman wrote: You need to check if remote file exist of server and only after it download шею is this software name written in russian language? шею means it. on russian

Re: print yyyy-mm-dd

2014-11-20 Thread MrSmith via Digitalmars-d-learn
On Thursday, 20 November 2014 at 13:50:49 UTC, Suliman wrote: I can't understand how to get date in format -MM-dd from Clock.currTime auto time = Clock.currTime; And what next? Could anybody give any examples? http://dpaste.dzfl.pl/73c0438f9d1e currTime returns SysTime; You can then

Re: regular expression engine and ranges

2014-12-02 Thread MrSmith via Digitalmars-d-learn
On Tuesday, 2 December 2014 at 19:17:43 UTC, ketmar via Digitalmars-d-learn wrote: Hello. is there any decent regular expression engine which works with input ranges? under decent i mean good D code, [t]nfa and no backtracking. support for captures and greedy/non-greedy modes are must. i

Re: dub dustmite

2014-12-14 Thread MrSmith via Digitalmars-d-learn
On Friday, 12 December 2014 at 04:25:01 UTC, Vlad Levenfeld wrote: I'm trying to reduce a bug with dub dustmite feature and I must be doing it wrong somehow, my regular dub output looks like this: source/experimental.d(2403): Error: struct experimental.Product!(int[], int[]).Product no

Re: How to share modules when using -shared?

2014-12-14 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 10 December 2014 at 00:44:41 UTC, Justin Whear wrote: I'm trying to build components that I can dynamically link and keep running into an issue with sharing modules between the host and the pluggable components. Assuming a layout like this: host.d -- loads components at

Cannot use the same template arguments on function as the ones on struct

2015-02-11 Thread MrSmith via Digitalmars-d-learn
Here I have templated struct that matches type with CborConfig tempate specialization CborConfig will have more parameters in future and all of them will be accessed via alias members, so I've used variadic (T...) parameter whule matching. --- template

Re: Cannot use the same template arguments on function as the ones on struct

2015-02-12 Thread MrSmith via Digitalmars-d-learn
Thanks, everyone.

Re: Cannot use the same template arguments on function as the ones on struct

2015-02-12 Thread MrSmith via Digitalmars-d-learn
Thank you!

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-10 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 10 February 2015 at 22:40:18 UTC, Kiith-Sa wrote: DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are added. The idea is to make documenting D projects as simple as

Re: quick-and-dirty minimalistic LISP engine

2015-02-22 Thread MrSmith via Digitalmars-d-announce
With master dmd I'm getting milf.d(2): Error: ';' expected following module declaration instead of is milf.d(2): Error: no identifier for declarator aliced milf.d(99): Deprecation: typedef is removed milf.d(223): Error: basic type expected, not ; milf.d(223): Error: no identifier for

Re: Best practices for reading public interfaces

2015-02-22 Thread MrSmith via Digitalmars-d-learn
On Saturday, 21 February 2015 at 20:46:09 UTC, Kenny wrote: I like D modules and it's a major point in the list of major points why I like D (there is also the second not so nice wft-list but it's for another post). I'm annoyed with C++ includes and I'm tired to create 2 files every time when I

Re: Opening browser and url.

2015-06-25 Thread MrSmith via Digitalmars-d-learn
On Thursday, 25 June 2015 at 14:02:41 UTC, Bauss wrote: In other programming languages you can open a website in the default browser by spawning a process using the url, but it does not seem to work with D using spawnProcess(). Do I have to do API calls to get the default browser and then

Re: Yieldable function?

2015-08-13 Thread MrSmith via Digitalmars-d-learn
http://dlang.org/phobos/core_thread.html#.Fiber

Re: Atrium - 3D game written in D

2015-11-06 Thread MrSmith via Digitalmars-d-announce
Would be nice to have demos avaliable on github

Re: Voting for std.experimental.allocator

2015-07-08 Thread MrSmith via Digitalmars-d-announce
Yes

Re: Damage Control: An homage to Rampart (Alpha)

2016-01-01 Thread MrSmith via Digitalmars-d-announce
On Thursday, 31 December 2015 at 16:43:53 UTC, rcorre wrote: "Damage Control" is a game inspired by one of my old favorite SNES games, Rampart (ok, technically an arcade game, but I had it on SNES). [...] For me window is not shown. Windows 7 64bit. I see console and graphics windows in

Re: trying to implement lock-free fixedsize queue

2016-03-31 Thread MrSmith via Digitalmars-d-learn
On Thursday, 31 March 2016 at 18:25:46 UTC, jacob wrote: I try to implement chunk (something like lock-free fixedsize queue) ... Check out this implementation https://github.com/MartinNowak/lock-free/blob/master/src/lock_free/rwqueue.d

Re: LZ4 decompression at CTFE

2016-04-26 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 26 April 2016 at 22:05:39 UTC, Stefan Koch wrote: Hello, originally I want to wait with this announcement until DConf. But since I working on another toy. I can release this info early. So as per title. you can decompress .lz4 flies created by the standard lz4hc commnadline tool

Re: DlangUI on Android

2016-04-23 Thread MrSmith via Digitalmars-d-announce
Works on Nexus 7, Android 6.0.1!

Re: Minor updates: gen-package-version v1.0.4 and sdlang-d v0.9.6

2016-08-26 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 23 August 2016 at 16:19:12 UTC, Nick Sabalausky wrote: I'm hoping to finally get around to taking care of some of the open enhancement requests for sdlang-d soon. Can you, please, take care of this issue: https://github.com/Abscissa/libInputVisitor/issues/1 ?

Re: Project Highlight: Voxelman

2016-12-30 Thread MrSmith via Digitalmars-d-announce
On Friday, 30 December 2016 at 13:28:12 UTC, Mike Parker wrote: Voxelman is a plugin-driven voxel game engine that is built around a client-server architecture and sports multi-threaded world & mesh generation. I stumbled across a post on /r/VoxelGameDev a few weeks back and recognized the

Re: Project Highlight: Voxelman

2016-12-31 Thread MrSmith via Digitalmars-d-announce
On Saturday, 31 December 2016 at 11:48:34 UTC, jkpl wrote: I don't blame your personally but the last time a blog post presented a game (it was the one made by the author of dlib) there was also a similar problem. Were you aware that something gonna be posted and that necessarily people would

Re: Project Highlight: Voxelman

2017-01-01 Thread MrSmith via Digitalmars-d-announce
On Saturday, 31 December 2016 at 14:22:40 UTC, jkpl wrote: dub build --build=release Performing "release" build using dmd for x86_64. dmd failed with exit code 1. I've fixed compilation on linux on 2.072. However you need to use --DRT-oncycle=ignore when starting, due to new cycle handling in

Re: Introducing Diskuto - an embeddable comment system

2017-03-19 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 14 March 2017 at 11:17:57 UTC, Sönke Ludwig wrote: Any comments suggestions and especially helping hands are highly appreciated! Would be nice to undo/change votes. I accidentally clicked -1 and can't undo it.

Re: Playing with Entity System, performance and D.

2017-06-19 Thread MrSmith via Digitalmars-d-learn
You may find this interesting https://github.com/MrSmith33/datadriven

Linking error: unresolved external symbol internal

2017-10-10 Thread MrSmith via Digitalmars-d-learn
I have a static library and an application. When linking final executable I get: lib.lib(texteditor_1d_40c.obj) : error LNK2001: unresolved external symbol internal lib.lib(textbuffer_14_3ce.obj) : error LNK2001: unresolved external symbol internal Happens on Windows 32 and 64 bit.

Re: GUI app brings up console

2017-12-06 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 6 December 2017 at 21:25:27 UTC, Ivan Trombley wrote: I created a cross-platform app using gtk-d. Everything works fine but when I run it from Windows, a console window is opened. How can I tell Windows that it's a GUI application so that a console is not opened (keeping in mind

Re: DMD, Windows and C

2017-10-25 Thread MrSmith via Digitalmars-d-announce
On Wednesday, 25 October 2017 at 16:57:27 UTC, kinke wrote: The MS libs are obviously still required. They can be compressed to ~32 MB. The redistribution of the static libs is unclear, that's why I haven't pursued this further, but that's basically the only thing standing in the way of

Re: Beta 2.080.1

2018-06-04 Thread MrSmith via Digitalmars-d-announce
On Monday, 4 June 2018 at 11:44:31 UTC, Martin Nowak wrote: First beta for the 2.080.1 patch release. Comes with a handful of fixes. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.080.1.html Please report any bugs at https://issues.dlang.org - -Martin Is [1]

Re: calloc for std.experimental.allocator

2018-01-11 Thread MrSmith via Digitalmars-d-learn
On Thursday, 11 January 2018 at 21:09:01 UTC, Nordlöw wrote: Is there no equivalent of `calloc()` for `std.experimental.allocator`, something like Allocator.zeroAllocate(size_t numberOfElements) ? http://dpldocs.info/experimental-docs/std.experimental.allocator.makeArray.4.html

Re: partial application for templates

2017-12-25 Thread MrSmith via Digitalmars-d-learn
On Monday, 25 December 2017 at 20:39:52 UTC, Mengu wrote: is partially applying templates possible? template A(X, Y, Z) {} alias B(X, Y) = A!(X, Y, int);

Re: Can't compile dlangui

2020-03-03 Thread MrSmith via Digitalmars-d-learn
On Friday, 7 February 2020 at 12:04:10 UTC, A.Perea wrote: Hi, I'm trying to compile dlangide, and it fails when compiling the dependency dlangui. Trying to compile dlangui independently gives the same error message (see below for full stack trace) [...] On Friday, 7 February 2020 at

Re: code.dlang.org reliability update

2020-03-03 Thread MrSmith via Digitalmars-d-announce
On Tuesday, 3 March 2020 at 08:26:19 UTC, Sönke Ludwig wrote: Nope, should be right. At least on my machines, %APPDATA% points to AppData\Roaming, which is the right base folder. My bad, confused %APPDATA% with AppData. It is indeed AppData\Roaming\dub\

Re: code.dlang.org reliability update

2020-03-02 Thread MrSmith via Digitalmars-d-announce
On Monday, 2 March 2020 at 19:17:59 UTC, Sönke Ludwig wrote: settings.json is found/needs to be created in %APPDATA%\dub\ on Windows I guess that should be %APPDATA%\Local\dub\

Re: A D port of utf8proc

2020-04-12 Thread MrSmith via Digitalmars-d-announce
On Saturday, 11 April 2020 at 23:36:17 UTC, Ferhat Kurtulmuş wrote: I could not find a similar library working with -betterC, so I ported utf8proc. https://github.com/aferust/utf8proc-d Please test it, contribute it, and enjoy! in readme this expression is wrong: `(mstring.sizeof /

Re: A D port of utf8proc

2020-04-12 Thread MrSmith via Digitalmars-d-announce
On Sunday, 12 April 2020 at 13:34:49 UTC, MrSmith wrote: On Saturday, 11 April 2020 at 23:36:17 UTC, Ferhat Kurtulmuş wrote: I could not find a similar library working with -betterC, so I ported utf8proc. https://github.com/aferust/utf8proc-d Please test it, contribute it, and enjoy! in

Re: Beta 2.094.0

2020-09-13 Thread MrSmith via Digitalmars-d-announce
On Friday, 11 September 2020 at 07:48:00 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.094.0 release, ♥ to the 49 contributors. This is the first release to be built with LDC on all platforms, so we'd welcome some more thorough beta testing.

Re: Beta 2.094.0

2020-09-13 Thread MrSmith via Digitalmars-d-announce
On Sunday, 13 September 2020 at 15:12:00 UTC, Steven Schveighoffer wrote: The first part of the change seems disruptive. If you just fix the second part (that you can now retrieve all members of std), doesn't it fix the problem? -Steve Main problem is that allMembers returns strings and you

  1   2   >