Re: Any relation?

2016-10-11 Thread Israel via Digitalmars-d
On Tuesday, 11 October 2016 at 18:13:53 UTC, Andrei Alexandrescu 
wrote:

http://indianautosblog.com/2016/10/most-powerful-suzuki-swift-produces-350-hp-25
 -- Andrei


Obviously the ECU is programmed in D.

oh wait...


Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Israel via Digitalmars-d
On Friday, 12 August 2016 at 19:13:12 UTC, Andrei Alexandrescu 
wrote:
I was using a large Lenovo Y70-70 laptop as a pseudo-desktop 
machine and additional monitor. It's quite powerful, but its 
fans would run at all times. Getting really tired of that, I 
googled for the better part of an afternoon for "fanless 
desktop" and it turns out it's much harder to find one than I'd 
initially thought. (Slow fanless machines are easy to find, but 
I was looking for one as powerful as any desktop.)


At about the time I was ready to give up I found an obscure 
site of an Israeli company that claimed to make a real i7 
fanless machine. It was releases very recently, too, so I'm 
thinking it might be of interest to some others.





Andrei


Seems strange how lead programmers are after "silent and fanless" 
computers.


An alienware alpha may have fit the bill for much cheaper. The 
fan is very silent and its also compact. Fits under my monitor 
stand very well.


Re: D is crap

2016-07-03 Thread Israel via Digitalmars-d

On Sunday, 3 July 2016 at 04:37:02 UTC, D is crap wrote:
Sorry, I've spend the last month trying my best to get simple 
shit done. At every turn there is some problem that has to be 
dealt with that is unrelated to my actual work.  Be it the IDE, 
debugging, the library, or user shared code, it is just crap. D 
cannot be used successfully for semi-large projects without 
significant man hours invested in getting everything to work.


[...]


Bait



Re: Minecraft written in D - on Android

2016-04-27 Thread Israel via Digitalmars-d-announce

On Tuesday, 26 April 2016 at 16:46:16 UTC, Vadim Lopatin wrote:

On Tuesday, 26 April 2016 at 14:25:05 UTC, Benjamin Thaut wrote:

On Tuesday, 26 April 2016 at 08:42:21 UTC, Vadim Lopatin wrote:
Demo of DlangUI Scene3D engine - Minecraft-like voxel 
rendering - is available for Android/ARM.


Post screenshots please.


Screenshot from my android device:

http://imgur.com/gallery/7wVBk8E


How are the frames?


Re: Some questions on latest work

2016-04-27 Thread Israel via Digitalmars-d

On Tuesday, 26 April 2016 at 01:04:21 UTC, Bill Hicks wrote:

On Monday, 25 April 2016 at 21:20:04 UTC, Bienlein wrote:

[...]


To be frank, if you are using D for anything more than a 
throwaway hobby project, I have to tell you, D is a failed 
language, so stop wasting your time.  The people who think that 
one day D is going to replace or threaten C++, or for that 
matter any other programming language, are delusional.  No 
offense to all those who have spent great amount of time 
contributing to D, but people need to accept reality.


[...]


Lol, i hope youre being paid and not doing it for free.


Re: Using D with IntelliJ

2016-01-17 Thread Israel via Digitalmars-d-announce

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.


Re: IPFS is growing and Go, Swift, ruby, python, rust, C++, etc are already there

2016-01-12 Thread israel via Digitalmars-d

On Tuesday, 12 January 2016 at 23:26:07 UTC, karabuta wrote:
Anyone has the fuel and time to take the initiative? It will 
probably take over HTTP.


Currently implemented in Go with JavaScript and Python on the 
way. However it seems most other programming languages have API 
Client Libraries. Sup? :)


http://ipfs.io/

https://github.com/ipfs/ipfs


So is this Blue ray vs HD DVD all over again?

https://zeronet.io/


Re: DLanguage IntelliJ plugin released

2016-01-05 Thread Israel via Digitalmars-d-announce

On Monday, 4 January 2016 at 12:17:22 UTC, Russel Winder wrote:
On Sun, 2016-01-03 at 23:46 +, Kingsley via 
Digitalmars-d-announce wrote:

[...]

[…]

[...]


I have just upgraded to IntelliJ IDEA 16 so I'll give it a try.

All my JVM-language projects, I now do a Gradle build 
specification for and then let IntelliJ IDEA build a project 
based on that. CLion does the same with CMake.


Given we can build D projects with CMake and IntelliJ IDEA 
plugins can (with a bit of fiddling) be used in CLion, I will 
try with CLion 1.5.


I think D should focus on CLion not on IntelliJ IDEA.


I Agree but CLion is not free and accessible as IDEA. I believe 
it should still get support but IDEA should have top priority.


Re: Unclear about the benefits of D over C++ and Java

2016-01-02 Thread israel via Digitalmars-d
On Saturday, 2 January 2016 at 11:31:24 UTC, Dibyendu Majumdar 
wrote:

Hi,

I am a long time observer of D but have never done any coding 
in D. I have considered using D several times but have ended up 
either going with C++ or Java.


I feel that for someone like me it is not clear what 
significant advantages D has over C++ or Java to make a switch. 
I cannot afford to experiment with a language unless I know for 
certain the benefits of using it.


You know, from the last 2 years that i have followed D, i have 
come to the conclusion that: If you enjoy programming, use D. If 
its just your job or because its the standard, stay with C/C++.


because not once have i heard someone say programming in C++ is 
enjoyable.
But maybe its just me, maybe im too young to know the olden days 
of the 80s/90s where C++ was a godsend compared to C. Or was it? 
I dont know, i wasnt alive...


Re: Why does this not work?

2016-01-01 Thread israel via Digitalmars-d-learn

On Friday, 1 January 2016 at 14:00:41 UTC, TheDGuy wrote:

writeln("Which number should i guess?");
string input = readln();
int i = to!int(input);


You fell for the C# syntax like me...

According to Ahli. You have to use the old C way of doing it with 
readf.


Re: DLanguage IntelliJ plugin released

2015-12-30 Thread Israel via Digitalmars-d-announce

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:
On Friday, 25 December 2015 at 15:28:23 UTC, Pradeep Gowda 
wrote:

[...]


Couldn't figure out what went wrong until I read your 
comment and looked at the screenshots. Try going to 
Settings/Other Tools/D Tools and press all the "Auto Find" 
buttons.
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.


Re: Better docs for D (WIP)

2015-12-30 Thread Israel via Digitalmars-d-announce
On Thursday, 31 December 2015 at 01:32:56 UTC, Adam D. Ruppe 
wrote:


The D leaders know how important examples are. We are often 
told adding more is low hanging fruit. I completely agree. But 
that's not ALL we need. He wants examples to get started, yes, 
but he also wants understanding to go beyond examples. That's 
where text helps. That's where understanding the function 
signatures help. Eventually, when people go to write their own 
libraries, they might want to do Phobos style genericity. You 
can't do that without understanding the function signatures... 
and those blobs of text are not understandable.


This is what hits me the most. Thats why we suggested "user 
contributed examples". PHP docs is the only place ive seen this. 
What is your stance on this and if you agree, how would you 
implement it? How would it work?


Re: Mockup of my doc dream ideas

2015-12-25 Thread Israel via Digitalmars-d

On Friday, 25 December 2015 at 05:06:47 UTC, Adam D. Ruppe wrote:
I wrote this manually as a mock of what I really want the docs 
to look like. I only marked up the top box and a wee bit of the 
bottom. The body text of the doc is written by us and is OK, 
but the function signature is a mess.


[...]


Why not take it to the next level while youre at it? Add user 
comments that can be rated by users and sorted by date.


Re: Mockup of my doc dream ideas

2015-12-25 Thread Israel via Digitalmars-d

On Friday, 25 December 2015 at 17:00:05 UTC, default0 wrote:
On Friday, 25 December 2015 at 14:50:06 UTC, Adam D. Ruppe 
wrote:
Aren't these usually called tutorials? Or am I misunderstanding 
what you mean here?


A single page really detailing what a function does and 
providing an example for how to use it is what I very much 
prefer.


Plus I'm probably biased since I'm coming from C# and thus am 
heavily used to the MSDN docs.



Thought, one page per function is ok at times too.


:-)


This is exactly how i feel. You might see me as coming too weak 
because im used to C# and MSDN Docs holding my hand but with the 
help of those docs and autocompletion, i learned a decent amount 
of C# in less than 2 weeks without rarely asking anyone for help. 
This isnt something you could say for C/C++ or even ruby and 
python.


Re: Pain when changing DMD version...

2015-12-23 Thread Israel via Digitalmars-d

On Thursday, 24 December 2015 at 04:06:40 UTC, JerryR wrote:
A couple of months ago, I decided to upgrade my DMD to a new 
version: 2.066, and today I needed compile that project again, 
which a year ago I had compiled with DMD 2.060.


[...]


Upgrading GTKD is definitely the best route. Most likely GTKD 
will have done some changes since the last time you used it so 
even if you upgrade GTKD you will still get errors but at least 
GTKD will now correspond to the compiler version so your errors 
will be fixable on your projects side and you wont have to fix 
anything on the library's side.


Re: Can't debug my solution

2015-12-19 Thread Israel via Digitalmars-d-learn

On Saturday, 19 December 2015 at 20:52:41 UTC, Matheus Reis wrote:

Hello, people!

I'm Matheus, a 20 y/o game developer who wants to get started 
with D. It has really caught my attention, and I've been 
playing with it for some hours now.


I've got it all working (without some "phobos.lib", is it 
really needed?) with Xamarin Studio but I can't get it to debug 
my solution when I run it. What do I need to do?


I can run it with debugging OFF (ctrl-f5) but can't run it 
"normally". What am I missing?


Thanks in advance! :)


You dont happen to be on OSX?


Re: D programming video tutorial

2015-12-18 Thread Israel via Digitalmars-d-learn

On Friday, 18 December 2015 at 22:35:45 UTC, Jakob Jenkov wrote:

On Sunday, 13 December 2015 at 20:29:47 UTC, Pederator wrote:


I have been thinking about writing about D too. Maybe make a 
few videos. But I don't know... I don't know how big the 
interest is in total.


Well considering documentation is one of Ds biggest criticizers, 
i think a video would be very high in demand. Not that you can 
explain much in a single video but the video is supposed to be a 
tutorial.


Re: Please vote for the DConf logo

2015-11-14 Thread Israel via Digitalmars-d-announce
On Friday, 13 November 2015 at 14:22:32 UTC, Andrei Alexandrescu 
wrote:

On 11/04/2015 04:30 AM, Andrei Alexandrescu wrote:

[...]


By my count:

