Re: Terminix renamed to Tilix

2017-04-05 Thread Minas Mina via Digitalmars-d-announce

On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote:
Terminix, a Linux GTK3 tiling terminal emulator written in D, 
has been renamed to Tilix due to trademark infringement issues 
with the Terminix International corporation. The new URLs for 
Tilix are as follows:


Website: https://gnunn1.github.io/tilix-web
Github Repo: https://github.com/gnunn1/tilix

As always, anyone is interested in participating in the 
development of Tilix feel free to drop me a line.


I have tried it on Ubuntu.
Works like a charm, thanks for the good work!
(I have set it as my default terminal :))


Re: Terminix 1.4.0 Released

2016-12-22 Thread Minas Mina via Digitalmars-d-announce

On Thursday, 22 December 2016 at 14:06:13 UTC, Gerald wrote:
Terminix 1.4.0, a tiling terminal emulator for Linux written in 
D, is now available.


[...]


Just checked the website and looks really awesome!
I will install it today on my Ubuntu ;)


Re: [Blog post] Operator overloading for structs in D

2016-06-03 Thread Minas Mina via Digitalmars-d-announce

On Thursday, 2 June 2016 at 20:53:18 UTC, Walter Bright wrote:

On 6/2/2016 11:34 AM, Minas Mina wrote:
I have written a blog post about operator overloading for 
structs.


You can find it here:
https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/


Comments and suggestions are appreciated.


Things usually go better on Reddit if you post as the first 
comment a summary of what the article is about.

I'll do it in future posts then :)

Also, if you post your own articles, Reddit is likely to put 
you on their auto-ban list :-(

What can I do about this?


Re: [Blog post] Operator overloading for structs in D

2016-06-02 Thread Minas Mina via Digitalmars-d-announce
On Thursday, 2 June 2016 at 18:55:36 UTC, Steven Schveighoffer 
wrote:

On 6/2/16 2:34 PM, Minas Mina wrote:

[...]


Cool. You missed one very significant thing. That is using 
mixins to take advantage of the operator string.


For example, opOpAssign can be done in one step:

ref Rational opOpAssign(string op)(auto ref Rational r)
if(op == "+" || op == "-" || op == "/" || op == "*")
{
mixin("auto tmp = this " ~ op ~ " r;");
_n = tmp.n;
_d = tmp.d;
return this;
}

This is the whole reason, BTW, that operator overloads were 
changed from the original D1 style versions.


Some more examples of your Rational type in action would be 
good too.


-Steve


Thanks for the feedback! I will update the post tomorrow or on 
Saturday.


[Blog post] Operator overloading for structs in D

2016-06-02 Thread Minas Mina via Digitalmars-d-announce

I have written a blog post about operator overloading for structs.

You can find it here: 
https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/


Comments and suggestions are appreciated.


Re: Release D 2.070.0

2016-01-28 Thread Minas Mina via Digitalmars-d-announce

On Wednesday, 27 January 2016 at 21:08:54 UTC, Martin Nowak wrote:

Glad to announce D 2.070.0

http://dlang.org/download.html

This release comes with the new std.experimental.ndslice, 
heavily expanded Windows bindings, and native exception 
handling on 64-bit linux. See the changelog for more details.


http://dlang.org/changelog/2.070.0.html

-Martin


When trying to install on Ubuntu 15.10 x64, I get this:
http://imgur.com/L4ozgC1

I didn't proceed with the installation as I don't want any 
possible broken things.


Tutorial on using eclipse with D

2016-01-24 Thread Minas Mina via Digitalmars-d-announce

Another IDE tutorial!

Reddit post:
https://www.reddit.com/r/programming/comments/42gcxi/using_eclipse_ide_with_d/


Re: Using D with IntelliJ

2016-01-19 Thread Minas Mina via Digitalmars-d-announce
On Tuesday, 19 January 2016 at 15:46:30 UTC, Andrei Alexandrescu 
wrote:

On 01/17/2016 04:29 AM, Minas Mina wrote:

I have written a tutorial on how to set up D with IntelliJ.

https://www.reddit.com/r/programming/comments/41cuud/using_d_with_intellij/

Comments appreciated :)


