Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 15:51:17 -0500 Steven Schveighoffer via Digitalmars-d wrote: p.s. another point is that all mechanics compiler needs for doing such checks is already there, so it's not a huge change to compiler codebase. it's not something that requires adding a whole new analysis code. sig

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:11:29 + Meta via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 20:50:49 UTC, ketmar via > Digitalmars-d wrote: > > this may be timestamp-related somehow, 'cause make looks only to > > timestamps to determine which file(s) should be

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:34:54 + Freddy via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via > Digitalmars-d wrote: > > Hello. > > > > as there is no possibility to doing GC allocations in class > > destructors, wouldn

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 16:30:14 -0500 Steven Schveighoffer via Digitalmars-d wrote: > On 1/20/15 4:06 PM, ketmar via Digitalmars-d wrote: > > On Tue, 20 Jan 2015 15:51:17 -0500 > > Steven Schveighoffer via Digitalmars-d > > wrote: > > > > p.s. another point is that

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:37:54 + via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 21:29:40 UTC, Steven Schveighoffer > wrote: > > How's that? The current runtime aborts on memory allocation > > inside the GC collection routine, it's not a memory safety > > issue. > > Spurious race

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:41:15 + Vladimir Panteleev via Digitalmars-d wrote: > >> Not an error, Make it a warning. > > alas, attribute violations are errors. turning that into > > warning means > > that compiler needs new flags and new code to determine if that > > is > > "hard restriction" o

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:15:43 + Meta via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 22:03:27 UTC, Meta wrote: > > On Tuesday, 20 January 2015 at 21:57:56 UTC, Meta wrote: > >> The only things in my path when I run make are: > >> > >> C:\D\dmd2\windows\bin > >> C:\Program Files (x86)

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:30:16 + Meta via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 22:25:18 UTC, ketmar via > Digitalmars-d wrote: > > if you'll make a PR, it would be good to change other > > invocations too: > > "optabgen" and "im

Re: Splitting std.algorithm

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 15:40:57 -0800 "H. S. Teoh via Digitalmars-d" wrote: > So, what do you think? Should we merge this, or should we not? please, please, please! please, whoever can do it: just merge it right away! you can revert chat changes later, but if it will go into another discussion that

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:29:21 + Kapps via Digitalmars-d wrote: > On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via > Digitalmars-d wrote: > > let's see how this proposal will be rejected. will there be > > some sane > > reasons, or only the good old s

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:51:26 + bearophile via Digitalmars-d wrote: > Kiith-Sa: > > > http://developers.slashdot.org/story/15/01/20/2026221/is-d-an-underrated-programming-language?utm_source=rss1.0mainlinkanon&utm_medium=feed > > One interesting comment: > http://developers.slashdot.org/comm

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 01:07:03 + "Adam D. Ruppe via Digitalmars-d" wrote: > On Wednesday, 21 January 2015 at 01:04:11 UTC, ketmar via > Digitalmars-d wrote: > > two days making dmd.exe work with Wine to write the simple > > utility which i can write in two

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 01:44:07 + Vlad Levenfeld via Digitalmars-d wrote: i can see how this thread slowly turning into "how i was forced to live with windows and how painful it was" thread. ;-) signature.asc Description: PGP signature

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:51:34 -0500 Steven Schveighoffer via Digitalmars-d wrote: > >> You can always put @nogc on the dtor if you want. > > seems that you completely missing my point. (sigh) > > Nope, not missing it. The mechanics are there. You just have to annotate. that is where you missing i

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 18:06:59 -0800 "H. S. Teoh via Digitalmars-d" wrote: > On Wed, Jan 21, 2015 at 01:56:32AM +, Vlad Levenfeld via Digitalmars-d > wrote: > > On Wednesday, 21 January 2015 at 01:52:51 UTC, ketmar via Digitalmars-d > > wrote: > > >On Wed,

