A suggestion for the shared library implementation on Linux

2014-02-03 Thread tcak
This is my first post in this forum. So hopefully it is the right place for this topic. Recently I saw this link http://dlang.org/dll-linux.html about writing shared library on Linux. The annoying part has become portability issues. Because my programme is linking to libphoos.so, target platf

Re: Two Questions

2014-02-04 Thread tcak
On Tuesday, 4 February 2014 at 16:18:24 UTC, Steve Teale wrote: Popped into my head today. What proportion of the D community develops on Linux of some sort, and what proportion works with a 64 bit OS? And why? Linux, 64bit. I have developed an HTTP 1.1 web server, and it is being used in

Re: Is there a way to do 2-way linking?

2014-02-05 Thread tcak
On Wednesday, 5 February 2014 at 16:27:10 UTC, Benjamin Thaut wrote: Am 05.02.2014 16:36, schrieb Jeroen Bollen: On Wednesday, 5 February 2014 at 13:52:10 UTC, Benjamin Thaut wrote: Am 05.02.2014 14:21, schrieb Jeroen Bollen: Is it possible to load in a dynamic library in D, and have the libra

Re: is(Mutex == shared) == false?

2014-02-07 Thread tcak
On Saturday, 8 February 2014 at 03:11:17 UTC, Stanislav Blinov wrote: Ditto for other core.sync primitives. This has been haunting me for a while now. Currently all those guys are not qualified shared at all. What that means is that we cannot use them in any shared classes: shared class C {

Template declaration doesn't match

2014-02-09 Thread tcak
I started writing a piece code today. It is as following. class Test{ public enum DATA_LENGTH = 16; public static void foo( T )( in T[DATA_LENGTH] msg ) if( is(T: ubyte) || is(T: char)){ //... } public static void bar( in ubyte[DATA_LENGTH] msg ){

Re: Template declaration doesn't match

2014-02-09 Thread tcak
On Sunday, 9 February 2014 at 19:34:45 UTC, Peter Alexander wrote: On Sunday, 9 February 2014 at 19:16:35 UTC, tcak wrote: Is that error normal and I am missing something? or a bug? Bizarre, if you replace DATA_LENGTH with 16 in foo then it works: public static void foo( T )( T[16] msg

Shared method problem

2014-02-12 Thread tcak
Whenever I start writing a class which would support "shared" methods, either there are lots of duplicate methods come into class, synchronisation code required. PROBLEM 1: Duplication Look at the code below: class NamedPipe{ private string filename; private int mode;

Re: Shared method problem

2014-02-12 Thread tcak
On Wednesday, 12 February 2014 at 14:00:19 UTC, Stanislav Blinov wrote: To be concise: don't put all your eggs into one basket. If you want shared class - write shared class. Is there really need to allow shared objects different methods, and non-shared objects different methods? Why don't we

Re: Question: Artwork & Design

2014-02-12 Thread tcak
On Wednesday, 12 February 2014 at 18:46:06 UTC, Walter Bright wrote: On 2/12/2014 5:52 AM, Chris wrote: Do we (still) need any artwork (e.g. DConf)? And if so, what? I can try to design logos, wallpapers etc. Need a t-shirt design. 1. Is there any limitation on how the design should be? Mus

Cannot resolve constant from package when used as initial parameter value

2014-02-13 Thread tcak
I recently started using that new feature "package.d". While writing codes today, I started seeing some errors. For illustration, I wrote a piece of code. I will list 3 different files here. File-Folder structure is below: ./app.d ./pipes/package.d ./pipes/namedpipe.d File: app.d ---

Re: Question: Artwork & Design

2014-02-13 Thread tcak
On Thursday, 13 February 2014 at 11:46:14 UTC, Chris wrote: On Wednesday, 12 February 2014 at 18:46:06 UTC, Walter Bright wrote: On 2/12/2014 5:52 AM, Chris wrote: Do we (still) need any artwork (e.g. DConf)? And if so, what? I can try to design logos, wallpapers etc. Need a t-shirt design.

Re: Question: Artwork & Design

2014-02-13 Thread tcak
On Thursday, 13 February 2014 at 11:58:30 UTC, tcak wrote: On Thursday, 13 February 2014 at 11:46:14 UTC, Chris wrote: On Wednesday, 12 February 2014 at 18:46:06 UTC, Walter Bright wrote: On 2/12/2014 5:52 AM, Chris wrote: Do we (still) need any artwork (e.g. DConf)? And if so, what? I can

Re: D: pay for what you use?

2014-02-13 Thread tcak
On Thursday, 13 February 2014 at 21:08:01 UTC, Mike wrote: On Thursday, 13 February 2014 at 17:04:44 UTC, Rel wrote: 4) What compiler is better to use when I want to compile and run D on "bare bones" (running code without operating system)? Is it DMD? Or is it LDC? Or GDC? What's your target

Re: D: pay for what you use?

2014-02-13 Thread tcak
On Thursday, 13 February 2014 at 21:35:27 UTC, tcak wrote: On Thursday, 13 February 2014 at 21:08:01 UTC, Mike wrote: On Thursday, 13 February 2014 at 17:04:44 UTC, Rel wrote: 4) What compiler is better to use when I want to compile and run D on "bare bones" (running code without

Re: Question: Artwork & Design

2014-02-14 Thread tcak
Got word: Typically they accept ai and psd. Andrei AI, PSD, PDF, PNG, SVG, JPG. I can generate any of them. No problem at all. I will try to upload them wiki as soon as possible. I don't know the timing until when the design should be chosen, et cetera. I am sure people has lots of ideas

Re: Thought on limiting scope of GC

2014-02-14 Thread tcak
On Friday, 14 February 2014 at 04:41:43 UTC, Jerry wrote: Hi all, I just had the following thought on limiting the gc in regions. I don't know if this would address some of Manu's concerns, but here goes: My thought is to have something like the following: GC.track(); auto obj = allocateStu

Re: Thought on limiting scope of GC

2014-02-14 Thread tcak
A programmer's aim is to tell computer what to do. Purpose of GC is to help him to prevent problems. In default, AFAIK, GC considers every part of memory in case there are references in them. Well, if the time taking process is scanning all memory, programmer could tell to GC, if he/she trust

Re: Question: Artwork & Design

2014-02-14 Thread tcak
As an imgur album: http://imgur.com/a/BRP8i Thanks for that Tourist. About that design, actually I was seeing those circles as people those are coming to the conference. I don't know the pricing though, if more colours won't be a problem, design can be improved. In CMYK, there is no direct

Re: Question: Artwork & Design

2014-02-15 Thread Tolga Cakiroglu (tcak)
I have prepare two new designs. (One of them is colourful of previous design.) They are on Neffie Publink. http://publink.neffie.com/subject/GnzYk3RAbbCNkWRPdGyGmeE1ceaFPc5xJ1m5l1LZr6vcQtbchtayo75Iawm1AG0t#635280674930175577 When I put them onto black t-shirt, it reminded me Iron Man :D Anyway

Re: is(Mutex == shared) == false?

2014-02-17 Thread Tolga Cakiroglu (tcak)
Not everyone is fond of taking initiative, that's a known fact. Me, I'm tired of seeing new big features and ideas popping up when there's so much unfinished business in the language, runtime and Phobos. When I left this NG (two years ago?) 'shared' was an infant, today it's just a tad more t

Parallax Propeller Microcontroller

2014-10-17 Thread tcak via Digitalmars-d
I made some research, though couldn't have found any article about it. Is there any work that has been/is being done for Parallax Propeller Microcontroller with D Language? Any library, linker etc. As far as I see on wikipedia (http://en.wikipedia.org/wiki/Parallax_Propeller), there are port

Re: Parallax Propeller Microcontroller

2014-10-17 Thread tcak via Digitalmars-d
On Friday, 17 October 2014 at 19:12:52 UTC, Paulo Pinto wrote: You forgot to provide the link for the best use case that Parallax Propeller is being used for. :) http://www.xgamestation.com/view_product.php?id=33 -- Paulo Wow! I didn't know that really. Checking the games now.

Change Tab Sizes in Forum Posts

2014-10-24 Thread tcak via Digitalmars-d
Most of us print out codes in posts, especially D codes. I use tabs instead of spaces in my code editor, and I directly copy codes from there into a post. Problem is that when a line is too long, it becomes multiline mostly due to the very narrow width of pages (Forum takes half of my screen o

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread tcak via Digitalmars-d
Now, before this entry gets hidden in old pages, how can we take next step? As far as I see, two problems are (at least current), 1. Tab Width 2. Width of messaging area I checked the width information of this "Message" textarea and "Subject" input. Thing is that they do not use CSS for wid

module keyword with curly brackets

2014-11-01 Thread tcak via Digitalmars-d
The "module" declaration, and the name and path of D files do not need to match each other. You include a D file while compiling the project, and module declarations are cared only. Based on above behaviour of design, allowing only one "module" keyword, and that is on top of D code file seems

Re: 'partial' keyword in C# is very good for project , what's the same thing in D?

2014-11-01 Thread tcak via Digitalmars-d
On Wednesday, 29 October 2014 at 07:41:41 UTC, FrankLike wrote: Hello,everyone, I've written some projects in C#,find the 'partial' keyword is very userful,which lets the auto codes in another single file,my codes are very easy to update. But what the same thing in D? Thank you,every one.

Re: module keyword with curly brackets

2014-11-01 Thread tcak via Digitalmars-d
On Saturday, 1 November 2014 at 10:04:23 UTC, Paulo Pinto wrote: Am 01.11.2014 um 10:29 schrieb ketmar via Digitalmars-d: A few languages have nested packages. Quite usefull for implementation packages. Beware of Wirth's quest for simplicity, even Go is a quite powerful in regards to Oberon-

Re: Errors when compiling

2014-11-02 Thread tcak via Digitalmars-d
On Sunday, 2 November 2014 at 17:36:37 UTC, James wrote: On Sunday, 2 November 2014 at 17:33:09 UTC, James wrote: It's telling me that the libraries are in an invalid format. How can I get the correct ones ? I got those from the GLFW website dmd -m64 main.d glfw3.d opengl32.lib glfw3.lib Y

Does search work at all in forum?

2014-11-04 Thread tcak via Digitalmars-d
I don't remember anytime the search box of forum worked at all. All pages load really quickly, but when I want to search anything, it waits for a while (Firefox indicates something request is going), then stop, and nothing happens. Example I would search for "without phobos". While writing thi

Compiling druntime gives error messages

2014-11-04 Thread tcak via Digitalmars-d
I have DMD 2.066.1 installed on 64-bit Ubuntu 14.04. I downloaded all files from https://github.com/D-Programming-Language/druntime I use following command line to compile druntime to generate library. make -f posix.mak DMD=dmd First few lines are as follows: dmd -c -o- -Isrc -Iimport -Hfimpor

Re: Compiling druntime gives error messages

2014-11-06 Thread tcak via Digitalmars-d
On Wednesday, 5 November 2014 at 03:31:47 UTC, Joakim wrote: On Tuesday, 4 November 2014 at 23:45:54 UTC, H. S. Teoh via Digitalmars-d wrote: On Tue, Nov 04, 2014 at 11:32:34PM +, tcak via Digitalmars-d wrote: Generally, to compile druntime from git HEAD requires that you use dmd from

Re: Compiling druntime gives error messages

2014-11-06 Thread tcak via Digitalmars-d
On Wednesday, 5 November 2014 at 03:31:47 UTC, Joakim wrote: On Tuesday, 4 November 2014 at 23:45:54 UTC, H. S. Teoh via Digitalmars-d wrote: On Tue, Nov 04, 2014 at 11:32:34PM +, tcak via Digitalmars-d wrote: Generally, to compile druntime from git HEAD requires that you use dmd from

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread tcak via Digitalmars-d
On Sunday, 9 November 2014 at 11:30:22 UTC, AlanThinker wrote: Yes, you are right. Package can do it. Thanks all of you! Yes, package can do it, thou this adds burden to maintain packages this time. Weirdness of this design is seen in druntime as well. core.sync.mutex.Mutex Doubling mutex

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread tcak via Digitalmars-d
On Sunday, 9 November 2014 at 13:17:37 UTC, AlanThinker wrote: On Sunday, 9 November 2014 at 12:21:28 UTC, tcak wrote: If we can create partial module, it will be easier to use. then no package needed. such as: // test/foo/gui/button.d partial module foo.gui; class Button

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread tcak via Digitalmars-d
On Sunday, 9 November 2014 at 15:40:53 UTC, tcak wrote: On Sunday, 9 November 2014 at 13:17:37 UTC, AlanThinker wrote: That's good, but there is no need to add a new keyword as "partial" for module I think. If compiler would just merge same modules together automatically, t

Re: How to let D's one module contains lots of classes.

2014-11-09 Thread tcak via Digitalmars-d
On Sunday, 9 November 2014 at 15:54:45 UTC, ketmar via Digitalmars-d wrote: On Sun, 09 Nov 2014 15:40:51 + tcak via Digitalmars-d wrote: That's good, but there is no need to add a new keyword as "partial" for module I think. and even compiler changes are unnecessary. `impo

Re: Shared library packaging issues

2014-11-15 Thread tcak via Digitalmars-d
Well, because of this reason, I completely left D and started writing my shared library in pure C. As much as I miss the syntax of D, I needed to do this (Where are you betterC? Are you there yet?). Since it is not a big library, that wouldn't be a big problem. Anyway, I think instead of inst

Re: The ugly truth about ddoc

2015-01-18 Thread tcak via Digitalmars-d
On Monday, 19 January 2015 at 02:18:32 UTC, Andrei Alexandrescu wrote: TL;DR: I've uploaded new menu colors at http://erdani.com/d/, this time aiming for a more martian red ethos. Please let me know. == So I was looking at the css today (original at http://paste.ofcode.org/fH

Re: New DIP73: D Drafting Library

2015-02-04 Thread tcak via Digitalmars-d
On Thursday, 5 February 2015 at 04:37:21 UTC, Tofu Ninja wrote: On Wednesday, 4 February 2015 at 23:15:25 UTC, Jonathan Marler wrote: This looks very similar to std.experimental. I originally thought that the difference between std.experimental and this library was going to be how it was used.

Re: A safer interface for core.stdc

2015-02-07 Thread tcak via Digitalmars-d
On Saturday, 7 February 2015 at 23:50:55 UTC, Andrei Alexandrescu wrote: I was looking into ways to make core.stdc safer. That should be relatively easy to do by defining a few wrappers. For example: int setvbuf(FILE* stream, char* buf, int mode, size_t size); is unsafe because there's no rel

Re: Named parameters

2015-07-24 Thread tcak via Digitalmars-d
On Friday, 24 July 2015 at 14:34:12 UTC, Chris wrote: On Friday, 24 July 2015 at 14:15:11 UTC, Shammah Chancellor wrote: Since D has optional arguments -- why don't we support named parameters? There are extremely handy and work beautifully in languages like C#. Here's a thread that dealt wi

Re: force inline/not-inline

2015-07-27 Thread tcak via Digitalmars-d
On Monday, 27 July 2015 at 08:52:02 UTC, Marc Schütz wrote: On Monday, 27 July 2015 at 02:19:28 UTC, Jonathan M Davis wrote: [...] The result was that the pragma _forces_ inlining. If the compiler cannot inline it for whatever reason, it prints an error and exits. This is mostly to accommoda

Re: Implement Parse implementation like in Red

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possible to implement something like it in D/Phobos? I already have implemented a similar thing to it. A little more complex, bu

Re: Implement Parse implementation like in Red

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 08:22:48 UTC, Suliman wrote: On Thursday, 30 July 2015 at 08:14:44 UTC, tcak wrote: On Thursday, 30 July 2015 at 08:04:37 UTC, Suliman wrote: Red have very nice future called Parse http://www.red-lang.org/2013/11/041-introducing-parse.html Is it's possib

Re: Working with pdf

2015-07-30 Thread tcak via Digitalmars-d
On Thursday, 30 July 2015 at 11:19:48 UTC, Kingsley wrote: Hi Can anyone recommend any ways of pdf creation using D. I am generating an HTML and JavaScript page but I would like it in pdf format as well. In 2013, I had started developing a module to create PDF files based on version 1.5 spe

Representation length of integral types

2015-08-03 Thread tcak via Digitalmars-d
There is a use case for me that I am given a string, and before even trying to convert it to integer, I want to check whether it is valid. One of the checks necessary for this is the length of string. So, if I have received "156" and it should be converted to ubyte, I would check whether it i

Re: D needs to focus and better the available resources

2015-08-09 Thread tcak via Digitalmars-d
On Sunday, 9 August 2015 at 17:29:08 UTC, karabuta wrote: A lot of request are made most often about what needs to be added in D and what is lacking (multiple compilers, debugging tools, IDEs, GUI, ...). I think a lot has been done already and I suggest focus should be centered on making them s

Re: new release doesn't work as advertised

2015-08-13 Thread tcak via Digitalmars-d
On Thursday, 13 August 2015 at 16:44:09 UTC, David Nadlinger wrote: On Thursday, 13 August 2015 at 16:30:59 UTC, learn wrote: On Thursday, 13 August 2015 at 11:04:21 UTC, Rikki Cattermole wrote: It was posted there. It's a known issue. Currently no fix for VS2015. However it is being worked upo

Re: Object.factory() and exe file size bloat

2015-08-21 Thread tcak via Digitalmars-d
How expensive putting a flag for the compiler? --exportall, -ea to export all, otherwise, only the classes with "export" keyword are to be exported.

Re: OT: Hack (Type design features to improve legibility in the harsh conditions of the screen)

2015-08-30 Thread tcak via Digitalmars-d
On Sunday, 30 August 2015 at 11:06:42 UTC, Nick B wrote: an interesting set of features http://sourcefoundry.org/hack/ destroy ? Nick . I would encourage you to check "Input Mono" [0]. At first, it might look too square compared to Hack, but in a short time, I really liked it and still u

zip packages to pack modules

2015-09-28 Thread tcak via Digitalmars-d
I brought this feature front before in the forum in someone else's post, but it didn't take much attention probably at that time. I want to propose a feature for front-end of the compiler. The basic definition of feature === ZIP pack the D module files, and while c

Re: zip packages to pack modules

2015-09-29 Thread tcak via Digitalmars-d
On Tuesday, 29 September 2015 at 10:37:33 UTC, wobbles wrote: On Tuesday, 29 September 2015 at 10:22:05 UTC, bachmeier wrote: On Tuesday, 29 September 2015 at 05:24:49 UTC, tcak wrote: Use Case * Include libraries in a project in one step. * Versioning is much easier. Programmer

Re: Is dlangui dead?

2015-10-20 Thread tcak via Digitalmars-d
On Tuesday, 20 October 2015 at 17:01:19 UTC, karabuta wrote: I hope I am wrong, but dlangui seems to be abandoned for some time after all the hard work that went into it. I really like it since it was easy to setup and get things working. In fact, I consider it the best option. So, are you

Non-freeing GC memory management

2015-11-17 Thread tcak via Digitalmars-d
As far as I know, GC has a separate thread that stops all other threads periodically to clear the unused memory fields. Windows Vista was (Linux does as well as far as I know) making use of whole memory and not freeing the memory until more space is needed. What disadvantages would we have i

Re: Non-freeing GC memory management

2015-11-17 Thread tcak via Digitalmars-d
On Tuesday, 17 November 2015 at 19:32:05 UTC, Adam D. Ruppe wrote: On Tuesday, 17 November 2015 at 19:27:15 UTC, tcak wrote: As far as I know, GC has a separate thread that stops all other threads periodically to clear the unused memory fields. That is a common misconception... What

Related forum entries after creating a new thread

2015-11-19 Thread tcak via Digitalmars-d
There are many keywords (e.g. scope, thread, shared, library) those are found in forum threads (Not Posix threads). How would it be if title and links of let's say 5 recent forum entries and bug reports to be put on top of page after the thread is created by using those keywords?

Re: 50% inative

2015-11-24 Thread tcak via Digitalmars-d
On Tuesday, 24 November 2015 at 17:10:09 UTC, duff wrote: On Tuesday, 24 November 2015 at 16:51:58 UTC, duff wrote: On Tuesday, 24 November 2015 at 16:49:07 UTC, duff wrote: [...] Staline would say: it's time to clean up. https://github.com/shoo?tab=activity https://github.com/complexmath?t

Feature Request: Hashed Based Assertion

2015-11-26 Thread tcak via Digitalmars-d
I brought this topic in "Learn" a while ago, but I want to talk about it again. You are in a big team or working with a big code base. APIs are being defined/modified, configuration constants are defined/modified, structures are defined/modified for data. You are coding on business logic sid

Re: Feature Request: Hashed Based Assertion

2015-11-26 Thread tcak via Digitalmars-d
On Thursday, 26 November 2015 at 11:12:07 UTC, tcak wrote: I brought this topic in "Learn" a while ago, but I want to talk about it again. [...] One applicable solution: __traits( hashOf, apiFunctionName/structName/variableName/className )

Re: Feature Request: Hashed Based Assertion

2015-11-26 Thread tcak via Digitalmars-d
On Thursday, 26 November 2015 at 11:18:19 UTC, Andrea Fontana wrote: On Thursday, 26 November 2015 at 11:14:54 UTC, tcak wrote: On Thursday, 26 November 2015 at 11:12:07 UTC, tcak wrote: I brought this topic in "Learn" a while ago, but I want to talk about it again. [...] One

Re: Feature Request: Hashed Based Assertion

2015-11-27 Thread tcak via Digitalmars-d
On Friday, 27 November 2015 at 05:33:52 UTC, deadalnix wrote: I see many solution here that do not require any language change. To start, have a linter yell at the programmer when (s)he submit a diff. Dev commit directly ? What the fuck are you doing ? Do code review and get a linter. Alterna

Re: Feature Request: Hashed Based Assertion

2015-11-27 Thread tcak via Digitalmars-d
On Friday, 27 November 2015 at 16:18:52 UTC, bitwise wrote: On Friday, 27 November 2015 at 08:09:27 UTC, tcak wrote: Yours are not helping, making everything more complex. Yes, because to achieve what you're asking for, you NEED a complex solution. The code WILL change with every re

Re: Feature Request: Hashed Based Assertion

2015-11-27 Thread tcak via Digitalmars-d
On Friday, 27 November 2015 at 20:00:16 UTC, bitwise wrote: On Friday, 27 November 2015 at 18:51:54 UTC, tcak wrote: On Friday, 27 November 2015 at 16:18:52 UTC, bitwise wrote: On Friday, 27 November 2015 at 08:09:27 UTC, tcak wrote: Yours are not helping, making everything more complex

Re: OT: Swift is now open source

2015-12-03 Thread tcak via Digitalmars-d
On Thursday, 3 December 2015 at 17:13:49 UTC, Jack Stouffer wrote: https://github.com/apple/swift Everytime I get excited about another programming language, I notice that it lacks some nice features of D, and I become sad suddenly. Even on C#, there is nothing like giving the type of a vari

Re: OT: Swift is now open source

2015-12-03 Thread tcak via Digitalmars-d
On Thursday, 3 December 2015 at 20:37:04 UTC, Steven Schveighoffer wrote: On 12/3/15 3:16 PM, Meta wrote: On Thursday, 3 December 2015 at 19:10:04 UTC, Steven Schveighoffer wrote: And the lack of semi-colons has poisoned me from writing syntactically valid lines in D :) Surprisingly (or not)

Re: Pseudo namespaces

2015-12-04 Thread tcak via Digitalmars-d
On Friday, 4 December 2015 at 09:30:08 UTC, Walter Bright wrote: On 12/4/2015 12:48 AM, Dicebot wrote: True, that didn't come to my mind. But that pushes resulting coding style from "weird but tolerable" to "good luck explaining newbies why D modules are not broken". All for the sake of a putti

Re: Pseudo namespaces

2015-12-04 Thread tcak via Digitalmars-d
On Friday, 4 December 2015 at 20:58:02 UTC, tcak wrote: On Friday, 4 December 2015 at 09:30:08 UTC, Walter Bright wrote: On 12/4/2015 12:48 AM, Dicebot wrote: [...] I don't understand your comment that modules are broken. With imports, you can use the module name as a prefix or not.

Re: OT: Swift is now open source

2015-12-07 Thread tcak via Digitalmars-d
On Friday, 4 December 2015 at 02:59:21 UTC, tcak wrote: On Thursday, 3 December 2015 at 20:37:04 UTC, Steven Schveighoffer wrote: On 12/3/15 3:16 PM, Meta wrote: [...] You may misunderstand -- I prefer semicolons. But having to write swift code for a few weeks, I find now when I write D

Re: zapcc - time to start adding caching to D compilers aswell?

2015-12-12 Thread tcak via Digitalmars-d
On Saturday, 12 December 2015 at 16:12:55 UTC, Per Nordlöw wrote: http://www.zapcc.com/ I am even afraid to suggest adding a new trait to runtime library, I don't think the complexity of caching would ever be considered.

LazyEvaluationOfFunctionArguments

2015-12-13 Thread tcak via Digitalmars-d
Does the title of this page purposefully not have any space in it? https://dlang.org/lazy-evaluation.html If there should be spaces, can an editor do it? Just for a simple string, I do not want to get into forking etc.

Re: We need better documentation for functions with ranges and templates

2015-12-14 Thread tcak via Digitalmars-d
On Tuesday, 15 December 2015 at 01:10:01 UTC, Chris Wright wrote: On Mon, 14 Dec 2015 18:45:28 -0500, Steven Schveighoffer wrote: On 12/14/15 2:04 PM, bachmeier wrote: It's unanimous, at least among the three of us posting in this Reddit thread: https://www.reddit.com/r/programming/comments/

Re: Some feedback on the website.

2015-12-15 Thread tcak via Digitalmars-d
On Tuesday, 15 December 2015 at 08:31:40 UTC, Gary Willoughby wrote: On Tuesday, 15 December 2015 at 08:26:44 UTC, Jacob Carlborg wrote: On 2015-12-15 08:07, deadalnix wrote: [snip] All of this is quite damaging to D's brand. Even even though I'm not a webdev, I've been working in growth for

Re: Another cool project: make double.to!string CTFEable

2015-12-16 Thread tcak via Digitalmars-d
On Wednesday, 16 December 2015 at 15:44:45 UTC, Andrei Alexandrescu wrote: This has been discussed in the past and at a point Walter was looking into it. Currently std.conv.to applied to double uses snprintf, which is obviously non-CTFEable. There's been recent work (also discussed here) on

Re: We need a good code font for the function signatures on dlang.org

2015-12-16 Thread tcak via Digitalmars-d
On Wednesday, 16 December 2015 at 21:40:13 UTC, Jack Stouffer wrote: On Wednesday, 16 December 2015 at 21:05:27 UTC, Andrei Alexandrescu wrote: I was looking at https://github.com/D-Programming-Language/dlang.org/pull/1169 and that bold sans serif proportional text for the code is just... well

Re: We need better documentation for functions with ranges and templates

2015-12-16 Thread tcak via Digitalmars-d
On Wednesday, 16 December 2015 at 18:25:31 UTC, Luís Marques wrote: On Monday, 14 December 2015 at 19:04:46 UTC, bachmeier wrote: Something has to be done with the documentation for Phobos functions that involve ranges and templates. Just today: - "Where's the documentation for makeIndex?" -

Re: We need a good code font for the function signatures on dlang.org

2015-12-17 Thread tcak via Digitalmars-d
On Thursday, 17 December 2015 at 16:01:01 UTC, Wyatt wrote: On Wednesday, 16 December 2015 at 21:05:27 UTC, Andrei Alexandrescu wrote: I was looking at https://github.com/D-Programming-Language/dlang.org/pull/1169 and that bold sans serif proportional text for the code is just... well let's sa

Re: dmd without gcc depency

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 12:57:50 UTC, Jardik wrote: Now that dmd is written in D language, is it possible to use dmd without the need to have gcc and its libraries installed? Or would it be possible, if I didn't need to call any extern C++ functions? If not, is it planned for dmd to be s

[Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
I only want to discuss an idea here. I am hoping see some nice pros and cons from people. --- We have this feature in D: template something(T){ void something(T value){ writeln( value ); } } something("Hello"); Because the name of template and function match each other, "something" is a

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the end. It should be: my.big.lib.createFile("FSociety.dat");

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 17:08:04 UTC, default0 wrote: On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote: On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. --- We have this feature in D: template something(T){ void something(T value){ writeln( value ); } } something("Hello"); Becaus

Re: Is there a FIX engine written in D?

2015-12-27 Thread tcak via Digitalmars-d
On Sunday, 27 December 2015 at 09:27:18 UTC, Kokyo wrote: Hi there, I've just read a thread about low latency programming using D. As a Java user, I'm developing low latency applications in the financial area. In Java, there are some comprehensive FIX engines like QuickFix/J or lightweight en

Re: Bug? or do I something wrong

2015-12-30 Thread tcak via Digitalmars-d
On Wednesday, 30 December 2015 at 14:07:54 UTC, Daniel Kozak wrote: import std.stdio; void main() { auto x = 9223372036854775807L; auto x2 = 9223372036854775807L + 1; long x3 = -9223372036854775808U; //auto x4 = -9223372036854775808L; //Error: signed integer overflow writ

Re: Proposal: Database Engine for D

2015-12-31 Thread tcak via Digitalmars-d
On Thursday, 31 December 2015 at 17:14:55 UTC, Piotrek wrote: The goal of this post is to measure the craziness of an idea to embed a database engine into the D language ;) I think about a database engine which would meet my three main requirements: - integrated with D (ranges) - ACID -

Verbal Expressions can be a good addition to Phobos for strings

2016-01-05 Thread tcak via Digitalmars-d
It does not have to same, but it is so readable and clear to understand by anybody. https://twitter.com/andreysitnik/status/683258432493907968 https://github.com/VerbalExpressions/JSVerbalExpressions As far as I understand, from the call of functions, the library generates the regular expressi

Distributed Memory implementation

2016-01-17 Thread tcak via Digitalmars-d
I, due to a need, will start implementation of distributed memory system. Idea is that: Let's say you have allocated 1 GiB space in memory. This memory is blocked into 4 KiB. After some reservation, and free operations, now only the blocks 0, 12, and 13 are free to be allocated. Problem i

Re: Distributed Memory implementation

2016-01-18 Thread tcak via Digitalmars-d
On Monday, 18 January 2016 at 08:12:03 UTC, Nemanja Boric wrote: On Monday, 18 January 2016 at 05:59:15 UTC, tcak wrote: [...] Check https://dlang.org/phobos/std_experimental_allocator.html Which part of this module provide the functionality of using non-consecutive memory(distributed

Re: Distributed Memory implementation

2016-01-18 Thread tcak via Digitalmars-d
On Monday, 18 January 2016 at 09:56:17 UTC, Adrian Matoga wrote: On Monday, 18 January 2016 at 05:59:15 UTC, tcak wrote: I, due to a need, will start implementation of distributed memory system. Idea is that: Let's say you have allocated 1 GiB space in memory. This memory is blocked i

Re: [dlang.org] new forum design

2016-01-18 Thread tcak via Digitalmars-d
New design is good, though it uses "Roboto Slab" according to Firefox Web tools. But due to lack of this font (does the web site use Google Fonts?), I see everything in Sans Serif. As far as I see, no other font name is provided in CSS as well.

Re: Distributed Memory implementation

2016-01-19 Thread tcak via Digitalmars-d
On Tuesday, 19 January 2016 at 10:09:01 UTC, Ola Fosheim Grøstad wrote: On Monday, 18 January 2016 at 05:59:15 UTC, tcak wrote: Is there anything like this in Phobos, or shall I start my own implementation? It isn't really clear to me what you are trying to do. IIRC the C++ deque is us

Re: Distributed Memory implementation

2016-01-20 Thread tcak via Digitalmars-d
On Wednesday, 20 January 2016 at 07:58:20 UTC, Marco Leise wrote: Am Mon, 18 Jan 2016 05:59:15 + schrieb tcak <1ltkrs+3wyh1ow7kz...@sharklasers.com>: I, due to a need, will start implementation of distributed memory system. Idea is that: Let's say you have allocated 1 G

Re: forum.dlang.org is now available via HTTPS

2016-01-21 Thread tcak via Digitalmars-d
On Thursday, 21 January 2016 at 12:41:21 UTC, Era Scarecrow wrote: On Thursday, 21 January 2016 at 12:08:23 UTC, Sebastiaan Koppe wrote: On Wednesday, 20 January 2016 at 18:36:12 UTC, Vladimir Panteleev wrote: It took a while but I finally got around to adapting a Let's Encrypt ACME client to m

Re: DIP 88: Simple form of named parameters

2016-01-23 Thread tcak via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Without making things any complex, the simplest thought of mine is: Keep everything same.

Re: Vision 2016 H1

2016-01-24 Thread tcak via Digitalmars-d
On Monday, 25 January 2016 at 03:14:47 UTC, Andrei Alexandrescu wrote: In case you missed it from the announce forum: http://wiki.dlang.org/Vision/2016H1 -- Andrei Is there a list or a proper place to put the list of desired/asked/necessary tools together with their purpose?

Encode string as json string

2016-02-15 Thread tcak via Digitalmars-d
Other than generating normal JSON content (stringify), JSON string is used for Javascript string expressions as well. To create a properly encoded Javascript string, the shortest way is JSONValue("this'\\is//the\"text").toString(); Yes, it works, but it is uncomfortable to write the code as

Re: Sample Rate

2016-04-10 Thread tcak via Digitalmars-d
On Saturday, 9 April 2016 at 14:15:38 UTC, Nordlöw wrote: Has anybody more than I thought about representing the sample rate of a sampled signal collected from sources such as microphones and digital radio receivers? With it we could automatically relate DFT/FFT bins to real frequencies and o

Re: [PRs] How to update on Github

2016-04-19 Thread tcak via Digitalmars-d
On Thursday, 21 May 2015 at 10:39:46 UTC, ZombineDev wrote: Basically you need clone your fork to your computer, add a "upstream" remote to github.com/D-Programming-Language/[repo name, eg. phobos], pull from upstream the new changes and optionally update github by pushing to origin (origin nor

Re: Compiling with -profile=gc makes program crash - why?

2016-04-21 Thread tcak via Digitalmars-d
On Wednesday, 20 April 2016 at 22:31:31 UTC, Ivan Kazmenko wrote: On Wednesday, 20 April 2016 at 22:27:36 UTC, Ivan Kazmenko wrote: I'm trying to use DMD option "-profile=gc". With this option, the following simple program crashes with 2.071.0 down to 2.069.0 but still works on 2.068.2. The c

Why are tests restarting in Github?

2016-04-24 Thread tcak via Digitalmars-d
There are 10 test. Some of them gets completed. And then, I look at it again, tests have restarted, and less number of tests are passed at that point. 1. What is the reason of restarts? 2. What is reason of long waiting time? Sometimes number of passed tests stay there 2-3 days.

Shared, but synchronisation is not desired for multithreading

2016-06-04 Thread tcak via Digitalmars-d
If you ignore the discouraged __gshared keyword, to be able to share a variable between threads, you need to be using "shared" keyword. While designing your class with "shared" methods, the compiler directly assumes that objects of this class must be protected against threading problems. Th

  1   2   >