February 14, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | > Things about Configuration files I'll have to write an article explaining why; I suggest Lua. Important points for configuration * Human readable * Extensible * The settings need to be translated into a behavior With Lua you could take several approaches to this. 1. Write code that will locate whatever it is we are locating * Using a list of standard locations * Giving it access to environment variables 2. Use the approach of overriding being described * The override could be done in Lua or in the backend (what you do with JSON/INI) 3. Having the user make changes There is room for abuse, but isn't that what programming is all about? > Looks like one has to learn a new language to use [Lua] I don't think there is much overhead in what would need to learned for Lua or Yaml. Even when using JSON one must learn that the system expects { override : {...}}. It is the ability to describe what you want in a manner that is easily recognizable. I'm going hold off trying to suggest solving this problem since I don't see how any of the suggestions fix the problem which makes me think I don't know what the problem is; instead here is some translations of things I've seen: Environment { override = { name = "value", baz = "foo" }, default = { foo = "baz" } } -- I don't know what it is overriding ------------------- Environment = { foo = 1, bar = 2 } Environment64 = copy(Environment) -- copy isn't actually defined in std lib Environment64.bar = 3 -------------------- first = "Joe" last = "Smith" age = 17 addr = "123 Road St." -- Jesse Phillips _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 15, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Fri, Feb 15, 2013 at 3:40 AM, Walter Bright <walter@digitalmars.com> wrote: > Barring any last minute objections, I'm going to do the release tonight. There is at least one regression affecting Thrift: http://d.puremagic.com/issues/show_bug.cgi?id=9514 David _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 14, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On 2/14/2013 7:39 PM, Jesse Phillips wrote: >> Things about Configuration files > I'll have to write an article explaining why; I suggest Lua. That suggests adding the source code to an entire programming language into dmd. This seems like hitting a cockroach with a nuclear bomb :-) _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 14, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On 2/14/2013 7:52 PM, David Nadlinger wrote: > On Fri, Feb 15, 2013 at 3:40 AM, Walter Bright <walter@digitalmars.com> wrote: >> Barring any last minute objections, I'm going to do the release tonight. > There is at least one regression affecting Thrift: > > http://d.puremagic.com/issues/show_bug.cgi?id=9514 > > I need a test case. _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 15, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Fri, Feb 15, 2013 at 5:07 AM, Walter Bright <walter@digitalmars.com> wrote: > On 2/14/2013 7:52 PM, David Nadlinger wrote: >> There is at least one regression affecting Thrift: >> >> http://d.puremagic.com/issues/show_bug.cgi?id=9514 > I need a test case. The bug report has a perfectly valid test case (no external dependencies), and I don't have a more reduced one yet. As the error message is fairly characteristic, DustMite would probably work fine, but unless I pull an all-nighter, I won't be able to work on the issue until tomorrow. David _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 14, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Thu, Feb 14, 2013 at 8:04 PM, Walter Bright <walter@digitalmars.com> wrote: > > On 2/14/2013 7:39 PM, Jesse Phillips wrote: >>> >>> Things about Configuration files >> >> I'll have to write an article explaining why; I suggest Lua. > > > That suggests adding the source code to an entire programming language into dmd. This seems like hitting a cockroach with a nuclear bomb :-) While I wouldn't call it a small addition, "around 20000 lines of C." The language was intended for embedding and using for configuration. Though the task at hand is probably much smaller than even the creators were envisioning. _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 15, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Thu, 14 Feb 2013 20:04:48 -0800 Walter Bright <walter@digitalmars.com> wrote: > > On 2/14/2013 7:39 PM, Jesse Phillips wrote: > >> Things about Configuration files > > I'll have to write an article explaining why; I suggest Lua. > > That suggests adding the source code to an entire programming language into dmd. More like linking in an external lib </pedantic>. FWIW, Lua's specifically designed for applications to make themselves scriptable, rather than to be used by itself like Python/RUby/etc. > This seems like hitting a cockroach with a nuclear > bomb :-) _______________________________________________ :) _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
February 15, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright Attachments:
|
On Feb 15, 2013, at 03:40 AM, Walter Bright <walter@digitalmars.com> wrote:
> Barring any last minute objections, I'm going to do the release tonight.
Remember that the Mac OS X installer needs to be run on Mac OS X.
--
/Jacob Carlborg
|
February 15, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips Attachments:
|
On Feb 15, 2013, at 04:39 AM, Jesse Phillips <jesse.k.phillips@gmail.com> wrote:
> I'll have to write an article explaining why; I suggest Lua.
Unfortunately, any language that is no D, shell script or C/C++ is basically banned from D. For a while the Mac OS X installer was built using a Ruby script. But that was converted to a shell script.
--
/Jacob Carlborg
|
February 16, 2013 Re: [dmd-beta] D 2.062 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger Attachments:
| 2013/2/15 David Nadlinger <code@klickverbot.at> > On Fri, Feb 15, 2013 at 5:07 AM, Walter Bright <walter@digitalmars.com> wrote: > > On 2/14/2013 7:52 PM, David Nadlinger wrote: > >> There is at least one regression affecting Thrift: > >> > >> http://d.puremagic.com/issues/show_bug.cgi?id=9514 > > I need a test case. > > The bug report has a perfectly valid test case (no external dependencies), and I don't have a more reduced one yet. > > As the error message is fairly characteristic, DustMite would probably work fine, but unless I pull an all-nighter, I won't be able to work on the issue until tomorrow. I think it is not a compiler issue. See my detailed comment. http://d.puremagic.com/issues/show_bug.cgi?id=9514#c2 Kenji Hara |
Copyright © 1999-2021 by the D Language Foundation