Re: forcing "@nogc" on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:02:53 -0500 Steven Schveighoffer via Digitalmars-d wrote: > You may be able to, but I don't see the point. writeln can work > perfectly fine for the most part inside dtors. But it can't be marked nogc. now, that's really nice. "it's wrong, it can fail, it even marked as on

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 06:08:49 + Israel via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 01:07:04 UTC, Adam D. Ruppe > wrote: > > On Wednesday, 21 January 2015 at 01:04:11 UTC, ketmar via > > Digitalmars-d wrote: > >> two days making dmd.exe work wi

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:43:04 -0800 "H. S. Teoh via Digitalmars-d" wrote: > I almost nuked my > entire system with a mistyped `rm -rf` command, as I'm sure every *nix > person has at least once in his life my expirience was simply doing `chmod -R 600 /` as root. lucky me. and i really hate that pe

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 07:56:47 + Kagamin via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 02:23:03 UTC, ketmar via > Digitalmars-d wrote: > > i even knew how to quit vi > ctrl-c? nope! it beeps. ;-) > BTW, is there a way to make the shell autocomplete file n

Re: Emacs D-Mode [was Like Go/Rust, why not to have "func" keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:40:48 -0800 Walter Bright via Digitalmars-d wrote: > I find this utterly baffling. Why make it so difficult to report a bug? > Microsoft has always been like this, the only way I've ever been able to > submit > a bug report was if I had a friend on the inside who'd carry

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 10:16:47 + Paulo Pinto via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 01:52:51 UTC, ketmar via > Digitalmars-d wrote: > > On Wed, 21 Jan 2015 01:44:07 + > > Vlad Levenfeld via Digitalmars-d > > wrote: > > > > i ca

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 08:56:53 + Kagamin via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 08:19:39 UTC, ketmar via > Digitalmars-d wrote: > >> > i even knew how to quit vi > >> ctrl-c? > > nope! it beeps. ;-) > Duh! Don't console programs

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 13:36:46 + MattCoder via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 13:19:00 UTC, Adam D. Ruppe > wrote: > > It is a lot easier to just run "wine dmd" and distribute the > > finished exe than it is to copy all the development files to > > the windows comput

Re: Emacs D-Mode [was Like Go/Rust, why not to have "func" keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 10:39:14 -0800 Walter Bright via Digitalmars-d wrote: > Why even ship such a product you have no intention of fixing bugs for? It's a > net negative for one's image. ah, that's a different question! i don't know why they still shipping it instead of providing link to virtuald

Re: D on Slashdot

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 08:29:57 + Kagamin via Digitalmars-d wrote: > On Wednesday, 21 January 2015 at 16:34:26 UTC, ketmar via > Digitalmars-d wrote: > >> >> > i even knew how to quit vi > >> >> ctrl-c? > >> > nope! it beeps. ;-) > &

Re: 404 on dlang.org

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 08:12:33 -0800 "H. S. Teoh via Digitalmars-d" wrote: > On Thu, Jan 22, 2015 at 04:08:29PM +, Vladimir Panteleev via > Digitalmars-d wrote: > > On Thursday, 22 January 2015 at 14:00:54 UTC, CraigDillabaugh wrote: > [...] > > >So what you are saying is that at some point it

Re: Speeding up compilation by using jemalloc

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 19:39:24 +, Vladimir Panteleev wrote: > On Thursday, 22 January 2015 at 19:37:11 UTC, weaselcat wrote: >> Might be of use to someone, but I was looking for ways to speed up >> dmd's albeit already fast compilation times. >> >> Just by dropping in jemalloc in place of glibc'

Re: D on Slashdot

2015-01-23 Thread ketmar via Digitalmars-d
On Fri, 23 Jan 2015 12:50:31 +, Kagamin wrote: > On Thursday, 22 January 2015 at 16:13:31 UTC, ketmar wrote: >>> > somehow i can't close cmd.exe by hitting ctrl+c. don't console >>> > programs know what ctrl+c is for? >>> Well, maybe because it's a shell, not a utility? >> shell is a console u

Re: forcing "@nogc" on class destructors

2015-01-23 Thread ketmar via Digitalmars-d
On Fri, 23 Jan 2015 23:28:28 +, Matthias Bentrup wrote: > If the program ends before the next GC the destructor is never called. nope. class A { ~this () { import iv.writer; writeln("dtor"); } } void main () { auto n = new A; assert(0); } this outputs "dtor". signature.

