All of lore.kernel.org
 help / color / mirror / Atom feed
* Coding Standards
@ 2006-03-02 22:45 Marc-André Laverdière
  2006-03-03 17:22 ` Hans Reiser
  0 siblings, 1 reply; 7+ messages in thread
From: Marc-André Laverdière @ 2006-03-02 22:45 UTC (permalink / raw)
  To: reiserfs-list

Hello,

I was reading an article long ago where Mr Reiser was saying that he was 
using military grade coding standards. And that it is also the reason 
why Reiser4 is not integrated by default in the Linux kernel.

My experience at looking at GNU code is that it is sloppy and I want to 
start a high-assurance project with the best of the best of coding 
practices... something making me feel that the GNU coding guidelines are 
not the best of options.

Your input would be very appreciated!

-- 
Marc-André LAVERDIÈRE, B. Eng., M. A. Sc. (in progress)
Research Assistant - Computer Security Laboratory
CIISE, Université Concordia University, Montréal, Québec, Canada
www.ciise.concordia.ca

/"\
\ /    ASCII Ribbon Campaign
  X      against HTML e-mail
/ \

"Perseverance must finish its work so that you may be mature and 
complete, not lacking anything." -James 1:4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Coding Standards
  2006-03-02 22:45 Coding Standards Marc-André Laverdière
@ 2006-03-03 17:22 ` Hans Reiser
  2006-03-03 21:11   ` Giovanni A. Orlando
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Reiser @ 2006-03-03 17:22 UTC (permalink / raw)
  To: Marc-André Laverdière; +Cc: reiserfs-list

Marc-André Laverdière wrote:

> Hello,
>
> I was reading an article long ago where Mr Reiser was saying that he
> was using military grade coding standards. And that it is also the
> reason why Reiser4 is not integrated by default in the Linux kernel.

I think that was a minor issue.  The major issues are political.

>
> My experience at looking at GNU code is that it is sloppy and I want
> to start a high-assurance project with the best of the best of coding
> practices... something making me feel that the GNU coding guidelines
> are not the best of options.

I would really look into the various security and secure coding papers
and articles that have been funded by DARPA and others over the years. 
Pick through them, read them, and code that way.  The guys writing the
articles are much more expert than I am on it.

>
> Your input would be very appreciated!
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Coding Standards
  2006-03-03 17:22 ` Hans Reiser
@ 2006-03-03 21:11   ` Giovanni A. Orlando
  0 siblings, 0 replies; 7+ messages in thread
From: Giovanni A. Orlando @ 2006-03-03 21:11 UTC (permalink / raw)
  To: Hans Reiser; +Cc: Marc-André Laverdière, reiserfs-list


>>Hello,
>>
>>I was reading an article long ago where Mr Reiser was saying that he
>>was using military grade coding standards. And that it is also the
>>reason why Reiser4 is not integrated by default in the Linux kernel.
>>    
>>
>
>I think that was a minor issue.  The major issues are political.
>
>  
>
So ... what the hell happens? Why is not included yet?

Thanks,
Giovanni.

>>My experience at looking at GNU code is that it is sloppy and I want
>>to start a high-assurance project with the best of the best of coding
>>practices... something making me feel that the GNU coding guidelines
>>are not the best of options.
>>    
>>
>
>I would really look into the various security and secure coding papers
>and articles that have been funded by DARPA and others over the years. 
>Pick through them, read them, and code that way.  The guys writing the
>articles are much more expert than I am on it.
>
>  
>
>>Your input would be very appreciated!
>>
>>    
>>
>
>  
>


-- 

--
--
http://www.FutureTG.com      - The Main Website.
http://www.FTLinuxCourse.com - The Website for Linux Training.
http://www.RPMParadaise.com  - The Website for RPM Packages.

Phone: +58 412 55 41 338 (I am in Caracas, actually)

FT Addresses are located at: http://www.futuretg.com/FT/contact.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

* coding standards
@ 2015-03-30 18:29 Linda
  2015-03-30 18:52 ` Wei Liu
  0 siblings, 1 reply; 7+ messages in thread