* 1.1:xxx
* 1.2:xxx
* 2:  xxx
* 3:  xx
* 3, change font: xxx

So 3 by "anonymous" is it!

I created 
https://github.com/D-Programming-Language/dconf.org/pull/94 and 
also preemptively uploaded the logo to 
http://dconf.org/2016/index.html. Had to adjust svg dimensions 
to 200x110.


Please help improve the size and placement of the logo.


Thanks,

Andrei


Damnit, 3 is nice but its only a temporary thing. 2 has potential 
to be an official D logo.


Re: Please vote for the DConf logo

2015-11-04 Thread Israel via Digitalmars-d-announce
On Wednesday, 4 November 2015 at 09:30:30 UTC, Andrei 
Alexandrescu wrote:

Reply to this with 1.1, 1.2, 2, or 3:

1) by ponce:

Variant 1: 
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2: 
https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png


2) by Jonas Drewsen:

https://dl.dropboxusercontent.com/u/188292/g4421.png

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


Thanks,

Andrei


Definitely 2


Re: 0 in version number?

2015-10-16 Thread Israel via Digitalmars-d
On Friday, 16 October 2015 at 22:54:11 UTC, Jonathan M Davis 
wrote:
On Friday, 16 October 2015 at 22:44:15 UTC, Gary Willoughby 
wrote:
On Friday, 16 October 2015 at 17:58:27 UTC, Jonathan M Davis 
wrote:
How is whether there's a 0 before the 68 anything but 
bikeshedding? It's the same number either way, it sorts 
better as-is, and it would be inconsistent of us to change 
now. Changing how the overall numbering scheme works might 
make sense, but simply removing the 0 wouldn't gain us 
anything as far as I can see.


- Jonathan M Davis


How? Let me explain.

Removing a zero is not what this is about. What we are talking 
about is marketing.

[snip]

Fine. You think that making dmd's versioning be something more 
standard would help the community and its PR. And maybe it 
would. But simply removing the 0 doesn't do that. The whole 
versioning scheme would need to be changed. Even if discussing 
the versioning scheme isn't bikeshedding, simply arguing over 
whether the 0 should be there or not _is_ bikeshedding.


- Jonathan M Davis


Well sure, removing the 0 wouldnt cut it but at least 
incrementing it would make D seem more consistent across the 
board. 2.069 seems like D is all weirded out.


Maybe incrementing the version number like 2.070, 2.080, 2.100, 
2.120, 2.125, 2.135, would make ALOT more sense.


Re: DSFML reaches version 2.1

2015-10-07 Thread Israel via Digitalmars-d-announce

On Wednesday, 7 October 2015 at 14:07:59 UTC, Jeremy DeHaan wrote:

On Wednesday, 7 October 2015 at 12:44:13 UTC, suliman wrote:
Perfect!!! Big thanks! I think not only one are tired from 
GTK, and need simple and compact gui lib


It's not really a gui library. I mean, you could use it as such 
I guess, but it's more for game development.


Thanks alot. I like to make my own GUI from scratch though since 
touch input is really not that complicated.


Im working on touchscreen like applications for windows tablets


Re: DSFML reaches version 2.1

2015-10-07 Thread Israel via Digitalmars-d-announce

On Wednesday, 7 October 2015 at 06:43:18 UTC, Jeremy DeHaan wrote:
It is my pleasure to announce that DSFML hit version 2.1! This 
version has been a long time coming, but this represents a huge 
milestone for DSFML (and for me!)


[...]


Oh and you forgot to include these in the prebuilt binaries for 
windows.


libgcc_s_dw2-1.dll
libsndfile-1.dll
libstdc++-6.dll
libwinpthread-1.dll
openal32.dll


Re: TIOBE october

2015-10-06 Thread Israel via Digitalmars-d

On Wednesday, 7 October 2015 at 03:26:37 UTC, Laeeth Isharc wrote:

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

d up from 31 in march.  Just below scala, sas, and fortran.  No 
doubt noisy, and possibly news about Andrei leaving Facebook 
had an influence.  They changed the algorithm to be more 
tolerant of noise, which has had an impact on the results 
(which might also be a hint about the degree of precision in 
such an exercise) but don't say how that affected D, if at all.


By noisy you mean hype?


Re: Anyone working on updated Qt bindings?

2015-10-03 Thread Israel via Digitalmars-d

On Saturday, 3 October 2015 at 01:58:01 UTC, Jeremy DeHaan wrote:
I know a lot of people wish they had new bindings for Qt, so I 
was going to give it a go soon. Is anyone currently working on 
such a thing? I'd rather help someone than compete with them.


btw i see youve made some changes to DSFML. DSFML master is broke 
with symbol and linking problems. I dont know how to fix.


Re: Official D Language Blog

2015-09-25 Thread Israel via Digitalmars-d

On Friday, 25 September 2015 at 15:45:21 UTC, bachmeier wrote:
In this thread: 
http://forum.dlang.org/post/sobegniauemvcepni...@forum.dlang.org the issue of an official blog for the D Language came up. I believe this would be a good idea. There is currently plenty of content:


[...]


They could turn the front page of dlang.org into the blog.


Re: Moving back to .NET

2015-09-20 Thread Israel via Digitalmars-d

On Sunday, 20 September 2015 at 17:32:53 UTC, Adam wrote:

My experiences with D recently have not been fun.

The language itself has a top notch feature rich set. The 
implementation, excluding bugs, feels a bit boxy and old 
school. .NET has a unified approach and everything seems to fit 
together nicely and feels consistent. The abomination of dmd, 
though, is it's error messages. Most of them are meaningless 
and you have to dive down 2 or 3 levels of assumptions to 
figure out what they mean. It's not too bad but because of the 
poor tool set it makes it difficult to debug apps.


Visual D, a mighty attempt to bring some sanity to D in 
windows, is simply to unpolished to work well. It brings the 
looks of Visual Studio but not the feel of how VS works so well 
with .NET. I spend over an order of magnitude more time trying 
to fix D bugs than I do in .NET. Unfortunately this makes it 
infeasible to continue to use D.


For example, I build a ~10k line app in under a week in .NET, 
with gui and everything. In D I'm still working on getting the 
libraries build. Even with all the power D has, what good is it 
if you can't get off the starting line.


Remember, no reason to have the sharpest sword if you can't 
wield it.


The problem is that you seem to be accustomed to an IDE of which 
D is not tied to.
That would limit (as you put it) its portability. But at the same 
time you want a unified tool-set?


Ask any of the vim/emacs users here and they will tell you 
otherwise.


Re: A collection of DIPs

2015-09-07 Thread Israel via Digitalmars-d

On Monday, 7 September 2015 at 14:44:05 UTC, nx wrote:

https://github.com/NightmareX1337/DX


Destroy!


Yea ill admit, i came from C# and i hate underscores. I prefer 
PascalCase above anything.


Re: Did a presentation on a tool I wrote in D

2015-09-03 Thread Israel via Digitalmars-d

On Thursday, 3 September 2015 at 20:05:14 UTC, wobbles wrote:
So, I did a presentation to about 10 colleagues on a tool I 
wrote to aid in automated testing.


Of the 10 (all of us testers by the way, not programmers) 9 had 
never seen the language before, 4 were quite interested in the 
language after - 2 of which came to me after looking to get 
more info on how you could do this and that in D, with the 
intention to go home to install dmd tonight.


Most importantly, my manager seemed ultra impressed with it too!

So, yeah, very positive experience with the language, thought 
I'd share! :)


In what professional field was this automated tool use in?
Would be nice to know.

Were those testers familiar with programming at all?


Re: Who can persuade Markus Persson to give money to the foundation?

2015-09-01 Thread Israel via Digitalmars-d

On Tuesday, 1 September 2015 at 18:31:03 UTC, Jack Stouffer wrote:
On Tuesday, 1 September 2015 at 18:27:43 UTC, Gary Willoughby 
wrote:
On Tuesday, 1 September 2015 at 15:09:33 UTC, Rikki Cattermole 
wrote:

Can we please leave him alone.
He's not in a good state right now, mentally.


What's happened?


He's depressed because he can't act like a normal person 
anymore and he feels like he somehow betrayed his employees 
during the Microsoft buyout.


I guess they were right, money cant buy happiness...

Or maybe he didnt buy the right kind of happiness...


Re: Moving forward with work on the D language and foundation

2015-08-24 Thread Israel via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu 
wrote:

Hello everyone,


Following an increasing desire to focus on working on the D 
language and foundation, I have recently made the difficult 
decision to part ways with Facebook, my employer of five years 
and nine months.



Thanks,

Andrei


Wow, thats great to hear! But also saddening at the same time to 
hear youre leaving facebook :/...


Re: Programming in D paper book is available for purchase

2015-08-20 Thread Israel via Digitalmars-d-announce

On Thursday, 20 August 2015 at 17:09:54 UTC, Ali Çehreli wrote:

On 08/20/2015 07:02 AM, Johannes Pfau wrote:

 BTW: For everybody searching on amazon.de: Use the full title
 Programming in D: Tutorial and Reference. If you only
search for
 Programming in D it's not on the first few result pages...

Thanks for the tip. I think Amazon's search engine is slowly 
learning and perhaps the European site is a little behind.


