Re: UI Library

2022-05-19 Thread Craig Dillabaugh via Digitalmars-d-learn

On Friday, 20 May 2022 at 02:37:48 UTC, harakim wrote:
I need to write a piece of software to track and categorize 
some purchases. It's the kind of thing I could probably write 
in a couple of hours in C#/Java + html/css/javascript. However, 
something keeps drawing me to D and as this is a simple 
application, it would be a good one to get back in after almost 
a year hiatus.


[...]


Maybe you can use minigui from arsd

https://github.com/adamdruppe/arsd


Re: Google Summer of Code -- An Apology

2022-03-07 Thread Craig Dillabaugh via Digitalmars-d-announce

On Saturday, 5 March 2022 at 01:33:16 UTC, Mike Parker wrote:
Several weeks ago, I received an email from Google informing me 
that the application period for the 2022 Summer of Code was 
approaching. I made a mental note, then went back to whatever I 
was in the middle of at the time without making any other kind 
of note. Then I completely forgot about it.


The end result is that I missed the deadline for mentor 
organization applications. We won't be participating in GSoC 
this year.


I apologize to everyone for dropping the ball on this, 
especially those of you who were looking forward to getting 
into it this year.


I've already put a couple of reminders on my Calendar to 
prevent this from happening again next year.


Years ago I was the GSoC admin and I filled in all the forms and 
had everything set to go.  At the submission deadline I was up 
rather late completing the last set of forms.  I failed to notice 
one button on the final form of the submission that I had to 
click to complete the submission, and I thought everything was 
done. I only found out the next day that the the application 
hadn't been submitted.


Better luck next year.


Re: Release md v0.3.1

2021-05-08 Thread Craig Dillabaugh via Digitalmars-d-announce

On Friday, 7 May 2021 at 16:19:21 UTC, lempiji wrote:
I have created a tool that executes the code blocks included in 
Markdown.


http://github.com/lempiji/md




