Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 24EBD200CD5 for ; Sun, 16 Jul 2017 05:22:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 237791624BC; Sun, 16 Jul 2017 03:22:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (unknown [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 421D4162393 for ; Sun, 16 Jul 2017 05:22:05 +0200 (CEST) Received: (qmail 93195 invoked by uid 500); 16 Jul 2017 03:22:04 -0000 Mailing-List: contact dev-help@metamodel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.apache.org Delivered-To: mailing list dev@metamodel.apache.org Received: (qmail 93178 invoked by uid 99); 16 Jul 2017 03:22:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2017 03:22:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4EA1D180145 for ; Sun, 16 Jul 2017 03:22:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PC8LY5o8T1QO for ; Sun, 16 Jul 2017 03:22:01 +0000 (UTC) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 399745F2F1 for ; Sun, 16 Jul 2017 03:22:01 +0000 (UTC) Received: by mail-it0-f50.google.com with SMTP id m84so39878385ita.0 for ; Sat, 15 Jul 2017 20:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Gtlt4aEtmmCJimhnhhSfO0eb9pCz04DrQay1h1DHSUw=; b=jiIec6JSNanTa0w7HHWfj2e2+/QGh4PR97aOFEe2+pcvHmnE7ZdMjYhvGhdd4pj/2m f13+jg7L7VD8WL6jQ124HIgtGMNMMgXaiWEvQEL+VZSxKAeTI1Cs2vguNi8EFgOtVBC7 n4Q3yMehv5KUa4hlsbxx2iJj1o10Pz476Arf4CoM0qmq+QE6ElA/NtnxRZdF3VxD/n6k YPcsU08Z74CxreVRcygoz/Wm5Yr69HVWah/TX8VPywmoJp6oLSaYvx30nwgDRnIXwgTJ /Hcnybxc23jGaEGWPwKLoVJ8b9x242ccqfKn6TOWe4XxH+HcnITRDFTuS76AHXtOjw1m AhoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Gtlt4aEtmmCJimhnhhSfO0eb9pCz04DrQay1h1DHSUw=; b=h2UCzNH3dwJC3GFI+ZvRHVaKH3l/HH05wAPt/6WHhEw2Os02hUEb3pnknjTiKMKDr8 5sJdQhBl7FdRWf8OtoM0zuX8gA2673Z4eMEqxG3xOTD3YhxiWDn192yQXWAipuX/24N4 x7bkGrjZ3m7/tYn7BiRx8X39kkTB0Y8o7dK04FtC9iv94dd2KEohgk0n1hlBeooQC2ng K0g45a+gMzhaH0LPDBaK0j9b2ra43hoXEiMJj/Ozg5DMYWGxdoaSEX2Zv65u23+x1PpT L4/UnXE7Erl79fopqMCiye3pCNtkQ+ZJb4bfKtJzbvnHxvih+BgWvLsfyAZSqlI1oMu+ XqlA== X-Gm-Message-State: AIVw112cpsAxtFB1o64yVJLhVAnwIG7WNv6cgsFd6ewhvd6cGmOfZzgJ 6RhxhhZJ/D3mPCoKTdCNkdeGMt/FVQ== X-Received: by 10.36.17.142 with SMTP id 136mr275591itf.90.1500175320422; Sat, 15 Jul 2017 20:22:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.126.91 with HTTP; Sat, 15 Jul 2017 20:21:59 -0700 (PDT) In-Reply-To: References: <2806849f-f181-5f66-90db-bd4d6e62fb50@gmail.com> From: =?UTF-8?Q?Kasper_S=C3=B8rensen?= Date: Sat, 15 Jul 2017 20:21:59 -0700 Message-ID: Subject: Re: GitHub release: a "bud" of Apache MM to C# (.Net Core) To: "dev@metamodel.apache.org" Content-Type: multipart/alternative; boundary="001a1143e0181322c6055466c90a" archived-at: Sun, 16 Jul 2017 03:22:06 -0000 --001a1143e0181322c6055466c90a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I notice that there is not yet a port of QueryPostprocessDataContext, which is IMO critical to implement any connector. I think having that class (and it's dependencies, for instance MetaModelHelper) ported is key for us to push ahead with the rest of the details. As such I feel like many of the interfaces that are there now can be easily be manually replicated and maybe in some cases re-thought a bit for .NET, as well as for the fact that there is no backwards compatibility concern in this port. Interfaces like Func, Action and Ref are certainly not needed in .NET, and we should not include it. They're only there in the Java version for backwards compatibility to the pre-Java 8 days. 2017-07-15 10:40 GMT-07:00 Kasper S=C3=B8rensen : > OK so I can tell you this much: I succesfully built the project with > "dotnet restore" and "dotnet build". Great work, I see there's a lot of > code in here :-) > > Right now it doesn't contain any working DataContext implementations, > right? It would be kinda cool to have at least one so that we can start > building unit tests and stuff like that. I'll probably get back to you wi= th > a PR for some small project structure things so that we have a place to a= dd > unit tests, a way to add more modules and so on. > > I haven't done an in-depth review of the code, but for me the most > important thing is that there is something we can iterate on and the test= s > and such are instrumental in doing that. > > > 2017-07-09 12:45 GMT-07:00 Michel Kern : > >> Hello >> >> I've just published a "bud" of porting Apache MM from Java to C# (.Net >> Core) >> It's there: https://github.com/Echopraxium/apache_metamodel_dotnet_core_ >> bud >> >> It is a limited subset (40 of the java source code files) but at least i= t >> compiles without errors and >> uses .Net Core as suggested by Jasper. >> >> Please find below a copy of the attached README: >> ************************************************************ >> **************************** >> Foreword >> ------------------------------ >> Here is a 'bud' version for a port of Apache MetaModel from Java to C# >> (.Net Core). Please >> notice that it is a very limited subset which has neen ported ATM. >> >> Conversion Issues >> ------------------------------ >> Even with a limited subset of the java source code files (40), I've >> encountered a lot of >> conversions issues, from the very straightforward (e.g. 'String s =3D >> input_string.trim()' >> becomes 'string s =3D input_string.Trim()'), to the ""equivalence >> required"" (e.g. anonymous >> implementation of interface, like in getComparable() method of >> BooleanComparator class). >> >> Anyway, I've tried to do my best (even if my choices may reveal erroneou= s >> or even absurd), >> at least to compile the 'conversion recipes' that I've crafted on the wa= y >> (they are >> documented in doc/java2csharp_recipes.txt). >> >> I've also provided a set of 'Helper classes' (under >> apache_metamodel_dotnet_core/org/ >> apache/metamodel/j2cs), like class extensions (e.g. add a GetHashcode() >> method to the >> C# 'object' class), type replacement (e.g. Java's Number class converted >> to 'CsNumber') >> , etc.. >> >> Here is the result of my 'J2Cs' (Java To C#) adventures until now. In th= e >> hope that it may >> bring interest for validation and maybe a "child project" Apache >> MetaModel which is a great >> and innovative solution for interoperability in the Biotop of Data >> Stores, well beyond the >> ODBC and ORM solutions IMHO. >> >> Best Regards >> Michel Kern (echopraxium on GitHub) >> >> >> >> > --001a1143e0181322c6055466c90a--