Great going, thanks! I do have a comment. Could you please link 
the tutorial from the appropriate editors page at 
wiki.dlang.org. Thanks! -- Andrei


Done! Please check it out and let me know if I've done everything 
correctly.

http://wiki.dlang.org/IDEs

(last entry of the first table).


Re: Using D with IntelliJ

2016-01-17 Thread Minas Mina via Digitalmars-d-announce

On Monday, 18 January 2016 at 00:14:52 UTC, Israel wrote:

On Sunday, 17 January 2016 at 09:29:02 UTC, Minas Mina wrote:

I have written a tutorial on how to set up D with IntelliJ.

https://www.reddit.com/r/programming/comments/41cuud/using_d_with_intellij/

Comments appreciated :)


Thanks. Would be nice if you could do one for setting up DCD as 
it isnt difficult but its also not simple.


I didn't know that it's possible until someone commented about it 
on reddit. I will try to set it up and update the post.


Using D with IntelliJ

2016-01-17 Thread Minas Mina via Digitalmars-d-announce

I have written a tutorial on how to set up D with IntelliJ.

https://www.reddit.com/r/programming/comments/41cuud/using_d_with_intellij/

Comments appreciated :)


Re: Hash Tables in D

2016-01-06 Thread Minas Mina via Digitalmars-d-announce
On Wednesday, 6 January 2016 at 12:19:45 UTC, Jacob Carlborg 
wrote:

On 2016-01-05 15:44, Minas Mina wrote:

It won't, but to use it again you need to allocate a new one 
(If I'm not

mistaken).


Not explicitly. I don't know if the runtime allocates a new 
one. This works:


void main()
{
auto foo = ["foo" : 1];
foo = null;
foo["bar"] = 2;
assert(foo["bar"] == 2);
}


I believe it does, check out this example:
import std.stdio;

class C
{
int[int] squares;
}

void main()
{
auto squares = [0 : 0, 1 : 1];

C c = new C();
c.squares = squares;

writeln(c.squares is squares); // true

squares = null;
squares[10] = 100;
writeln(c.squares is squares); // false
}

If the runtime used the same underlying memory, the second 
writeln() would print true, right?

So if I am correct, a new AA is allocated.


Re: Hash Tables in D

2016-01-05 Thread Minas Mina via Digitalmars-d-announce

On Monday, 4 January 2016 at 19:58:03 UTC, Martin Nowak wrote:

On 01/04/2016 09:06 AM, Bastiaan Veelo wrote:


This would be a bug (segfault on my machine):


foreach (key; aa.byKey)
aa.remove(key);


Note that, in this example, there is no need to remove every 
element separately, you can also just do


Sorry my mistake, I never use aa.keys (instead of aa.byKey) b/c 
it

allocates.
So it's still sort of a bug to recommend people allocating an 
array ;).



I haven't found a way to clear an AA without allocating though.
(Creating a new one doesn't count).


Re: Hash Tables in D

2016-01-03 Thread Minas Mina via Digitalmars-d-announce

On Sunday, 3 January 2016 at 19:29:05 UTC, Martin Nowak wrote:

On 01/01/2016 04:27 PM, Minas Mina wrote:

On Friday, 1 January 2016 at 13:59:35 UTC, Walter Bright wrote:

http://minas-mina.com/2016/01/01/associative-arrays/

https://www.reddit.com/r/programming/comments/3z03ji/hash_tables_in_the_d_programming_language/



Thanks for sharing this. I am the author. :)


There is a bug.

You should never do this b/c of iterator/range invalidation.

foreach (key; aa.keys)
aa.remove(key);


The reference states that keys: "Returns dynamic array, the 
elements of which are the keys in the associative array".