```

The syntax of dlang is not affected by indentation, and 
`import` can be written anywhere, so it was a very simple 
mechanism to achieve this.


However, there may be a better way. If you found it, please try 
to create it.


I think dlang ❤ Markdown


This is a really great idea.  Thanks for your work on this.


Re: Bug in std.json or my problem

2020-04-22 Thread Craig Dillabaugh via Digitalmars-d-learn
On Wednesday, 22 April 2020 at 18:35:49 UTC, CraigDillabaugh 
wrote:

On Wednesday, 22 April 2020 at 18:23:48 UTC, Anonymouse wrote:
On Wednesday, 22 April 2020 at 17:48:18 UTC, Craig Dillabaugh 
wrote:

clip


File an issue if you have the time, maybe it will get 
attention. Unreported bugs can only be fixed by accident.


I thought it might be worth filing a bug, but wanted to confirm 
if others thought this was actually a bug.  I had encountered 
an identical issue with vibe-d years ago.


Thanks for the feedback.


After some digging it appears there is already a fix for this 
(though a bit old) … maybe I am the only person who cares about 
std.json after all :o)


https://github.com/dlang/phobos/pull/5005/commits/e7d8fb83d2510b252cd8cfd2b744310de6fa84e5



Bug in std.json or my problem

2020-04-22 Thread Craig Dillabaugh via Digitalmars-d-learn
So perhaps I am the only person in the world using std.json, but 
I was wondering

if the following code should work.

=
import std.json;
import std.conv;
import std.stdio;

struct Person {
string name;
float income;

this (string name, float income) {
this.name = name;
this.income = income;
}

this(JSONValue js) {
this.name = to!string(js["name"]);
/* This next line crashes with .. JSONValue is not 
floating type.

 *  to!float( js["income"].toString()) works.
 */
this.income = js["income"].floating;
}

JSONValue toJSON() {
JSONValue json;
json["name"] = JSONValue(this.name);
json["income"] = JSONValue(this.income);
return json;
}
}


int main(string[] argv) {
Person bob = Person("Bob", 0.0);

string bob_json = bob.toJSON().toString();

Person sonofbob = Person(parseJSON(bob_json));

writeln(sonofbob.toJSON().toPrettyString());

return 0;
}
===

The crash is caused because the 'income' field with value 0.0 is
output as 0 (rather than 0.0) and when it is read this is 
interpreted

as an integer.

Shouldn't this work?


Re: How the hell to split multiple delims?

2020-02-15 Thread Craig Dillabaugh via Digitalmars-d-learn

On Saturday, 15 February 2020 at 11:32:42 UTC, AlphaPurned wrote:
I've tried 10 different ways with split and splitter, I've used 
all the stuff that people have said online but nothing works. I 
always get a template mismatch error.


Why is something so easy to do so hard in D?

auto toks = std.regex.split(l, Regex("s"));
auto toks = std.regex.splitter(l, Regex("s"));
auto toks = std.regex.splitter(l, ctRegex!r"\.");


I had the same problem myself recently, and almost ended up here 
to ask the same question as you but stumbled across the following 
(ugly) solution without using regexs.


char[] line = "Split this by#space or#sign."

auto parts = line.splitter!(a => a=='#' | a==' ').array;






Re: To learn D

2019-07-05 Thread Craig Dillabaugh via Digitalmars-d-learn

On Friday, 5 July 2019 at 12:00:15 UTC, Binarydepth wrote:
I've considering learning full D. I remembered that D is not 
recommended as a first language, So I read time ago.


So my question, is learning C and Python a good intro before 
learning D?


TY


Ali's book is targeted at beginners (see link below).  I don't 
see why D wouldn't make a good first language.  If your objective 
is to learn D, then I don't think learning C or Python is going 
to be help that much.  Obviously if you know C/Python you can 
learn D more quickly, but I doubt the effort is worth it if D is 
the ultimate goal.


http://ddili.org/ders/d.en/index.html


Re: The D Programming Language has been accepted as a GSoC 2019 organization

2019-02-27 Thread Craig Dillabaugh via Digitalmars-d-announce

On Tuesday, 26 February 2019 at 22:34:45 UTC, Seb wrote:

Hi all,

I have some very exciting news to share.

[...]


Congratulations on being excepted this year. In addition to the 
'free' work for the community this is also a great way to draw in 
new talent.


Re: a van Emde Boas tree

2019-02-05 Thread Craig Dillabaugh via Digitalmars-d-announce

On Tuesday, 5 February 2019 at 15:28:04 UTC, Alex wrote:

Hi all,
my van Emde Boas tree finally reached an announceable state, at 
version 0.12.0.



clip


All tickets are welcome of course and will be managed in my 
spare time.


Link?


Re: auto: useful, annoying or bad practice?

2018-05-01 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 30 April 2018 at 21:11:07 UTC, Gerald wrote:
I'll freely admit I haven't put a ton of thought into this post 
(never a good start), however I'm genuinely curious what 
people's feeling are with regards to the auto keyword.


Speaking for myself, I dislike the auto keyword. Some of this 
is because I have a preference for static languages and I find 
auto adds ambiguity with little benefit. Additionally, I find 
it annoying that the phobos documentation relies heavily on 
auto obscuring return types and making it a bit more difficult 
to follow what is happening which gives me a bad taste for it.



clip


So I'm curious, what's the consensus on auto?


As some have pointed out, it certainly has value. For example, in 
functions returning ranges, etc. where you wouldn't want to have 
to write out the whole type.


However, as an infrequent D user I admit I prefer to see the 
actual type where it is feasible, as I find 'auto' is a barrier 
to understanding to someone who isn't familiar with a particular 
piece of code.  I would never use auto in place of a basic type.




Re: GDB + ddemangle

2018-04-19 Thread Craig Dillabaugh via Digitalmars-d-announce

On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote:
Hello! I've written a piece of glue code that helps to debug D 
code using GDB. The code glues together GDB and ddmangle. 
Checkout the link https://github.com/ANtlord/gdb-ddemangle


PRs are welcome!


Nice work.


Re: GSOC 2018 - no slots for D

2018-02-13 Thread Craig Dillabaugh via Digitalmars-d
On Tuesday, 13 February 2018 at 13:33:00 UTC, Andrei Alexandrescu 
wrote:

On 02/12/2018 08:20 PM, Jakub Łabaj wrote:

https://summerofcode.withgoogle.com/organizations/
Seems like we didn't make it this year :(

Is there any feedback from Google when they don't accept an 
organisation? Do you think that maybe they don't perceive D as 
a viable option or just the projects could have been defined 
better?


Google does not provide feedback to rejected organizations. Far 
as I can imagine approval depends on a number of imponderables 
such as the person who does the review etc.


GSoC 2018 was not a considerable part of our plans so we are 
not affected negatively.


I'd like to take this opportunity to thank Seb who worked on 
the application. It was stronger than in past years (including 
those when we've been accepted).



Andrei


I also want to thank Seb for the excellent work he did on this 
year's application. It looked really solid, so I am a bit 
disappointed it didn't get accepted, but I am sure D will carry 
on without Google's money just fine.  Being a big fan of 
conspiracy theories I personally think it was blocked by the Go 
folks :o)


Re: Old but interesting link as to the low adoption reason for D

2018-02-12 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 12 February 2018 at 21:42:25 UTC, Bo wrote:

https://www.reddit.com/r/ProgrammingLanguages/comments/4etdnc/free_pascal_is_very_super_mega_ultra_underrated/

Ignore the part about Pascal and read the Post by matthieum:


[...]


Here are some of the comments:


[...]


This is part of the issues that D faces. Especially that last 
sentence... "bring a significant benefit".


And some other user his responds:


[...]


Public image is very important ... Its not the first time 
stumbling on comments like this.


So what is your suggested course of action to correct this PR 
problem?


Re: more OO way to do hex string to bytes conversion

2018-02-06 Thread Craig Dillabaugh via Digitalmars-d-learn
On Wednesday, 7 February 2018 at 03:25:05 UTC, rikki cattermole 
wrote:

On 06/02/2018 8:46 PM, Craig Dillabaugh wrote:

On Tuesday, 6 February 2018 at 18:46:54 UTC, H. S. Teoh wrote:

[...]

clip

[...]

clip

[...]


Wouldn't it be more accurate to say OO is not the correct tool 
for every job rather than it is "outdated".  How would one 
write a GUI library with chains and CTFE?


But you could with signatures and structs instead ;)


I am not sure how this would work ... would this actually be a 
good idea, or are you just saying that technically it would be 
possible?


Re: more OO way to do hex string to bytes conversion

2018-02-06 Thread Craig Dillabaugh via Digitalmars-d-learn

On Tuesday, 6 February 2018 at 18:46:54 UTC, H. S. Teoh wrote:
On Tue, Feb 06, 2018 at 06:33:02PM +, Ralph Doncaster via 
Digitalmars-d-learn wrote:

clip


OO is outdated.  D uses the range-based idiom with UFCS for 
chaining operations in a way that doesn't require you to write 
loops yourself. For example:


import std.array;
import std.algorithm;
import std.conv;
import std.range;

// No need to use .toStringz unless you're interfacing with C
auto hex = "deadbeef";// let compiler infer the type for you

	auto bytes = hex.chunks(2)	// lazily iterate over `hex` by 
digit pairs

   .map!(s => s.to!ubyte(16))// convert each pair to a ubyte
   .array;  // make an array out of it

// Do whatever you wish with the ubyte[] array.
writefln("%(%02X %)", bytes);


clip

T


Wouldn't it be more accurate to say OO is not the correct tool 
for every job rather than it is "outdated".  How would one write 
a GUI library with chains and CTFE?


Second, while 'auto' is nice, for learning examples I think 
putting the type there is actually more helpful to someone trying 
to understand what is happening. If you know the type why not 
just write it ... its not like using auto saves you any work in 
most cases. I understand that its nice in templates and for 
ranges and the like, but for basic types I don't see any 
advantage to using it.





Re: Best SQL library to use with local desktop app

2018-01-03 Thread Craig Dillabaugh via Digitalmars-d

On Wednesday, 3 January 2018 at 21:12:54 UTC, wakhshti wrote:
On Wednesday, 3 January 2018 at 16:38:27 UTC, Craig Dillabaugh 
wrote:

On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote:



clip



this is main.d content:


import std.stdio;
import sqlite;

void main(string[] args){

auto db = new SQLite3("datafile.db");

}


when i run :

dmd main.d

i get this error:

D:\ashit\document\DlangIDE\database\db>dmd main.d
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
main.obj(main)
 Error 42: Symbol Undefined _D6sqlite7SQLite36__ctorMFAyaZCQBdQz
main.obj(main)
 Error 42: Symbol Undefined _D6sqlite7SQLite37__ClassZ
Error: linker exited with status 2


what to do ?
i also downloaded new dmd but nothing seems going well.


Looks like you are up and running with Adam's stuff, but if you 
wanted to use the sqlite3 library I would suggest you use 'dub' 
to do the build as sqlite3 is in code.dlang.org.  An example form 
my own project:


dub.sdl
-
name "blah"
description "An application that uses sqlite3 library.."
authors "Craig Dillabaugh"
copyright "Copyright © 2017, Craig Dillabaugh"
license "Whatever"
dependency "sqlite3" version="~>1.0.0"





Re: Best SQL library to use with local desktop app

2018-01-03 Thread Craig Dillabaugh via Digitalmars-d

On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote:


what is best (SQLite?) @small @local @offline database library 
to use in D?


and also what about a simple GUI library ? (once there was a 
library named DFL, but i never could get it to run).


I've used sqlite3 library:

http://code.dlang.org/packages/sqlite3

and it has worked well for me. Documentation is brief, but has a 
clean API and relatively easy to use.  However, there is small 
bug in the support for floating point values if you need that.  I 
submitted a patch but don't think it has made its way into the 
main repository.


Re: GSoC 2018 - Your project ideas

2017-12-11 Thread Craig Dillabaugh via Digitalmars-d-announce
On Monday, 11 December 2017 at 09:14:29 UTC, Martin Tschierschke 
wrote:
On Friday, 8 December 2017 at 06:43:22 UTC, Dmitry Olshansky 
wrote:
On Thursday, 7 December 2017 at 22:26:08 UTC, Bastiaan Veelo 
wrote:

On Tuesday, 5 December 2017 at 18:20:40 UTC, Seb wrote:
I am looking forward to hearing (1) what you think can be 
done in three months by a student and (2) will have a huge 
impact on the D ecosystem.


[2] https://wiki.dlang.org/GSOC_2018_Ideas


I see there is a dub section in [2]. Maybe another issue that 
has been brought up repeatedly fits in that category, namely 
extending code.dlang.org in various ways?


+

Indeed enhancing user experience of code.dlang.org such as 
showing github stars and e.g. downloads per month would be way 
more important then build tool itself.


+10^^4

I recommend to add a "donate for button", and to evaluate and 
visualize how many people are donating, for a certain package. 
This might give strong evidence where to invest more time - man 
power.
In the first step the D Foundation should get all money and 
should try to use it to support the most often selected 
packages, to avoid loosing focus.


Martin, I am replying to your post specifically, but this reply 
is targeted at the 'code.dlang.org' discussion in general.


Improvements to code.dlang.org are going to be borderline 
ineligible for a GSoC project.  Any such project would have to be 
carefully crafted so that it is a development project and not a 
website maintenance/upgrading project. In any case this work can 
likely be made into something valid, but the project would need 
involve a cohesive development effort and not a series of minor 
improvements (even if they mostly involved coding).


Re: Object oriented programming and interfaces

2017-12-04 Thread Craig Dillabaugh via Digitalmars-d-learn

On Monday, 4 December 2017 at 20:43:27 UTC, Dirk wrote:

Hi!

I defined an interface:

interface Medoid {
float distance( Medoid other );
uint id() const @property;
}

and a class implementing that interface:

class Item : Medoid {
float distance( Item i ) {...}
uint id() const @property {...}
}

The compiler says:
Error: class Item interface function 'float distance(Medoid 
other)' is not implemented


Is there a way to implement the Item.distance() member function 
taking any object whose class is Item?


Interfaces are expected to implement static or final functions. 
See #6 at:


https://dlang.org/spec/interface.html

interface Medoid {
static float distance( Medoid other );
uint id() const @property;
}


class Item : Medoid {
static float distance( Item i ) { return 0.0f; }
uint id() const @property { return 1; }
}


Re: [OT] Windows dying

2017-11-03 Thread Craig Dillabaugh via Digitalmars-d

On Friday, 3 November 2017 at 18:26:54 UTC, Joakim wrote:

On Friday, 3 November 2017 at 18:08:54 UTC, 12345swordy wrote:

On Friday, 3 November 2017 at 17:25:26 UTC, Joakim wrote:


Most programmers will one day be coding on mobile devices, 
though I admit I'm in a small, early-adopting minority now:


http://bergie.iki.fi/blog/six-weeks-working-android/



A blog post is not evidence that the majority of programmers 
will be coding on mobile devices.


Yes, but it is evidence of what I said, that "I'm in a small, 
early-adopting minority now."  I don't know how you expect 
evidence for something that _will_ happen, it's a prediction 
I'm making, though based on current, rising trends like all 
those in this feed:


https://mobile.twitter.com/termux


I don't really care if the device crunching the numbers is a 
smartphone or a mainframe as long as it is fast enough and:


1) I can do my work with a regular size keyboard and large 
monitor.
2) I can use whatever applications I want be it a CLI or some GUI 
app.
3) I can install/execute VMs on my device of choice without 
running

out of memory.
4) My data isn't monitored, controlled, owned, or data-mined by 
some large corporation.
5) I can easily move my data, etc. to another device if I decide 
to.

6) I can use it to play any DVD's that I own (don't have a TV).
7) I can't easily lose my computing device :o)

How far off do you think mobile devices are off providing this 
type of experience, or are they already there in your mind?  What 
about #7.




Re: Simple web server benchmark - vibe.d is slower than node.js and Go?

2017-11-03 Thread CRAIG DILLABAUGH via Digitalmars-d
On Friday, 3 November 2017 at 18:44:30 UTC, Arun Chandrasekaran 
wrote:

On Monday, 30 October 2017 at 17:23:02 UTC, Daniel Kozak wrote:

Maybe this one:



  clip

vibedtest ~master: building configuration "dmd"...
Linking...
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -levent_pthreads
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
dmd failed with exit code 1.
03-11-2017 11:35:10 arun-desk-r7 
~/code/personal/d/simple-web-benchmark

$


Perhaps you need to install the libevent development package on 
your system (libevent-dev or something similar).


Re: OOP Design Pattern examples in D

2017-08-15 Thread CRAIG DILLABAUGH via Digitalmars-d-announce

On Tuesday, 15 August 2017 at 10:38:44 UTC, thinwybk wrote:
I created a project on GitHub 
(https://github.com/fkromer/d-design-patterns) which shall end 
up containing examples of all common OOP design patterns 
implemented in D. D beginners should be able to run the 
examples easily with rdmd. (That's the reason why patterns 
should reside in a single file.) If D-specific implementations 
are reasonable they are favored about the generic OOP 
implementation variants. Feel free to come round...


Interesting idea, I will try to pop in from time to time.


Re: Help with an algorithm!

2017-06-15 Thread CRAIG DILLABAUGH via Digitalmars-d-learn

On Thursday, 15 June 2017 at 13:41:07 UTC, MGW wrote:
On Thursday, 15 June 2017 at 13:16:24 UTC, CRAIG DILLABAUGH 
wrote:


The purpose - search of changes in file system.
Sorting is a slow operation as well as hashing. Creation of a 
tree, is equally in sorting.

So far the best result:

string[] rez;

foreach(str; m2) {
bool fFind; int j;
foreach(int i, s; m1) {
if(str == s) { fFind = true; j = i; break; }
}
if(!fFind) { rez ~= str; }
else   {m1[j] = m1[$-1]; m1.length = m1.length - 1; }
}

//  rez => rezult

How to parallel on thred?


radix sort is O(N) time, which is as fast as you can hope. But 
given your specific problem domain (the strings are paths) an 
initial radix sort step likely won't gain you much, as everything 
is going to be sorted into a small subset of the buckets. So I 
guess you can scrap that idea.


Knowing that your strings are actually file paths I think 
building some sort of tree structure over M1 wouldn't be 
unreasonable. You say go two or three levels deep on your 
directory structure (ie nodes are labelled with directory name) 
and use that to split M1 into buckets. If some bucket has too 
many entries you could apply this recursively. Since you are only 
building a constant number of levels and the number of nodes is 
not likely to be too large you should do much better than N log N 
* c time for this step.


Then you search with the elements of M2. You should be able to do 
this in a multi-threaded way since once built, your data 
structure on M1 is read-only you could just split M2 over X 
threads and search. I am not an expert in this regard though, so 
perhaps someone better informed than I can chime in.


Since strings will tend to have long common prefix's Ivan's Trie 
idea would also work well.








Re: Help with an algorithm!

2017-06-15 Thread CRAIG DILLABAUGH via Digitalmars-d-learn

On Thursday, 15 June 2017 at 11:48:54 UTC, Ivan Kazmenko wrote:

On Thursday, 15 June 2017 at 06:06:01 UTC, MGW wrote:
There are two arrays of string [] mas1, mas2; Size of each 
about 5M lines. By the size they different, but lines in both 
match for 95%. It is necessary to find all lines in an array 
of mas2 which differ from mas1. The principal criterion - 
speed. There are the 8th core processor and it is good to 
involve a multithreading.


The approaches which come to mind are:


clip

taking constant time.

Ivan Kazmenko.


As a follow up to this, if your alphabet is reasonably small 
perhaps could run radix sort based on the first few characters to 
split your arrays up into smaller subsets, and then use one of 
Ivan's suggestions within each subset.  Subset searches could be 
easily run in parallel.


Re: Independent Study at my university using D

2017-03-06 Thread Craig Dillabaugh via Digitalmars-d-announce

On Friday, 3 March 2017 at 19:00:00 UTC, Jeremy DeHaan wrote:
Something pretty exciting happened yesterday: I registered for 
an independent study to build a basic garbage collector in D at 
my university.


This is exciting for me because I really enjoyed the work I did 
during the last GSoC, so I'm hoping to learn more about garbage 
collection and contribute to D's garbage collector more in the 
future.


This is especially exciting for the D community because my 
professor wants me to give a presentation at the end, which 
will expose more professors and students to this language. I 
don't have many details about it, but I'm hoping to have it 
recorded so it can be posted.


Congratulations, and good luck.  Look forward to hearing how 
things go.


Re: Why don't you advertise more your language on Quora etc ?

2017-03-01 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 1 March 2017 at 08:12:05 UTC, Nick Sabalausky 
(Abscissa) wrote:

On 02/28/2017 06:29 PM, Jared Jeffries wrote:

What's quora?

(It's really hard to always keep on top of all the latest tread 
sites/appz/whatever. It's all so fly-by-night.)


Quora is a general Q forum and hang-out for narcissistic 
know-it-alls. In fairness, the answers are typically of high 
quality, and there are definitely some smart folks on there.  By 
I get turned off by folks who do things like list their IQ or 
Mensa membership in their personal profiles, or post about their 
sexual exploits.


However the forum does often answer some highly important and 
relevant questions.  My favorite so far was the "If I wanted to 
jump from an airplane flying at 30,000 feet with nothing but 
bubble wrap for protection, how much would I need?"



Since you are no doubt curious, I believe the answer was you 
would need to be wrapped in a ball about 4m in radius.  They 
never explained how you would get that on the plane though.


Re: GSoC 2017 Application Rejected

2017-02-10 Thread CRAIG DILLABAUGH via Digitalmars-d-announce

On Friday, 10 February 2017 at 19:37:20 UTC, bachmeier wrote:
On Friday, 10 February 2017 at 19:00:54 UTC, CRAIG DILLABAUGH 
wrote:

Hello D Community


clip


Regards

Craig


Thanks for your effort. If someone else doesn't like it, well, 
I guess I don't remember a big competition among volunteers for 
the position.


You are welcome.  Even though I am unlikely to be fired it was 
disappointing and I know a number of people were excited, and 
were looking forward to this. Last year's success set the bar 
pretty high. At least the mentors and such will now have some 
extra time to devote to other worthwhile D projects over the 
summer.


Craig


Re: GSoC 2017 Application Rejected

2017-02-10 Thread CRAIG DILLABAUGH via Digitalmars-d-announce
On Friday, 10 February 2017 at 20:21:56 UTC, Joseph Rushton 
Wakeling wrote:

Hi Craig,

So sorry to hear that this happened.  I know very well from 
working with you last year how much care and attention you put 
into GSoC, so I can imagine how you must feel right now.


In the circumstances it seems best to focus on: how could we 
try to stop something like this happening again?  One thing 
that occurs to me is that it might be a good idea for the email 
address through which the application is submitted to forward 
to a couple of other people, who could step in should there be 
an emergency like this (with the principle being, whoever gets 
such an emergency alert deals with it ASAP, unless they hear 
that it's dealt with from the other people involved).


What do you think?

Best wishes,

-- Joe


Joe good point.  The first thing I thought after this happened is 
'what should I do to prevent this from happening again?' We are 
supposed to have a backup administrator.  I had added an email 
(for backup admin) to the admin list but while the individual 
confirmed his interest to me I don't know if he confirmed with 
Google (they send an invite when you register someone).  Perhaps 
they would have pinged him too had the invite been accepted, but 
I am not sure, I will ask the Google folks.


In any case, next year I will make sure we have one or two backup 
admins signed up well ahead of time who could act as a backup for 
submission even if that was all they had to do.


Cheers

Craig




GSoC 2017 Application Rejected

2017-02-10 Thread CRAIG DILLABAUGH via Digitalmars-d-announce

Hello D Community

Just coming here to inform everyone that our D application for 
GSoC 2017 was sadly rejected.  Unfortunately (for me) it is 
completely my fault, I failed to fill out one line on one of the 
three forms that comprised the application.  Even more 
frustrating I went online on the 8th to make sure that everything 
was in order and I noticed and filled in the offending line. 
However I must have either failed to hit 'save' or the save 
itself failed (I will assume the later since that makes me look 
less incompetent).


To make matters worse I got an automated email from Google at 3am 
the morning of the deadline warning me, but since I had a 
particularly busy day at work on the 9th I didn't get a chance to 
check my email until shortly after noon on Feb 9th. At which 
point it was too late.


So I want to apologize to the D community for this mix up on my 
part, and in particular to those who invested time in helping get 
ready for this year's GSoC and to you students who were looking 
forward to applying.  However, for anyone who did work on the 
Ideas page that can at least be re-used and we now have a much 
fuller list.


Regards

Craig


GSoC Needs Mentors

2017-02-06 Thread Craig Dillabaugh via Digitalmars-d

Hi All

I want to put out a call for mentors for the 2017 Google Summer 
of Code.  I've heard back from a few of you but still only have 
about 3 mentors officially confirmed.  Perhaps some of the past 
mentors are assuming that I know you are willing to do it again, 
but I don't like to put anyone's name down as an official mentor 
unless I have confirmation that you can definitely help out this 
year.


One of the application questions that Google is asking this year 
is how many mentors we have lined up so it is important that I 
can write a number > 3 in there!


If you haven't mentored before but are interested please get in 
touch. Have a look at the Idea's page too to see what you might 
be interested in working on.  The page is still under 
construction and I've had a few new ideas submitted that I 
haven't yet added, but they should be up shortly:


https://wiki.dlang.org/GSOC_2017_Ideas

Cheers

Craig




Re: GSoC Project Idea's Part 2

2017-02-03 Thread CRAIG DILLABAUGH via Digitalmars-d
On Friday, 3 February 2017 at 04:14:58 UTC, rikki cattermole 
wrote:

On 03/02/2017 5:12 PM, Craig Dillabaugh wrote:
So the GSoC ideas page is now at least partially complete, you 
can find

it here:

https://wiki.dlang.org/GSOC_2017_Ideas

In the previous thread some of you (Rikki, Adam) had suggested 
some

improvements to dub/the code.dlang.org website.  Either of you
interested in mentoring something around that?


I'm quite busy this semester, so I am unavailable.

So new project ideas are welcome, and feel free to post any 
ideas you
have here for comment.  Also we need mentors so if you post a 
new
project, or see one on the existing ideas page please feel 
free to offer

your services as a mentor.

The application process finishes on Feb. 9th.

Cheers

Craig


FYI there has been a few people asking about GSOC on #D, any 
chance you could hang out there so if anybody turns up you can 
help em' out?


I will make a point of going on #D whenever I can over the coming 
weeks, but that may be limited.  Anyone please feel free to 
direct students to our ideas page (where they can find my email 
address).  I tend to do a better job of answering emails.




GSoC Project Idea's Part 2

2017-02-02 Thread Craig Dillabaugh via Digitalmars-d
So the GSoC ideas page is now at least partially complete, you 
can find it here:


https://wiki.dlang.org/GSOC_2017_Ideas

In the previous thread some of you (Rikki, Adam) had suggested 
some improvements to dub/the code.dlang.org website.  Either of 
you interested in mentoring something around that?


So new project ideas are welcome, and feel free to post any ideas 
you have here for comment.  Also we need mentors so if you post a 
new project, or see one on the existing ideas page please feel 
free to offer your services as a mentor.


The application process finishes on Feb. 9th.

Cheers

Craig




Re: GSoC 2017 Ideas!

2017-01-24 Thread CRAIG DILLABAUGH via Digitalmars-d
I wanted to ask if anyone knows if there is a way to add links to 
PDF documents to the Wiki.  I want to post some successful past 
proposals, but the Wiki only seems to want to let me upload a 
small number of formats, with PDF not being one of them.





Re: GSoC 2017 Ideas!

2017-01-21 Thread Craig Dillabaugh via Digitalmars-d

On Sunday, 15 January 2017 at 05:17:10 UTC, Adam D. Ruppe wrote:
On Sunday, 15 January 2017 at 04:11:06 UTC, Craig Dillabaugh 
wrote:
I've been trying to find something on this, but haven't yet, 
but I am not sure if website work would be considered 
appropriate.


The website is still a program, and the ranking algorithm is, 
well, an algorithm, so it is code; the student would likely be 
researching, experimenting, perhaps gathering data, and 
ultimately, submitting D code with the result.


Though, it wouldn't be a library like most the other accepted 
projects.


So there does seem to be significant support for something along 
these lines, anyone interested in mentoring this.




Re: GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d

On Saturday, 14 January 2017 at 16:20:06 UTC, Adam D. Ruppe wrote:
On Saturday, 14 January 2017 at 16:12:43 UTC, Adam D. Ruppe 
wrote:

but sorting by rating in search


I'm sorry, that was a run on sentence.

The big picture goal I'd like to see is that the package 
manager, or even a tutorial author for some topic, just take 
the choice away.


Sure, you can ignore its recommendation and look down the list, 
but it would be nice if you didn't have to; if there was one 
solid way to do what they want that is easy to find. End 
analysis paralysis.


Like on Amazon, where there's hundreds of options, but there's 
one with the five stars listed as #1 best seller at the top of 
the list, it is nice to stop evaluation and just hit buy. It 
kinda sucks to be the new competitor when the system is 
promoting the existing #1 but meh.


You also want to avoid cheating the system and manipulating the 
results, by either established slumlords or new guys wanting a 
leg up.



If the student can solve the design problem, the implementation 
might be easy. idk how Google would feel about trivial code 
with painful design, but that's the way a lot of software work 
is in the real world sooo I feel it is an applicable project.


I've been trying to find something on this, but haven't yet, but 
I am not sure if website work would be considered appropriate.  I 
know pure documentation is not acceptable, and seem to think the 
websites might fall in the same category - but I am not sure. I 
will keep looking.


Re: GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 14 January 2017 at 15:23:19 UTC, rikki cattermole 
wrote:

On 15/01/2017 4:19 AM, Craig Dillabaugh wrote:
So the ideas page is up for the 2017 GSoC.  Its a bit light on 
content.
Please feel free to use this forum thread to discuss any ideas 
you might

have for appropriate projects.

https://wiki.dlang.org/GSOC_2017_Ideas

Cheers

Craig


This year perhaps we should have something for dub.


What did you have in mind, new default language for the config 
file perhaps :o)?


GSoC 2017 Ideas!

2017-01-14 Thread Craig Dillabaugh via Digitalmars-d
So the ideas page is up for the 2017 GSoC.  Its a bit light on 
content.  Please feel free to use this forum thread to discuss 
any ideas you might have for appropriate projects.


https://wiki.dlang.org/GSOC_2017_Ideas

Cheers

Craig




Re: GSoC 2016 Postmortem

2017-01-13 Thread CRAIG DILLABAUGH via Digitalmars-d-announce

On Friday, 13 January 2017 at 13:12:19 UTC, Mike Parker wrote:
Craig Dillabaugh is ramping up for Google Summer of Code 2017. 
He took some time out to give a report on GSoC 2016 and 
recommendations for how to improve the process this year.


Blog:
https://dlang.org/blog/2017/01/13/the-d-language-foundation-google-summer-of-code-2016-postmortem/

Reddit:
https://www.reddit.com/r/d_language/comments/5nqi54/the_d_language_foundation_google_summer_of_code/


Thanks Mike for getting this posted.  Just noticed info on the 
2017 GSoC has been posted now.  Time to get back to work.


https://developers.google.com/open-source/gsoc/

Note that the 2017 Ideas page has been set up, its a little light 
on content at the moment:


https://wiki.dlang.org/GSOC_2017_Ideas


Re: D Blog Stats

2017-01-06 Thread Craig Dillabaugh via Digitalmars-d-announce

On Friday, 6 January 2017 at 14:54:45 UTC, Mike Parker wrote:
I've always enjoyed reading end-of-the year stats at other 
blogs. I thought it would be fun to do the same for the D Blog. 
If you've been curious about which posts visitors are viewing, 
or which links they're clicking, this post is for you.


https://dlang.org/blog/2016/06/03/recent-d-foundation-activities/


Hi Mike.  I was going to try and contact you directly, but since 
I've been unable to search down contact info on, I will post 
here.   I recently wrote a review of the 2016 GSoC (from admin 
perspective), and wanted to post it somewhere.  I thought perhaps 
a guest article on the blog might be appropriate - it isn't very 
exciting reading from a technical standpoint, but might be of 
general interest to the community. Anyway, if you would like me 
to submit it as a guest article that would to great, otherwise I 
will likely put it on the Wiki or on the forums.


You can contact me by email (or reply here) I have a gmail 
account: craig.dillabaugh


Google Summer of Code 2017

2016-12-26 Thread Craig Dillabaugh via Digitalmars-d-announce
I've now created the Google Summer of Code Idea's page for 2017.  
Its empty at the moment, awaiting all your wonderful ideas:


https://wiki.dlang.org/GSOC_2017_Ideas

You can edit the page directly, though I may edit any submitted 
ideas for the sake of consistency, grammar, etc.


Also, feel free to use this forum posting to start discussion on 
any ideas you may have for the upcoming year.


I hope to be posting my wrap-up on the very successful 2016 GSoC 
campaign soon.  I am a bit slow ...


Happy Holidays to everyone.

Craig


Please say hello to our third team member: Razvan Nitu

2016-10-21 Thread CRAIG DILLABAUGH via Digitalmars-d-announce

Welcome Razvan.




Re: we push flatbuffers for dlang support, no one to help?

2016-09-23 Thread CRAIG DILLABAUGH via Digitalmars-d

On Friday, 23 September 2016 at 11:08:51 UTC, Brian wrote:

the pull request:
https://github.com/google/flatbuffers/pull/3856

We are putao's huntstudio!
We help D language to develop some component support.
but, not have yours support???

Long before they have been submitted, but they have not been 
merged into the branch, flatbuffers is a part of the community, 
you have a little sense to participation? This community is 
only publish announcement?


My team spent a lot of time to support the development of the D 
language.


But the community is so cold?


This seems to suggest it is the D community that is holding this 
up, but looking at your GitHub page you have a significant input 
from (prominent) members of the D community.


Isn't your issue with Google?


Re: consequences of removing semicolons in D like in Python

2016-09-17 Thread Craig Dillabaugh via Digitalmars-d

On Saturday, 17 September 2016 at 13:18:24 UTC, eugene wrote:
On Saturday, 17 September 2016 at 13:11:50 UTC, Nick Sabalausky 
wrote:

On 09/16/2016 07:00 PM, eugene wrote:

Hello everyone,
what if to remove semicolons at the end of each line of code 
in D like

in Python?
Is it worth it?


Not worth it. Gripes about semicolons are a symptom of only 
seeing the superficial and not really understanding enough 
about languages to see what really is and isn't important. 
It's like dumping someone because you don't like the color of 
a dress they wore. Superficial, shallow, inconsequential 
bikeshed bullcrap, not even worth debating.


why?
groovy, for e.g., is ok without semicolons and with semicolons.
if there is a question of backward compatibility, is it 
possible to support semicolons?


Can you give a strong technical argument why we should get rid of 
the semicolons?  I personally quite like them, as do others, so I 
don't think "I don't like the looks of them" is a strong 
argument.  What would the language gain by losing the semi-colons.


Re: Why D is not popular enough?

2016-08-30 Thread CRAIG DILLABAUGH via Digitalmars-d

On Tuesday, 30 August 2016 at 14:19:02 UTC, Adam D. Ruppe wrote:
On Tuesday, 30 August 2016 at 14:11:56 UTC, Andrei Alexandrescu 
wrote:
Sadly if this doesn't float your boat you're unlikely to enjoy 
most of what D has to offer. -- Andrei


This might be the most wrong statement you have ever said on 
this forum.


D's biggest appeal to me is that it *doesn't* force me to use 
whatever bizarre style is popular this month. It is 
multiparadigm out of the box, and flexible enough to adapt to 
new paradigms as they happen.


I am going to vote with Adam here.  If memory serves me correctly 
what initially drew me in to the D language was a statement on 
the main page that "D is not a religion".  I think at the time I 
had been doing some work with Java, where everything had to be an 
object. Man, I hate Java for that.


Also, I think saying if you don't like functional programming you 
will miss 'most' of what D has to offer is really selling the 
language short.  After all you can write C or C++ style code in D 
if you want, which may be very attractive to some folks.





Re: The D Language Foundation is now a tax exempt non-profit organization

2016-08-29 Thread Craig Dillabaugh via Digitalmars-d-announce
On Monday, 29 August 2016 at 17:03:34 UTC, Andrei Alexandrescu 
wrote:
We're happy to report that the D Language Foundation is now a 
public charity operating under US Internal Revenue Code Section 
501(c)(3). The decision is retroactive to September 23, 2015.


This has wide-ranging implications, the most important being 
that individuals and organizations may make tax deductible 
bequests, devises, transfers, or gifts to the Foundation. We 
will mull over defining donation and sponsorship packages in 
the near future. If interesting in donating spontaneously, feel 
free to reach out to us via email at foundat...@dlang.org.


Many thanks are due to the folks in this community who asked 
for and supported this initiative.




Thanks,

Andrei


Thanks for your work on this Andrei.


Re: [OT] Create more debt == earn more

2016-08-02 Thread CRAIG DILLABAUGH via Digitalmars-d

On Tuesday, 2 August 2016 at 08:07:38 UTC, Basile B. wrote:
I was thinking about the value of what we do in the life, 
daily, the jobs, etc


I've endend with this conclusion:

The more you're able to create debt, the more you'll earn.
example, CIO: hudge pay, because your 1000 salaries will create 
a lot of debt. Architect, huge pay: your client will create a 
debt on 20 years, etc...you see the logic.


The more your job maintains the system the more it'll be 
renumerated.
The amount of money you earn is actually not proportional to 
your work, the amount of money you earn simply represents your 
ability to create debts.


What do you think about that ?


If this is true then politicians should be very well paid.


Re: Check of point inside/outside polygon

2016-07-27 Thread CRAIG DILLABAUGH via Digitalmars-d-learn

On Wednesday, 27 July 2016 at 14:56:13 UTC, Suliman wrote:

On Wednesday, 27 July 2016 at 12:47:14 UTC, chmike wrote:

On Wednesday, 27 July 2016 at 09:39:18 UTC, Suliman wrote:

clip


Sorry, its my issue I am thinging about polygons, but for me 
would be enought points.
The problem is next. I am writhing geo portal where user can 
draw shape. I need to get users images that user shape cross. 
But as temporal solution it would be enough to detect if image 
central point inside this polygon (I know its coordinates).


I can do its on DB level, but I would like to use SQLite that 
do bot have geometry support. So i am looking for any solution. 
I can use gdal but its _very_ heavy


So when you say you want polygon intersection, is one of the 
polygons you are interested in the shape of the images (ie. 
roughly a rectangle)?


If this is the case then you can likely just take the bounding 
rectangle (easily calculated) of your polygon and check if that 
intersects the bounding rectangle for the the image and that 
should work 95% of the time.




Re: Check of point inside/outside polygon

2016-07-27 Thread Craig Dillabaugh via Digitalmars-d-learn

On Wednesday, 27 July 2016 at 09:39:18 UTC, Suliman wrote:

On Wednesday, 27 July 2016 at 08:40:15 UTC, chmike wrote:
The algorithm is to draw a horizontal (or vertical) half line 
starting at your point and count the number of polygon edges 
crossed by the line. If that number is even, the point is 
outside the polygon, if it's odd, the point is inside.


Let (x,y) be the point to test and (x1,y1)(x2,y2) the end 
points on each segment. Let n be the number of crossing that 
you initialize to 0. (x1,y1)(x2,y2) are also the corners of 
the rectangle enclosing the segment.


You then have to examine each segment one after the other. The 
nice thing is that there are only two cases to consider.
1. When the point is on the left side of the rectangle 
enclosing the segment.

2. When the point is inside the rectangle enclosing

if (y1 <= y2)
{
if ((y1 <= y) && (y2 >= y))
{
   if ((x1 < x) && (x2 < x))
   {
  // case 1 : point on the left of the rectangle
  ++n;
   }
   else if (((x1 <= x) && (x2 >= x)) || ((x1 >= x) && (x2 
<= x)))

   {
  // case 2 : point is inside of the rectangle
  if ((x2 - x1)*(y - y1) >= (y2 - y1)*(x - x1))
  ++n; // Increment n because point is on the 
segment or on its left

   }
}
}
else
{
if ((y1 >= y) && (y2 <= y))
{
   if ((x1 < x) && (x2 < x))
   {
  // case 1 : point on the left of the rectangle
  ++n;
   }
   else if (((x1 <= x) && (x2 >= x)) || ((x1 => x) && (x2 
<= x)))

   {
  // case 2 : point is inside of the rectangle
  if ((x2 - x1)*(y - y2) >= (y1 - y2)*(x - x1))
  ++n; // Increment n because point is on the 
segment or on its left

   }
}
}

This algorithm is very fast.

I didn't tested the above code. You might have to massage it a 
bit for corner cases. It should give you a good push to start.


Big thanks!
Ehm... Now I should add iteration on array of points in first 
and second polygon? If it's not hard for you could you show how 
it should look please.


Easiest solution (if you don't care about performance) is to 
pairwise compare every segment of both polygons to see if they 
intersect, and if that fails, then run point-in-polygon algorithm 
with one vertex from each polygon and the other (catches the case 
where one polygon is entirely contained within the other).


Now you have the point in polygon algorithm (kindly provided by 
chmike) and testing for segment intersection is a basic primitive 
geometric operation, so there are lots of examples on the web.  
You should certainly be able to find working C code for this 
without much trouble.


Re: Atila Neves: "C IS NOT MAGICALLY FAST, PART 2"

2016-07-19 Thread Craig Dillabaugh via Digitalmars-d

On Tuesday, 19 July 2016 at 03:03:38 UTC, deadalnix wrote:

On Tuesday, 19 July 2016 at 02:54:37 UTC, Saurabh Das wrote:


Posted on Atila's blog yesterday:

https://atilanevesoncode.wordpress.com/2016/07/18/c-is-not-magically-fast-part-2/


Where is the part one ?


https://atilanevesoncode.wordpress.com/2015/08/24/c-is-not-magically-fast/


Re: AA with dynamic array value

2016-07-05 Thread Craig Dillabaugh via Digitalmars-d-learn

On Wednesday, 6 July 2016 at 02:33:02 UTC, ketmar wrote:
On Wednesday, 6 July 2016 at 02:19:47 UTC, Craig Dillabaugh 
wrote:

[...]


this is true for any dynamic array, including AAs. until 
something is added to array, it actually a `null` pointer. i.e. 
arrays (and AAs) generally consisting of pointer to data and 
some length/info field. while array is empty, pointer to data 
is `null`. and when you passing your dynamic array slice/AA to 
function, it makes a copy of those internal fields. reallocing 
`null` doesn't affect the original variable.


generally speaking, you should use `ref` if you plan to make 
your dynamic array/AA grow. i.e.


 void insertValue (ref int[][string]aa, string key, int value)


Thanks for giving me the correct solution, and for the 
explanation.


Cheers,
Craig


Re: AA with dynamic array value

2016-07-05 Thread Craig Dillabaugh via Digitalmars-d-learn

On Wednesday, 6 July 2016 at 02:03:54 UTC, Adam D. Ruppe wrote:
On Wednesday, 6 July 2016 at 01:58:31 UTC, Craig Dillabaugh 
wrote:

*(keyvalue) ~ value;   // This line fails.


That should prolly be ~= instead of ~.


Ahh, I was so close.  Thank you that seems to do the trick.

However, now I have another issue.

For the following main function:

int main( string[] args) {

int[][string] myAA;

//int[] tmp;
//tmp ~= 7;
//myAA["world"] = tmp;

insertValue( myAA, "hello", 1 );
insertValue( myAA, "goodbye", 2 );
insertValue( myAA, "hello", 3 );

foreach (k; myAA.keys.sort)
{
writefln("%3s %d", k, myAA[k].length);
}

return 0;
}

If I run this, it prints out nothing.  However, if I uncomment 
adding an element for 'world' then it prints (as expected):


goodbye 1
hello 2
world 1

Why doesn't my function allow me to insert elements into an empty 
associative array, but succeeds for an AA with some element in it?




AA with dynamic array value

2016-07-05 Thread Craig Dillabaugh via Digitalmars-d-learn
How can I create (and update) and associative array where the key 
is a string, and the value is a dynamic array of integers?


For example:

void insertValue( int[][string]aa, string key, int value )
{
int[]* keyvalue;

keyvalue = ( key in aa );
if ( keyvalue !is null )
{
*(keyvalue) ~ value;   // This line fails.
}
else {
int[] tmp;
tmp ~= value;
aa[key] = tmp;
}
}


int main( string[] args) {

int[][string] myAA;

insertValue( myAA, "hello", 1 );
insertValue( myAA, "goodbye", 2 );
insertValue( myAA, "hello", 3 );

return 0;
}

Fails with:
...(16): Error: ~ has no effect in expression (*keyvalue ~ value)

Thanks for any help.



GSoC Summer of Code Update

2016-06-24 Thread Craig Dillabaugh via Digitalmars-d-announce
Just wanted to congratulate our 4 Google Summer of Code students 
who have now officially all passed their mid-term evaluations.


So congrats to Lodovico, Wojciech, Jeremy, and Sebastian for 
making it this far, and thanks to the mentors Robert, Ilya, Adam 
and Russel for keeping them on the right track.


The students are producing some good work and I am excited about 
the impact they will have on the community going forward.


Craig


Re: Release DUB 1.0.0

2016-06-20 Thread Craig Dillabaugh via Digitalmars-d-announce

On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
I'm pleased to announce the release of the first stable version 
of the DUB package manager. Stable in this case means that the 
API, the command line interface and the package recipe format 
will only receive fully backwards compatible changes and 
additions for a while.


[...]


Congratulations on the 1.0.0 release, and thanks for providing 
this tool to the community.


Re: Introducing mach.d, the github repo where I put whatever modules I happen to write

2016-05-25 Thread Craig Dillabaugh via Digitalmars-d-announce

On Wednesday, 25 May 2016 at 20:31:34 UTC, pineapple wrote:

clip

My focus currently is on developing mach.sdl, a wrapper for 
SDL2 and OpenGL, since ultimately I'd like to use D primarily 
for game development.


I hope the library proves useful!


Hey, have you looked at:  http://dgame-dev.de/




Re: Researcher question – what's the point of semicolons and curly braces?

2016-05-03 Thread CRAIG DILLABAUGH via Digitalmars-d

On Tuesday, 3 May 2016 at 04:24:37 UTC, Adam D. Ruppe wrote:

On Tuesday, 3 May 2016 at 03:48:09 UTC, Joe Duarte wrote:

Would it be difficult to compile the clean version?


You realize your bias is showing very strongly in the wording 
of this question, right? I don't agree the naked version is 
clean at all.


ohimsorryletswritemorecleanlywithoutanyofthatobnoxiouspunctuationnoiseitisalluselessanywaysurelyyoucanstillmakesenseofthisafterallthereareonlysomanywordsintheenglishlanguageandknowinghwatdoesanddoesntmakesenseincontextmeansyoucansurelyparsethisrightout



Hey, you spelled 'what' wrong :o)


Re: Google Summer of Code

2016-04-25 Thread CRAIG DILLABAUGH via Digitalmars-d-announce
On Saturday, 23 April 2016 at 11:18:05 UTC, Joseph Rushton 
Wakeling wrote:

On Friday, 22 April 2016 at 22:43:43 UTC, CraigDillabaugh wrote:





Sebastian Wilzbach  
Science for D - a non-uniform RNG


For obvious reasons, I'm particularly interested in this one.  
Do I take it right that the project will be based on this 
research paper?

http://epub.wu.ac.at/3158/1/techreport-110.pdf

I would be very happy to offer advice and support for this 
project, if that would be welcome.




Joseph.  If you are interested in becoming a mentor (ideally each 
project has multiple mentors) I may still be able to add you to 
our GSoC mentors list. Ilya (Sebastian's mentor) is the lead 
mentor on the project, but having a second mentor is valuable.


If you are interested email me and I will see what we can do:

craig dot dillabaugh at gmail dot com



Re: DConf 2016 offical presentation template

2016-04-21 Thread Craig Dillabaugh via Digitalmars-d

On Friday, 22 April 2016 at 01:53:02 UTC, Adam D. Ruppe wrote:

On Friday, 22 April 2016 at 00:35:21 UTC, Mithun Hunsur wrote:
supporting the presentation rather than _being_ the 
presentation).


Powerpoints have a bad habit of damaging presentations rather 
than supporting them...



I hate slides. Focus on making interesting content and consider 
doing a hand out with actual details.


A slide has less information on it than a tweet perhaps 
best is to think of it as a series of suggested tweets - brief 
marketing information rather than anything useful.


My favorite advice on giving presentations:

http://www.cs.berkeley.edu/~jrs/speaking.html

Maybe not everything applies to a talk where you will be showing 
code, but still great advice in my opinion.


Re: The day before DConf 2016

2016-04-08 Thread Craig Dillabaugh via Digitalmars-d

On Thursday, 7 April 2016 at 18:13:16 UTC, Mike Parker wrote:
I'm flying in to Berlin late on May 2nd. I'll be staying at the 
Hotel Ibis, slated to be the "unofficial hangout place" 
according to the DConf site. I'm curious who else will be in 
the area on the 3rd. I'm usually an explorer when I visit a 
city for the first time, but on this trip I'd be more 
interested in hanging out with others from DLand, conversing 
about our favorite language, if anyone's up for it.


I am not attending DConf but hearing the name "Hotel Ibis" brings 
back fond memories of my trips to China a few years back. I still 
remember bathroom in one hotel, where I could have brushed my 
teeth at the sink, taken a shower, and read the newspaper all the 
while sitting on the toilet.Very efficient ... although I 
suppose it would ruin the newspaper.


Have fun.

Craig


Re: Issue with 2.071: Regression or valid error?

2016-04-06 Thread Craig Dillabaugh via Digitalmars-d-learn
On Wednesday, 6 April 2016 at 19:01:58 UTC, Craig Dillabaugh 
wrote:

On Wednesday, 6 April 2016 at 15:10:45 UTC, Andre wrote:

clip


Not so up to date on D's OOP stuff, but don't you want create() 
to be protected, not private.  You can typically access a 
private method through a base class, which is what you are 
doing with cat.create().


You CAN'T typically access a private ...


Re: Issue with 2.071: Regression or valid error?

2016-04-06 Thread Craig Dillabaugh via Digitalmars-d-learn

On Wednesday, 6 April 2016 at 15:10:45 UTC, Andre wrote:

Hi,

With 2.071 following coding does not compile anymore and 
somehow I feel it should compile.

The issue is with line "cat.create();".
Cat is a sub type of Animal. Animal "owns" method create and I 
want to call the method

create within the class Animal for cat.

Is the error message "no property create for type 'b.cat'" 
valid or not?


Kind regards
André

module a;
import b;

class Animal
{
private void create() {}

void foo(Cat cat)
{
cat.create(); // >> no property create for type 'b.cat'
}
}

void main() {}

--

module b;
import a;

class Cat: Animal {};

compile with

rdmd a b


Not so up to date on D's OOP stuff, but don't you want create() 
to be protected, not private.  You can typically access a private 
method through a base class, which is what you are doing with 
cat.create().


Re: debugger blues

2016-03-25 Thread Craig Dillabaugh via Digitalmars-d

On Friday, 25 March 2016 at 08:14:15 UTC, Iain Buclaw wrote:
clip



* a pony


Of all points above, this is one that can actually be arranged.
 No joke!


I've got a Border Collie I could throw in to the mix too if that 
would be helpful.






Re: GSoC 2016

2016-03-21 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 21 March 2016 at 21:12:30 UTC, Jacob Carlborg wrote:

On 2016-03-21 14:54, Craig Dillabaugh wrote:

Jacob Carlborg ... if you are reading this would you be able 
to lend a
hand in advising on the proposals?   I believe these projects 
a mostly
related to C => D conversion tools.  Maybe you can email 
russel or

myself if you can:


I'm not really sure what that would imply.


I recall you said you didn't have time to mentor, but might be 
able to provide advice.  I was wondering if you might be able to 
read over the proposals and provide some feedback (is the 
proposal achievable, helpful?  Can you see any obvious 
improvements the student could make)  From my experience most of 
the proposals are two or three pages long - so its not too much 
reading.


If you think you have time then feel free to email me and I can 
try and work something out with Russel.  If you are too busy then 
we will make due.


Cheers,

Craig




Re: GSoC 2016

2016-03-21 Thread Craig Dillabaugh via Digitalmars-d

On Sunday, 20 March 2016 at 15:03:16 UTC, Russel Winder wrote:
Due to unforseen circumstances, I am well behind dealing wit 
GSoC email, an
I doubt I will beable to get on top of it till Thursday. There 
are at least
five peopl I should be having conversations with but I fear it 
is unlikely

to happen in the next three days :-(

Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   
xmpp:rus...@winder.org.uk

London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder


Jacob Carlborg ... if you are reading this would you be able to 
lend a hand in advising on the proposals?   I believe these 
projects a mostly related to C => D conversion tools.  Maybe you 
can email russel or myself if you can:


craig dot dillabaugh at gmail dot com

Craig


Re: GSOC 16 - Flatbuffer support or Protocol Buffer Support for D Language.

2016-03-19 Thread Craig Dillabaugh via Digitalmars-d

On Saturday, 19 March 2016 at 07:51:34 UTC, Joakim wrote:

On Saturday, 19 March 2016 at 06:18:06 UTC, Rajat Kumar wrote:

Hello.
I am Rajat Kumar, a junior year university student from India. 
I have working experiences in languages like C,C++ and Python. 
I am really really interested in working in D language. I want 
to work in the project - Flatbuffer Suport or Protocol Buffer 
Support.
It is now the time to write the proposal. I need some 
suggestion for the same. What are the key points, do I need to 
mention in the proposal?

thank you.


Good question.  According to the GSoC docs, the D Foundation 
can provide some guidance:


"Most organizations have their own proposal guidelines or 
templates. You should be extraordinarily careful to conform to 
these. Most organizations have many, many proposals to review. 
Failure to follow simple instructions is highly likely to land 
you at the bottom of the heap."

http://write.flossmanuals.net/gsocstudentguide/writing-a-proposal/

I don't know that we have any such guideline or template for D, 
Craig?


At the very least, you should follow the general instructions 
google provides at that link.


I was just about to point Rajat to the link you provided. Thanks!

We don't have any special guidelines this year.   Perhaps after 
this year's experience we will come up with our own template, but 
the Google guidelines cover what the proposal must contain.


One piece of advice for students is you don't need to be an 
expert to write the proposal, but you should do enough research 
on the topic to ... show that you've done some research on the 
topic.  Also, try to be specific as you can, even if you don't 
have 100% understanding of everything, as a vague proposal may 
suggest that you are not serious about the project.


As for this specific proposal, Protocol Buffers/FlatBuffers - I 
know little about them personally so I am not the best person to 
advise perhaps. I would suggest you read up on them and look at 
implementations for languages you are already familiar with.  
Perhaps adopt one of those implementations as a template for the 
work you want to do.  Then see if there are any special D 
features that could be used to improve on that.


Feel free to post some of your initial ideas on the forums if you 
want feedback.  Even if it is a very rough outline of what you 
think should be done. I will continue to try and get in touch 
with the proposed mentor to provide you with some more detailed 
feedback.


HTH Craig


Re: Potential GSoC project - GC improvements

2016-03-18 Thread Craig Dillabaugh via Digitalmars-d

On Tuesday, 15 March 2016 at 01:34:07 UTC, Jeremy DeHaan wrote:
I haven't had power for a couple of days, but it looks like the 
discussion has gone along pretty ok. After reading everything, 
I think I'm inclined to agree with Adam and the main focus of 
my proposal will be a precise GC (or as precise as we can get). 
I'll definitely need some guidance, but I'll be learning 
everything I can about GC's and precision until the start of 
the project.


[...]


In case you didn't already know, Adam is now an official mentor 
so you are all set to go.  Good luck!


Re: Pitching D to academia

2016-03-09 Thread Craig Dillabaugh via Digitalmars-d

On Wednesday, 9 March 2016 at 16:12:08 UTC, Michael wrote:
On Sunday, 6 March 2016 at 08:40:17 UTC, Ola Fosheim Grøstad 
wrote:

On Sunday, 6 March 2016 at 07:38:01 UTC, Ali Çehreli wrote:
Motivated by Dmitry's "Pitching D to a gang of Gophers" 
thread, how about pitching it to a gang of professors and 
graduate students?


The geeky graduate students are the better target.

In teaching you usually want a focused clean language related 
to the course or a language that is already adopted by 
industry.



clip


Postgraduates, on the other hand, often have more time to 
experiment, and due to the nature of postgraduate work 
(particularly Ph.D and beyond) their research tends to require 
novelty. D has proved very valuable for me during my research 
and the lack of library requirements for experiments to be 
written and tested means that I am not tied to using a 
particular language. I am of course not saying that we 
shouldn't try to encourage undergraduates to explore D, but 
it's very difficult to try and introduce a new language into 
the curriculum at most universities without a rather large 
volume of support and justifications for doing so. Just some 
thoughts.


I may be way off-base here but would teaching assembly be a good 
way

to get D into the hands of undergrads?  Learning assembly requires
some sort of 'harness' to code your assembly in.  The few such 
tools (NASM) are, by my memory, rather painful to work with.  
Could using DMDs inline assembler allow for a clean way of 
learning assembly


I say this as someone who never took a proper assembly course as 
an undergrad (we used a simulated/simple assembly lanaguage).  
I've since tried to learn Intel assembly with NASM or something 
similar, but had limited time and got frustrated with the tools.





Re: std.xml2 (collecting features)

2016-03-07 Thread Craig Dillabaugh via Digitalmars-d
On Sunday, 6 March 2016 at 11:46:00 UTC, Robert burner Schadek 
wrote:
On Saturday, 5 March 2016 at 15:20:12 UTC, Craig Dillabaugh 
wrote:
Robert, we have had some student interest in GSOC for XML.  
Would you be interested in mentoring a student to work with 
you on this.


Craig


Of course


Great.  Can you please get in touch by email so I can add you to 
the mentors list:


craig dot dillabaugh at gmail dot com

Cheers


Re: std.xml2 (collecting features)

2016-03-05 Thread Craig Dillabaugh via Digitalmars-d
On Sunday, 3 May 2015 at 17:39:48 UTC, Robert burner Schadek 
wrote:
std.xml has been considered not up to specs nearly 3 years now. 
Time to build a successor. I currently plan the following 
featues for it:


- SAX and DOM parser
- in-situ / slicing parsing when possible (forward range?)
- compile time switch (CTS) for lazy attribute parsing
- CTS for encoding (ubyte(ASCII), char(utf8), ... )
- CTS for input validating
- performance

Not much code yet, I'm currently building the performance test 
suite https://github.com/burner/std.xml2


Please post you feature requests, and please keep the posts DRY 
and on topic.


Robert, we have had some student interest in GSOC for XML.  Would 
you be interested in mentoring a student to work with you on this.


Craig


Re: I guess this is good GSOC 2016 news?

2016-03-04 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 29 February 2016 at 21:33:47 UTC, Wyatt wrote:
On Monday, 29 February 2016 at 21:22:44 UTC, Jonas Drewsen 
wrote:

https://summerofcode.withgoogle.com/organizations/?sp-category=languages


Yes, that IS great news!  Though it doesn't seem to say how 
many slots were given?  Craig, any word?


-Wyatt


Sorry, missed this thread somehow.  I am not sure how many slots 
we have.  Perhaps Google hasn't decided that yet, but I am still 
familiarizing myself with the new GSoC site.


When I find anything out I will be sure to post it on the Forum.

Cheers,

Craig


Re: GSoC Next Steps

2016-03-03 Thread Craig Dillabaugh via Digitalmars-d
Haven't yet found email addresses for a few mentors (if you are 
available this year):


Iain Buclaw
Jacob Ovrum

Also, there is still time to sign up if you are a potential 
mentor.



For those of you interested in mentoring, the following is a good 
(and short) read on how students should be selected:


http://en.flossmanuals.net/GSoCMentoring/selecting-a-student/


Cheers,

Craig


Re: GSoC Next Steps

2016-03-02 Thread Craig Dillabaugh via Digitalmars-d

On Wednesday, 2 March 2016 at 17:27:47 UTC, Alex Herrmann wrote:
On Wednesday, 2 March 2016 at 00:29:27 UTC, CraigDillabaugh 
wrote:


Craig


I just had time to see the results today, congratulations on 
the approval into GSOC! Very exciting time as a student who 
enjoys programming in D. Although I may not be able to apply 
due to work, it's awesome that a group of students will be able 
to work full time on projects that directly benefit the D 
community.


Best of luck to mentors and students alike!


Thanks.


Re: GSoC 2016 - D Foundation was accepted!

2016-03-01 Thread Craig Dillabaugh via Digitalmars-d-announce

On Tuesday, 1 March 2016 at 05:13:44 UTC, Jeremy DeHaan wrote:

On Tuesday, 1 March 2016 at 03:21:14 UTC, mate wrote:

On Tuesday, 1 March 2016 at 01:55:09 UTC, Jeremy DeHaan wrote:

Hello everyone!

I didn't see mention of this yet, but earlier today Google 
released their list of accepted Organizations for this year's 
GSoC. Guess what! The D Foundation made the cut!


Thank you to everyone that worked on the proposals and 
application. This is awesome and you all are awesome!




Now to get started on my own application...


I think it would have been polite and safe to wait for Craig’s 
announcement.


This was posted on the GSoC site for almost 6 hours when I 
posted it here and there was no announcement yet. Forgive me if 
I was overly excited.


No worries at all.  I was out skiing yesterday and when I got 
home my internet connection was down, so I couldn't check/post 
anything.  I am always happy when others do my work for me :o)


I guess the real work begins now!

Thanks to all who have contributed ideas.

Cheers,

Craig


Re: Pseudo-random numbers in [0, n), covering all numbers in n steps?

2016-02-26 Thread Craig Dillabaugh via Digitalmars-d
On Friday, 26 February 2016 at 15:21:08 UTC, Nicholas Wilson 
wrote:
On Friday, 26 February 2016 at 15:17:16 UTC, Craig Dillabaugh 
wrote:
On Friday, 26 February 2016 at 15:15:11 UTC, Nicholas Wilson 
wrote:
On Friday, 26 February 2016 at 14:59:43 UTC, Andrei 
Alexandrescu wrote:

On 02/25/2016 06:46 PM, Nicholas Wilson wrote:

[...]


Thanks, that's indeed closest! A hefty read. Anyone inclined 
to work on a PCG random implementation? -- Andrei


Dstep could be used to port the C++ version if needed.


I don't think Dstep can handle C++.


Hmm. I thought that was what it did. Maybe I was thinking of 
another thing or perhaps I should make sure that I am not about 
to fall asleep before posting.


Dstep can convert C headers to D, but can't handle C++.


Re: Pseudo-random numbers in [0, n), covering all numbers in n steps?

2016-02-26 Thread Craig Dillabaugh via Digitalmars-d
On Friday, 26 February 2016 at 15:15:11 UTC, Nicholas Wilson 
wrote:
On Friday, 26 February 2016 at 14:59:43 UTC, Andrei 
Alexandrescu wrote:

On 02/25/2016 06:46 PM, Nicholas Wilson wrote:
The technical name for the property of distribution you 
describe is

  k-Dimensional Equidistribution (in this case k=1).
I would suggest taking a look at http://www.pcg-random.org.
They claim to have both arbitrary period and k-Dimensional 
Equidistribution


Thanks, that's indeed closest! A hefty read. Anyone inclined 
to work on a PCG random implementation? -- Andrei


Dstep could be used to port the C++ version if needed.


I don't think Dstep can handle C++.


Re: std.xml2 (collecting features)

2016-02-24 Thread Craig Dillabaugh via Digitalmars-d

On Tuesday, 23 February 2016 at 12:46:38 UTC, Dmitry wrote:

On Tuesday, 23 February 2016 at 11:22:23 UTC, Joakim wrote:
Then write a good XML extraction-only library and dub it. I 
see no reason to include this in Phobos

You won't be able to sleep if it will be in Phobos?

I use XML and I don't like check tons of side libraries for see 
which will be good for me, which have support (bugfixes), which 
will have support in some years, etc.
Lot of systems already using XML and any serious language 
_must_ have official support for it.


So are you trying to say C/C++ are not serious languages :o)

Having said that, as much as I hate XML, basic support would be a 
nice feature for the language.





Re: Google Summer of Code 2016 Only A Few Hours Left

2016-02-19 Thread Craig Dillabaugh via Digitalmars-d-announce

On Friday, 19 February 2016 at 21:10:45 UTC, Dave wrote:
On Friday, 19 February 2016 at 17:03:57 UTC, Craig Dillabaugh 
wrote:

[...]


D is a fantastic efficient and fast replacement of Python which 
even has great plotting and other analysis features as ggplotd! 
To gain traction in numerical and statistical computing it is 
important to provide great optimization, automatic differential 
(AD) (reversed-mode AD (e.g. in mc-stan.org for Bayesian stuff) 
and/or forward-mode as e.g. for R at GSOC-2010 - there is no 
reason for numerical diff these days anymore, and you may 
mess-up your stuff using it!), and Bayesian routines. D is 
laking on these basic features (my personal opinion - correct 
me if I am wrong).


[...]


Well, you can always try updating the ideas page anyways.  Today 
was the application deadline, but I don't think there is anything 
they can do to stop us from updating a page on our Wiki.  Just 
make sure to add yourself to the mentor's page.


Re: Google Summer of Code 2016 Only A Few Hours Left

2016-02-19 Thread Craig Dillabaugh via Digitalmars-d-announce

On Friday, 19 February 2016 at 20:08:43 UTC, Alex Herrmann wrote:
On Friday, 19 February 2016 at 17:03:57 UTC, Craig Dillabaugh 
wrote:
The GSOC deadline is Feb 19th 19:00 UTC (or 2 PM Wawa time) so 
any last ideas for the Idea's page are welcome.


Our application is completed, but changes can still be made to 
the ideas page.  In fact I suppose we can go on making 
modifications even after the deadline, as I have no idea at 
what time Google takes the snapshots of these pages for 
evaluation.  Thanks to Martin Nowak's suggestion we are now 
participating as "The D Foundation" (rather than Digital Mars).


Thanks to all who have helped out to this point.

Cheers,

Craig


As a prospective student, fingers are crossed for D.


Me too.  Its been a few years now.


Re: std.xml2 (collecting features)

2016-02-18 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 18 February 2016 at 10:18:18 UTC, Robert burner 
Schadek wrote:
On Thursday, 18 February 2016 at 04:34:13 UTC, Alex Vincent 
wrote:
I'm looking for a status update.  DUB doesn't seem to have 
many options posted.  I was thinking about starting a 
SAXParser implementation.


I'm working on it, but recently I had to do some major 
restructuring of the code.
Currently I'm trying to get this merged 
https://github.com/D-Programming-Language/phobos/pull/3880 
because I had some problems with the encoding of test files. 
XML has a lot of corner cases, it just takes time.


If you want to on some XML stuff, please join me. It is 
properly more productive working together than creating two 
competing implementations.


Would you be interested in mentoring a student for the Google 
Summer of Code to do work on std.xml?


Re: GSoC Deadline Friday

2016-02-17 Thread Craig Dillabaugh via Digitalmars-d-announce
On Tuesday, 16 February 2016 at 15:26:11 UTC, Andrei Alexandrescu 
wrote:

On 2/16/16 8:46 AM, Craig Dillabaugh wrote:

The Google Summer of Code deadline is this Friday.

I would like confirmation from the following individuals if 
they can

mentor GSOC this summer.

Iain Buclaw
Bruno Medeiros
Martin Nowak (and as backup Admin)
Jacob Ovrum

And as backup mentors
   Adam D. Ruppe
   Dmitry Olshansky

I know for some of you (Iain) the offer to mentor was a 
'standing offer'
of sorts, but it would still be good to get confirmation. Also 
the
poster 'Dragos Carp' volunteered as a possible mentor for the 
Protocol
Buffers/Flatbuffers work ... so could you please add a short 
bio to the

mentor's page (or post something here):

http://wiki.dlang.org/GSOC_mentors

We have a decent number of ideas, but the page could use some 
work.


http://wiki.dlang.org/GSOC_2016_Ideas

In particular if you can add info to the 'Its Good To Know' 
sections
(such as links to DConf videos), or flesh out some existing 
ideas that

help is welcome.  I will continue to try and improve that page.


You may want to scrape the email addresses of these folks and 
send them email directly. -- Andrei


Hey Andrei, what is the status of the D Foundation?  Martin 
suggested that we apply as the D Foundation, rather than Digital 
Mars but I wasn't 100% sure if the D Foundation was officially up 
and running yet.  If so does it have a website?


Re: GSoC Deadline Friday

2016-02-16 Thread Craig Dillabaugh via Digitalmars-d-announce

On Tuesday, 16 February 2016 at 15:39:15 UTC, Adam D. Ruppe wrote:
On Tuesday, 16 February 2016 at 13:46:16 UTC, Craig Dillabaugh 
wrote:

And as backup mentors
  Adam D. Ruppe



My time has been extremely limited lately... if it is anything 
more than answering some quick emails/irc chats every so often 
that can wait a few hours for me to get back to them, I 
probably won't be able to keep up :(


If its OK then I will keep you on the 'backup' mentors list and 
we will avoid pushing any work to you, but may ask for help on 
small issues if need be.


Re: GSoC Deadline Friday

2016-02-16 Thread Craig Dillabaugh via Digitalmars-d-announce
On Tuesday, 16 February 2016 at 15:26:11 UTC, Andrei Alexandrescu 
wrote:

On 2/16/16 8:46 AM, Craig Dillabaugh wrote:

[...]


You may want to scrape the email addresses of these folks and 
send them email directly. -- Andrei


Good idea, I will try and hunt some of them down.


Re: Google Summer of Code 2016

2016-02-16 Thread Craig Dillabaugh via Digitalmars-d

On Tuesday, 16 February 2016 at 11:20:13 UTC, Johannes Pfau wrote:

Am Tue, 16 Feb 2016 00:28:29 +
schrieb Craig Dillabaugh :


clip





I'd suggest posting this to D.announce, people often don't read 
these old threads.


Done!  Thanks for the suggestion.



GSoC Deadline Friday

2016-02-16 Thread Craig Dillabaugh via Digitalmars-d-announce

The Google Summer of Code deadline is this Friday.

I would like confirmation from the following individuals if they 
can mentor GSOC this summer.


Iain Buclaw
Bruno Medeiros
Martin Nowak (and as backup Admin)
Jacob Ovrum

And as backup mentors
  Adam D. Ruppe
  Dmitry Olshansky

I know for some of you (Iain) the offer to mentor was a 'standing 
offer' of sorts, but it would still be good to get confirmation.  
Also the poster 'Dragos Carp' volunteered as a possible mentor 
for the Protocol Buffers/Flatbuffers work ... so could you please 
add a short bio to the mentor's page (or post something here):


http://wiki.dlang.org/GSOC_mentors

We have a decent number of ideas, but the page could use some 
work.


http://wiki.dlang.org/GSOC_2016_Ideas

In particular if you can add info to the 'Its Good To Know' 
sections (such as links to DConf videos), or flesh out some 
existing ideas that help is welcome.  I will continue to try and 
improve that page.


Re: Google Summer of Code 2016

2016-02-15 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 10 February 2016 at 03:28:55 UTC, Craig Dillabaugh 
wrote:

clip


I would like confirmation from the following individuals if 
they can mentor GSOC this summer.


Iain Buclaw
Bruno Medeiros
Martin Nowak (and as backup Admin)
Jacob Ovrum

And as backup mentors
 Adam D. Ruppe
 Dmitry Olshansky

I will continue to polish the Ideas page until the deadline 
(Feb 18th)


http://wiki.dlang.org/GSOC_2016_Ideas

but improvements by the community are welcome.


GSOC deadline is Friday.  Would be great if I could get 
confirmation from the above individuals if they can still mentor. 
 Also, if you have an interest in being a mentor please let me 
know, and I can add you to the list.


Also improvements to the Idea's page are welcome.  I've added a 
few things (and subtracted one or two), but it still looks a lot 
like last year's losing effort.





Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Craig Dillabaugh via Digitalmars-d

On Wednesday, 10 February 2016 at 21:44:54 UTC, anonymous wrote:

On 10.02.2016 22:37, CraigDillabaugh wrote:
I know I can take the logo from the website and blow it up, 
but it is
pretty small and enlarging it so much will result in a pretty 
awful

looking image.


It's an SVG file, so enlarging should work beautifully. If 
you're having trouble with it, I can upload a larger SVG or PNG 
version.


Is 256x256 the ideal format? Does it need to be square? The 
logo on the site is more wide than high. Do you want it cropped 
or centered?


Thanks.  I found the SVG version, which I should be able to 
resize.  For some reason Google wants a logo at least 256x256. 
Not sure if it has to be square, need to check their site again, 
think it has to be 256 on the smallest dimension.


I am reasonably competent with image processing software, so I 
should be OK, even if I have to crop/squish it.  Actually, it 
would make more sense to just add a white background and centre 
it on that if they don't take irregular shapes.   If I get stuck, 
I will know who to ask.





Re: Google Summer of Code 2016

2016-02-09 Thread Craig Dillabaugh via Digitalmars-d
On Monday, 18 January 2016 at 16:16:01 UTC, Craig Dillabaugh 
wrote:
On Thursday, 31 December 2015 at 23:58:32 UTC, Craig Dillabaugh 
wrote:
The deadline for the Google Summer of Code, 2016 is February 
19th. Which means we have about a month and a half to put 
something together.  For the time being I've recycled last 
years projects (with one dropped so far):


http://wiki.dlang.org/GSOC_2016_Ideas#Ideas



Craig


Just trying to keep GSOC on the front page ...

If you have your name attached to a project currently on our 
list please let me know if you can't mentor this year.  I am 
starting to get some inquires for students about projects (just 
had one about DDT), and it would be bad is some project that is 
currently on the list disappeared between now and mid-February.
 So I would rather clean up any projects that we can't go ahead 
with now.


I would like confirmation from the following individuals if they 
can mentor GSOC this summer.


Iain Buclaw
Bruno Medeiros
Martin Nowak (and as backup Admin)
Jacob Ovrum

And as backup mentors
 Adam D. Ruppe
 Dmitry Olshansky

I will continue to polish the Ideas page until the deadline (Feb 
18th)


http://wiki.dlang.org/GSOC_2016_Ideas

but improvements by the community are welcome.



Re: Google Summer of Code 2016

2016-02-06 Thread Craig Dillabaugh via Digitalmars-d

On Friday, 15 January 2016 at 20:46:59 UTC, Tavi wrote:
On Friday, 15 January 2016 at 16:06:00 UTC, Craig Dillabaugh 
wrote:

On Friday, 15 January 2016 at 15:11:39 UTC, Tavi wrote:
On Thursday, 14 January 2016 at 18:56:21 UTC, Craig 
Dillabaugh wrote:
Deadline is getting closer, any new project ideas are 
welcome. Starting to get some contact from students now.



FlatBuffers for DLang - http://google.github.io/flatbuffers/


Are you volunteering as a potential mentor :o)


I haven't started anything seriously in D yet, so I would not 
be qualified for such mentoring.
Being an efficient cross platform serialization library started 
at Google (already supporting C++, Java, C#, Go, Python and 
JavaScript), may be a good candidate for GSOC.


Anyone interested and capable of mentor a student interested in 
doing FlatBuffers for D.





Re: Proposal: Database Engine for D

2016-02-06 Thread Craig Dillabaugh 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
  - fast

Since the days when I was working on financing data SW I become 
allergic to SQL. I though that NoSQL databases would fill the 
bill. Unfortunately they didn't. And I want to have an ability 
to write a code like this without too much effort:


  struct Person
  {
   string name;
   string surname;
   ubyte age;
   Address address;
  }

 DataBase db = new DataBase("file.db");
 auto coll = db.collection!Person("NSA.Registry");
 auto visitationList = coll.filter!(p => p.name == "James");
 writeln (visitationList);

And other things like updating and deleting from db. I think 
you get my point.


So I started a PoC project based on SQLite design:
https://github.com/PiotrekDlang/AirLock/blob/master/docs/database/design.md#architecture

The PoC code: 
https://github.com/PiotrekDlang/AirLock/tree/master/src/database


Can you please share your thoughts and experience on the topic? 
Has anyone tried similar things?


Piotrek


I've scanned this thread, but haven't seen if any 'decisions' 
have been more, or if it is just more of the usual back-and-forth 
with nothing being decided.  However, I did have one (Ok two) 
questions.


1. Is there a GSOC project in here somewhere?
2. Who would want to mentor such a thing?





Re: Proposal: Database Engine for D

2016-02-06 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 6 February 2016 at 13:33:34 UTC, Craig Dillabaugh 
wrote:

clip
I've scanned this thread, but haven't seen if any 'decisions' 
have been more, or if it is just more of the usual



have been more => have been made



Re: Google Summer of Code 2016

2016-02-03 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 28 January 2016 at 13:57:06 UTC, Rikki Cattermole 
wrote:

On 29/01/16 2:53 AM, Craig Dillabaugh wrote:

[...]


I have a c phase 1-3 implemented in D.
I would be willing to give up the source if I keep the rights 
(but code can be open just not an open source license).
Could be used to fully translate c code to D without too much 
work I would think.


http://en.cppreference.com/w/c/language/translation_phases


Rikki, how would this improve upon what we have with Dstep (apart 
from it being fun since it is in D).





Re: Google Summer of Code 2016

2016-02-02 Thread Craig Dillabaugh via Digitalmars-d
On Friday, 15 January 2016 at 03:33:23 UTC, Andrei Alexandrescu 
wrote:

On 01/14/2016 01:56 PM, Craig Dillabaugh wrote:
Deadline is getting closer, any new project ideas are welcome. 
Starting

to get some contact from students now.


A few quick ideas:

* Bringing a parser generator library into phobos, either based 
on pegged or independent


* SQL parser, binder, validator

* Improving the GC

clip

Andrei


I wanted to follow up on a few of Andrei's ideas.

Is there any work ongoing on the GC, I know there has been lots 
of talk from time to time, but are there any concrete efforts out 
there that a student could start from?


Also I've seen lots of discussion on improving SQL support, and 
good starting points.


For the parser generator there is currently Pegged, that could be 
integrated into Phobos.  Would that be enough work for a full 
project.


https://github.com/PhilippeSigaud/Pegged

Also, anyone interested in mentoring projects related to these 
topics.


Re: Google Summer of Code 2016

2016-01-28 Thread Craig Dillabaugh via Digitalmars-d

On Thursday, 28 January 2016 at 15:20:12 UTC, Dicebot wrote:
On Thursday, 28 January 2016 at 13:53:30 UTC, Craig Dillabaugh 
wrote:
Would there be any interest in a project to automate binding 
generation from C files (or perhaps even a full conversion 
tool)?
 This could be done either as a new project, or possibly 
building on dstep - if there is meaningful work that can still 
be done to improve that project.  Alternately, the student 
suggested using  pycparser 
(https://github.com/eliben/pycparse) as the basis for such a 
tool?


I think it is very important to focus on polishing dstep 
instead of creating more and more imperfect tools. In the end 
any approach which doesn't use existing mature C compiler 
frontend is doomed to make binding mistakes.


Random suggestions for improving dstep:
- implement support for C++ clang API using new shiny dmd 
features (it tends to have more features than C one)
- implement automatic generation of idiomatic D code for raw 
bindings (i.e. stripping redundant namespace prefixes)
- remove/minimize dependencies apart from Phobos/libclang (will 
make much easier including it into standard tools)


Seems like there should be enough there for a project. Also 
looking at:


https://github.com/jacob-carlborg/dstep

in the list of limitations is, 'Doesn't translate preprocessor 
macros of any kind", that seems like a good challenge.


So if Jacob can't mentor this, is there anyone who would be 
comfortable with that type of project?


Re: Google Summer of Code 2016

2016-01-28 Thread Craig Dillabaugh via Digitalmars-d

On Thursday, 28 January 2016 at 22:26:44 UTC, Russel Winder wrote:
On Thu, 2016-01-28 at 22:01 +0100, Jacob Carlborg via 
Digitalmars-d wrote:

On 2016-01-28 14:53, Craig Dillabaugh wrote:


> Jacob, are you sure you don't want to Mentor?  It seems like 
> you

> are
> involved in all the interesting projects from a student 
> perspective

> :o)

I can absolutely help out with all of my projects and projects 
I'm involved in. But I have no interested in being an official 
mentor.


Given I have an interest in making DStep better (so as to wrap 
the Linux DVB API and libdvbv5) and Jacob is not wanting to be 
formal mentor, and yet can support, I can offer myself as 
mentor so as to try and ensure the project moves.


Thanks Russel, Jacob, and Dicebot for your suggestions. I will 
add DStep to our list of projects with Russel as Mentor.


Re: Google Summer of Code 2016

2016-01-28 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 31 December 2015 at 23:58:32 UTC, Craig Dillabaugh 
wrote:
The deadline for the Google Summer of Code, 2016 is February 
19th. Which means we have about a month and a half to put 
something together.  For the time being I've recycled last 
years projects (with one dropped so far):


http://wiki.dlang.org/GSOC_2016_Ideas#Ideas


clip


http://wiki.dlang.org/GSOC_mentors



We have had another student inquiry on the GSOC front.  I am 
going from memory, which is always a bit sketchy, but it seems 
that there is a bit of an increase in student interest this year.


Would there be any interest in a project to automate binding 
generation from C files (or perhaps even a full conversion tool)? 
 This could be done either as a new project, or possibly building 
on dstep - if there is meaningful work that can still be done to 
improve that project.  Alternately, the student suggested using  
pycparser (https://github.com/eliben/pycparse) as the basis for 
such a tool?


Jacob, are you sure you don't want to Mentor?  It seems like you 
are involved in all the interesting projects from a student 
perspective :o)


Is there work that can be done to improve dstep?




Re: Pre-alpha D language online tour

2016-01-25 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 25 January 2016 at 18:17:09 UTC, André wrote:

Hi,

Inspired by the Go online language tour 
(https://tour.golang.org/) and the great experience it gave me 
learning the language I started a similar project for D some 
weeks ago. It's currently in a very pre-alpha state but I 
wanted to announce it in case someone had something similar in 
mind and is willing to contribute. The basic idea behind this 
tour is to introduce features of the language with short 
explanations and example code that is compiled and run online.


[...]


Looks promising.  You should rename it D-tours so that you can 
take advantage of D's underused, but excellent, pun making 
potential :o)


Then you need to include some graphics:

http://www.roadtrafficsigns.com/detour-signs


Re: Pre-alpha D language online tour

2016-01-25 Thread Craig Dillabaugh via Digitalmars-d

On Monday, 25 January 2016 at 18:17:09 UTC, André wrote:

Hi,

Inspired by the Go online language tour 
(https://tour.golang.org/) and the great experience it gave me 
learning the language I started a similar project for D some 
weeks ago. It's currently in a very pre-alpha state but I 
wanted to announce it in case someone had something similar in 
mind and is willing to contribute. The basic idea behind this 
tour is to introduce features of the language with short 
explanations and example code that is compiled and run online.


The code is located here:

https://github.com/stonemaster/dlang-tour

I've setup a server which always runs the latest version:

http://dlang-tour.steinsoft.net

This tour doesn't allow compiling online because the current 
implementation would just make it too easy to hijack the server 
:-) Compiling and running online can be activated when 
compiling locally though. My goal would be to integrate the 
tour with DPaste in the long run.


Working on this tour unfortunately stalled a little bit in this 
year but I am trying to work on the project constantly in the 
upcoming weeks. There is still a lot of content missing and, 
more importantly, good D source examples. But I have a rough 
guideline on which D topics I'd like to add content for.


Any kind of feedback is highly appreciated, of course.

Regards,
André


I should do this myself, but since I can't access my Github 
account ATM and will likely forget.  The page:


http://dlang-tour.steinsoft.net/tour/basics/1

The line:

"An import statement mustn't appear at the top ... "

Should read:

"An import statement need not appear at the top ... "


Re: Google Summer of Code 2016

2016-01-18 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 31 December 2015 at 23:58:32 UTC, Craig Dillabaugh 
wrote:
The deadline for the Google Summer of Code, 2016 is February 
19th. Which means we have about a month and a half to put 
something together.  For the time being I've recycled last 
years projects (with one dropped so far):


http://wiki.dlang.org/GSOC_2016_Ideas#Ideas



Craig


Just trying to keep GSOC on the front page ...

If you have your name attached to a project currently on our list 
please let me know if you can't mentor this year.  I am starting 
to get some inquires for students about projects (just had one 
about DDT), and it would be bad is some project that is currently 
on the list disappeared between now and mid-February.  So I would 
rather clean up any projects that we can't go ahead with now.




Re: Google Summer of Code 2016

2016-01-15 Thread Craig Dillabaugh via Digitalmars-d

On Friday, 15 January 2016 at 10:02:14 UTC, Marc Schütz wrote:
On Friday, 15 January 2016 at 03:33:23 UTC, Andrei Alexandrescu 
wrote:

A few quick ideas:

* Bringing a parser generator library into phobos, either 
based on pegged or independent


* SQL parser, binder, validator

* Anything building on the strengths on D: introspection, 
compile-time stuff, DSL, etc.


* Improving the GC

* Theoretical work - core language semantics, proving 
immutable provides guarantees etc.


* A flexible serialization framework in Phobos. std.csv could 
be changed to use it, and vibe.d as well as various 
serialization related libraries (e.g. Protocol Buffers, 
capnproto) would also benefit from standardization here.


What about Orange?  What is preventing it from becoming part of 
Phobos?


https://github.com/jacob-carlborg/orange




Re: Google Summer of Code 2016

2016-01-15 Thread Craig Dillabaugh via Digitalmars-d
On Friday, 15 January 2016 at 13:43:07 UTC, Andrei Alexandrescu 
wrote:

On 01/15/2016 08:11 AM, Marc Schütz wrote:
On Friday, 15 January 2016 at 12:36:32 UTC, Andrei 
Alexandrescu wrote:

On 1/15/16 6:58 AM, Craig Dillabaugh wrote:
On Friday, 15 January 2016 at 10:02:14 UTC, Marc Schütz 
wrote:

[...]


What about Orange?  What is preventing it from becoming part 
of Phobos?


https://github.com/jacob-carlborg/orange


I recall there has been one (or two?) unsuccessful attempts. 
-- Andrei


Right, but it needs someone to take another stab at it. Part 
of the job
is to gather all the requirements and look at the previous 
discussions

as well as existing solutions.


It would be terrific if Jacob wanted to mentor a student to 
work on a Phobos package starting from Orange. -- Andrei


Agreed ... Jacob?


  1   2   3   >