Just Programming in D with quotes were sufficient to find on 
the US site right away. Today, it is on the first search page 
even when searched without the quotes (still at the bottom 
though). (Of course, the results may be customized for the 
logged in user; I don't know.)


Ali


Thanks. Its available on amazon. Programming in D does not 
bring it up as the first result although i think you can contact 
them to have them fix it faster.


I think you made a wise choice directing it towards new 
programmers rather than stubborn C/C++ die hards.


Re: Slice patterns in Nightly Rust

2015-06-20 Thread Israel via Digitalmars-d

On Sunday, 21 June 2015 at 03:23:18 UTC, Dennis Ritchie wrote:

Recently published documentation Nightly Rust. I saw this:
https://doc.rust-lang.org/nightly/book/slice-patterns.html

What do you think about this: a terrible thing or a cool 
feature?


fn is_symmetric(list: [u32]) - bool {
match list {
[] | [_] = true,
[x, inside.., y] if x == y = is_symmetric(inside),
_ = false
}
}

fn main() {
let sym = [0, 1, 4, 2, 4, 1, 0];
assert!(is_symmetric(sym));

let not_sym = [0, 1, 7, 2, 4, 1, 0];
assert!(!is_symmetric(not_sym));
}

http://is.gd/TvrXSn

I see this competition slices of D. Also seen are not very 
clear design.


Jesus Christ, that syntax...


Re: PHP verses C#.NET verses D.

2015-06-15 Thread israel via Digitalmars-d

On Monday, 15 June 2015 at 23:53:06 UTC, Nick B wrote:

Hi.

There is a startup in New Zealand that I have some dealings 
with at present. They have build most of their original code in 
PHP, (as this was quick and easy) but they also use some C#.net 
for interfacing to accounting appls on clients machines. The 
core PHP application runs in the cloud at present and talks to 
accountings applications in the cloud. They use the PHP symfony 
framework.


High speed in not important, but accuracy, error handling, and 
scalability is, as they are processing accounting transactions. 
They have a new CEO on board, and he would like to review the 
companies technical direction.


Their client base is small but growing quickly.  I know that 
PHP is not a great language, and my knowledge of D is 
reasonable, while I have poor knowledge of C#.net.


Looking to the future, as volumes grow, they could:
1.  Stay with PHP  C#.net, and bring on servers as volumes 
grow.

2.  Migrate to C#.net in time
3.  Migrate to D in time.

Any comments or suggestions on the above?


We have seen this before. I believe the verdict 
was...Experiment first, if things
seem like they will work out with D. Go full force. But from the 
sound of your situation it seems there is no time for 
experimentation.


The best you could do is tell your boss the pros and cons of D 
and ask if he can give you some time to test things out first. 
But i doubt they will listen to the insight of a normal 
employee...unless you have a good reputation?


Re: Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

2015-06-09 Thread Israel via Digitalmars-d

On Tuesday, 9 June 2015 at 18:25:36 UTC, Dennis Ritchie wrote:

On Tuesday, 9 June 2015 at 18:02:55 UTC, Ali Çehreli wrote:


http://www.reddit.com/r/programming/comments/396c95/of_the_emerging_systems_languages_rust_d_go_nim/


And, by the way, I have never heard of the Crystal :)


Ruby that compiles?


Re: Getting Started

2015-06-05 Thread Israel via Digitalmars-d

On Saturday, 6 June 2015 at 01:13:38 UTC, anonymous wrote:

On Friday, 5 June 2015 at 20:18:59 UTC, tcak wrote:

[...]


http://dlang.org/getstarted.html should be that page. 
Unfortunately, it's not very good.


I made a pull request to feature Ali's Programming in D more 
prominently there:

https://github.com/D-Programming-Language/dlang.org/pull/1010
Because as far as I know that's the best we have for absolute 
newbies.



[...]


Yeah, for somewhat advanced people that are just new to D that 
could be nice.


Except my getting started page idea was supposed to cater to both 
new programmers and people who are just new to D...


Re: Getting Started

2015-06-05 Thread Israel via Digitalmars-d

On Friday, 5 June 2015 at 20:18:59 UTC, tcak wrote:
I am looking at the main page of dlang.org, and really there is 
no page to warm up a new comer to D language. Sure, there are 
book links, details of language as D Reference etc, but those 
are not suitable for a new starting guy.


Showing the features of language with SIMPLE examples in many 
pages could be very useful in my opinion.


I liked rust's example page: http://rustbyexample.com/hello.html
but it is still not for a new comer. Too much writing is there. 
It should be like Do those things, and see what value you will 
see..


Now, as always the question is, Who is going to prepare 
those?. We need:


1. A link to example pages on left side of web page.
2. 5 simple examples those are written in separate pages.
3. Give link to each page for next example.

By the time, people can contribute to there. When there is no 
base, nobody is taking any steps.


Ill be honest, that Getting Started page was my idea.

Its a great start no matter what programming experience youre 
going through.
It is supposed to be a simple and proper tutorial which guides 
new users/programmers through the most essential parts.


The problem is that we didnt have the time to make it happen. But 
ill run down a simple timeline from beginning to end:


-Simple Hello World / simple Compiler usage tutorial
-Variable types / auto (auto needs to be explained because we see 
it often)

-Integers/numbers/floats etc...
-Simple number mathematical operators and examples
-some string functions
-some array samples
-some string / array manipulation
-loops
-imports / modules
-Object oriented projects and structure
-io file and path functions

-Extras and Useful functions (This serves as a small tutorial for 
extremely useful

functions that we use often)
Thread.sleep(), etc...

-Dub Tutorial and using third party libraries

-Ahli Cerellis Book for more advanced programming detail, 
techniques and schemes


Re: When is D endorsed by Facebook?

2015-06-02 Thread Israel via Digitalmars-d

On Tuesday, 2 June 2015 at 20:51:38 UTC, rom wrote:

Hi all.

Sorry if I put the foot into it, but when is Facebook going to 
use more D based programs ? Why don't they do that ? because  
std functions use the GC ? What happened since the end of 2013 ?


I feel like we miss manpower, renown, credibility... and i 
think it's such a shame, because D is the best language i know 
of  ...


It's quite known that a language greatly benefits from 
corporate backing, am i wrong?


So what is the rational at Facebook? Are they going to wait D' 
s dead to endorse it?


Thanks for any clue or even better, an answer ?


I dont believe its about endorsement but At the moment i believe 
facebook wants to have a foot in the door. And they have a pretty 
big foot in there too.


Re: Daily downloads in decline

2015-06-01 Thread Israel via Digitalmars-d

On Monday, 1 June 2015 at 18:58:04 UTC, Joakim wrote:
On Monday, 1 June 2015 at 18:11:32 UTC, Andrei Alexandrescu 
wrote:
Per http://erdani.com/d/downloads.daily.png, the 28-day moving 
average of daily dmd downloads is in pronounced decline 
following a peak at the 2.067 release. It is possible that the 
recent release of Rust 1.0 has caused that, shifting drive-by 
experimenters to it.


I don't know that we should over-react to the recent slump, 
especially since it was presaged by such a large spike.  I'm 
sure it'll pick back up again as people start watching the 
Dconf 2015 videos.  Filtering out the noise, the daily download 
numbers look stable around 1200 for almost the last year.


The real issue is how we take the next jump upwards.  
Hopefully, mobile support, which only Dan and I are working on 
right now, can help with that. :)


1. It's a big bummer that nothing has happened with chopping 
up the videos over the weekend. Right now DConf is three 
6-hour blobs of unstructured footage. John has warned us he 
might not have broadband access to do so during his travels. 
In retrospect, what we should have done was to immediately 
arrange that John gives access to the videos to someone 
willing and able to do the postprocessing.


Given the subpar quality of the livestream, I'm not sure we 
should be highlighting those videos.  I've watched several 
hours of the livestream and the frequent audio dropouts are 
very annoying.  What is the plan to put out the better videos 
recorded by the organizers: put them all out as soon as they're 
available or stagger their release?


On Monday, 1 June 2015 at 18:14:40 UTC, Andrei Alexandrescu 
wrote:
4. We need to marshal our efforts behind 2.068, and clarify 
the big ticket items accomplished. I'm thinking rangification 
of Phobos - GC no longer needed for most primitives, and 
documented where needed. As much as I want it, ddmd seems to 
not be happening for 2.068 because of, simply put, 
insufficient resources.


Can you expand on why ddmd is getting delayed?  I, and 
seemingly many others, were looking forward to ddmd.  I did not 
see Daniel's talk as it wasn't livestreamed.  Perhaps we can 
help get ddmd out the door.


Im Curious, is the effort putting more focus towards iOS or 
Android?


Also, it would probably help if the version numbers didnt 
increment so slowly.

Maybe 2.10 for DDMD?


Re: D casually mentioned and dismissed + a suggestion

2015-05-12 Thread Israel via Digitalmars-d

On Tuesday, 12 May 2015 at 22:57:32 UTC, Max Klyga wrote:

On 2015-05-12 20:02:05 +, Brian Schott said:


On Tuesday, 12 May 2015 at 18:35:10 UTC, FujiBar wrote:

But there are no vacancies...


There's at least one:
https://emsi.bamboohr.com/jobs/view.php?id=30


https://arex.recruiterbox.com/jobs/fk0hjlh/


As long as Walter and Andrei keep the D ecosystem stable and 
streamlined, new jobs should keep popping up...


GTA5 mods in D?

2015-05-02 Thread Israel via Digitalmars-d
I know you guys are programmers and not gamers but it thought 
maybe you want to experiment or help expand D?


Currently there is a Script hook program that allows users to 
create mods/scripts for GTA5. 
http://www.dev-c.com/gtav/scripthookv/


Some people have made plugins for script hook to support other 
languages like Lua and .Net languages like C# and VB. 
https://www.gta5-mods.com/tools. If this sounds interesting, 
maybe someone can make a plugin for D. Im not even sure if or how 
it will work.


I wont hide anything from you though. It might dissuade you from 
trying.
This will require you to obtain a copy of the game, obviously to 
test it.
However, the company Rockstar doesnt like people modding the game 
so if you plan on playing Multiplayer, you will probably get 
banned.


Anyways, Thanks for looking.


Re: GTA5 mods in D?

2015-05-02 Thread Israel via Digitalmars-d

On Saturday, 2 May 2015 at 20:38:11 UTC, w0rp wrote:


If it's a C API, you can use it from D. You just need to write 
the bindings to the library to use it with some extern(C) 
functions. If it's a C++ API, you can kind of sort of use it 
from D, mileage may vary.


It's a shame Rockstar is banning modding. They must hate fun.


Yup, you were right, its a c++ api. At least thats what the .Net 
plugin shows me here.


https://github.com/crosire/scripthookvdotnet/tree/master/source

The thing is im not advanced enough to make it happen.


Re: Interrogative: What's a good blog title?

2015-04-28 Thread Israel via Digitalmars-d
On Monday, 27 April 2015 at 22:54:07 UTC, Andrei Alexandrescu 
wrote:




Please let me know of any thoughts you might have!


Thanks,

Andrei


Pelican Day


Re: How does D improve on C++17?

2015-04-26 Thread Israel via Digitalmars-d

On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote:

Now on the front page of Hacker News!

https://news.ycombinator.com/


I feel like nowadays its just a Pick your poison type of thing.

It seems like an arms race so i dont think neither will improve 
upon the other.


How to change text while running in console?

2015-04-26 Thread Israel via Digitalmars-d-learn
I remember doing this in C++ and it worked but is this possible 
in D?


Its basically updating information in the console window without 
constantly printing new lines.


http://stackoverflow.com/questions/14043148/how-to-change-text-while-running-the-console


Re: How to change text while running in console?

2015-04-26 Thread Israel via Digitalmars-d-learn
On Monday, 27 April 2015 at 02:30:36 UTC, Vladimir Panteleev 
wrote:

On Monday, 27 April 2015 at 02:26:01 UTC, Israel wrote:
I remember doing this in C++ and it worked but is this 
possible in D?


Its basically updating information in the console window 
without constantly printing new lines.


http://stackoverflow.com/questions/14043148/how-to-change-text-while-running-the-console


