ZipException: no end record when attempting dub fetch vibelog

2017-09-08 Thread Kevin McTaggart via Digitalmars-d
Once again, I'm taking a serious look at D after a break of 3 years. I'm trying to download packages using dub from DMD 2.076 as follows: dub fetch vibelog The following error is produced: ZipException: no end record Any suggestions?

Re: Socket missing option: SO_REUSEPORT

2017-05-21 Thread Kevin Brogan via Digitalmars-d
On Wednesday, 21 December 2016 at 16:49:53 UTC, Damian wrote: SO_REUSEPORT is not supported on Windows. Is is supported on linux. On Windows the behavior of SO_REUSEPORT is included in SO_REUSEADDR. I submitted an issue to get this fixed for Linux. https://issues.dlang.org/show_bug.cgi?id=1

Does anyone have a completed version of a d analogue to php's var_dump?

2017-02-24 Thread Kevin Brogan via Digitalmars-d
I can dump a struct easily enough with the following. I'm wondering if anyone else has done all the work to make it work for every type? https://code.dlang.org/ is down at the moment so I can't check there, and google hasn't been helpful. ===

Re: Derelict-GL3 Error

2017-01-10 Thread Kevin via Digitalmars-d
On Tuesday, 10 January 2017 at 14:32:29 UTC, Kevin wrote: On Tuesday, 10 January 2017 at 04:34:24 UTC, Mike Parker wrote: [...] Thanks for info. I already did glGetError() above and below. and it only from that code. At first I thought i put the wrong type. I set success to 1 and let code go

Re: Derelict-GL3 Error

2017-01-10 Thread Kevin via Digitalmars-d
On Tuesday, 10 January 2017 at 04:34:24 UTC, Mike Parker wrote: On Tuesday, 10 January 2017 at 01:43:50 UTC, Kevin wrote: Using Archlinux, Derelict-gl3 1.0.18 check format (GLuint, Glenum, Glint*) // this does not work glGetShaderiv(program, GL_LINK_STATUS, &success); writeln("

Derelict-GL3 Error

2017-01-09 Thread Kevin via Digitalmars-d
Using Archlinux, Derelict-gl3 1.0.18 check format (GLuint, Glenum, Glint*) // this does not work glGetShaderiv(program, GL_LINK_STATUS, &success); writeln("GL_ERROR: ", glGetError()); Give me error 1282 // this one works fine. glGetShaderiv(shader, GL_COMPILE_STATUS, &success);

Re: [hackathon] One week left to the first D Hackathon!

2015-04-18 Thread kevin via Digitalmars-d
On Saturday, 18 April 2015 at 16:26:41 UTC, Andrei Alexandrescu wrote: Join us for one week starting Saturday April 25th for the first D Hackathon! The D Hackathon is one week of intense participation and collaboration on anything and everything related to the D programming language. All pa

Re: std.experimental.logger formal review round 3

2014-10-29 Thread Kevin Lamonte via Digitalmars-d
On Saturday, 25 October 2014 at 16:43:10 UTC, Dicebot wrote: However, I don't think any of those are truly critical and this proposal has been hanging there for just too long. In my opinion it will be more efficient to resolve any remainining issues in follow-up pull requests on case by case ba

Re: std.experimental.logger formal review round 3

2014-10-28 Thread Kevin Lamonte via Digitalmars-d
On Tuesday, 28 October 2014 at 11:11:09 UTC, Martin Nowak wrote: I think part of the misunderstanding is that I'm thinking of an app as user code plus a number of libraries all on top of phobos. Say I have an app using vibe.d and I want to enable logging in my app, but disable it in phobos. Was

Re: "BareBones" VersionCondition identifier for druntime

2014-10-19 Thread Kevin Lamonte via Digitalmars-d
On Sunday, 19 October 2014 at 05:35:39 UTC, Walter Bright wrote: It's a good idea, but having a bunch of versions quickly devolves to an unmaintainable mess, in my experience. For one issue, when one adds a new piece of code, which versions apply in what ways? Once the number of versions exce

"BareBones" VersionCondition identifier for druntime

