Re: Scala Spark-like RDD for D?

2016-02-16 Thread Jakob Jenkov via Digitalmars-d-learn
Perhaps the question is too prescriptive. Another way is: Does D have a big data strategy? But I tried to anchor it to some currently functioning framework which is why I suggested RDD. I cannot speak on behalf of the D community. In my opinion I don't think that it is D that needs a big data

Re: Must I compile on the target architecture?

2015-12-26 Thread Jakob Jenkov via Digitalmars-d-learn
For Linux programs built on Windows... you'll prolly just want to copy it to a linux box. Thanks, both of you. I guess the easiest would be to compile it on a virtual machine with the OS I want to build for. I mean, I could run a Linux VM on my Windows box and compile my code there. Or the ot

Must I compile on the target architecture?

2015-12-25 Thread Jakob Jenkov via Digitalmars-d-learn
Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for that machine? What is the standard process for cross platform compi

Re: How is D doing?

2015-12-22 Thread Jakob Jenkov via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 03:30:32 UTC, ShinraTensei wrote: I recently noticed massive increase in new languages for a person to jump into(Nim, Rust, Go...etc) but my question is weather the D is actually used anywhere or are there chances of it dying anytime soon. Check out Google Tre

Re: Socket - handling large numbers of incoming connections

2015-12-22 Thread Jakob Jenkov via Digitalmars-d-learn
Thanks, everyone, I have looked a bit at different frameworks, and it seems that libasync might have a decently narrow scope to fit what I need. I have a background in Java, so a lot of this OS-specific stuff is new to me (EPoll etc.). In Java that stuff is used under the hood for you, withou

Re: Socket - handling large numbers of incoming connections

2015-12-22 Thread Jakob Jenkov via Digitalmars-d-learn
The same as in C [1]. Just change #include to import core.sys.posix.poll; [1] http://linux.die.net/man/2/poll I have a background in Java, so I am a bit handicapped :-)

Re: Socket - handling large numbers of incoming connections

2015-12-21 Thread Jakob Jenkov via Digitalmars-d-learn
My server uses "poll" for that. Okay, how does that work? How do I use "poll" in D? Link? Code example?

Re: Socket - handling large numbers of incoming connections

2015-12-21 Thread Jakob Jenkov via Digitalmars-d-learn
On Monday, 21 December 2015 at 20:20:44 UTC, Stefan wrote: How about https://github.com/dcarp/asynchronous ? Asyncio Socket handling is sometimes quite nice. It's performance is okay for nearly no effort and the code looks clean. Details here: http://dcarp.github.io/asynchronous/asynchronous/st

Socket - handling large numbers of incoming connections

2015-12-21 Thread Jakob Jenkov via Digitalmars-d-learn
What is the fastest / most scalable way to implement a server (using a Socket) which can handle large numbers of incoming connections? Like, at least 10K, but probably up to 1 million connections. More specifically: 1) How do I efficiently select the connections (client Socket instances) whi

Re: Scope of D packages

2015-12-18 Thread Jakob Jenkov via Digitalmars-d-learn
To be exact it doesn't need the sources, it needs the function signatures and type definitions so the equivalent of C header files. If you don't want to share the full sources with your library you can generate those header files automatically using the -H flag in dmd. It will produce a "D inte

Scope of D packages

2015-12-18 Thread Jakob Jenkov via Digitalmars-d-learn
I'm coming from Java where "packages" are not that much more than directories. Each class can be exposed or hidden inside a package etc. In Java it is common that an API consists of many packages and subpackages. All classes are simply wrapped up in a JAR (Zip) file, and then they can be used

Re: D programming video tutorial

2015-12-18 Thread Jakob Jenkov via Digitalmars-d-learn
On Sunday, 13 December 2015 at 20:29:47 UTC, Pederator wrote: Hi. Does anybody who is familair with D consider to make a comprehensive D programming video tutorial / training / course? This could be encouraging and helpful for people to start with D. It could also help in promoting D programmin

Re: D programming video tutorial

2015-12-18 Thread Jakob Jenkov via Digitalmars-d-learn
I have written more than 750 tutorials about Java ... and web development and other related stuff. Not only Java.

DUB config format: SDLang or JSON?

2015-12-18 Thread Jakob Jenkov via Digitalmars-d-learn
I am just looking at DUB and I can read that there are two config formats: SDLang and JSON. Which one is the "new" format? Which one is the "future" of DUB?