Re: Template colon

2015-01-24 Thread ketmar via Digitalmars-d
On Sat, 24 Jan 2015 21:16:13 +, Gen wrote: > void write(FOO: bar.foo)() > { > } > > what does the colon mean? FOO: bar.foo here is the link which explains alot of things: http://dlang.org/template signature.asc Description: PGP signature

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 16:55:29 +, FrankLike wrote: > On Sunday, 25 January 2015 at 16:22:20 UTC, AndyC wrote: > >> http://superuser.com/questions/269818/change-default-code-page-of- windows-console-to-utf-8 > > We can use 'chcp 65001',but for exe'consumer,it's difficult to use. > > Exe'Consum

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 16:02:33 +, AndyC wrote: > I was looking at this bug report: > > https://issues.dlang.org/show_bug.cgi?id=2138 > > and sure enough it doesn't handle zipfiles with more than 65K files. > > and I checked the code and its pretty limited on what it will even read. > > Which

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 20:56:04 +, AndyC wrote: > Its handy, yes, until you hit one of its many limitations, then what > will you do? i didn't come into any limitations yet. my scripts and other software was able to process any zips i trhowed at 'em. but if i'll really hit any of std.zip limiti

Re: forcing "@nogc" on class destructors

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 22:09:04 +, deadalnix wrote: > 1. is the only viable plan. ...which, in turn, equals to "do nothing for another year or more". instead of issuing warning to inform people that what they doing NOW is bad. i'm pretty sure that people are very happy to know that their code

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:00:01 +, Laeeth Isharc wrote: > Imagine you move from a javascript browser to one without dlang.org is imfunctional without js, so there is no sense to make anything else working right without js. signature.asc Description: PGP signature

Re: forcing "@nogc" on class destructors

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:13:26 +, deadalnix wrote: > On Monday, 26 January 2015 at 00:39:18 UTC, ketmar wrote: >> On Sun, 25 Jan 2015 22:09:04 +, deadalnix wrote: >> >>> 1. is the only viable plan. >> >> ...which, in turn, equals to "do nothing for another year or more". > > We are waiting

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:09:17 +, Laeeth Isharc wrote: > Is it worth creating a higher tier within code.dlang.org of libraries > considered to be of high quality that may have a semi-official stamp? > When you know your way around, you can see what is actively maintained > and take a peek at th

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:36:29 +, Vladimir Panteleev wrote: > On Monday, 26 January 2015 at 02:13:44 UTC, ketmar wrote: >> On Mon, 26 Jan 2015 02:00:01 +, Laeeth Isharc wrote: >> >>> Imagine you move from a javascript browser to one without >> dlang.org is imfunctional without js, so there i

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:33:26 +, Laeeth Isharc wrote: > On Monday, 26 January 2015 at 02:17:29 UTC, ketmar wrote: >> On Mon, 26 Jan 2015 02:09:17 +, Laeeth Isharc wrote: >> >>> Is it worth creating a higher tier within code.dlang.org of libraries >>> considered to be of high quality that ma

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:17:54 +, Vladimir Panteleev wrote: > On Monday, 26 January 2015 at 03:14:00 UTC, ketmar wrote: >> On Mon, 26 Jan 2015 02:36:29 +, Vladimir Panteleev wrote: >> >>> On Monday, 26 January 2015 at 02:13:44 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:00:01 +, Laeet

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote: > Shouldn't it be expanded by default and collapsed if JS is available? my uneducated guess is that "collapser" is not using jquery, so it was able to successfully collaspe the whole thing. and then "expander" is using jque

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:35:02 +, Vladimir Panteleev wrote: > I see. Your issue is not that JS is disabled, it is that you are > selectively blocking components of the webpage. > > As with any system, it is not unusual that it stops working as designed > when you rip out arbitrary parts of it.

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:56:36 +, Vladimir Panteleev wrote: > On Monday, 26 January 2015 at 03:43:53 UTC, ketmar wrote: >> On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote: >> >>> Shouldn't it be expanded by default and collapsed if JS is available? >> >> my uneducated gues

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 09:29:40 +, Paolo Invernizzi wrote: i'm scared. does that mean that my rants about "consistency" was sane after all? and now i have to find something else to attack? (sigh) poor me. signature.asc Description: PGP signature

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 18:25:11 +, Robert burner Schadek wrote: congrats! signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 19:46:21 +, Meta wrote: > On Monday, 26 January 2015 at 19:44:18 UTC, Walter Bright wrote: >> On 1/26/2015 8:13 AM, Foo wrote: >>> You could do the same as C++ with override and final: they are only >>> valid attributes if they appear _after_ the function/method. Elsewhere