2014-10-17 Thread Kevin Lamonte via Digitalmars-d
Hi all, Following up on the very fun work of Adam Ruppe, Mike (JinShil)'s Cortex M howto, XomB, and of course the "D Bare Bones" tutorial on wiki.osdev.org, I have started a brand-new kernel in D over at: https://github.com/klamonte/cycle At the moment I am running on i386 (qemu), but aiming

Re: std.experimental.logger formal review round 3

2014-10-05 Thread Kevin Lamonte via Digitalmars-d
On Sunday, 5 October 2014 at 17:06:06 UTC, Sean Kelly wrote: Having an identifier for logging is a bit different. Would using the MessageBox address be sufficient? I'd be happy to add a Tid.id property that returns a value like this. I'd rather not try to generate a globally unique identifi

Re: std.experimental.logger formal review round 3

2014-10-03 Thread Kevin Lamonte via Digitalmars-d
On Thursday, 2 October 2014 at 18:11:26 UTC, Marco Leise wrote: How would I typically log an exception? We could add a Throwable reference in LogEntry and some overrides. But how exception stack traces appear in the output (multiple lines, all-on-one line, e.msg only, following the chain, e

Re: std.experimental.logger formal review round 3

2014-10-02 Thread Kevin Lamonte via Digitalmars-d
On Wednesday, 1 October 2014 at 13:37:43 UTC, Dicebot wrote: On Wednesday, 1 October 2014 at 10:50:54 UTC, Kevin Lamonte wrote: 2. We have Tid in the API. What about Fiber and Thread? If we can only pick one, I would vote for Thread rather than Tid, as Tid's currently have no way

Re: std.experimental.logger formal review round 3

2014-10-01 Thread Kevin Lamonte via Digitalmars-d
I haven't tested it yet, but have two questions anyway: 1. I did not see any reference to the use of Clock.currTime(), which on the last round accounted for about 90% of the total time spent in a log call. Reference: https://issues.dlang.org/show_bug.cgi?id=13433 . (This is the difference b

Re: Voting: std.logger

2014-09-06 Thread Kevin Lamonte via Digitalmars-d
On Wednesday, 3 September 2014 at 13:13:31 UTC, Ola Fosheim Grøstad wrote: If you accept slightly out of sync logging then you can have thread local buffers and on x86 use the command RDTSC which gives you a (good enough) timer value so you can merge the buffers from threads later. It takes r

Re: Voting: std.logger

2014-09-03 Thread Kevin Lamonte via Digitalmars-d
On Wednesday, 3 September 2014 at 13:13:31 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 3 September 2014 at 11:39:59 UTC, Kevin Lamonte wrote: This could also be split into traceFnEnter, traceFnExitSuccess, and traceFnExitFailure with LogEntry.args set to indicate which one

Re: Voting: std.logger

2014-09-03 Thread Kevin Lamonte via Digitalmars-d
Another API change: LogEntry must have a Thread reference, either in addition to or in replacement of the Tid reference it has currently.

Re: Voting: std.logger

2014-09-03 Thread Kevin Lamonte via Digitalmars-d
On Tuesday, 2 September 2014 at 10:14:27 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 2 September 2014 at 06:24:45 UTC, Kevin Lamonte wrote: I see a difference between signalling state, tracing execution and logging state. I guess one roughly can say that: - signalling is for coordination of

Re: Voting: std.logger

2014-09-02 Thread Kevin Lamonte via Digitalmars-d
On Tuesday, 2 September 2014 at 14:53:17 UTC, Dicebot wrote: This is exactly what I call theoretical speculations. Please provide specific list like this: 1) some method signature needs to be changed I propose the following API changes (+ changes on default implementation): protected L

Re: Voting: std.logger

2014-09-01 Thread Kevin Lamonte via Digitalmars-d
On Monday, 1 September 2014 at 10:43:34 UTC, Ola Fosheim Grøstad wrote: I guess the most robust solution is to use shared memory and fork, when the child dies you soup up the log and upload it to a logging-server. I'm used to a centralized system taking logs on a continuous basis, with "nor

Re: Voting: std.logger

2014-08-31 Thread Kevin Lamonte via Digitalmars-d
On Sunday, 31 August 2014 at 09:56:29 UTC, Ola Fosheim Grøstad wrote: The logger I am most interested in writes to a circular buffer and uploads the log to a database on a crash so that the source of the crash can be identified. I am only interested in in logging execution, not preserved state

