Dependent types in half of D

2015-07-30 Thread Max Klyga via Digitalmars-d
Just noticed a nice blog post about mapping dependent type applications to D. http://www.infognition.com/blog/2015/dependent_types_in_d.html reddit: https://www.reddit.com/r/programming/comments/3f59f4/dependent_types_in_half_of_d/

Re: D casually mentioned and dismissed + a suggestion

2015-05-12 Thread Max Klyga via Digitalmars-d
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/

Re: a "success story for D" ! !!

2015-05-06 Thread Max Klyga via Digitalmars-d
On 2015-05-06 12:21:30 +, Mengu said: On Tuesday, 5 May 2015 at 12:04:39 UTC, Alex Ogheri wrote: Hi guys, did you know this ?? http://vlang.org/ In fact, it gathered quite an enthusiastic appreciation at dvcon in Munich!! some of you might know it, some of you might not but bernard hel

Re: A Refcounted Array Type

2015-02-23 Thread Max Klyga via Digitalmars-d
I thought that delete is deprecated, yet here Walter himself promotes a solution that uses it. Can we *PLEASE* finally deprecate things that are supposed to be deprecated and remove things that are supposed to be removed? On 2015-02-23 22:15:46 +, Walter Bright said: This is pretty straig

Re: std.sevenzip - Do you need it?

2015-01-30 Thread Max Klyga via Digitalmars-d
On 2015-01-30 16:01:27 +, data man said: Right now I'm working on std.sevenzip (7-zip by Igor Pavlov). The main features of 7-Zip: - High compression ratio in 7z format with LZMA and LZMA2 compression - Supported formats: - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM -

Re: Calypso and the future of D

2015-01-23 Thread Max Klyga via Digitalmars-d
On 2015-01-23 00:24:44 +, Andrei Alexandrescu said: I think it's important that we enable Calypso (https://github.com/Syniurge/Calypso) and related tooling that interfaces D with other languages, notably C++. A key topic in 2015 for D is playing well with C++. A good C++ interface will g

Re: Data-Oriented Demo: SOA, composition via crazy 'using'

2015-01-21 Thread Max Klyga via Digitalmars-d
On 2015-01-21 19:12:20 +, Fool said: Jonathan Blow published another video [1] presenting the progress of his language. He is treating two main topics: - a keyword preliminary called 'using' which seems to be quite close to 'alias this'; - an annotation SOA for pointers and arrays whi

Re: Error handling in DMD and Bugzilla

2014-12-11 Thread Max Klyga via Digitalmars-d
On 2014-12-11 14:53:57 +, Etienne said: I've found 2 internal compiler errors so far, but they have been occurring in very complex circumstances that I haven't been able to isolate within reasonable time frames (~ 1 hour). https://github.com/etcimon/dmd/commit/32f2b44c8c126243f9c4ff00b89b

Re: Keeping a dynamic sorted range