From: Linda @ 2015-03-30 18:29 UTC (permalink / raw)
  To: xen-devel, Wei Liu, Julien Grall, Lars Kurth

Hi Wei,
     I have a few questions before we chat Tuesday.  Per your 
instructions, I read the coding standards, which referred me to libxl.h 
for memory management.  They are contradictory, in that the coding 
standards imply that I should be using internal libxl_*alloc functions, 
but the memory management section says to do a malloc. I thought someone 
should know.
     I assume I should look for and use the appropriate libxl_*alloc 
function.
     Also, you mentioned that all libxl functions should take a ctx 
(context?) as the first argument.  I had looked at several libxl_bitmap* 
functions (init, test, set, and dispose) which don't, but looking at the 
alloc code you sent me, I'm not clear on the purpose of the ctx.  
Perhaps we can go over that in our chat.

Thanks.

Linda

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: coding standards
  2015-03-30 18:29 coding standards Linda
@ 2015-03-30 18:52 ` Wei Liu
  2015-03-30 19:26   ` Linda Jacobson
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Liu @ 2015-03-30 18:52 UTC (permalink / raw)
  To: Linda; +Cc: Julien Grall, Lars Kurth, Wei Liu, xen-devel

On Mon, Mar 30, 2015 at 12:29:41PM -0600, Linda wrote:
> Hi Wei,
>     I have a few questions before we chat Tuesday.  Per your instructions, I
> read the coding standards, which referred me to libxl.h for memory
> management.  They are contradictory, in that the coding standards imply that
> I should be using internal libxl_*alloc functions, but the memory management
> section says to do a malloc. I thought someone should know.

They are not contradictory. libxl_*alloc are wrappers to libc's *alloc
functions.

I think that section is mostly material for external callers (i.e. from
the libxl user's point of view). You're going to work on the library
itself so your point of view is a bit different.

>     I assume I should look for and use the appropriate libxl_*alloc
> function.

Yes.

>     Also, you mentioned that all libxl functions should take a ctx
> (context?) as the first argument.  I had looked at several libxl_bitmap*
> functions (init, test, set, and dispose) which don't, but looking at the
> alloc code you sent me, I'm not clear on the purpose of the ctx.  Perhaps we
> can go over that in our chat.
> 

I think I said "usually". There are exceptions. :-) 

Yes, ctx means context. The application (libxl user) is going to
initialise that context and pass that to libxl public API. Then your
public API (the functions that you're going to implement are public
APIs) can use that context to do various stuff.

There are many things wrapped in context, but I don't think you really
need to care about what they are unless you really need them.

For the time being, you can use the code snippet (libxl_bitmap_alloc) I
sent you as skeleton to implement your own functions.

Wei.

> Thanks.
> 
> Linda

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: coding standards
  2015-03-30 18:52 ` Wei Liu
@ 2015-03-30 19:26   ` Linda Jacobson
  2015-04-02 13:15     ` Lars Kurth
  0 siblings, 1 reply; 7+ messages in thread
From: Linda Jacobson @ 2015-03-30 19:26 UTC (permalink / raw)
  Cc: Julien Grall, Lars Kurth, Wei Liu,
	<xen-devel@lists.xen.org>

Will do.   Thanks for all the info.   L

Sent from my iPhone

> On Mar 30, 2015, at 12:52 PM, Wei Liu <wei.liu2@citrix.com> wrote:
> 
>> On Mon, Mar 30, 2015 at 12:29:41PM -0600, Linda wrote:
>> Hi Wei,
>>    I have a few questions before we chat Tuesday.  Per your instructions, I
>> read the coding standards, which referred me to libxl.h for memory
>> management.  They are contradictory, in that the coding standards imply that
>> I should be using internal libxl_*alloc functions, but the memory management
>> section says to do a malloc. I thought someone should know.
> 
> They are not contradictory. libxl_*alloc are wrappers to libc's *alloc
> functions.
> 
> I think that section is mostly material for external callers (i.e. from
> the libxl user's point of view). You're going to work on the library
> itself so your point of view is a bit different.
> 
>>    I assume I should look for and use the appropriate libxl_*alloc
>> function.
> 
> Yes.
> 
>>    Also, you mentioned that all libxl functions should take a ctx
>> (context?) as the first argument.  I had looked at several libxl_bitmap*
>> functions (init, test, set, and dispose) which don't, but looking at the
>> alloc code you sent me, I'm not clear on the purpose of the ctx.  Perhaps we
>> can go over that in our chat.
> 
> I think I said "usually". There are exceptions. :-) 
> 
> Yes, ctx means context. The application (libxl user) is going to
> initialise that context and pass that to libxl public API. Then your
> public API (the functions that you're going to implement are public
> APIs) can use that context to do various stuff.
> 
> There are many things wrapped in context, but I don't think you really
> need to care about what they are unless you really need them.
> 
> For the time being, you can use the code snippet (libxl_bitmap_alloc) I
> sent you as skeleton to implement your own functions.
> 
> Wei.
> 
>> Thanks.
>> 
>> Linda

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: coding standards
  2015-03-30 19:26   ` Linda Jacobson