Re: Voting: std.logger

2014-08-30 Thread Kevin Lamonte via Digitalmars-d
On Saturday, 30 August 2014 at 02:11:49 UTC, Dicebot wrote: "API must specify a strong stance on threading, whatever the form it takes" Does not seem to be addressed at all. At least I see no mentions of it in core.d documentation and logger instance itself is plain __gshared thing. I'm not

Re: Not receiving emails from issues.dlang.org

2014-04-16 Thread Kevin Lamonte via Digitalmars-d
Thank you, I'm all set now. On Wednesday, 16 April 2014 at 00:51:37 UTC, Brad Roberts via Digitalmars-d wrote: I've kicked things a little, but need to figure out better why it didn't go out on it's own. On 4/15/14, 5:26 PM, Kevin Lamonte via Digitalmars-d wrote: I a

Not receiving emails from issues.dlang.org

2014-04-15 Thread Kevin Lamonte via Digitalmars-d
I am trying to reset my password on the bug tracker in order to file a new bug, but the reset emails appear to be disappearing in the ether. Anyone else have this problem?

Re: Linear algebra for Win64?

2013-07-12 Thread Kevin McTaggart
On further consideration, I think my best option is to write D code for the small number of linear algebra routines that I require.

Linear algebra for Win64?

2013-07-09 Thread Kevin McTaggart
Does anyone know of a good D linear algebra library for Win64? I tried scid a year ago and liked it on Win32, but have been unable to get it to link on Win64. When trying to run scid on Win64, I've been using prebuilt LAPACK 3.4.1 libraries from http://icl.cs.utk.edu/lapack-for-windows/lapack

Re: Proposal: DPM, the D Package Manager

2013-07-08 Thread Kevin Kane
I don't know if this thread is dead but... I have some comments/suggestions because I am considering implementing something as well and if you want some help I'd be willing. My thought would be to model it on Perl's CPAN. A package should be a bare bones gzip of the source, a makefile, some

Re: Would like to see ref and out required for function calls

2012-09-19 Thread Kevin McTaggart
I'm amazed and very pleased at the discussion that this has generated. I think it would be great if ref and out required for function calls in D3. As others have mentioned, it would greatly assist with code readability. On Friday, 7 September 2012 at 11:33:41 UTC, Kevin McTaggart

Would like to see ref and out required for function calls

2012-09-07 Thread Kevin McTaggart
I've been looking at migrating a reasonably large ship motion library (tens of thousands of lines) from C# to D. I've become quite enthusiastic about D, and most of my problems have been relatively minor (e.g., inconsistent bugs with std.container.Array, would like orange serialization to give

Re: reference to 'self' inside a function

2012-07-18 Thread Kevin Cox
On Jul 18, 2012 6:20 AM, "FeepingCreature" wrote: > > On 07/18/12 01:05, Kevin Cox wrote: > > > > What about how JavaScript does it. Anonymous functions can still have a "name" that can be used from inside of a function to refer to itself. > Sadly,

Re: reference to 'self' inside a function

2012-07-17 Thread Kevin Cox
On Jul 17, 2012 6:50 PM, "Era Scarecrow" wrote: > > On Tuesday, 17 July 2012 at 22:13:13 UTC, Eyyub wrote: >> >> On Tuesday, 17 July 2012 at 16:56:17 UTC, angel wrote: >>> >>> I propose to introduce a reference to the current function, much like 'this' in a class method. Call it 'self' or 'thisFun

Re: reference to 'self' inside a function

2012-07-17 Thread Kevin Cox
On Jul 17, 2012 1:00 PM, "angel" wrote: > > I propose to introduce a reference to the current function, much like 'this' in a class method. Call it 'self' or 'thisFunc', or whatever ... > What might this be good for ? > For implementing recursion in a lambda function. > Writing in functional style

Re: D versionning

2012-07-16 Thread Kevin Cox
On Jul 16, 2012 4:15 AM, "Jacob Carlborg" wrote: > > On 2012-07-16 08:51, Walter Bright wrote: > >> It is a good idea, but I'd be nervous myself about allowing the compiler >> to edit my code :-) > > > Don't you trust your own compiler :) > > The compiler could have --dry-run option to show what w

Re: D front-end in D for D

