From dev-return-36626-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Mon Mar 30 16:24:02 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 56517 invoked from network); 30 Mar 2009 16:24:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 16:24:02 -0000 Received: (qmail 21480 invoked by uid 500); 30 Mar 2009 16:24:01 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 21408 invoked by uid 500); 30 Mar 2009 16:24:01 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 21397 invoked by uid 99); 30 Mar 2009 16:24:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 16:24:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.fedotov@gmail.com designates 209.85.220.166 as permitted sender) Received: from [209.85.220.166] (HELO mail-fx0-f166.google.com) (209.85.220.166) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 16:23:51 +0000 Received: by fxm10 with SMTP id 10so1862989fxm.36 for ; Mon, 30 Mar 2009 09:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=moAj6uXdTjxbI2Ors9NH4pJfG7+UpW2AtKNUBtU9heM=; b=lgpKcCXooXNIpwLhmnkY0N/yMkpvs1Dfjw/b/0f2CL+fBTEFEVB+JoPyMQlifkJgXH 8N90dRegVGFl/OMzoG4iVExjpiJKAEifAxcOsTLvW1WN4GC9TQ8H+6qGtk/NGkGjYsm2 3KaQS0NqsUrBFLCGY9mX72NFLPCPShpQxN3ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ac3Iic/jNmaTQpq23ZREDssQ/cWxehxQ88k+mzNe79x6ilxYrO0GJ8t/aQARWzgorL WXRlDa3o1+ieJ7/EBsya5q48/XCC4PYP4H57rEJdu3w8ZUWGUxxM61+YI1R1tzz9pMpH sqZpp/DEDxz4XC4sVeMU1Ziymv9wXnA70ZQw8= MIME-Version: 1.0 Received: by 10.103.92.10 with SMTP id u10mr1784694mul.22.1238430209792; Mon, 30 Mar 2009 09:23:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Mar 2009 20:23:29 +0400 Message-ID: Subject: Re: [GSoC] Interested in harmony-JIT-1 From: Alexei Fedotov To: dev@harmony.apache.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Krystal, I believe you should make a solid step to the project goal. For example, you may extract JIT interoperability interfaces which currently reside somewhere in depths of Mikhail Fursov's DPGO code and refactor Jitrino to use them. Thanks. 2009/3/30 Krystal Mok : > Hi Alexei, > > Thank you for your advice. By "patch", are you suggesting a patch against > the current Jitrino so that it modifies the current behavior for demo > purpose, and/or the structure of code? By "prototype", is it good enough = to > build a simple JITter of some sort, say from a very simple bytecode > instruction set to x86, instead of prototyping the whole JVM's instructio= n > set? Time is very crucial, but during this week it's really hard for me t= o > do anything significant, because I've got a few exams to take, from tomor= row > on until Friday. Hopefully I can get something out of the night time... > > Thanks, > Krystal Mok, > Nanjing University > > 2009/3/30 Alexei Fedotov > >> Hello Krystal, >> >> I like a free style of your proposal. JIT is a complicated subject. It >> would be nice if you demonstrate your strong C++ coding skills by >> creating a useful patch or a prototype. >> >> Thanks! >> >> >> >> On Mon, Mar 30, 2009 at 4:43 PM, Krystal Mok >> wrote: >> > Hello everyone, >> > >> > This is Krystal Mok from Nanjing University, Nanjing, China. I'm in my >> last >> > year of as undergraduate. >> > >> > A little bit on my experience first: >> > I've been enthusiastic in language design and implementation since my >> > freshman year in college. I've read materials on compilers and virtual >> > machines, including introduction material to Harmony back in 2006. I t= ook >> > compiler's introductory course, and after that I've implemented a few >> > complete compilers as part of my enthusiasm. >> > My interest in VM's began when I played games built with an open-sourc= e >> game >> > engine called Kirikiri2 (http://kikyou.info/tvp/). It has a >> JavaScript-like >> > scripting language, and the underlying runtime is implemented as a >> > big-switch style bytecode-interpreter. I took a lot of time to dig int= o >> the >> > details, and learned a lot from it. Although I learned Java before com= ing >> > across Kirikiri2, I thought JVMs might be too complicated to dig deep >> into. >> > But after getting into Kirikiri2, I was fascinated by VMs and read a l= ot >> of >> > things on various implementations of High-level Language VMs, includin= g >> > JVM's spec, Mono, SpiderMonkey, CPython/IronPython, Parrot, to name a >> few. I >> > implemented a simple big-switch style interpreter myself, but have nev= er >> > implemented JITters yet. >> > I didn't read Hotspot's sources, though, so I don't know what other JV= M's >> > JIT implementations really look like. I was a little bit worried of my >> lack >> > of experience in the particular field of JITters, but according to >> Harmony's >> > clean-room policy, this turns out not to be too bad :-p >> > >> > Alright, back to GSoC. I'd like to have a chance to anticipate in >> > harmony-JIT-1. I've just set up the build environment to get started o= n >> > Harmony. Looks like it'll take some design work to separate JET with O= PT, >> > but unfortuanately I'm taking 3 exams this week so I don't have the ti= me >> to >> > browse through the sources before GSoC 2009 submission's deadline. How >> > specific should the ideas be in submissions? >> > >> > I'm new to this list and Harmony's community, and any advice or >> > feedback would be very appreciated. Thanks in advance. >> > My blog is http://rednaxelafx.javaeye.com/. It's in Chinese, but I'd >> happily >> > speak and write English and Japanese as well. Looking forward to heari= ng >> > from you all. >> > >> > Cheers, >> > Krystal Mok >> > Nanjing University >> > >> >> >> >> -- >> With best regards / =D3 =CE=C1=C9=CC=D5=DE=DB=C9=CD=C9 =D0=CF=D6=C5=CC= =C1=CE=C9=D1=CD=C9, >> Alexei Fedotov / =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, >> http://www.telecom-express.ru/ >> http://people.apache.org/~aaf/ >> > --=20 With best regards / =D3 =CE=C1=C9=CC=D5=DE=DB=C9=CD=C9 =D0=CF=D6=C5=CC=C1= =CE=C9=D1=CD=C9, Alexei Fedotov / =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, http://www.telecom-express.ru/ http://people.apache.org/~aaf/