Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-12 Thread Matti Karnaattu
Most definitely not. Thanks for clarification. Then it is something like MIT approach except strict license policy. This also means that there is probably desire to dump GCC favor of LLVM? Drawbacks are using C++ code and reduced portability to legacy platforms. I personally don't find GCC to

Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-12 Thread Ingo Schwarze
Hi Matti, Matti Karnaattu wrote on Sat, Sep 13, 2014 at 12:25:54AM +0300: This also means that there is probably desire to dump GCC Yes, we strongly wish to replace GCC because we are stuck with the last available GPLv2 version, which is ancient by now. Newer GCC is GPLv3, and GPLv3 code won't

Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-11 Thread Kevin Chadwick
previously on this list Ingo Schwarze contributed: There are problems with fvwm, yes. It is old, crufty code of horrible quality. I was under the impression that when it was audited it was found to be far better than expected and I believe something like quite clean or surprising little

Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-11 Thread Matti Karnaattu
I find it far more useful and easier to work with and control than modern desktops and wish modern programs went back to older config standards and used text rather than *conf rubbish and that freedesktop followed the older principles more closely when doing desktop unification features etc.. I

Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-11 Thread Philip Guenther
On Thu, Sep 11, 2014 at 10:57 AM, Matti Karnaattu mkarnaa...@gmail.com wrote: What I meant was to clarify OpenBSD culture, priorities and coding practices and like to know whichever was the lesser of two evils: -simplicity vs. licensing purity -licensing purity vs. completeness -pragmatic

Re: [Bulk] Re: Real time programming in OpenBSD

2014-09-11 Thread Ingo Schwarze
Hi Matti, Matti Karnaattu wrote on Thu, Sep 11, 2014 at 08:57:30PM +0300: And if I understand correctly, priorities goes like this: simplicity licensing purity correctness completeness Most definitely not. That's more than just a bit misleading. None of these can be put into an

Re: Real time programming in OpenBSD

2014-09-10 Thread Christiano F. Haesbaert
On 9 September 2014 22:30, Matti Karnaattu mkarnaa...@gmail.com wrote: Hello, Is it possible to dedicate CPU core to process? What I'm looking for is simple way to take advantage of high quality and secure code base of OpenBSD to use in real time/embedded applications. If this trick can be

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
hobby and safety critical don't often go together. if you just want to improve your skills i say go for it but aiming for safety critical is a high bar to achieve. I like to keep bar high. But if you're really looking to do safety critical, which industry are you going to target? Medical and

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
You can use this diff if you want, it adds support for nice(1) to do the binding, I use it to do MP tests. Thanks! This helps a lot.

Re: Real time programming in OpenBSD

2014-09-10 Thread Philip Guenther
On Wed, Sep 10, 2014 at 7:09 AM, Matti Karnaattu mkarnaa...@gmail.com wrote: You can use this diff if you want, it adds support for nice(1) to do the binding, I use it to do MP tests. Thanks! This helps a lot. Note that that diff does the converse of what you requested, pegging a thread to a

Re: Real time programming in OpenBSD

2014-09-10 Thread Ingo Schwarze
Hi Matti, i don't know about safety critical and have no idea whether what you are saying / trying to do there makes any sense, so i'm snipping that. Replying to your other questions... Matti Karnaattu wrote on Wed, Sep 10, 2014 at 04:29:14PM +0300: Is there any centralized static analysis in

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
Note that that diff does the converse of what you requested, pegging a thread to a CPU instead of banning the CPU from running other processes' threads. True, but this is good starting point. On your bigger question: I don't know of any one working on making OpenBSD a realtime OS in the sense of

Re: Real time programming in OpenBSD

2014-09-10 Thread Brett Mahar
| | However, I can't do that task because I don't know the OpenBSD developers | mindset and I don't know yet is this the right community. I'm | interested to put effort in controlled manner and help to remove ambiquity. | | I'm still probing this community. | Hi Matti, Best way to see what

Re: Real time programming in OpenBSD

2014-09-10 Thread Matti Karnaattu
Thanks for the comprehensive answer. I was already looking for coding conventions. That preferred style is actually fair, and it is important that everyone is in line and respect that. I also agree that goto is fair way to model exceptions in C language. Couple of questions before I start

Re: Real time programming in OpenBSD

2014-09-10 Thread Ingo Schwarze
Hi Matti, Matti Karnaattu wrote on Thu, Sep 11, 2014 at 02:14:25AM +0300: 1. Is there any preferred way to post diffs? * cvs diff -Nup * send inline in the mail body, not as MIME attachments * if you are already in contact with a particular group of developers who want to review diffs in

Real time programming in OpenBSD

2014-09-09 Thread Matti Karnaattu
Hello, Is it possible to dedicate CPU core to process? What I'm looking for is simple way to take advantage of high quality and secure code base of OpenBSD to use in real time/embedded applications. If this trick can be achived, it is simple to use OpenBSD as platform when critical parts of

Re: Real time programming in OpenBSD

2014-09-09 Thread Daniel Dickman
On Tue, Sep 9, 2014 at 4:30 PM, Matti Karnaattu mkarnaa...@gmail.com wrote: Hello, Is it possible to dedicate CPU core to process? This thread may or may not be useful to read over: http://marc.info/?t=13588288892r=1w=1 What I'm looking for is simple way to take advantage of high

Re: Real time programming in OpenBSD

2014-09-09 Thread Matti Karnaattu
Also if you were to provide more specifics about your goals, others may have more input. At the moment I'm looking hobby project to maintain/improve my skills developing open source software and my goal is to develop/improve some open source component(s) to be suitable on safety critical use.

Re: Real time programming in OpenBSD

2014-09-09 Thread Daniel Dickman
On Tue, Sep 9, 2014 at 7:29 PM, Matti Karnaattu mkarnaa...@gmail.com wrote: Also if you were to provide more specifics about your goals, others may have more input. At the moment I'm looking hobby project to maintain/improve my skills developing open source software and my goal is to