2012-07-14 Thread Kevin Cox
On Jul 14, 2012 9:15 AM, "David" wrote: >> >> Run-time mixins can be used for incredibly powerful stuff, yet the same >> run-time mixins can be used for incredibly dangerous stuff. Just don't >> use them if you don't know exactly what you're doing. :-) > > > I don't see any case where a "runtime-m

Re: No D->C++, right?

2012-07-13 Thread Kevin Cox
On Jul 13, 2012 3:45 PM, "Nick Sabalausky" < seewebsitetocontac...@semitwist.com> wrote: > > Am I correct in my understanding that we still don't have a reliable > tool to translate a D source to C or C++? Can LDC/GDC do anything like > that? (Doesn't LLVM have a C-outputting backend?) > Yes LLVM

Re: dlang.org live examples

2012-06-25 Thread Kevin
On Mon 25 Jun 2012 12:46:27 EDT, David Gileadi wrote: > On 6/25/12 7:43 AM, nazriel wrote: >> First, should standard input and command line arguments be constant >> defined in hidden html fields, or should we allow user to pick their >> own? >> It would allow for more freedom and experience but on

Re: dlang.org live examples

2012-06-25 Thread Kevin
un every sample and this is why I think it is better to hide most of the features and I don't think people will mind the small delay that another tab or javascript window takes to open. Kevin signature.asc Description: OpenPGP digital signature

Re: getcwd behaves inconsistent?

2012-06-19 Thread Kevin Cox
On Jun 19, 2012 11:03 PM, "BLM768" wrote: > > Is there any chance of this code being added to Phobos? I think it would get a fair bit of use. > +1 I think locating the executable is a common task.

Re: getcwd behaves inconsistent?

2012-06-17 Thread Kevin Cox
On Jun 17, 2012 6:42 PM, "Stephen Jones" wrote: > > I recently switched from Eclipse to monoD and found that all my code to images etc was invalid because getcwd returns the directory that contains the main entry code in Eclipse, but returns the directory that contains the executable in MonoDevelo

Re: Review: std.uuid

2012-06-13 Thread Kevin Cox
On Jun 13, 2012 7:23 AM, "Kagamin" wrote: > > If we use all caps for abbreviations then the names should be SHA1UUID, MD5UUID and UUIDVersion? I believe tr naming scheme is acronyms have the same case. So if an acronym is first it is all lowercase otherwise all uppercase.

Re: Increment / Decrement Operator Behavior

2012-06-04 Thread Kevin Cox
On Jun 4, 2012 8:43 PM, "Xinok" wrote: > > I wonder in that case, is it even worth including in the language? For me anyways, the whole point of these operators is to use them in expressions. Otherwise, why not simply write (i+=1)? For pointers they are useful because they go up in units not byte

Re: SetTimer function not found?