write(info, \r); stdout.flush();

E.g. with percent:

writef(%d%%\r, current * 100 / total); stdout.flush();


Thank you guys it works. Even with the percent sign.

write(sumincrease, %, \r); stdout.flush();


Re: EMSI is hiring a D developer

2015-04-18 Thread Israel via Digitalmars-d-announce

On Sunday, 19 April 2015 at 03:16:02 UTC, Dan Olson wrote:

Abdulhaq alynch4...@gmail.com writes:
And now a haven for D.


Take the job, make it happen.

Silicon Valley will be left alone...


Re: D AutoCompletion: is ycmd integration valuable?

2015-04-15 Thread Israel via Digitalmars-d

On Wednesday, 15 April 2015 at 13:15:31 UTC, rcorre wrote:
For those who don't know, ycmd 
(https://github.com/Valloric/ycmd) is an editor-agnostic 
completion engine that aims to reduce a lot of the duplicate 
code written for handling autocompletions in different 
language/editor combinations.


A long time ago, there was a request to get D support 
integrated into ycmd:

https://github.com/Valloric/YouCompleteMe/issues/521

It was closed as DCD was not 'stable' at the time. After DCD 
became 'stable', it seemed there was nobody available to put 
together the ycmd integration.


Do people think there would be value in reviving this effort?

I was playing around with integrating D completion into YCMD, 
but I'm getting to the point where it is becoming non-trivial.


I'm mainly interested in autocompletion in Vim, which already 
works reasonably well with Dutyl (a plugin that, among other 
things, helps set up vim's omnifunc to use DCD).


Would it be worthwhile to try to move D completion forward by 
integrating DCD with ycmd, or is it just better to keep working 
on existing editor-specific solutions like Dutyl?


Thats great and all but not everyone is autistic enough to learn 
the ins and outs of Vim or Emacs...


Visual Studio completion is very interesting as well because it 
can read the functions of other third party libraries 
automatically. Can ycmd do that?


Re: I came up with a new logo for the D language

2015-04-13 Thread Israel via Digitalmars-d

On Sunday, 12 April 2015 at 22:02:01 UTC, Barry Smith wrote:
It's simple, but clean. Somewhat similar to the old one. Hope 
you like it.


http://s2.postimg.org/m6qcfemhl/dlang.png

Email me at barry.of.sm...@gmail.com if you want the SVG 
version.


It is difficult to associate the letter D with planets or 
simple/flat/metro/minimalism designs of circles and planets.


Good try though...


Re: Which D IDE do you use?(survey)

2015-04-07 Thread Israel via Digitalmars-d

On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote:
Hi, I hope nobody minds but I'm just curious as to the 
popularity amongst D IDEs for a blog post. Sorry if I forgot 
your favorite $editor.


http://goo.gl/forms/MmsuInzDL0

thanks : )


Atom + quantum shell plugin...


Re: Allegro 5.1 + LDC + iOS Breath Of Life

2015-04-04 Thread Israel via Digitalmars-d

On Saturday, 4 April 2015 at 08:14:13 UTC, Dan Olson wrote:

My daughter heads off to college this fall to work towards
a video game design degree, so I've enlisted her to build an 
interesting

demo as a summer project (my own summer of code).


Best of luck to her.


Re: Stream - What is D actually used for?

2015-03-30 Thread Israel via Digitalmars-d

On Monday, 30 March 2015 at 13:29:08 UTC, Rikki Cattermole wrote:

what is D actually used for


Have you ever heard that phrase, Jack of all trades, master of 
none?


If you could pick one language that lives up to this, which one 
would you pick?


Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-26 Thread Israel via Digitalmars-d

On Thursday, 26 March 2015 at 21:36:56 UTC, rumbu wrote:

On Thursday, 26 March 2015 at 19:45:19 UTC, Alex Parrill wrote:

On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote:

...snip...


So tl;dr; make the template constraints in ddoc less prominent?

The new library reference preview under Resources seems to 
already have this (example: 
http://dlang.org/library/std/algorithm/searching/starts_with.html)


This will not solve the readability problem:

- what is a range?
- what is a needle?
- what is a predicate?


Wouldnt that just be Further documentation for advanced 
programming concepts?

Only simple easy to understand examples are needed to begin with.

It should flow like a tree.



Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-26 Thread Israel via Digitalmars-d-announce

On Wednesday, 25 March 2015 at 21:00:37 UTC, Andrei Alexandrescu
wrote:

https://www.reddit.com/r/programming/comments/30ad8b/why_gos_design_is_a_disservice_to_intelligent/

Andrei


Wow this bad, almost like Shots Fired.

Although you can tell hes trying to say something by using a
vertical line of imports on go and a horizontal line of imports
on D to make it look shorter...


How to properly Thread.sleep?

2015-03-25 Thread Israel via Digitalmars-d-learn
Ive tried using google but no matter what code i find it either 
doesnt work, compiler gives me errors or maybe the code is 
deprecated.


What is the proper way of adding sleep time to a program?
Ive tried..

import std.stdio;
import core.thread;

void main()
{
 writeln(Sleep..);
 sleep(200);
 writeln(done);
}

but all i get is a compiler error unidentified identifier sleep.

The documentation examples dont make sense. Why would it work 
this way?


Thread.sleep( dur!(msecs)( 50 ) );  // sleep for 50 milliseconds
Thread.sleep( dur!(seconds)( 5 ) ); // sleep for 5 seconds


Re: How to properly Thread.sleep?

2015-03-25 Thread Israel via Digitalmars-d-learn

On Wednesday, 25 March 2015 at 17:25:50 UTC, Sad panda wrote:

Thread.sleep(200.msecs);
Thread.sleep(12.seconds);
Thread.sleep(1.minutes);


There we go, thank you so much.


Re: Solution to problems:

2015-03-24 Thread Israel via Digitalmars-d

On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote:
 In 10 more years I doubt Andrei or Walter will have as much 
energy to do all the work that they are doing... Better build 
the infrastructure now while there is time.


Make an atom plugin. The one stop shop for all things D.


Re: Dlang seems like java now,but why not let d more like C# Style?

2015-03-16 Thread Israel via Digitalmars-d-learn

On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer wrote:
On Saturday, 14 March 2015 at 13:52:13 UTC, Craig Dillabaugh 
wrote:


I don't have any C# experience so I can't compare those 
languages much, but I've heard people say their are D / C# 
similarities.


Anyway, this isn't a criticism of your comment, I was just 
curious what (other than the shared C++ syntax heritage) you 
find so Java-like in D?


Cheers,

Craig


I've been using C# pretty extensively for the last year or so. 
Superficially, at least, C# and D are pretty similar, eg auto 
(var), foreach, lambdas, classes and structs. C# is more biased 
towards OO than D.


Metaprogramming is significantly weaker in C#. This is probably 
the one area where I've wished for some of D's functionality.


Reflection is all runtime.

C# has some AST capabilities that D doesn't. This is probably 
the main area where I envy C# when using D.


And C# has LINQ, which when combined with the last point is 
fricken awesome.


You should give C# a try, its actually great. The only thing that 
holds me back is that its maintained by microsoft, Multi Platform 
support is sub par, and it cant be targeted towards other 
architectures.


Re: A few notes on choosing between Go and D for a quick project

2015-03-15 Thread Israel via Digitalmars-d

On Monday, 16 March 2015 at 01:22:47 UTC, cym13 wrote:


HINT 2: it took me about a month and a good tutorial on 
templates (btw, thanks G.Willoughby) to start understanding the 
full prototypes of standard functions. I really recommend 
putting the constraint part in slight grey so that it is still 
here and readable but the immediatly useful part of the 
prototype stands out.


HINT 3: no beginner cares about how exactly it is compiled or 
advanced metaprogramming options. This should not be more than 
mentionned in a getting started page. It is cool stuff, it 
should be said, but it definitely does not fit in an 
introduction to any language.


Its hard to get this across but i too would like to see a simpler 
and easier to understand tutorial on D rather than seeing all 
these complicated things. Even Ahlis book isnt that great. Its 
good, but not great.


HINT 4: D is great. It is a good language already. Stop 
mutating it! Fix bugs, improve the standard library, work on 
the ecosystem, reduce compile-time, but do not try breaking 
things all the time. Don't even think of improving yield as I 
suggested before, I'd prefer a standard library based solution 
at this point.


You definitely have a point. The problem is that everyone else 
see's D as an open source community driven language so everyone 
and their mother wants to contribute their own features, stuff 
like this is bound to happen.
This could also be a bad thing because if D falls behind on its 
bleeding edge mutation it could cause a collapse on people being 
interested.


Re: A few notes on choosing between Go and D for a quick project

2015-03-13 Thread Israel via Digitalmars-d
On Friday, 13 March 2015 at 00:20:40 UTC, Andrei Alexandrescu 
wrote:
A friend of mine needed to complete a small project and thought 
of using a language he didn't know for it. He already knew I 
work on D so he considered it alongside Go. He ended up 
choosing the latter, and documented his decision making process 
in a few notes that he subsequently shared with me. I'll paste 
below a sort of transcript of his handwritten notes.


I think this is valuable information from a relatively unbiased 
potential user, and good ideas and action items on how we can 
improve our curb appeal. Even mistaken perceptions are good 
signal - it means our materials weren't explicit enough to 
dispel them.


I'd love us to derive a few action items from this and other 
feedback.



Andrei


Well see the real problem is that D cant seem to cater to one 
group or another.


It cant cater to new/inexperienced people because it isnt 
portrayed that way.


It cant cater to the hardcore/DieHard C/C++ people because it is 
difficult to convince them.


You need to pick a target audience and stick with it...


Re: A few notes on choosing between Go and D for a quick project

2015-03-13 Thread Israel via Digitalmars-d

On Saturday, 14 March 2015 at 01:40:50 UTC, Almighty Bob wrote:


1. Tutorial, only to be taken to the first chapter of a book 
that is not free.
2. Language reference, to be taken to terse reference docs for 
experienced users.
3. If they are still around they may try Articles. When they 
click on articles up pops a page entitled...Real Close to the 
Machine: Floating Point in D.


Why does clicking on Articles open an article on floating 
point math?


Why is Ali's book just linked as Online Book (free).

Where's the getting Started???


This is what i proposed but i guess we have to step up and write
a Proper getting started page...


Re: DIP75 - Release Process

2015-03-10 Thread Israel via Digitalmars-d
On Saturday, 7 March 2015 at 04:54:38 UTC, David Soria Parra 
wrote:

Hi,

I've been working with Martin Nowak and Andrei in the last few 
weeks to get ideas and write up a DIP on D's release process. 
With D maturing more and more I believe it is time to formalize 
the release process and do a time based release process in 
order to make release processes more predictable, easier to 
maintain and synchronize with release cycles of major 
distributions. Similar approaches have been adopted in other 
communities and worked out well. The DIP is mostly based on 
lessons learned from other communities. So please go ahead:


  http://wiki.dlang.org/DIP75

Destroy it.

 - David


Would you consider adding another release process version on top 
of bugfix versions and feature versions?


I was thinking about something along the lines of Modernization 
versions in which old code is changed to work better, more 
efficient, etc...


out with the old and in with the new?


Re: Streaming, making a book!

2015-03-09 Thread Israel via Digitalmars-d-announce

On Sunday, 8 March 2015 at 02:52:41 UTC, Rikki Cattermole wrote:

I'm starting a live stream[1] for making a book.
The book is The way to program - Lets think like a D(eveloper)

For now I will only commit to Mondays 12pm UTC+0.
I may stream at random times beyond that. Check my Twitter as 
to when that might be[2].


The book I am making is available at[0]. For published versions 
of it[3].
Published version will not be free, but the raw resources used 
to create it are under a creative commons license.


The book's purpose is to not teach D. Instead it focuses on 
teaching programming concepts and ideas using D as a base.
Assuming the book creation is a success I have a few other 
books in the pipeline. The second book will be covering sockets 
and threading via IRC/XMPP. Third would be Web development. 
Fourth UI's.


There has already been a few streams, so content has already 
got a good start. If there is interest, I may stream some of 
Devisualization project development.


Usually the stream will last 2-3 hours depending upon how many 
watch and interact.


A couple days ago livecoding.tv came out of closed beta. Feel 
free to join!
Disclaimer: I am not affiliated with livecoding.tv. Although 
the devs are great.


[0] https://github.com/rikkimax/twp-d
[1] http://livecoding.tv/alphaglosined
[2] https://twitter.com/alphaglosined
[3] https://leanpub.com/twp-d


That's pretty cool. I didn't know a service like this existed. I 
hope all goes well...


What will be your development environment?


Re: How to make Application bundle from Executable? (Mac)

2015-02-20 Thread Israel via Digitalmars-d-learn

On Friday, 20 February 2015 at 06:19:29 UTC, Gan wrote:
On Friday, 20 February 2015 at 06:10:51 UTC, Nicholas Wilson 
wrote:

On Friday, 20 February 2015 at 03:26:47 UTC, Gan wrote:
Also I can't get my application to load images that I place 
in the Resources folder(or any folder in the bundle for that 
matter).
I suggest to have a look at the projects generated by SFML 
regarding locating the resources in C++/ObjC and translate 
them to C/ObjC/D.
As for code (i.e frameworks and .dylibs) i don't know as 
shared libraries are still a murky area for D. Probably just 
better to stick to static libs.
Is there an official way to turn a D executable into a Mac 
Application Bundle?

Dunno

Good luck!


Frameworks aren't an issue, I put them into the Frameworks 
folder in my hand made bundle and they load fine.
When running the executable, it loads the image when it's in 
the same folder but when running the executable through the 
bundle, it doesn't find the image anywhere.


It seems OSX is doing some weird stuff then...


Re: Thanks to p0nce for a nicer DConf logo!

2015-02-18 Thread Israel via Digitalmars-d
On Sunday, 18 January 2015 at 19:39:38 UTC, Andrei Alexandrescu 
wrote:
Take a look: http://dconf.org/2015/index.html. PR: 
https://github.com/D-Programming-Language/dconf.org/pull/37. -- 
Andrei


Is thhere a higher res version out there?


Re: Thanks to p0nce for a nicer DConf logo!

2015-02-18 Thread Israel via Digitalmars-d

On Wednesday, 18 February 2015 at 23:44:34 UTC, ponce wrote:

On Wednesday, 18 February 2015 at 19:12:27 UTC, Israel wrote:
On Sunday, 18 January 2015 at 19:39:38 UTC, Andrei 
Alexandrescu wrote:
Take a look: http://dconf.org/2015/index.html. PR: 
https://github.com/D-Programming-Language/dconf.org/pull/37. 
-- Andrei


Is thhere a higher res version out there?


Indeed the logo disappeared from the webhosting link I uploaded 
it to.


Here it is:
https://github.com/D-Programming-Language/dconf.org/pull/42


Wow so the logo is literally programmed...I havnt messed with svg
files since haskell. Thanks though.


Re: New DIP73: D Drafting Library

2015-02-05 Thread Israel via Digitalmars-d

On Friday, 6 February 2015 at 00:45:16 UTC, Andrei Alexandrescu
wrote:

On 2/5/15 4:08 PM, Zach the Mystic wrote:

Just use code.dlang.org. It's perfect either as a place for 
good work and a stepping stone toward the standard library.


Andrei


I get the feeling you guys will eventually look back at this idea
to revive it in some way. Im no oracle though, just saying...


Re: New DIP73: D Drafting Library

2015-02-05 Thread Israel via Digitalmars-d

On Thursday, 5 February 2015 at 05:51:18 UTC, tcak wrote:

On Thursday, 5 February 2015 at 04:37:21 UTC, Tofu Ninja wrote:
What could be great is if DMD supported something like JAR 
packages, and could look for modules inside of them. So, all 
experimental codes would be packed daily in a zip file, and any 
programmer, with only download of a single file and including 
it on command line while compiling, would have latest code very 
quickly.


This right here.

I like this Draft library but it should not be included with the 
release simply because they take WAY too long. Instead it should 
be a separate package that we can update and manage manually if 
the developer so chooses to use it then they can download and 
install it. DMD should be able to find it and use it 
automatically.


Re: Mars Drafting Library - Official community driven library

2015-01-31 Thread Israel via Digitalmars-d

On Saturday, 31 January 2015 at 18:11:48 UTC, Laeeth Isharc wrote:
This has the advantage over existing situation where you have 
the official library where things need to go through exacting 
and time consuming process and then dub.  Within dub every 
project is at the same level and it is not obvious which 
projects are the ones to use, and there is not necessarily 
coherence in the different ways things are done, and the only 
one motivated to work on supplementary features like 
documentation is the project author.  So you have very useful, 
well written libraries that have no docs.


What i hate about dub is that no every library is ready to use. 
Some require additional steps/resources in order to get them to 
work. Dub does not have any indication of that because the 
library authors dont usually include that information.


What is good about this extra community driven standard library 
is that everything will be included in one place and will be at 
the ready when it is needed.


Re: Mars Drafting Library - Official community driven library

2015-01-31 Thread Israel via Digitalmars-d

On Saturday, 31 January 2015 at 19:03:55 UTC, Laeeth Isharc wrote:

On Saturday, 31 January 2015 at 18:45:13 UTC, Israel wrote:

the people who like and are good at writing docs are not 
necessarily those who like and are good at writing code.


This is exactly how i feel.


Re: D on Slashdot

2015-01-20 Thread Israel via Digitalmars-d
On Wednesday, 21 January 2015 at 01:07:04 UTC, Adam D. Ruppe 
wrote:
On Wednesday, 21 January 2015 at 01:04:11 UTC, ketmar via 
Digitalmars-d wrote:
two days making dmd.exe work with Wine to write the simple 
utility which i can write in two hours using MinGW 
cross-compiler.


I've been using dmd with wine for a long time... I find it 
sometimes seems to deadlock, but when it does, I just ctrl+c 
and run it again. Mildly annoying but not a showstopper.


I never understood why you guys use DMD on wine. Theres a DMD for 
linux...


Is it because you want to develop your windows programs without 
having to run a full virtual machine?


Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread Israel via Digitalmars-d

On Monday, 19 January 2015 at 21:25:16 UTC, Andrei Alexandrescu
wrote:

On 1/19/15 12:51 PM, Alexey T. wrote:
Will be much easier to read Source, if func declarataion 
begins with

keyword. def of func. e.g.

func myName(params.): typeOfResult;
or
func myName(params...) - typeOfResult;

easier to read and PARSE. Next D version may allow--with 
compatability

of old syntad (C like where typeOfResult is 1st id).


No. -- Andrei


LOL.

That reply...


Re: Idea: featuring forum content on dlang.org?

2015-01-18 Thread Israel via Digitalmars-d
On Monday, 19 January 2015 at 02:34:32 UTC, Andrei Alexandrescu 
wrote:
With all this discussion on more dynamic content on dlang.org, 
I sat down (figuratively; I've been on a hike today) and 
thought - what is dynamic about D?


So it hit me like a hammer:

* Forum discussions (this!)

* github traffic

* bugzilla traffic

* more recently, Adam's weekly newsletter.

We already have twitter which is nice. Adding some of the above 
to the homepage would be awesome. What do you all think?



Andrei


Absolutely. Don't let anything note worthy go unmissed. Let D 
developers know that D is constantly changing things around the 
world and not just the forums.


Add content from other websites, articles, etc.

Just let people know that D isn't dead. And that the front of the 
page proves it.


Re: Please help me with improving dlang.org

2015-01-18 Thread Israel via Digitalmars-d

On Sunday, 18 January 2015 at 07:42:05 UTC, DaveG wrote:

On Sunday, 18 January 2015 at 04:44:56 UTC, Israel wrote:
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei 
Alexandrescu wrote:
I took the better part of today working on this: 
https://github.com/D-Programming-Language/dlang.org/pull/780. 
See demo at http://erdani.com/d/.


What do you all think? Is it an improvement over what we have 
now?


I'd appreciate your help with reviewing and pulling this, and 
also with improving the colors (which I'm terrible at) and 
page tracking as mentioned in the pull request.




I'm no designer, but I do have some comments. Without 
consistency it just looks a bunch of parts rather than a 
singular thing. Some elements have gradients, some don't. Some 
elements have round corners, some don't. Elements with borders 
use different widths, some have none. In regards to borders, we 
engineering types (maybe it's just me) tend to put boxes around 
stuff to represent discrete units when basic design concepts, 
like proximity and contrast, may be better suited for the task. 
I just took a quick pass at it in the browser:
Original: 
https://dl.dropboxusercontent.com/u/114394/D-site/current.png
Cleanup: 
https://dl.dropboxusercontent.com/u/114394/D-site/001.png
Cleanup w/o bg: 
https://dl.dropboxusercontent.com/u/114394/D-site/002.png


Think consistency and subtlety. Good design generally goes 
unnoticed.




Too much code, I know its what you want people to see but if 
the entire length of the website consists of giant blocks of 
code it just doesnt look as pleasing to the eyes...


put all of that code and introduction to D into a subpage 
called About/Intro to D. have it be the first subpage on 
the left column.


The front page should be updated with new content like your 
tweets, forum posts, articles from other websites,reddit, etc.


maybe under the documentation put a Getting started Tutorial?


I agree, from a new user perspective all the code might seem 
like a bit much. It might be a good to have short blurb about 
Why D? or What is D? or something. I also like the idea of 
highlighting some key projects, particularly ones with broad 
appeal (dub and VisualD come to mind). I would recommend 
keeping things like blog posts, tweets, etc. out of the the 
main content (on the side or bottom is fine). External sources 
usually make no sense to a new user, or are generic press 
pieces which are unnecessary because the person is already on 
the site.


-Dave


This is very true. As a newcomer you've probably already found 
out about D through another website, friend, etc. Which proves 
your point 'unnecessary because the person is already on the 
site.'. however I'm thinking about people like is who are already 
here. We need to see how D is impacting the rest of the world so 
turning the front page to something like a blog would make 
traffic flow like crazy and grab more attention. Which is what D 
needs the most right now.


If you just have a static page frozen the same way for 7 years. 
You kind of start to see why people think D is dead.


Re: Please help me with improving dlang.org

2015-01-17 Thread Israel via Digitalmars-d

On Sunday, 18 January 2015 at 04:44:56 UTC, Israel wrote:
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu 
wrote:
I took the better part of today working on this: 
https://github.com/D-Programming-Language/dlang.org/pull/780. 
See demo at http://erdani.com/d/.


What do you all think? Is it an improvement over what we have 
now?


I'd appreciate your help with reviewing and pulling this, and 
also with improving the colors (which I'm terrible at) and 
page tracking as mentioned in the pull request.



Thanks,

Andrei


Too much code, I know its what you want people to see but if 
the entire length of the website consists of giant blocks of 
code it just doesnt look as pleasing to the eyes...


put all of that code and introduction to D into a subpage 
called About/Intro to D. have it be the first subpage on 
the left column.


The front page should be updated with new content like your 
tweets, forum posts, articles from other websites,reddit, etc.


maybe under the documentation put a Getting started Tutorial?


I would also highly recommend advertising the patootie out of 
dub. Seriously, Dub is like the bright shining sapphire gem of Ds 
crown. Dub literally makes any other language look like crap.


Re: Please help me with improving dlang.org

2015-01-17 Thread Israel via Digitalmars-d
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu 
wrote:
I took the better part of today working on this: 
https://github.com/D-Programming-Language/dlang.org/pull/780. 
See demo at http://erdani.com/d/.


What do you all think? Is it an improvement over what we have 
now?


I'd appreciate your help with reviewing and pulling this, and 
also with improving the colors (which I'm terrible at) and page 
tracking as mentioned in the pull request.



Thanks,

Andrei


Too much code, I know its what you want people to see but if the 
entire length of the website consists of giant blocks of code it 
just doesnt look as pleasing to the eyes...


put all of that code and introduction to D into a subpage called 
About/Intro to D. have it be the first subpage on the left 
column.


The front page should be updated with new content like your 
tweets, forum posts, articles from other websites,reddit, etc.


maybe under the documentation put a Getting started Tutorial?


Re: Heady House Hunting with D

2015-01-15 Thread Israel via Digitalmars-d-announce

On Wednesday, 14 January 2015 at 03:46:39 UTC, Philpax wrote:

Hey everyone,

I recently wrote a blog post about how I used D/vibe.d to help 
find a new house. I haven't publicized it anywhere else yet, so 
I'm looking forward to what the D community has to say! You can 
check it out here: 
http://philpax.me/blog/heady-house-hunting-with-d


D made it easy to model the problem and quickly crunch through 
it; I'm pretty happy with how quickly I was able to get decent 
results. It's not the most idiomatic of code, but D's 
flexibility meant that I could concentrate on the concept 
instead of the implementation details.


Thanks,
Philpax


This is really cool, thanks alot for the code. I see it almost as 
a tutorial for new programmers like me.


Re: Idea/request: If you have a DUB project, add a code.dlang.org badge to README

2014-12-30 Thread Israel via Digitalmars-d

On Tuesday, 30 December 2014 at 21:22:01 UTC, Kiith-Sa wrote:
(accidentally posted this into D.learn first, was intended to 
be here)


A few weeks/months ago someone here mentioned that it'd be good
if DUB projects linked to code.dlang.org to help anyone who runs
into such a project quickly discover other D projects.

MAny GitHub projects have badges/shields on top of their
READMEs - little image strips showing things like continuous
integration status, code coverage, etc.

There's also a service generating these: shields.io

I generated a simple listed at| code.dlang.org shield, and
added it to my project READMEs as a link pointing to
code.dlang.org for example, see D:YAML README:

  https://github.com/kiith-sa/D-YAML

You can do the same by either linking to or downloading the
shield:

  
https://img.shields.io/badge/listed%20at-code.dlang.org-red.png


(used red... because mars)

and putting the image (whether as a link to shields.io or your
own copy) into your README.



It's not likely to be a huge improvement, but I expect it *can*
help people notice more D projects and it's trivial to do.


The guy who manages dub could make it a requirement to have a
link in the Dub.json file. Thats your best bet.


Re: Chapel vs D

2014-12-26 Thread Israel via Digitalmars-d

On Friday, 26 December 2014 at 11:52:27 UTC, Ola Fosheim Grøstad
wrote:
The Chapel quick ref card gives a nice overview of Chapel 
syntax and features:


http://chapel.cray.com/spec/quickReference.pdf

Cray has of course geared Chapel towards non-realtime 
high-throughput computing, so it is not an alternative to 
C/C++/Rust/D for interactive applications. But the syntax is 
quite clean and the feature set makes sense.


The Chapel parameter specification has immutable value types as 
the default except for arrays, syncs, singles and atomics which 
get ref-semantics. Chapel also allows named parameters, and has 
an inout-type that copies in and out for safer multi-threading 
(avoiding spurious writes from other threads during the 
computation).


The typing/casting syntax uses postfix expression:type 
notation which produces clean looking casts. Mutable 
declarations are prefixed with var. Read only references and 
immutable values are prefixed with const.


Chapel also has yield-based iterators (generators) like Python, 
numerical-ranges (and domain maps for array indexing).


I think D needs to consider improving the syntax and the 
feature set by looking closely at competing languages. If one 
can improve D by taking on conventions from other performance 
oriented languages then D will look less weird and moving to D 
more attractive.


Chapel's syntax is cleaner looking that D, and Chapel also have 
some features that D would benefit from adopting.


I think Rust is loosing some followers on syntax alone, and D 
too. Planning for a D3 syntax upgrade with some premature 
experiments would be a good idea.


I think the languages out there with the cleanest looking syntax
is C# and similarly Java.

I came from the Microsoft world and C# and the one thing i miss
is my Compound worded syntax with capital letters like
GetCurrentDirectory() whereas in D it looks like thisExe()

Same with how we deal with other syntax situations like input.
In C# i would use something like:

int ThisNumber;
ThisNumber = Console.ReadLine();

in D it looks worse with its old way of doing it:

int thisNumber
readf(%s, thisNumber);

The D version takes alot more work and the C# version looks alot
cleaner and more well structured and easier to understand.
Whenever i see this kind of syntax it hurts. Maybe its because im
so used to C# and im biased...
The point is, I agree. Syntax like this is so terrible to look at
it hurts. I feel like i lose 10 minutes of my lifespan every time
i look at this.


Re: Lost a new commercial user this week :(

2014-12-14 Thread Israel via Digitalmars-d

Im sorry to hear that.

So many things went wrong here. This is the way i see it.

Basically what you did was introduce a friend of yours to your
colleagues with good impressions on just about everything. This
is like introducing a friend to me and telling me his a great
person even though you know deep down inside you know your friend
doesnt have the best personality in the world.

What you could have done was be sincere and told your colleagues
that D is a great person overall but he does have his drawbacks.
That way they know what to expect and are ready and prepared to
handle D.

Along with that you could have inspired them on a different point
of view. You guys are working with JavaScript :/. Doing something
with D would have been an extraordinary achievement. Thats like
accomplishing a task with a common method. But sometimes you have
to take a leap of faith and accomplish that task in a new way.
This would have given you and your team unique in a way and
probably have given you a good image.


Re: D game development: a call to action

2014-12-13 Thread Israel via Digitalmars-d

What my problem is, why hasnt the D standard library implemented
a multimedia library from the ones already available? instead of
having to go and look for one.

Im sure this would cause alot of controversy because NO MY
LIBRARY IS BETTER AND HAS MORE FEATURES THAN HIS.

Its not about features. Its about its ease of use and learning.
OP is right though.

If we want to gain some momentum we need libraries that are
easier to use and learn than the standard C/C++ syntax that
plagues SDL/Derelict.

Because cleaning up the previous mess is what made C better than
Assembly, C++ better than C, and C#/Java better than C++.


Re: Basically want to make a macro script

2014-11-13 Thread Israel via Digitalmars-d-learn

On Thursday, 13 November 2014 at 21:56:48 UTC, Casey wrote:
On Thursday, 13 November 2014 at 16:04:43 UTC, Adam D. Ruppe 
wrote:
On Thursday, 13 November 2014 at 07:01:08 UTC, Rikki 
Cattermole wrote:
I did find this [0]. I don't know what state its in for 
compilating/running ext. But it might give you a good 
starting point.


[0] https://github.com/pythoneer/XInputSimulator


ooh there's some nice code for Linux in there! The Windows is 
only half implemented though... but this combined with my 
Windows code should get you enough example to write a 
cross-platform thing if you need it.


Thank you so much!  I really appreciate this!  But I have a few 
questions.






2) I can't figure out what the heck half of this code means.  
It seems that at the bottom you have what each of the hotkey 
buttons are, and I can see a few times where you referenced 
them.  I can also see a efw listeners for the keybinds to be 
pressed, and then where you use the writeln command.  Other 
than that, I can't tell what's going on.  I feel like a noob, 
sorry that I don't understand this.


3) I'm sure that everything you have in there has a meaning, 
but it looks over complicated to me.  Shouldn't it look 
something like this?


[code]
void main() {
import std.stdio;
import simpledisplay;
import *Others that need to be imported*;
if (*hotkey command here*) {
then writeln (We're losing Alpha!)
return 0;
}
[/code]

I know there's a /LOT/ more to it than that, but wouldn't that 
be the basics?  I honestly don't know a whole lot about what 
you did, but at least I understand the basic concept of 
programming.


I'm going to start looking up a few tutorials on compiling 
using the DM D compiler, let me know if you recommend a 
different one.


Could you tell me which keys you used for the hotkey in your 
sample code?  I can't figure it out, but my guess it alt + c?  
Not sure though.


Thanks again, I am really impressed with you for actually 
writing the basic concept of it for me!  I can diffidently use 
this for my building block of learning how to program better!


Well hes basically giving us the core of what we need to create a
binding. Its like hes giving us a car engine and then we build
the rest of it around that.

Except im in the same boat, i cant figure out whats going on. Lol.

Also, the only difference i see with the
-L/SUSBSYSTEM:WINDOWS:5.0 switch is the the program runs with a
command line program in the background. Thats fine i guess.
Unless this does alot of other stuff in the background i dont
understand.

1) Which compiler should I use?  I'm attempting to use the DM D 
comiler, but afaik it doesn't have a GUI and I can't make any 
sense of how to use it otherwise.  I'll look up a tutorial on 
it if this is the one you recommend.  If it's not the one you 
recommend, I'll give yours a try.


The compiler has no GUI. After you install dmd it is then linked
to your system so that you can use it anywhere. It runs as a
background program but you can only run it from another command
line. so Windows Key + R  cmd  click ok  navigate to the
directory where the source code files are with cd and dir
command line fucntions. Then type dmd hotkey.d simpledisplay.d
color.d and the compiler will spit out a hotkey.exe executable.


Re: Basically want to make a macro script

2014-11-13 Thread Israel via Digitalmars-d-learn

On Thursday, 13 November 2014 at 22:20:58 UTC, Casey wrote:

On Thursday, 13 November 2014 at 21:56:48 UTC, Casey wrote:
On Thursday, 13 November 2014 at 16:04:43 UTC, Adam D. Ruppe 
wrote:
On Thursday, 13 November 2014 at 07:01:08 UTC, Rikki 
Cattermole wrote:
I did find this [0]. I don't know what state its in for 
compilating/running ext. But it might give you a good 
starting point.


[0] https://github.com/pythoneer/XInputSimulator


ooh there's some nice code for Linux in there! The Windows is 
only half implemented though... but this combined with my 
Windows code should get you enough example to write a 
cross-platform thing if you need it.


Thank you so much!  I really appreciate this!  But I have a 
few questions.


1) Which compiler should I use?  I'm attempting to use the DM 
D comiler, but afaik it doesn't have a GUI and I can't make 
any sense of how to use it otherwise.  I'll look up a tutorial 
on it if this is the one you recommend.  If it's not the one 
you recommend, I'll give yours a try.


2) I can't figure out what the heck half of this code means.  
It seems that at the bottom you have what each of the hotkey 
buttons are, and I can see a few times where you referenced 
them.  I can also see a efw listeners for the keybinds to be 
pressed, and then where you use the writeln command.  Other 
than that, I can't tell what's going on.  I feel like a noob, 
sorry that I don't understand this.


3) I'm sure that everything you have in there has a meaning, 
but it looks over complicated to me.  Shouldn't it look 
something like this?


[code]
void main() {
   import std.stdio;
   import simpledisplay;
   import *Others that need to be imported*;
   if (*hotkey command here*) {
   then writeln (We're losing Alpha!)
   return 0;
}
[/code]

I know there's a /LOT/ more to it than that, but wouldn't that 
be the basics?  I honestly don't know a whole lot about what 
you did, but at least I understand the basic concept of 
programming.


I'm going to start looking up a few tutorials on compiling 
using the DM D compiler, let me know if you recommend a 
different one.


Could you tell me which keys you used for the hotkey in your 
sample code?  I can't figure it out, but my guess it alt + c?  
Not sure though.


Thanks again, I am really impressed with you for actually 
writing the basic concept of it for me!  I can diffidently use 
this for my building block of learning how to program better!



Ok so I've found out how to compile using the DM D compiler via 
terminal...  I can't cd to my directory for whatever reason... 
so I'm running this:


[code]
dmd D:\Documents\Other\Hotkeys\D\Keybinds.d
[/code]
But it's spitting out errors left and right.  Here's what I get:


[code]
C:\Users\Caseydmd D:\Documents\Other\Hotkeys\D\Keybinds.d
D:\Documents\Other\Hotkeys\D\Keybinds.d(11): Error: undefined 
identifier KEYEVEN

TF_UNICODE
D:\Documents\Other\Hotkeys\D\Keybinds.d(25): Error: module 
simpledisplay is in f

ile 'simpledisplay.d' which cannot be read
import path[0] = D:\Program Files (x86)\DM D Programming 
Language Compiler\D\dmd

2\windows\bin\..\..\src\phobos
import path[1] = D:\Program Files (x86)\DM D Programming 
Language Compiler\D\dmd

2\windows\bin\..\..\src\druntime\import

[/code]

It's basically telling me I need the two files you mentioned 
that are on your Github.  So I then went and got your two 
files, copied their stuff into their own folders, and tried to 
compile them.  Here's what I got:


[code]
C:\Users\Caseydmd D:\Documents\Other\Hotkeys\D\simpledisplay.d
D:\Documents\Other\Hotkeys\D\simpledisplay.d(274): Error: 
module color is in fil

e 'arsd\color.d' which cannot be read
import path[0] = D:\Program Files (x86)\DM D Programming 
Language Compiler\D\dmd

2\windows\bin\..\..\src\phobos
import path[1] = D:\Program Files (x86)\DM D Programming 
Language Compiler\D\dmd

2\windows\bin\..\..\src\druntime\import


C:\Users\Caseydmd D:\Documents\Other\Hotkeys\D\color.d
OPTLINK (R) for Win32  Release 8.00.15
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 23: No Stack
color.obj(color)
 Error 42: Symbol Undefined __fltused
color.obj(color)
 Error 42: Symbol Undefined __d_arraybounds
color.obj(color)
 Error 42: Symbol Undefined __memset80
color.obj(color)
 Error 42: Symbol Undefined __d_assert
color.obj(color)
 Error 42: Symbol Undefined __d_arraycatT
color.obj(color)
 Error 42: Symbol Undefined __d_throwc
color.obj(color)
 Error 42: Symbol Undefined 
_D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9Th

rowableZC9Exception
color.obj(color)
 Error 42: Symbol Undefined __d_newclass
color.obj(color)
 Error 42: Symbol Undefined _D9Exception7__ClassZ
color.obj(color)
 Error 42: Symbol Undefined _D12TypeInfo_Aya6__initZ
color.obj(color)
 Error 42: Symbol Undefined __d_arrayappendcTX
color.obj(color)
 Error 42: Symbol Undefined _D14TypeInfo_Array6__vtblZ
color.obj(color)
 Error 42: Symbol Undefined __d_assert_msg

Re: Basically want to make a macro script

2014-11-13 Thread Israel via Digitalmars-d-learn

Maybe a screenshot might help?

https://ooymza.dm2301.livefilestore.com/y2mt_9Z73WLi-1zso3LEjdCiC1x-GQzpjlaaftIFJ2Q0cHX2jd9vvwmVldHj1qRROER9IjiA1WwTzln5zveB9ZKZMrb1eeYNUgbzWQJlztqFAvQroAYm0k7_M4fuU3-XzAL/DMD.png


Re: Basically want to make a macro script

2014-11-12 Thread Israel via Digitalmars-d-learn

On Wednesday, 12 November 2014 at 04:56:40 UTC, Casey wrote:

also, you came to the right place. PB is extremely paranoid and
even more so about autohokey, so if you program your own native
macro, its not very likely it will catch it.


Re: Basically want to make a macro script

2014-11-12 Thread Israel via Digitalmars-d-learn

On Wednesday, 12 November 2014 at 08:02:06 UTC, ketmar via
Digitalmars-d-learn wrote:

On Wed, 12 Nov 2014 04:56:39 +
Casey via Digitalmars-d-learn 
digitalmars-d-learn@puremagic.com wrote:


D has nothing to do with your task, WinAPI does. and you'll 
need alot
of expirience in reverse engineering, 'cause f... punkbuster 
shits it's
pants almost for anything. it's a rootkit, and very badly 
written one.
what you have to do is to fight with rootkit, making it think 
that it
is still functional. so learn assembler, x86 archtecture, 
winapi,

windows driver development, nt kernel internals and so on.

and don't even dream that it will be portable.


That isnt entirely true. Ive made macros in C# for APB:R with
punkbuster, albeit an older version and they worked just fine.

If you want to go that way you will need InputSimulator from
codeplex.

For D i cant help as i dont know any library that allows you to
take control over mouse and keyboard. In fact i think ill give
this a go at some point.


Re: Basically want to make a macro script

2014-11-12 Thread Israel via Digitalmars-d-learn

On Wednesday, 12 November 2014 at 19:43:49 UTC, Casey wrote:

On Wednesday, 12 November 2014 at 19:29:26 UTC, Israel wrote:

On Wednesday, 12 November 2014 at 04:56:40 UTC, Casey wrote:

also, you came to the right place. PB is extremely paranoid and
even more so about autohokey, so if you program your own native
macro, its not very likely it will catch it.


I didn't see your replies at first... Thanks for your interest.

If D isn't the right language, I can go with something else 
like C++ or python.  It's just got to have something that can 
send low level chat messages, or emulate actual keyboard 
presses so that I won't have issues with other games.   (/NOT/ 
C# simply because Micro$oft makes it and I try to avoid their 
stuff as much as possible).


I chose D simply because I've heard it's got a lot of potential 
and it's somewhat similar to C++, yet easyish to learn.  I'm up 
for anything, but I figured that if I went with D or C++ I'd be 
jumping right into it, so that would give me the most 
experience.
 I thought this shouldn't be too hard to make, but I just can't 
find anything that does the job 'm looking for.


Its not that D isnt the right language its just that it isnt
yet.
There are few libraries that allow you to take control over the
mouse and keyboard without too much hassle and reading through
documentation.

I did find this a couple days ago.
http://code.dlang.org/packages/de_window
It might be what you need but im not entirely sure if its input
simulation is across all programs.


Re: Experience report on installing dmd 2.066.1 on OSX

2014-11-12 Thread Israel via Digitalmars-d-learn

On Wednesday, 12 November 2014 at 23:44:43 UTC, John Colvin wrote:
On Wednesday, 12 November 2014 at 22:38:56 UTC, Ali Çehreli 
wrote:
A friend of mine installed dmd on OSX and recorded his 
experiences:


 http://cap-lore.com/Languages/D/Install.html

I wonder why he had to do manual work like running xattr. Is 
that expected on OSX?


Thank you,
Ali


Works for me (os x 10.10). Don't know why he'd be getting that 
problem.


Same here, 10.10.

Maybe his install is borked somewhere inside.


Re: Basically want to make a macro script

2014-11-12 Thread Israel via Digitalmars-d-learn

On Wednesday, 12 November 2014 at 23:40:09 UTC, Casey wrote:



I'll look into that, it seems as it might work.  If D would be 
too hard to get working, what would you recommend?  I would 
assume Ptyhon or C++ would be good choices, any chance you can 
recommend a forum for these or something?  It's hard to find 
any documentation on what I am looking for.


Thanks.


I tried to test out that de_window library but it doesnt work out
of the box.

The guy who created it though does post in this forum so maybe if
he magically finds this thread he can help you and me out.


Re: Basically want to make a macro script

2014-11-12 Thread Israel via Digitalmars-d-learn

On Thursday, 13 November 2014 at 02:00:11 UTC, Rikki Cattermole
wrote:

On 13/11/2014 2:37 p.m., Casey wrote:

On Thursday, 13 November 2014 at 01:35:28 UTC, Israel wrote:

On Wednesday, 12 November 2014 at 23:40:09 UTC, Casey wrote:



I'll look into that, it seems as it might work.  If D would 
be too
hard to get working, what would you recommend?  I would 
assume Ptyhon
or C++ would be good choices, any chance you can recommend a 
forum
for these or something?  It's hard to find any documentation 
on what

I am looking for.

Thanks.


I tried to test out that de_window library but it doesnt work 
out

of the box.

The guy who created it though does post in this forum so 
maybe if

he magically finds this thread he can help you and me out.


That would be nice.  I'll see if there's a way to PM him about 
it.  Do
you have any other programming language recommendations in 
case this

doesn't work out?


Sorry that functionality of de_window is out of scope of it. So 
of course, it won't work for what you want, it just creates a 
window and a context cross platform with input for that window.


The functionality you are wanting is possible against winapi 
and x11 fairly easily. Its just low level. Although X11 is a 
little easier as it can be done via a program on cli.
Unfortunately c/c++ will help you as much as D will in these 
cases.
If you run into trouble with those api's we can help you. But 
you will need help, these are topics that aren't recommended 
for a newbie.


I'm not quite sure how to receive key presses from other 
windows. Maybe Mike Parker (aldracon) has some ideas.


Do you have plans for making win32 bindings for the sendkeys?

Im interested in this too. Id like to do it with D but ive only
ever been able to accomplish this task with C# and InputSimulator.


Interesting stuff in pastebin

2014-11-07 Thread Israel via Digitalmars-d

Recently i started thinking, how popular is a language based on
how often a paste is made in that language?

so i decided to look through pastebin in D and found some
interesting stuff.
This one in particular. http://pastebin.com/dq4Bp9x0. What is
this...


Re: Interesting stuff in pastebin

2014-11-07 Thread Israel via Digitalmars-d

On Saturday, 8 November 2014 at 03:06:01 UTC, Adam D. Ruppe wrote:

On Saturday, 8 November 2014 at 02:42:34 UTC, Israel wrote:

This one in particular. http://pastebin.com/dq4Bp9x0. What is
this...
It is called shellcode because it is code to launch a shell and 
is done as a string because a practical application is to 
exploit a buffer overflow vulnerability in a program to gain 
access to a target computer.


Wow thats incredible, im not an advanced programmer by any means
but ive seen  code like this being used in some java script
programs.


Re: What IDE/EDITOR do you use for D?

2014-10-29 Thread Israel via Digitalmars-d

On Wednesday, 29 October 2014 at 19:38:16 UTC, dan wrote:

What IDE/EDITOR do you use for D? What plugins if you use Vim?


Atom + Dstruct

Now all we need is to make autocompletion data for an
autocomplete plugin.

I like autocomplete because it allows me to explore a language on 
the spot instead of having to switch back and forth between 
thousand of pages of documentation.


Re: Arduino and D

2014-10-25 Thread Israel via Digitalmars-d

On Saturday, 25 October 2014 at 21:49:53 UTC, Ty Tower wrote:
Has anybody tapped the massive Arduino programming explosion 
using D instead of C++ ?
I got started on Arduino a few years back and it has taken the 
microprocessor popularity through the roof .
Unfortunately you download the IDE (Integrated Development 
Environment) from Arduino.cc direct and then using a $3 
development board with a 328p chip on it ,proceed to program 
the  chip to do pretty much whatever you can think of including 
turning stuff on with your mobile from anywhere in the world  
and much much more .


I wondered if someone could adapt it to D ?


Well it is ARM so it should be possible.


Re: OT: Minecraft death by GC

2014-10-21 Thread Israel via Digitalmars-d

On Tuesday, 21 October 2014 at 15:23:11 UTC, David Gileadi wrote:

On 10/21/14, 2:47 AM, monarch_dodra wrote:
Hurp, I wonder why GC issues only appear with application that 
use a GC.

Hurp-a-durp.

Also, the issue of memory leak and core dumps seem to only 
appear when

you use a systems language. How crazy is that?


Happily with a little work D allows you to have both! :)


Im curious, will D be one of the first languages to have the
ability to use a GC and not use one?


Re: OT: Minecraft death by GC

2014-10-21 Thread Israel via Digitalmars-d

On Tuesday, 21 October 2014 at 16:25:06 UTC, ketmar via
Digitalmars-d wrote:

On Tue, 21 Oct 2014 16:16:17 +
Francesco Cattoglio via Digitalmars-d 
digitalmars-d@puremagic.com

wrote:

More likely: to give you the ability to shoot yourself in the 
foot both with a GC and without it. ;)

wow! so i'll be able shoot away my foot and GC will collect it!


YESS!!


Re: why does DMD compile hello world to about 500 _kilobytes_ on Mac OS X [x86_64]?!?

2014-09-05 Thread Israel via Digitalmars-d

On Friday, 5 September 2014 at 09:27:41 UTC, Marco Leise wrote:

Am Tue, 02 Sep 2014 07:03:52 +
schrieb Dicebot pub...@dicebot.lv:
Only when you think about how people put 5 minutes of a
stunning 3D gfx demo into 64 KiB you start to worry about 34
KiB for Hello World! again.


This made my day.

Anyways yea, i tried using LDC and --gc-sections as lflags in dub
but i cant get dub to play nice with LDC. I think Dub just uses
DMD be default and cannot be changed, im not sure.


Re: [OT] If programming languages were weapons

2014-09-03 Thread Israel via Digitalmars-d

On Tuesday, 2 September 2014 at 08:29:25 UTC, Iain Buclaw wrote:

In normal fashion, it's missing an entry for D.

http://bjorn.tipling.com/if-programming-languages-were-weapons

I'll let your imaginations do the work.


Iain.


D is a modified version of a semi auto rifle to be fully
automatic. Except in order to make one you have to read the
manual, which is rare. Only professionals will be able to make
one of these.


Re: Mono corrupted D files

2014-09-03 Thread Israel via Digitalmars-d

On Wednesday, 3 September 2014 at 21:46:54 UTC, AsmMan wrote:

On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:
Something very strange happened 2/3 days ago. Two of my D 
files of the project I was working on got all values replaced 
by 0 (that's what I seen rather D code if I open the file with 
a hex debugger). The file size of both files keep intact 
although. And no, I have no backup of these files. I had a old 
copy of it on a external hard drive but I needed to format it 
to use in something else and didn't put my files before it...


Instead of turn off my windows machine I always hirbenate it 
and left open all stuff and then I just back quickly to point 
where I was on. That day, when I logged on system I noticied 
first non-usual behavior: the machine looked like I had 
restarted it instead of hibernate. All stuff I left open 
(including mono) wasn't open anymore. I find it strage but 
moved on. But to my surprise when I open mono, the recent 
projects always available on left menu bar was empty. Just 
like I had installed mono not used yet. I open my project 
directly by clicking on open and navigating to folder of 
projec and then I see the two of main project files with a 
values set to zero.


Can some Mono expected help me?
My question is: can I recovery these files? or what remains to 
me is cry?
restore the system didn't helped (and I neither expected to 
but I tried)


Not sure if it is related: that day my machine had no a 
network connection.


If it is relevant, I'm using Windows 8.1 64-bit


Its hard to say friend. Im not exactly a mono Expert but i
would assume what happened was...

--You put your system to hibernate
--The computer somehow lost power and the memory dump was
diminished.
--When you turned your computer back on, that dump was corrupted
and somehow affected your files.

zip the files up and uplaod them, maybe someone here can help
salvage what is left?


Re: Programming a Game in D? :D

2014-09-01 Thread Israel via Digitalmars-d-learn

On Monday, 1 September 2014 at 17:24:10 UTC, rcor wrote:
Just wanted to point out that there are also D bindings for 
Allegro5 (https://github.com/SiegeLord/DAllegro5). Allegro is a 
bit like SDL or SFML, but personally I find it a bit more 
intuitive. I've been using the D bindings for about a month and 
they seem to work fine. Most Allegro tutorials are for C/C++, 
but they're not too hard to translate -- all of the allegro 
functions/structs work almost identically in D as they do in C.


That is just overkill. Problem with these libraries is that David
now has to go compile everyone and their mother from scratch.
Lets face it, nobody wants to waste their time on that...

My recommendation is GFM http://code.dlang.org/packages/gfm;,
sure it may not be full featured but at least it gets the job
done and without the need for compiling.

Just add GFM modules to dub.json

gfm:core: =0.0.0,
gfm:math: =0.0.0,
gfm:image: =0.0.0,
gfm:sdl2: =0.0.0,
gfm:opengl: 0.0.0,
gfm:freeimage: 0.0.0


Re: One Stop Shop?

2014-08-31 Thread Israel via Digitalmars-d

On Saturday, 30 August 2014 at 19:19:48 UTC, Sativa wrote:
I think it would be helpful to have the d lang site host 
tutorials/lessons on various aspects of D. D is hard to use for 
certain things like gui's, graphics(ogl, dx, etc), etc... not 
necessarily because D can't do these things but because the 
information is not out there.


Youre right about alot of things and nobody here can disagree.
Although the situation is different from what you would expect. D
is a community backed language so everything is done by the
community for the community, even documentation.

Tutorials and stuff like that are extremely difficult to find
because not everyone has had experience. I myself am trying to
understand how to use GFM for graphics and stuff using SDL.

Actually, if you want to do some graphics and stuff, look at the
gfm code package. http://code.dlang.org/packages/gfm;. Make sure
to download and install the SDL library -
https://www.libsdl.org/download-2.0.php;. Then add these
dependencies to your dub.json file. Everything will just
download, compile and work right out of the box.

gfm:core: =0.0.0,
gfm:math: =0.0.0,
gfm:image: =0.0.0,
gfm:sdl2: =0.0.0

https://github.com/d-gamedev-team/gfm/blob/master/sdl2/gfm/sdl2/window.d;

This is the crappiest part about D, you have to look through
peoples source code and try to understand how to use it. Its
terrible i know, but its the only way...


  1   2   >