@ 2015-04-02 13:15     ` Lars Kurth
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Kurth @ 2015-04-02 13:15 UTC (permalink / raw)
  To: Linda Jacobson; +Cc: Julien Grall, Wei Liu, <xen-devel@lists.xen.org>

Linda,
I do want to remind you that you need to start communicating on the public list and submit some patches. Also some of us are away before the application deadline on the 7th. So things may get tight
Regards
Lars

> On 30 Mar 2015, at 20:26, Linda Jacobson <lindaj@jma3.com> wrote:
> 
> Will do.   Thanks for all the info.   L
> 
> Sent from my iPhone
> 
>> On Mar 30, 2015, at 12:52 PM, Wei Liu <wei.liu2@citrix.com> wrote:
>> 
>>> On Mon, Mar 30, 2015 at 12:29:41PM -0600, Linda wrote:
>>> Hi Wei,
>>>   I have a few questions before we chat Tuesday.  Per your instructions, I
>>> read the coding standards, which referred me to libxl.h for memory
>>> management.  They are contradictory, in that the coding standards imply that
>>> I should be using internal libxl_*alloc functions, but the memory management
>>> section says to do a malloc. I thought someone should know.
>> 
>> They are not contradictory. libxl_*alloc are wrappers to libc's *alloc
>> functions.
>> 
>> I think that section is mostly material for external callers (i.e. from
>> the libxl user's point of view). You're going to work on the library
>> itself so your point of view is a bit different.
>> 
>>>   I assume I should look for and use the appropriate libxl_*alloc
>>> function.
>> 
>> Yes.
>> 
>>>   Also, you mentioned that all libxl functions should take a ctx
>>> (context?) as the first argument.  I had looked at several libxl_bitmap*
>>> functions (init, test, set, and dispose) which don't, but looking at the
>>> alloc code you sent me, I'm not clear on the purpose of the ctx.  Perhaps we
>>> can go over that in our chat.
>> 
>> I think I said "usually". There are exceptions. :-) 
>> 
>> Yes, ctx means context. The application (libxl user) is going to
>> initialise that context and pass that to libxl public API. Then your
>> public API (the functions that you're going to implement are public
>> APIs) can use that context to do various stuff.
>> 
>> There are many things wrapped in context, but I don't think you really
>> need to care about what they are unless you really need them.
>> 
>> For the time being, you can use the code snippet (libxl_bitmap_alloc) I
>> sent you as skeleton to implement your own functions.
>> 
>> Wei.
>> 
>>> Thanks.
>>> 
>>> Linda

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-02 13:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 22:45 Coding Standards Marc-André Laverdière
2006-03-03 17:22 ` Hans Reiser
2006-03-03 21:11   ` Giovanni A. Orlando
  -- strict thread matches above, loose matches on Subject: below --
2015-03-30 18:29 coding standards Linda
2015-03-30 18:52 ` Wei Liu
2015-03-30 19:26   ` Linda Jacobson
2015-04-02 13:15     ` Lars Kurth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.