2012-06-02 Thread Kevin Cox
On Jun 2, 2012 6:33 AM, "John Chapman" wrote: > > On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote: >> >> On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote: > > Just add these declarations to the appropriate module: > > extern(Windows) { > > alias void function(HWND, uint, uint,

Re: Where is naming convention?

2012-06-02 Thread Kevin Cox
On Jun 2, 2012 1:54 AM, "Jonathan M Davis" wrote: > No. It simply means that all of the letters of an acronym are always the same > case. So, you'd have > > class ASCIIException {} > void funcASCII() {} > int asciiVar; > enum UTFEnum { asciiEnum, utfEnum } Oh, good solution, I could never decide

Re: Nimrod language

2012-05-24 Thread Kevin Cox
On May 24, 2012 6:53 PM, "Froglegs" wrote: > > Like the design, syntax is way better than D > > But half of what makes a language are the compilers/debuggers/tool I like many ideas of the language but there are some show-stoppers for me. For example the fact that you have to define things in or

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 7:08 AM, "Tobias Pankrath" wrote: > > I'm using arch, too. The problem are the people, who don't :-) I know what you are saying but package managers were beautiful things that made it stupidly simple to install software. But we are slowly going back to windoze with "install this,

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 7:03 AM, "Jacob Carlborg" wrote: > > Mac OS X doesn't have one out of the box, App Store doesn't count. > > -- > /Jacob Carlborg IIRC there is one that a ton of people use, is it called macports?

Re: dget - getting code from github

2012-05-24 Thread Kevin Cox
On May 24, 2012 6:43 AM, "Tobias Pankrath" wrote: > > On Thursday, 24 May 2012 at 09:50:33 UTC, Russel Winder wrote: >> >> On Thu, 2012-05-24 at 10:34 +0200, Paulo Pinto wrote: >> [...] >>> >>> Every time I need to do something in an language without official package manager support, I curse mysel

Re: Is the D community lacking development tools?

2012-05-22 Thread Kevin Cox
On May 22, 2012 12:13 PM, "s" wrote: > > +1 for a GUI lib, which is in sync with DMD releases. > Is there any way to bind Qt without the dreaded moc and friends? Because that would give you a cross platform solution without too much work.

Re: [OT] GitHub down?

2012-05-11 Thread Kevin Cox
On May 11, 2012 5:53 PM, "Alex Rønne Petersen" wrote: > > On 11-05-2012 23:48, Nick Sabalausky wrote: >> >> Is it just me, or does GitHub (in its entirety) seem to be down today? >> >> > > Works For Me (TM) - haven't had problems with GitHub at all today. > > Also, this is useful for cases like th

Re: Please help with GC exception!

2012-05-09 Thread Kevin Cox
On May 9, 2012 12:53 PM, "Gor Gyolchanyan" wrote: > Wouldn't it make more sense for GC to ignore second deallocation? > If this was the case, data, which is know to become garbage would be > deallocated right away. > On the other hand, I might as well use std.c.stdlib.realloc for these cases. No,

Re: -wi on default?

2012-05-07 Thread Kevin Cox
On May 7, 2012 7:33 PM, "Alex Rønne Petersen" wrote: > (I mean, we're D, not C; we don't have over 9000 warning variants). > > -- > - Alex Yet.

Re: Static method conflicts with non-static method?

2012-04-27 Thread Kevin Cox
On Apr 27, 2012 7:34 AM, "so" wrote: > > I agree it is ugly. If there is a way out (reason why i asked), we should just dump it. I don't like the idea either because it is confusing. The only reason I can imagine is if there was polymorphism on statics which I see as a fairly useless feature.

Re: Measuring the page generation of the forum

2012-04-12 Thread Kevin Cox
On Apr 12, 2012 4:29 PM, "SomeDude" wrote > > So noone thinks this could be a good idea ? I like it. I usually put a comment in the bottom of my pages but since the form is implemented in D it would nice to actually display it somewhere.

Re: Is anyone hacking on druntime in a widespread fashion at themoment?

2012-04-11 Thread Kevin Cox
On Apr 11, 2012 4:14 PM, "Nick Sabalausky" < seewebsitetocontac...@semitwist.com> wrote: > > "Kevin Cox" wrote in message > news:mailman.1599.1334099575.4860.digitalmar...@puremagic.com... > > > >I was wondering why they could not be implied from th

Re: Is anyone hacking on druntime in a widespread fashion at the moment?

2012-04-10 Thread Kevin Cox
On Apr 10, 2012 7:08 PM, "H. S. Teoh" wrote: > > On Wed, Apr 11, 2012 at 12:10:19AM +0200, Alex Rønne Petersen wrote: > > I'm planning to go over druntime and add nothrow/pure everywhere I > > can, but I don't want to disturb anyone else who's currently working > > on patches that this could disru

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 10:29 PM, "Andrei Alexandrescu" < seewebsiteforem...@erdani.org> wrote: > > On 4/9/12 9:21 PM, Ary Manzana wrote: >> >> Yes, D definitely needs that. The Eclipse plugin could just use bindings >> to the D compiler API with JNI. > > > Would the JSON compiler output help? > > Andrei I

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 9:19 AM, "Manu" wrote: > > OMG, DO WANT! :P > Who wrote this? I wonder if they'd be interested in adapting it to VisualD + MonoDevelop? > > > On 9 April 2012 12:56, Ary Manzana wrote: >> >> On 4/9/12 7:26 AM, Kevin Cox wrote: >>&g

Re: Foreach Closures?

2012-04-09 Thread Kevin Cox
On Apr 9, 2012 5:59 AM, "Ary Manzana" wrote: > In this video you can see what foreach with opApply gets translated to (at about minute 1): > > http://www.youtube.com/watch?v=oAhrFQVnsrY Thanks, that's perfect. I'm definitely going to try out decent.

Re: Foreach Closures?

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 7:49 PM, "Timon Gehr" wrote: > > On 04/09/2012 01:26 AM, Kevin Cox wrote: >> >> I was wondering about the foreach statement and when you implement >> opApply() for a class it is implemented using closures. I was wondering >> if this is just

Foreach Closures?

2012-04-08 Thread Kevin Cox
returns from the outside function not the "closure". I was just wondering if anyone could spill the implementation details. Thanks, Kevin

Re: x32-abi + D = fat pointers?

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 6:24 PM, "Tove" wrote: > > I just stumbled upon this: > https://sites.google.com/site/x32abi/home > > /rant > > I remember back in the glorious MC68000 days(24bit addressing)... leaving 8bits for creative optimizations... until 68020 took away all the fun that is. > > So... I was ki

Re: Documentation improvements

2012-04-08 Thread Kevin Cox
On Apr 8, 2012 4:54 PM, "Jonas H." wrote > Sure but when people click on a link and weird grammar definitions are the only thing that's on the screen they're likely to think "that's not what I looked for" and try other pages. For sure. I think there should be both.

Re: Documentation improvements

2012-04-08 Thread Kevin Cox
I would just like to say that I like having the grammar there. It helps me see the relations in the syntax. And I thought there were enough syntax examples.

Re: Issue with module destructor order

2012-04-08 Thread Kevin Cox
On Mar 26, 2012 5:11 AM, "Benjamin Thaut" wrote: > Is this intended behaviour or is this a bug? I assume this happens because of the mixin template and the public import. > I'm using dmd 2.058. > > -- > Kind Regards > Benjamin Thaut I don't think the order of destructors is defined. There would b

Re: IDE Support for D

2012-04-06 Thread Kevin Cox
On Fri, Apr 6, 2012 at 7:15 PM, Brad Roberts wrote: > It doesn't take a lot of help to greatly improve both the quality of a > product and the liklihood that it'll survive much longer, but it does take > some. > > My 2 cents, > Brad > > I agree and understand with what you are saying but sometime

Re: D projects list

2012-04-05 Thread Kevin Cox
On Apr 5, 2012 5:04 PM, "Nick Sabalausky" wrote > I would suggest though, that it be separated into two main parts: > > 1. Some sort of central database with a documented, publically-accessible > machine interface, not a human interface. (And for the love of god, not > XML.) > > 2. A human-usable

Re: Mascot for D

2012-04-05 Thread Kevin Cox
On Apr 5, 2012 4:24 PM, "Zbigniew Radosz" wrote > > How about a (digital) martian? :) Lol it took me a second to get it. Great one :)

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
On Wed, Mar 28, 2012 at 7:35 PM, Jesse Phillips wrote: > Seems the old timers are less representative now (142 votes). > > Nice poll, thanks. > I was factoring out the different number of years in each category. I'm gonna try to create a bar graph with normalized years. 1 - == 2

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
> > Looks like a fairly even spread so far, (27 votes). The higher bracket > is low, but it is also 6-10 years, D hasn't been around much longer > than that <.< > > -- > James Miller > I like the spread. Most new users and a gradual decline until we get to 6+ where a group of people are sitting.