2014-11-07 Thread Max Klyga via Digitalmars-d
On 2014-11-07 14:11:30 +, bearophile said: (This is a partial repost from a recent D.learn thread.) In Phobos we have SortedRange and assumeSorted, but I do find them not very good for a common enough use case. The use case is to keep a sorted array, keep adding items to it (adding larg

Re: [Semi OT] Language for Game Development talk

2014-10-01 Thread Max Klyga via Digitalmars-d
On 2014-10-01 22:33:39 +, Paulo Pinto said: Am 02.10.2014 00:11, schrieb po: I don't know of any OOP in the STL, unless you mean the 1980's stuff like iostreams and the other shit most people avoid using, but I don't think this is considered part of the STL Any use of a class instance

[Semi OT] Language for Game Development talk

2014-09-19 Thread Max Klyga via Digitalmars-d
Jonathan Blow just recorded a talk about the needs and ideas for a programming language for game developer. https://www.youtube.com/watch?v=TH9VCN6UkyQ This talk mentions D quite a lot of times. D is mentioned as the most probable to be adopted if it were possible for frictionless interaction

[OT] Microsoft filled patent applications for scoped and immutable types

2014-08-26 Thread Max Klyga via Digitalmars-d
Microsoft being microsoft again. http://www.freepatentsonline.com/y2014/0196015.html - DECLARATION OF LIFETIME OF RESOURCE REFERENCE This contains description of scoped classes, etc. http://www.freepatentsonline.com/y2014/0196008.html - IMMUTABLE OBJECT TYPES I really hope patent office will

Re: D Users Survey: Primary OS?

2014-05-29 Thread Max Klyga via Digitalmars-d
On 2014-05-29 15:53:22 +, Tom Browder via Digitalmars-d said: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom os X 10.9

Re: Unnecessary Large Memory Usage of Levenshtein Distance in Phobos

2014-05-22 Thread Max Klyga via Digitalmars-d
You should make a pull request with this implementation adapted to std.algorithm interface On 2014-05-22 09:49:09 +, Nordlöw said: I justd discovered that the std.algorithm implementation of Levenshtein Distance requires O(m*n) memory usage. This is not neccessary. I have a C++-implement

Re: Multi-associative array

2014-02-22 Thread Max Klyga
On 2014-02-23 03:10:23 +, Etienne Cimon said: Would it eventually be in the making for D to have associative arrays like string[string, int, Item]? If it hasn't been planned, I'd say it would be great to have an API that allows it to carry functionality of Boost Multi Index Thoughts?

Re: Disadvantages of ARC

2014-02-06 Thread Max Klyga
On 2014-02-06 15:47:05 +, Johannes Pfau said: Am Thu, 6 Feb 2014 14:37:59 +0300 schrieb Max Klyga : My point is that we should not ruin the language ease of use. We do need to deal with Phobos internal allocations, but we should not switch to ARC as a default memory management scheme

Disadvantages of ARC

2014-02-06 Thread Max Klyga
Anti-GC crowd tries to promote ARC as an deterministic alternative for memory management. I noticed that people promoting ARC do not provide any disadvantages for proposed approach. The thing is in gamedev and other soft-realitime software background only a handfull types of resources are real

Re: Nginx to D ?

2013-12-20 Thread Max Klyga
On 2013-12-20 21:21:22 +, Larry said: Hello, I am not really confident on this one, but could D be interfaced with Nginx ? It would be nice to replace python but if not easily doable, then it is a no-no for me. Any clue on it ? Thanks Sure you can. There are three options: 1. Make ng

Re: between and among: worth Phobosization?

2013-12-16 Thread Max Klyga
On 2013-12-16 20:38:51 +, Andrei Alexandrescu said: bool between(T, U1, U2)(T v, U1 lo, U2 hi) { return v >= lo && v <= hi; } uint among(T, Us...)(T v, Us vals) { foreach (i, U; Us) { if (v == vals[i]) return i + 1; } return 0; } Add? Andrei as Walter

Re: DIP 52 - Implicit conversions

2013-12-11 Thread Max Klyga
On 2013-12-11 12:44:29 +, Simen Kjærås said: http://wiki.dlang.org/DIP52 Abstract: Implicit conversion to and from other types are useful, and is to some extent covered by existing language features. Some cases are currently not covered, but could be worthy additions to the toolbox. I'v

Re: Option!T

2013-12-10 Thread Max Klyga
On 2013-12-10 18:35:37 +, bearophile said: Andrei Alexandrescu: Should we follow Scala's example and add it? Making an Option a D Range means it becomes a Mondad :-) There's then a need for more awareness of Option!T in map/filter/zip. Related: https://d.puremagic.com/issues/show_bug.

Re: Option!T

2013-12-10 Thread Max Klyga
On 2013-12-10 17:28:26 +, Andrei Alexandrescu said: I talked to a programmer who knows Scala (among others) and he mentioned the usefulness of the Option type - a zero or one element collection (range in D terminology). Here's an article discussing it: http://danielwestheide.com/blog/2012/

Re: Looks like xbox one and ps4 both amd64

2013-06-12 Thread Max Klyga
On 2013-06-12 06:40:05 +, Manu said: Personally, I think it's disappointing. x86's key advantage is being able to run crappy desktop code fast. Games are not usually 'crappy desktop code', they're carefully tuned, purpose-specific code. x86 uses MASSIVE amounts of its CPU realestate to toler

Re: Closures and loop scope

2013-06-04 Thread Max Klyga
On 2013-06-04 19:19:56 +, Idan Arye said: snip C# used to behave the same as D behaves now, but in the latest update to C# was changed to properly capture by value. Closures should capture (and in most functional languages they do) by value (at least primitive types) to avoid confusion.

Re: T-shirt design

2013-03-18 Thread Max Klyga
On 2013-03-18 11:30:59 +, kraybit said: On 3/16/13 07:29 , deadalnix wrote: I think that one is really great. Phobos has a very typical shape, which isn't used in the graphic. Maybe it should. Tshirt mockup (Phobos somewhat closer to reality) https://www.dropbox.com/s/jz9psoaq3zs9tq8/tshi

Re: static array litteral syntax using a library solution (no GC and 40x faster!)

2013-02-03 Thread Max Klyga
On 2013-02-03 13:18:03 +, John Colvin said: On Sunday, 3 February 2013 at 09:23:01 UTC, timotheecour wrote: snip Very interesting! Anything that beats c performance is a very big plus for D. Btw, you can replace the loop in S with ret[] = a[]; Which should be even faster. Also, to chec

Re: Getting rid of dynamic polymorphism and classes

2012-11-08 Thread Max Klyga
On 2012-11-08 17:27:40 +, Tommi said: ..and it got me thinking, couldn't we just get rid of dynamic polymorphism and classes altogether? Compiler can do a lot of optimizations with knowledge about classes. Also it automates a lot things that would become boilerplate with proposed manual s

Re: Understanding Templates: why can't anybody do it?

2012-03-17 Thread Max Klyga
On 2012-03-17 20:14:47 +0300, Entity325 said: Who's with me? Anybody have a short(but COMPLETE!) example of code that makes use of Templates that you actually understand what's going on there? Philippe Sigaud made a very good tutorial on templates in D - https://github.com/PhilippeSigaud/D-t

Re: Happy New Year in 2012....

2012-01-03 Thread Max Klyga
On 2012-01-03 18:48:13 +0300, Gour said: On Tue, 03 Jan 2012 15:09:19 +0100 simendsjo wrote: And Norway - Happy New Year! Greetings from non-EU Croatia! Sincerely, Gour And my AXE! Greetings from Belarus!

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Max Klyga
On 2011-12-17 22:36:15 +0300, dsimcha said: The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html For those of you on Windows, a li

Re: Website message overhaul

2011-11-15 Thread Max Klyga
On 2011-11-16 00:54:17 +0300, Walter Bright said: On 11/15/2011 1:31 PM, Daniel Gibson wrote: Scala is also termed a "multi-paradigm programming language", see http://en.wikipedia.org/wiki/Scala_(programming_language) Scala's multi-paradigms are OOP and functional. Yet it doesn't support fun

Re: __restrict, architecture intrinsics vs asm, consoles, and other stuff

2011-09-24 Thread Max Klyga
On 2011-09-24 16:50:39 +0300, Manu said: Is there an IRC channel, or anywhere for realtime D discussion? There is a #d channel for general D discussions and #d.gdc for GDC related themes on irc.freenode.org

Re: Liskov principle and unittest

2011-09-23 Thread Max Klyga
On 2011-09-23 12:55:25 +0300, deadalnix said: I recently faced a problem in java. I have lots of classes inheriting from the same superclass. Thoses classes has to conform to some behaviour expected when manipulation the superclass as Liskov substitution principle says. This is defin

Re: Anonymous function syntax

2011-09-21 Thread Max Klyga
Actually Scala doesn't need type declarations in labmda literals. Most of the time argument types are infered. It would be awesome if D infered argument types for labdas too. Also Java 8 adopted the same lambda syntax as Scala and C#. To add a few things to your list: Nemerle fun (x, y) { x

Re: Tagging of arguments ref/out, or just out

2011-08-07 Thread Max Klyga
One the main reasons c# has mandatory out and ref at call site is code versioning. If some function took an argument by value but was changed to take if by reference, without annotations compiler would treat this as an error, preventing a potential bug. So this feature has to be either mandato

About ranges and iterators again: implementing next_permutation

2011-07-10 Thread Max Klyga
Several weeks ago Andrei mentioned at #d irc channel that he wanted to implement next_permutation STL function in Phobos. I thought that would be a nice excercize to implement it myself. I ported implementation mentioned in this article: http://marknelson.us/2002/03/01/next-permutation/ At fi

Purity in Eiffel

2011-07-07 Thread Max Klyga
Found a blog post about purity and contracts relations in Eiffel language. Thought that would be interesting for D comminity. This post also mentions term "weak purity" that differs from what it means in D. http://bertrandmeyer.com/2011/07/04/if-im-not-pure-at-least-my-functions-are/

Re: d-programming-language.org

2011-07-04 Thread Max Klyga
On 2011-07-05 08:31:46 +0300, Dmitry Olshansky said: On 05.07.2011 1:10, bearophile wrote: Steven Schveighoffer: Or, use a separate type which throws the errors if you wish. I have recently explained why this is not good enough, or even currently impossible: http://www.digitalmars.com/webne

Re: Curl wrapper round two

2011-06-19 Thread Max Klyga
On 2011-06-19 12:44:57 +0300, jdrewsen said: Den 19-06-2011 11:12, Johannes Pfau skrev: Jimmy Cao wrote: Also, why the bool dummy argument in the Curl struct constructor? I guess that's because structs can't have default constructors. Is there a better solution to this problem? That is wh

Re: Struct Interface Implementation?

2011-06-13 Thread Max Klyga
On 2011-06-13 06:21:47 +0300, Mehrdad said: Yeah I was referring to something similar to what C# has (aside from the lack of boxing). On 6/12/2011 6:46 PM, Andrei Alexandrescu wrote: On 6/12/11 8:28 PM, Jonathan M Davis wrote: They aren't virtual. For an interface to work, it has to be virtu

Re: Vote here for best article iPad2 contest

2011-06-07 Thread Max Klyga
[4] D Slices by Steve Schveighoffer

Re: IDE

2011-06-03 Thread Max Klyga
On 2011-06-03 08:44:36 +0300, Monkol said: is any IDE specially for D in process development now? You can find a list of IDE with D support at http://prowiki.org/wiki4d/wiki.cgi?EditorSupport#IDEs

Re: Ceylon language

2011-05-05 Thread Max Klyga
On 2011-05-06 00:54:34 +0300, Cristi Cobzarenco said: Currying is well established name as well, especially for people coming from a functional programming background. Current implementation does not curry the function, it partialy applies it. Currying is converting a function that takes mult

Re: GSoC 2011 news: Cristi Cobzarenco, David Nadlinger, and Dmitry Olshansky have been selected

2011-04-26 Thread Max Klyga
On 2011-04-26 10:39:41 +0300, Jacob Carlborg said: On 2011-04-26 00:03, Andrei Alexandrescu wrote: Hello, It is my great pleasure to announce that the GSoC 2011 selection process has turned favorably for us. Cristi Cobzarenco, David Nadlinger, and Dmitry Olshansky have been selected to occupy

Re: GSoC and licenses

2011-04-07 Thread Max Klyga
On 2011-04-07 22:32:42 +0300, Fawzi Mohamed said: During a google summer of code project you are supposed to produce your own code. I also wasn't sure about the exact licensing needs, but as this is relevant for a project I tried to clarify the situation. As far as I understood if your code

Re: [GSoC Proposal draft] High-Level Networking

2011-04-07 Thread Max Klyga
On 2011-04-07 16:17:43 +0300, Torarin said: 2011/4/7 Jonas Drewsen : On 07/04/11 00.32, Max Klyga wrote: snip Seems good to me. Some comments: You mention that a reactor will probably be used for implementing the proactor. On windows it really doesn't make sense to do this it

Re: [GSoC Proposal draft] High-Level Networking

2011-04-06 Thread Max Klyga
OK, I've absorbed enough informtion to transform my thoughts in the second proposal draft. I'll be posting it direcltly to GSoC website and correct it, if necessary. Proposal is situated here: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/neku42/1 Comments are welcome.

Re: [GSoC Proposal draft] High-Level Networking

2011-04-06 Thread Max Klyga
On 2011-04-06 02:30:44 +0300, Torarin said: 2011/4/4 Max Klyga : Thanks to everyone who provided feedback! I'll post my proposal update tomorrow. I'm looking forward to it too! I've done a fair amount of research on these topics and given networking in D a lot of thought.

Re: Asynchronicity in D

2011-04-04 Thread Max Klyga
Jonas, thanks for your valuable feedback. You've expressed interest in mentoring a networking a networking project and since I couldn't find any other way to contact you directly, I'll post my message here. As was discussed later, your work on curl supersedes my future effort on network clie

Re: [GSoC Proposal draft] High-Level Networking

2011-04-04 Thread Max Klyga
Thanks to everyone who provided feedback! I'll post my proposal update tomorrow.

Re: [GSoC Proposal draft] High-Level Networking

2011-04-01 Thread Max Klyga
Since my proposal theme shifted a little towards asyncronicity, I've been eagerly consuming information that might help me with this. I would be glad to know if I am moving in to the right direction. Comments are welcome. So far, here is the status report: I looked at approaches to asyncronic

Re: Asynchronicity in D

2011-03-31 Thread Max Klyga
On 2011-04-01 01:45:54 +0300, Jonas Drewsen said: On 31/03/11 23.20, Max Klyga wrote: On 2011-03-31 22:35:43 +0300, Jonas Drewsen said: On 31/03/11 18.26, Andrei Alexandrescu wrote: snip I believe that we would need both the threaded async IO that you describe but also a select based one

Re: Asynchronicity in D

2011-03-31 Thread Max Klyga
On 2011-03-31 22:35:43 +0300, Jonas Drewsen said: On 31/03/11 18.26, Andrei Alexandrescu wrote: snip I believe that we would need both the threaded async IO that you describe but also a select based one. The thread based is important e.g. in order to keep buffering incoming data while proce

Re: Asynchronicity in D

2011-03-31 Thread Max Klyga
On 2011-03-31 19:26:45 +0300, Andrei Alexandrescu said: On 3/31/11 6:35 AM, Max Klyga wrote: snip I think that would be a good contribution that would complement Jonas'. You'll need to discuss cooperation with him and at best Jonas would agree to become a mentor. Jonas agreed t

Asynchronicity in D

2011-03-31 Thread Max Klyga
I've been thinking on things I can change in my GSoC proposal to make it stronger and noticed that currently Phobos does not address asynchronous I/O of any kind. A number of threads on thid newsgroup mentioned about this problem or shown ways other languages address asynchronicity. I want t

Re: [GSoC Proposal draft] High-Level Networking

2011-03-30 Thread Max Klyga
I read your "Curl RFC" thread, great job. Somehow I missed it when it was originaly posted. As you stated earlier, you plan to continue working on your curl wrapper, so to boost my proposal usefullness I think it needs to address unsolved problems. Could you please be more specific about you

[GSoC Proposal draft] High-Level Networking

2011-03-29 Thread Max Klyga
network-enabled applications. About me I'm Max Klyga. I am an undergraduate software engineering student at Belarusian State University of Informatics and Radioelectronics (Minsk, Belarus). I'm mainly interested in system programming and after using C++ for some time I found D and fell in

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Max Klyga
Hi, there. Amazon is a good place to buy books. I had no problems with delivery from US Amazon so far.