From owner-freebsd-hackers@freebsd.org Mon Feb 27 18:31:19 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3BCBCF03CB for ; Mon, 27 Feb 2017 18:31:19 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm20-vm0.bullet.mail.ne1.yahoo.com (nm20-vm0.bullet.mail.ne1.yahoo.com [98.138.91.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 778A1BF2 for ; Mon, 27 Feb 2017 18:31:19 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1488220278; bh=dnO8rGHwOeKz7c5uTRxfIfaM5fn9g5Tru7rJKpdhyf0=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=ml+G4K3l4vJBB7i6ZizBmaqK1GHAPwsr7RfUduK7G3LFyhgRPhCQJHbA7I7Roj05gUL4KWVGTLx0CDGiO32KqMEE7LWjpzymNVFQRbKVPDjyGqLm+ESH0jazaKyZwvIZUbhUuF5cnlxBay0zKrnO+nBDSTheePqmQGb0anSo4qMUPCS+7CWBvTRrzu3VCnP/w8nAui0atFcdFIBcWkkYUTYZRJSzTmfECUZkQxs4k4Stx83IoS9ej67z1ppJAbQHzpROM4ZQgWjfjijfrfLGrYWB7irvuBFYFO94ZgjvV7gvkhBqpbveXxFCoichTFyDrD5jSoygh+mgfT6afLltLg== Received: from [98.138.100.112] by nm20.bullet.mail.ne1.yahoo.com with NNFMP; 27 Feb 2017 18:31:18 -0000 Received: from [98.138.84.45] by tm103.bullet.mail.ne1.yahoo.com with NNFMP; 27 Feb 2017 18:31:18 -0000 Received: from [127.0.0.1] by smtp113.mail.ne1.yahoo.com with NNFMP; 27 Feb 2017 18:31:18 -0000 X-Yahoo-Newman-Id: 579417.88944.bm@smtp113.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: UZhvuOQVM1nTbgTnk2cBZiVs6qklcD7g1nUOgIfMrCj9qyt WoZ3GbX2tG4xJYc6pSMIRmTWa22PYBlDTjLRR2fiUxXQ64rEko39ymbo9rq. Ej2wCw0TqBNu2X1xX7w4FaBFNCseouqZgQlt3JyTHcCLhyUVvWP6AKymrP7l viXx4wufbRO3gciPqnwVHFq_w0bx9L653lRXO0CAtVVkOj28PyugK7k092Jk 18qnlA3vPmZ3SAcvNY0NuPgdDmEbpZyHCpmdCQ4.31dgdG4z_r.fkvQU8iZc i3vq14YC3myNrXiV.HXJf4AX8tjgQ26cHgN5HKUDfDNkUurQQDfWaZ_xuWMb Dj4tPyUWjXA0N3XkO91B7SOP0njT3oZg5bUcsaTT11_FqV8HHHzaSVSgfLhH 1bJ6d4H947o4zz9PJATXMpmOMVniBOjsdXLOYMWdPGjQQXBpjpd9sFh5UcuK lyyUtacOEw1BwzpI859RszsrFdb15lz0Hw1pFn0EHnP_egSP9n_htPKijP_H zHQQPnxIegetnyyiSjN6eeWDK0bCHn3yDRNnkW7mJ2pN0kcg- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: [GSoC 2017] Original proposal: Port kernel Lua to FreeBSD To: Saurav Sachidanand , freebsd-hackers@freebsd.org References: From: Pedro Giffuni Message-ID: <2634b0e5-2ef1-87fa-27a1-9aab13f01901@FreeBSD.org> Date: Mon, 27 Feb 2017 13:34:07 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 18:31:19 -0000 [Please don't include soc-admin for project proposals: the list is exclusively for administrative purposes.] On 2/27/2017 8:28 AM, Saurav Sachidanand wrote: > Hello FreeBSD community, > > I'm > ​ Saurav Sachidanand, and I'm​ > a CS sophomore studying in India > ​. > I have an interest in operating systems development and wish to > contribute to the FreeBSD community. I'm proficient with C and have > some experience in kernel programming. Hence, I'd like to propose an > original project for GSoC 2017 that I feel would benefit this community. > > In past years, the Lua interpreter was ported to run inside the Linux > and NetBSD kernel [1]. Lua was chosen because it's interpreter is very > small (~240 KB) compared to that of Python or Ruby, it's MIT licensed, > and is almost freestanding. A working demonstration of it is a packet > filtering algorithm written entirely in kernel Lua [2]. > > Specifically, my proposal would be to port the following that are > currently written for NetBSD: I think a FreeBSD developer (wkozek?) already did this some time ago. I do recall seeing the code somewhere in github. I don't mean to discourage you but I think the NetBSD guys haven't found much uses for the Lua module so the justification for working on this would have to find a real use. There was also a suggestion in the NetBSD lists to use Lua for the kernel debugger (ddb) and in their firewall (NPF) but AFAICT those don't really depend on the kernel module. Pedro.