Re: How to use D for cross platform development?

2012-03-25 Thread Kevin Cox
On Mar 25, 2012 7:34 PM, "Jonathan M Davis" wrote: > > On Monday, March 26, 2012 09:55:00 James Miller wrote: > > On 26 March 2012 09:44, Iain Buclaw wrote: > > > A spork of druntime, yes. > > > > A spork? I've never heard that before... > > http://en.wikipedia.org/wiki/Spork > > Not that it has

Re: Interesting Memory Optimization

2012-03-18 Thread Kevin Cox
On Mar 18, 2012 4:50 PM, "Peter Alexander" wrote: > Neither do I, but it's more work for the compiler, and even if the compiler does string pooling, it may not look for common suffixes. It would be more work but it would have memory and cache benefits. If you stored created a set of strings ord

Re: Implicit integer casting

2012-03-18 Thread Kevin Cox
On Mar 18, 2012 3:09 PM, "Manu" wrote > int x = 123456; > x &= 0xFF; // x is now in range 0..255; now fits in a ubyte > ubyte y = x; // assign silently, cast can safely be implicit This is related to Go's infinitely sized constants. If an expression produces a value out of range then brings it b

Re: Interesting Memory Optimization

2012-03-16 Thread Kevin Cox
On Mar 16, 2012 7:45 AM, "Alex Rønne Petersen" wrote > > I don't see any reason why c couldn't point to element number 3 of b, and have its length set to 3... > > -- > - Alex And the previous examples were language agnostic. In D and other languages where the length of a string is stored we can

