Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 22:19:05 -0300
From:      Pedro Arthur <bygrandao@gmail.com>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        "Wojciech A. Koszek" <wkoszek@freebsd.org>, "<freebsd-hackers@freebsd.org>" <freebsd-hackers@freebsd.org>, "<dteske@FreeBSD.org>" <dteske@freebsd.org>, Jordan Hubbard <jkh@ixsystems.com>, Rui Paulo <rpaulo@felyko.com>
Subject:   Re: Lua in the bootloader
Message-ID:  <CAKN1MR7pnABzezs=oUCEpqs3XHN2KXi=U-RydQpSQyXdFw1mfQ@mail.gmail.com>
In-Reply-To: <53FBC329.6020107@freebsd.org>
References:  <3D62F4F4-ECCF-4622-BB57-D028160F3451@freebsd.org> <157901cfbe83$6cbf18d0$463d4a70$@FreeBSD.org> <A87AA9EB-373F-400E-986E-4D9017EB2375@freebsd.org> <16e101cfbfee$42b3b930$c81b2b90$@FreeBSD.org> <5FE57E4E-A627-4ABA-AB73-F0D60A3602D5@ixsystems.com> <236878C4-2C3E-4744-A04B-736C91032BFC@felyko.com> <96E32478-5450-4A35-B68A-4791668AA701@ixsystems.com> <53FBC329.6020107@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
I've done some updates about the issues (1,2, 4, 6, 8) reviewed. I would
like you to
 review these changes, following is my wiki page updated and the files
changed.
wiki <https://wiki.freebsd.org/SummerOfCode2014/LuaLoader#New_milestones>;
head/sys/boot/lua/core.lua
<https://socsvn.freebsd.org/socsvn/soc2014/pedrosouza/lua_loader/head/sys/b=
oot/lua/core.lua>
head/sys/boot/lua/menu.lua
<https://socsvn.freebsd.org/socsvn/soc2014/pedrosouza/lua_loader/head/sys/b=
oot/lua/menu.lua>
head/sys/boot/lua/screen.lua
<https://socsvn.freebsd.org/socsvn/soc2014/pedrosouza/lua_loader/head/sys/b=
oot/lua/screen.lua>

Thanks,
Pedro.

2014-08-25 20:13 GMT-03:00 Pedro Giffuni <pfg@freebsd.org>:

>
> On 08/25/14 01:27, Jordan Hubbard wrote:
>
>> ...
>>
>>> The limitation of the dictionary and the size of the stack isn't the
>>> main reason why I would prefer lua over forth.  Why do we need to subje=
ct
>>> ourselves to a stack based language in 2014?  The very limited number o=
f
>>> people hacking on the Forth boot loader on FreeBSD might have a differe=
nt
>>> opinion, but the language is so arcane that I fail to see why we should=
n't
>>> replace it.
>>>
>> Again, no disagreement, though I do wonder how many Lua programmers
>> FreeBSD has that will be able to hit the ground running as a result of t=
his
>> evolution.  Anyone?  Raise your hands!   I can=E2=80=99t raise mine - I=
=E2=80=99ve never
>> used Lua. :)
>>
>> - Jordan
>>
>
> One one hand we have Forth which seems to be under-appreciated. I would
> think that it is still better than nothing, but then nothing is what othe=
r
> people use and they are not complaining (perhaps because they don't know
> what they are missing? I don't know).
>
> On the other hand there is Lua: If we do a quick look in the net for Lua
> related code we can find many examples. It seems like there is a new
> generation of game developers that are very fond of Lua, to the point tha=
t
> it is more popular than Python in gaming. Other than Angry Birds, I am al=
so
> seeing Lua embedded in Apache httpd, Trafficserver, VLC, there is even a
> Forth implemented in Lua! To put it someway: Lua absolutely looks better
> than forth in your resume.
>
> FWIW, although somewhat oldish, this looks like an interesting thing to
> play with
> http://lua-cui.sourceforge.net/
>
> And there's also this:
> https://code.google.com/p/llvm-lua/
>
> No equivalents for Forth, AFAICT.
>
> This said, while Lua seems to be powerful and exciting, it is not the
> mighty thing we want everywhere. Apparently Grub2 at some point embedded
> Lua and later reverted it. NetBSD introduced Lua in their kernel but
> apparently has found no use for it. DragonFly's installer had an old Lua
> backend that they removed (they also removed bootforth very early).
>
> Options are good, I welcome the Lua option and I will love to see how far
> it goes but let's not get too excited about the imminent death of Forth
> just yet. Ultimately, being Devin the driving force behind the bootloader
> enhancements, I think he is in the best position to choose.
>
> Pedro.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKN1MR7pnABzezs=oUCEpqs3XHN2KXi=U-RydQpSQyXdFw1mfQ>