Isn't the array newly allocated?


Re: Hash Tables in D

2016-01-01 Thread Minas Mina via Digitalmars-d-announce

On Friday, 1 January 2016 at 13:59:35 UTC, Walter Bright wrote:

http://minas-mina.com/2016/01/01/associative-arrays/

https://www.reddit.com/r/programming/comments/3z03ji/hash_tables_in_the_d_programming_language/


Thanks for sharing this. I am the author. :)


Re: DLanguage IntelliJ plugin released

2016-01-01 Thread Minas Mina via Digitalmars-d-announce

On Wednesday, 30 December 2015 at 17:17:07 UTC, Israel wrote:

On Wednesday, 30 December 2015 at 17:04:15 UTC, Suliman wrote:

On Monday, 28 December 2015 at 19:23:17 UTC, Kingsley wrote:

On Friday, 25 December 2015 at 17:43:06 UTC, Kingsley wrote:

On Friday, 25 December 2015 at 16:55:32 UTC, Bogdan wrote:

[...]
Raise any issues at the GitHub page and I will fix - I will 
write some documentation over the next few days also


Intellij D plugin version 1.5 released with improved DUB 
support and bug fixes


How to install this plugin on Windows?


Intellij Idea 14 on windows.

File > Settings > plugins > browse repositories

The plugin does not show up on Intellij Idea 15 though so im 
guessing it isnt compatible yet and neither on CLion.


I am actually using it with IntelliJ 15.


Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce

On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote:

Hi

I have released an initial attempt at an IntelliJ plugin for D 
to the jetbrains plugin repository.


It's DLanguage version 1.2

It has basic syntax highlighting, autocompletion with DCD, 
compile checking and linting with Dscanner, code formatting 
with Dfmt and navigation jump to classes and functions and dub 
support - recommend using dub


See the GitHub page screenshots for an idea

Enjoy :)

--Kingsley


This is awesome, I really waited for an IntelliJ plugin!
I will test on IntelliJ 15 tonight or tomorrow :)


Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce

I'm trying to build on IntelliJ 15, Ubuntu 15.10:

9:05:55 ΠΜ All files are up-to-date
9:05:55 ΠΜ Error running Run DUB: DUB executable is not 
specified.Configure DUB settings


How do I configure dub settings?
It seems that "configure" is a link (it's underlined) but nothing 
opens when I click on it.


Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce
Also, it seems that no [project name].sdl file is created for dub 
projects.


Re: So You Want To Write Your Own Language

2015-12-23 Thread Minas Mina via Digitalmars-d-announce
On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright 
wrote:

This has resurfaced on Reddit:

https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/


Very good article, thanks!


Dynamic arrays

2015-08-31 Thread Minas Mina via Digitalmars-d-announce

I have started a series of tutorials in D.

This is my latest blog post, which is about dynamic arrays:
http://minas-mina.com/2015/08/31/dynamic-arrays/

Constructive criticism is welcome.


Re: Dynamic arrays

2015-08-31 Thread Minas Mina via Digitalmars-d-announce
On Monday, 31 August 2015 at 21:45:26 UTC, Steven Schveighoffer 
wrote:

On 8/31/15 5:09 PM, Minas Mina wrote:

I have started a series of tutorials in D.

This is my latest blog post, which is about dynamic arrays:
http://minas-mina.com/2015/08/31/dynamic-arrays/

Constructive criticism is welcome.


Technical difference, in an array layout, length comes first, 
then pointer.


shrinked -> shrunk.

string is an alias for immutable(char)[], not 
immutable(char[]). The parentheses placement is crucial (one 
can be reassigned, one cannot).


Nice article!

-Steve


Thanks, I have corrected the mistakes.

My intention was to keep the article shorter, but I had to write 
a lot of things so it grew up quickly. I decided not to talk 
about slicing static arrays to avoid confusion.


Thank you all for your suggestions!