possible bug in std.conv.parse

2014-04-26 Thread ketmar via Digitalmars-d
this code: std.conv.parse!byte("-128") throws error: "Overflow in integral conversion". but this is obviously not true, as signed byte can hold such value. the question is: is it bug, or it's intended behavior to limit signed integrals to values which can be safely abs()ed?

Re: possible bug in std.conv.parse

2014-04-26 Thread ketmar via Digitalmars-d
ah, sorry, this is my own fault, there is no bug in parser. what i'm doing is parse!byte("128") and then negating the result. silly me.

Re: possible bug in std.conv.parse

2014-04-26 Thread ketmar via Digitalmars-d
On Sunday, 27 April 2014 at 00:04:15 UTC, ketmar wrote: but this is definetely bug, i think: void main() { import std.stdio : writeln; import std.conv : to; writeln(to!int("29a", 16)); // 666 writeln(to!int("+29a", 16)); // Unexpected '+' when converting from type string base 16 to type

Re: possible bug in std.conv.parse

2014-04-26 Thread ketmar via Digitalmars-d
ah, i see: if (radix == 10) return parse!Target(s); in Target parse(Target, Source)(ref Source s, uint radix) it cheating a little and using 'general' decimal number parser, which accepts '+' and '-'. for other bases it uses another code though, where '+' and '-' threats as digits, which lead

Re: Explicit default constructor for structs

2014-04-26 Thread ketmar via Digitalmars-d
On Wednesday, 9 April 2014 at 14:59:35 UTC, Benjamin Thaut wrote: E.g. it could look like this (alternative a new keyword "explicit" could be introduced, but introduction of new keywords is usually avoided if possible, AFAIK): sorry for not reading the whole post and necroposting, but please, p

Re: D For A Web Developer

2014-04-29 Thread ketmar via Digitalmars-d
On Tue, 29 Apr 2014 11:55:11 -0400 Etienne via Digitalmars-d wrote: > That's funny b/c most people say RoR made them love web development. > If the D community could organize itself the same way RoR is around > web dev, I doubt any other web scripting language could pursue > existence. no, please

Re: D For A Web Developer

2014-04-29 Thread ketmar via Digitalmars-d
On Tue, 29 Apr 2014 14:41:17 + James via Digitalmars-d wrote: just show him vibe.d. it's what node.js wants to be, but failed. ;-) signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 17:56:00 -0800, Walter Bright wrote: > On 1/26/2015 2:15 PM, Foo wrote: >> Because you/we are community members and therefore "second-class >> citizens". If we suggest or discuss something, it is not that >> important. But if a small reddit post is made, it matters more. > > M

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 02:11:55 +, Jonathan Marler wrote: > This has become quite frustrating. I'm not sure how else to explain > myself so maybe I'm just being dumb. you are dumb. you can be dumb for some time, and then BANG! your proposal is silently made "right". yet you're still dumb. that

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 01:32:21 +, Mike wrote: > In fact, it is the attitude against change that has put me on the fence > about D, when I was quite an advocate about a year ago. It has also > made me reluctant to put forth the necessary effort to study and make > any significant contributions b

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:30:43 +, Jonathan Marler wrote: > On Tuesday, 27 January 2015 at 07:50:36 UTC, ketmar wrote: >> On Tue, 27 Jan 2015 02:11:55 +, Jonathan Marler wrote: >> >>> This has become quite frustrating. I'm not sure how else to explain >>> myself so maybe I'm just being dumb.

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:44:17 +, deadalnix wrote: > On Tuesday, 27 January 2015 at 08:07:11 UTC, ketmar wrote: >> heh. i was very passionate about D, and i started the process of >> migration of all our work projects (i'm a head of software company with >> ~100 employees, if anybody is interest

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:47:43 +, Paolo Invernizzi wrote: > On Tuesday, 27 January 2015 at 08:07:11 UTC, ketmar wrote: >> On Tue, 27 Jan 2015 01:32:21 +, Mike wrote: >> >> i started the process of migration of all our work projects >> (i'm a head of software company with ~100 employees, if

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 11:20:41 +0100, Jacob Carlborg wrote: > On 2015-01-26 20:50, Walter Bright wrote: > >> It's good to have this discussion. >> >> Previously, it's all been advocacy and "break my code" by forcing a >> change from pure => @pure. >> >> Just a few days ago on slashdot, an anonymous

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 10:21:52 +, Jonathan Marler wrote: > Interesting points. Thanks for the response, it's a relief to hear > people making sense :) the funny thing is that Ola is a kind of "bad child" too. heh. signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 10:43:12 +, Ola Fosheim Grøstad wrote: > Hey, I have gray hairs in my beard! me too! signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 16:22:17 +, Zach the Mystic wrote: > On Tuesday, 27 January 2015 at 09:20:51 UTC, ketmar wrote: >> i believe in D too, and i want it to succeed -- not only for me. that's >> why i'm writing here. i'm not attacking it for the sake of attack, and >> i deliberately took the po

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 11:04:55 +1300, Rikki Cattermole wrote: > First off, Derelict-Util/Derelict-GL3 is a biggy here. Its old code, > lets admit it. Its also a standard for loading shared library functions. please, not Derelict! it's a great work and all that, but it's habit to load ALL functions

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 23:07:44 +, Rikki Cattermole wrote: > dlangui doesn't depend upon it. that dependency was removed since then. > And isn't aware of different versions. of course. that's why it failed on my FreeImage: my library is older than the one that Derelict is expecting to find, an

Re: D garbage collector and real-time systems

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 06:58:41 +, Tom wrote: > Or is there now the possibility of disabling the GC altogether, or > replacing it with a refcounting 'GC' etc? you still can do manual memory management with `malloc()` and friends. but you must be very cautious with dynamic arrays and slices. may

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 02:32:44 +, Tofu Ninja wrote: > On Wednesday, 28 January 2015 at 00:58:41 UTC, ketmar wrote: >> On Tue, 27 Jan 2015 23:07:44 +, Rikki Cattermole wrote: >> >>> dlangui doesn't depend upon it. >> that dependency was removed since then. >> >>> And isn't aware of different

Re: Window creation, for phobos?

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 10:36:22 +0900, Mike Parker wrote: > On 1/28/2015 7:54 AM, ketmar wrote: >> On Wed, 28 Jan 2015 11:04:55 +1300, Rikki Cattermole wrote: >> >>> First off, Derelict-Util/Derelict-GL3 is a biggy here. Its old code, >>> lets admit it. Its also a standard for loading shared library

Re: Who knows about https://github.com/D-Programming-Language/tools/blob/master/update.sh?

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 19:53:09 +0100, Benjamin Thaut wrote: > Microsoft does not have a offical C compiler. They only have a C++ > compiler. And as a result they are also not supporting C99, they only > support that part of C which is required by C++ and afaik C99 is not > required by the C++ standa

Re: Throwable.TraceInfo

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 15:20:56 +, david wrote: > We're exclusively on Linux. > And no - I don't want the strings during runtime. > I understand generating strings can be time consuming. > I'm willing to offload this to offline processing - during runtime, I > just want access to the calltrace -

Re: Oplink PR Ping

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 21:17:24 +, Jonathan Marler wrote: > They may not have known before but now they do! lol :) Robots are > sniffing our sites with valid accounts! I was not expecting that...wow. > Writing a generic robot that can create accounts and login with them > seems like a tough pro

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 18:54:27 +, Zach the Mystic wrote: > I think a keyword is a keyword is a keyword. If it's a keyword to the > right it should be one everywhere. How is somethign that's a built-in > attribute one place and an identifier in another not context sensitive. yep. that is "slave

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 22:39:01 +, Jonathan Marler wrote: > On Wednesday, 28 January 2015 at 22:36:13 UTC, Ola Fosheim Grøstad > wrote: >> On Wednesday, 28 January 2015 at 21:53:29 UTC, Jonathan Marler wrote: >>> Using "safe" as both a function attribute and an identifier doesn't >>> seem confus

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 23:36:29 +, deadalnix wrote: > On Wednesday, 28 January 2015 at 23:22:34 UTC, ketmar wrote: >> On Wed, 28 Jan 2015 18:54:27 +, Zach the Mystic wrote: >> >>> I think a keyword is a keyword is a keyword. If it's a keyword to the >>> right it should be one everywhere. How

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 00:03:51 +, Brian Schott wrote: > On Wednesday, 28 January 2015 at 23:22:34 UTC, ketmar wrote: >> On Wed, 28 Jan 2015 18:54:27 +, Zach the Mystic wrote: >> >>> I think a keyword is a keyword is a keyword. If it's a keyword to the >>> right it should be one everywhere. H

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 00:29:26 +, Brian Schott wrote: > On Thursday, 29 January 2015 at 00:14:51 UTC, ketmar wrote: >> that's good. as we already have at least 4 codebases to build tools >> upon, >> and you gave up using that and insisting on writing another one, and >> failed... i doubt that yo

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 00:33:39 +, weaselcat wrote: > Uncalled for IMO, Schott's tools are great. sure. i wasn't talking about Brian in my text, that was my dumbiness that paints the text personal. signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-29 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 17:17:44 +, deadalnix wrote: > On Thursday, 29 January 2015 at 14:00:16 UTC, Jacob Carlborg wrote: >> On 2015-01-29 01:19, Walter Bright wrote: >> >>> One of the other mistakes they make is the great idea of implicit >>> declaration of variables, and then ruefully have to d

Re: accept @pure @nothrow @return attributes

2015-01-29 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 14:58:51 +0100, Jacob Carlborg wrote: > On 2015-01-28 23:27, Walter Bright wrote: > >> For example, people often realize that the ; statement terminator is >> redundant, so they propose removing it. In trying it, however, it soon >> becomes clear that error message clarity, re

Re: std.sevenzip - Do you need it?

2015-01-30 Thread ketmar via Digitalmars-d
On Fri, 30 Jan 2015 16:01:27 +, data man wrote: > Right now I'm working on std.sevenzip (7-zip by Igor Pavlov). is it bindings or complete port? > My question is: how best to do - one big module std.sevenzip or divided > into sub-modules: submodules. don't aim Phobos inclusion from the start

Re: Should we remove int[$] before 2.067?

2015-01-30 Thread ketmar via Digitalmars-d
On Fri, 30 Jan 2015 18:08:13 +, Gary Willoughby wrote: > We don't want the situation of C++ where people only use 80% of it's > features and that 80% is different for everyone. I've recently been > writing some Go code and it's become clear to me just how big of a > language D really is. that

"use after free" crashbug in DMD (and fix)

2015-01-31 Thread ketmar via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=14097 i know that bugzilla patches can be slow to review, but this is a critical heisenbug which must be fixed ASAP, i believe. so i'm pinging here. signature.asc Description: PGP signature

Re: "use after free" crashbug in DMD (and fix)

2015-01-31 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 03:09:15 +, ZombineDev wrote: > I have made a pull request[1] with your fix, if you don't mind. thank you. signature.asc Description: PGP signature

Re: "use after free" crashbug in DMD (and fix)

2015-01-31 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 03:27:06 +, ketmar wrote: > On Sun, 01 Feb 2015 03:09:15 +, ZombineDev wrote: > >> I have made a pull request[1] with your fix, if you don't mind. > thank you. ah, and that caching is needed. `free()` in `AsyncRead::dispose` *can* be executed before loop in `startthr

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
p.s. "and where is the fish?" one can ask me. alas, there is no fish in this pool. there is no water too. signature.asc Description: PGP signature

D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
today i was in need of a little utility that must download the file using "wininet.dll". nothing fancy, just send a request and receive the contents. no, curl was not a choice. and -- oh, well, wininet is a dll which any windows box has, right? at least any windows box with XP and higher, which

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 09:52:46 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 09:42:49 UTC, ketmar wrote: >> today i was in need of a little utility that must download the file >> using "wininet.dll". > > You can find wininet.lib in the "lib" directory of the bindings > repository

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 10:03:30 +, Vladimir Panteleev wrote: > This will not work and is not D's fault. The DLL does not contain > information required to create a working import library (the size of > parameters on the stack is included in the mangled name). i wonder how mingw linker is able to

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 10:41:04 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 10:33:51 UTC, ketmar wrote: >> i wonder how mingw linker is able to use .dlls without corresponding >> .lib files to link windows executables. maybe it's a weird art of >> forbidden black magic or somethi

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:39:17 +0100, Jacob Carlborg wrote: > On 2015-02-01 10:42, ketmar wrote: >> today i was in need of a little utility that must download the file >> using "wininet.dll". nothing fancy, just send a request and receive the >> contents. no, curl was not a choice > > I don't know

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:04:38 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 10:54:20 UTC, ketmar wrote: >> "-Wl,--enable-auto-import -Wl,--enable-stdcall-fixup" > > That's pretty cool. yes. i was amazed by the fact that i finally can forget about all that "implib/deffile" crap

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:28:51 +, jkpl wrote: > Shouldn't you compile with the following cmds ? > > dmd.exe test.d wininet.lib wininet.di -I > > ? that doesn't really matter how i'll pass that .lib file to linker. and i replaced part of the command line with ellipses, as there is no reason t

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:25:04 +, eles wrote: > On Sunday, 1 February 2015 at 09:44:27 UTC, ketmar wrote: > >> this pool. there is no water too. > > [OT] Just for the sake of it: > > https://www.youtube.com/watch?v=00509MQxRB8 ah, this is not OT at all, it perfercly illustrates my point! ;-)

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:37:45 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 11:28:51 UTC, jkpl wrote: >> Shouldn't you compile with the following cmds ? >> >> dmd.exe test.d wininet.lib wininet.di -I > > wininet.lib is unnecessary because wininet.d has `pragma(lib, > "wininet");

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:40:12 +, jkpl wrote: > On Sunday, 1 February 2015 at 11:37:46 UTC, Vladimir Panteleev wrote: >> On Sunday, 1 February 2015 at 11:28:51 UTC, jkpl wrote: >>> Shouldn't you compile with the following cmds ? >>> >>> dmd.exe test.d wininet.lib wininet.di -I >> >> wininet.lib

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 11:49:29 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 11:44:12 UTC, ketmar wrote: >> yep, without properly compiled libraries there are constant complains >> about missing structure initalizers. i got rid of that with simple >> template, and wrote "auto pi =

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 12:06:31 +, jkpl wrote: > On Sunday, 1 February 2015 at 11:46:06 UTC, ketmar wrote: >> it's not missing, it's in "sc.ini", along with other minor tweaks that >> aren't interesting in the context of the story itself. > > Ok, you should add this precision in the initial post

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 12:07:26 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 11:58:22 UTC, ketmar wrote: >> yet dmd still insists on having that `.init`. and there are no non-zero >> defaults for winapi bindings, so i'm fine with such hacks. ;-) > > Hmm, this: > > import win32.w

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 12:31:25 +, Vladimir Panteleev wrote: > On Sunday, 1 February 2015 at 12:18:41 UTC, ketmar wrote: >> i *can* hack my build tool to add batch compilation, >> but i don't want to. > > I don't think batch compilation is required. Separately compiling a > module to an .obj fil

Re: D, windows developement, frustration and fish

2015-02-01 Thread ketmar via Digitalmars-d
On Sun, 01 Feb 2015 13:27:27 +0100, Jacob Carlborg wrote: > On 2015-02-01 12:01, ketmar wrote: > >> i have my own library to work with http. but you can substitute any >> other windows dlls in place of of wininet, the story will not change. >> the story is about (lack of) usability. > > I have s

<    5   6   7   8   9   10   11   12   13   14   >