Re: Interesting Memory Optimization

2012-03-15 Thread Kevin
On 03/15/2012 10:35 PM, Alex Rønne Petersen wrote: On 16-03-2012 03:31, Xinok wrote: I'm pretty sure this is called string pooling. Right. Most compilers do it. Cool. You learn something every day.

Re: Changing the name of the language?

2012-03-15 Thread Kevin
On 03/15/2012 10:17 PM, ixid wrote: Do you think a minor renaming like using Dlang as the name consistently would be damaging? Yes, Call it D. But use Dlang whenever you talk/write about it. And Dlang sounds silly. Go is still Go even though they site Golang whenever it is mentioned.

Interesting Memory Optimization

2012-03-15 Thread Kevin
7;t think it would apply very often but it would be kinda cool. I thought of this because I wanted to pre-generate hex-representations of some numbers I realized I could use half the memory if I nested them. (At least I think it would be half). Kevin.

Re: Changing the name of the language?

2012-03-15 Thread Kevin Cox
On Mar 15, 2012 9:25 PM, "ixid" wrote: > > D is a very poor name for a language I like dpl and post tagged with it would turn up pretty well in google. But, as dlang is the website I think that is the best. Most blogs and fourms have a tag feature and you could always just say it in your post. "

Re: Tuple unpacking syntax [Was: Re: Multiple return values...]

2012-03-13 Thread Kevin Cox
Kind of unrelated but I think that it is important to have a way to ignore values also. Leaving them bank would sufice. (int i,,float f) = intBoringFloat();

Re: How about colors and terminal graphics in std.format?

2012-03-12 Thread Kevin Cox
On Mar 12, 2012 7:55 PM, "Damian Ziemba" wrote > And yea, I think like others that it should have its own module like std.terminal/std.console or maybe somekind of spot in std.stdio. Python has a great lib for this. I can't remember what package it is in but it has things like isTty() and all of

Re: DDoc and logically structured HTML

2012-03-10 Thread Kevin Cox
On Mar 10, 2012 8:10 PM, "Stewart Gordon" wrote> > I don't know how far we can go short of a doclet system like JavaDoc has. Nor even how exactly a doclet system would work under a language that compiles to native code > > Stewart. I hate to say it but I think the ddoc system was way overtho

Re: Multiple return values...

2012-03-09 Thread Kevin Cox
On Mar 9, 2012 10:28 AM, "H. S. Teoh" wrote: > > On Fri, Mar 09, 2012 at 03:27:14PM +0100, Timon Gehr wrote: > > On 03/09/2012 01:23 AM, Manu wrote: > [...] > > >int x; ... (x, float y) = func(); // assign to predeclared variable(/s)? > > >(x, , z) = func(); // ignore the second result value (elim

Re: Whats up with the domains?

2012-03-03 Thread Kevin Cox
On Mar 3, 2012 5:26 AM, "David Nadlinger" wrote: > > On Saturday, 3 March 2012 at 05:12:31 UTC, Kevin wrote: >> >> AFAIK they are mirrors of each other, would it be best to make one a redirect (smart, on a per-page level). > > > This already happened after t

Re: My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
On Sat, Mar 3, 2012 at 12:09 AM, Xinok wrote: > http://ddili.org/ders/d.en/**ranges.html<http://ddili.org/ders/d.en/ranges.html> > Thanks for the great link. And thanks everyone for your help. I can't believe I missed ranges as they are exactly what I wanted. Kevin

Whats up with the domains?

2012-03-02 Thread Kevin
affic will definitely help. Also that search-bar that always points to d-programming-language.org is probably helping it's ranking. Kevin

Re: My Issues with Slices and AAs

2012-03-02 Thread Kevin
hmm bed time, no time for long explanations. Is there something on ranges that is more of a write-up. Something to explain purpose, implementation, usage, ...? Or if not some code that makes good use of ranges? Thanks, Kevin

Re: My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
at slow them down? And, if so where is the slowdown? Is it in the interfaces? -Kevin

My Issues with Slices and AAs

2012-03-02 Thread Kevin Cox
ram is wired for AAs. In, conclusion. (Tl:Dr) slices and AAs do not allow polymorphism and therefore are decreasing the power and flexibility of D. I hope to hear your opinions, Kevin.

Re: Poll of the week: main OS and compiler

2012-03-01 Thread Kevin Cox
On Mar 1, 2012 11:11 AM, "Manu" wrote: > > Windows leads. Amazing! > > COFF + 64bit plz! ;) > > > On 1 March 2012 16:40, Marco Leise wrote: >> >> Since everyone loves polls, and the question comes up now and then: What is your main development platform for D ? >> >> http://www.easypolls.net/poll.

Re: Unittest compiling into file with main.

2012-02-26 Thread Kevin
On 02/26/2012 09:43 PM, James Miller wrote: I'm just guessing here, but that seems the most likely way, basically, any other way would cause even more unintuitive behavior... I see what you are saying. A quirk that causes reliability and predictability. I guess the other way around could surp

Unittest compiling into file with main.

2012-02-26 Thread Kevin
I was playing arround with compiling and found that my unittest were getting compiled into the file that has main() rather than the file they were defined in. Is this the intended result and, if so why? Example: unittest are in unit.d, main() is in main.d. $ dmd -c unit.d $ dmd -c -unittest m

Re: Conclusions of the exception discussion

2012-02-25 Thread Kevin Cox
I think there should also be multiple catches so that you can deal with different exceptions different ways without trying to upcast them over and over again. On Feb 25, 2012 1:30 AM, "Daniel Murphy" wrote: > "Jonathan M Davis" wrote in message > news:mailman.93.1330149312.24984.digitalmar...@pu

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Kevin Cox
Although I agree that sources and objects should be sperated there are some benifits. All tools know where to look for the objects. And is not dificult to keep out of scm. A great example of this is Haskell. To compile an app you only need to specify the main file and it finds all the included

Re: size_t + ptrdiff_t

2012-02-20 Thread Kevin Cox
What if te compiler was allowed to optimist to larger types? The only issue is if pulled rely on overflowing. That could be fixed by add in a type with a minimum size specified. This is kind of like C's fast int type. On Feb 20, 2012 8:20 AM, "Regan Heath" wrote: > On Mon, 20 Feb 2012 11:28:44

Re: Why is there no or or and ?

2012-02-19 Thread Kevin Cox
Vb yes, python kinda. Vb is designed for people who don't want to program. The idea is to create a quick application that gets two job done. Python is slightly different. It has a ton of syntax and all the libraries that it needs to be used in moderately sized project. Python comes across as b

Re: Appender and CTFE

2011-03-04 Thread Kevin Bealer
re rare enough > to not cause undue maintenance burden. > > Andrei Regarding maintenance burden, it should be easy to test the correctness of such code: in a unit test: enum a = f(...); assert(a == f(...)); Kevin

Re: Is @property implementable?

2011-03-04 Thread Kevin Bealer
sn't work with virtual functions, so the method syntax is nicer for that. So UFCS is justified to make arrays 'look like classes' to template code. But it's not justified in my opinion to make classes look like classes with one more method. Kevin

Re: std.parallelism: Call for benchmarks

2011-02-26 Thread Kevin Bealer
'Futurism' library that I wrote when exploring Futures for D a few years ago, it's on dsource. Feel free to use whatever you find in there... There might be some other examples but I don't remember off hand. Kevin

uniqueness propagation

2011-02-24 Thread Kevin Bealer
l be required to forbid a particular expression since it breaks the rules. Kevin

Re: Uh... destructors?

2011-02-23 Thread Kevin Bealer
== Quote from Kevin Bealer (kevindangerbea...@removedanger.gmail.com)'s article > == Quote from bearophile (bearophileh...@lycos.com)'s article > ... > > Currently you are able to write functions like: > > pure bool randomPure() { > > int[] a1 = new in

  1   2   >