As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm an android developer and I've been doing ROMs for a long time and I wanna get going with kernel development, I understand it's relating to linux kernel itself and got nothing to do with android.
Problem is I can't find any online resources to help me get going.
So what I'm looking for is something a bit official, like the developer site for android,the java tutorials for java, the python tutorials........etc
Is there any thing like that? from linux.org maybe, but I can't find anything on their site.
And what are the things I'm supposed to have a full understanding of? like programming languages (I know it's in C) or anything else?
Keep in mind that I'm only looking to learn driver configuration and compilation.
Linux Kernel Newbies, imho, is the best resource for who wants to start in linux kernel development.
Maybe you are interested to buy a book:
Linux Kernel Development 3rd edition 2010;
Understanding the linux kernel 3rd edition 2005;
Linux Device Drivers 3rd edition 2005.
Free resources (only a few of them):
Linux Kernel Hacking;
Hacking the Linux 2.6 kernel, Part 1: Getting ready;
Hacking the Linux 2.6 kernel, Part 2: Making your first hack;
Kernel coverage at LWN.net;
Unreliable Guide To Hacking The Linux Kernel;
The newbie's guide to hacking the Linux kernel;
vger.kernel.org - list services for the linux kernel developers
Your best bet is following a good book like Linux Device Drivers 3, which is freely available as online document on LWN. There are tiny kernel modules skeleton which will help you get started very quickly.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I got asked a question the other day by friend and it got me thinking. He asked me "What are your biggest struggles when developing new code / software when it comes to the web server?"
At first I didnt know how to answer, I have been coding PHP / MySQL and little Perl for several years now. And why I have my own dedicated server in a data center that I develop them majority of my software on, the script most of the time does not end up living there.
Below are some of the things I can things I take in consideration when developing, just wanted to see if you guys could give me some more things to think about, in which I could take and make a personal check list from as I start to work on new project.
What core functionality do I need to accomplish and do I already have a solution to accomplish this?
Is the solution part of the standard core of the programming language or will it take a module / plugin to achieve the desired results.
Is the module or plugin standard install on most web hosts?
Do I know which web host the client is at and their limitations right away?
If the module or plugin I need is not standard, can the web host install and secure for me? If not, am I comfortable installing and securing.
Who will be responsible for keeping the module / plugin upto date?
How does this effect the over all load on the server?
Do I need to re-think the process and look at other solutions / options?
There are not really many problems that can occur with PHP and MySQL when moving them across different servers. As any other interpreter language, PHP will mostly just work anywhere. The problems can mostly appear when:
-different PHP version is installed (and you use latest and greatest features)
-different MySQL version is installed (same as above)
-different PHP configuration or client is unable to change it (ex: short tags)
-if your PHP script works on system level (exec(), perhaps some filesystem operations), a different OS might cause problems
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can I create a custom operating system that supports both Windows and Linux applications?
How can I do that and what knowledge should I have?
Is this a good start?
Thanks.
This can kind of be done though using Linux and Wine however it is not perfect.
The issue is Windows is not open source and is VERY big so it is not very easy to perfectly emulate what that operating system is doing behind the scenes. This is especially hard with undocumented API calls many programs like to use on Windows.
I do not know of anything that lets you run Mac on Linix without using a VM.
It is very unlikely there will ever be "one OS to rule them all" but with tools like Wine and using virtualization with things like VMWare's Unity Mode to give the affect of another OS's program running on your system.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I see that Ruby is a big success when it comes to web programming. However, for desktop applictions and scripts, I do not see it being heavily used. In fact, in most of the Linux distros, it does not come installed by default. Most applications are coded in Python and some are in Perl. What advantages can Ruby offer over Python when it comes to desktop applications and scrips? If i am writing one Linux application, say a music player, how Ruby blocks and metaprogramming techniques can help?
Edit:
I see that some have opted for close this question because it can escalate into a Language war, perhaps. Fear not, I am a day-time Python programmer. I am trying to reconcile these seemingly incompatible observations. It is fact that most Linux distros do not come with a ruby installed. It is also a fact that most Linux apps are coded in Python. And it is also a fact that Ruby has more advanced meta-programming features than Python, which can make development easier. I am wondering why Ruby is not used as much in Linux application development, which has been a playground for scripting languages.
Python has become popular on the Linux side because many distributions have built their various front-end tools using it so it's guaranteed to be available.
Ruby does have Qt bindings that might be what you're looking for and it's possible to write wrappers for any C or C++ library you need to interface with.
In the end it all comes down to finding a suitable example to learn from. You may find that there are far more Python examples to refer to and this may affect your decision.
Both languages are equally capable on the whole and the default distributions are similar in terms of performance. Python's new PyPy compiler is faster if you don't mind sticking to Python 2.7, and there's also Rubinius which is an effort to boost Ruby's performance.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Are there any good emulators for CUDA on Windows7 (64 bit) which wouldn't cause any compatibility problems?
I would also like to know the procedure to install the emulator.
Thanks in advance.
See:
Ocelot
The website states:
Ocelot currently allows CUDA programs to be executed on NVIDIA GPUs, AMD GPUs, and x86-CPUs at full speed without recompilation.
Keep in mind that CUDA was designed for GPU. Running on a CPU will drop performance significantly.
The emulation mode is not supported by the latest version of cuda toolkit.
What I do for my work is, use the cuda sdk 2.3 and cuda toolkit 2.3 (it is pretty old, but suffices my work)
You can find the cuda toolkit 2.3 here: http://developer.nvidia.com/cuda-toolkit-archive
Compile the code using the "-deviceemu" flag.
If you are accustomed to using cuda specific make files, you can compile the code using "make emu=1"
This way the binary can be run on any machine without GPU.
Of-course, the execution efficiency is very low!
Once the code is doing what I want it to do, I deploy it in the lab machine and compile it with CUDA 4.0.
PS: you may sometimes lose out on the features provided by latest CUDA toolkit.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I've recently began using dTrace and have noticed just how awesome it is. Its the perfect tool for profiling without placing the burden on programmers to set up hundreds of probes in their applications.
I've found some nice one liner and sample scripts here and there, but I was wondering about what scripts, tools and links others might want to share.
BTW Anybody tried Chimes?
Here are some links I've found useful
A Powerpoint presentation about dTrace:
http://www.nbl.fi/~nbl97/solaris/dtrace/dtt_present.pdf
200+ useful scripts:
http://www.brendangregg.com/
I attended Theo Schlossnagle's Full Stack Introspection Crash Course talk at OSCON this year. In that presentation he gives several examples of using the D-Trace language and at the above link there are some additional utilities.
It's worth noting that because of the differences in Apple's and Sun's implementations, dtrace scripts from Solaris may not (likely won't) work on Leopard, and vice-versa. I'm not sure about FreeBSD's version.
The main problem is a different set of probes made available by the OS. Sometimes the probes will be provided under a different name. Sometimes they'll be more or less specific from one OS to another. Just a gotcha in case you come across a script that, for some reason, won't work.
Unfortunately dTrace is only implemented in/for Solaris OS. People from sun are recommend me to port all my php applications to Solaris, and "dtrace" them. After optimizing to again port them on my previous OS.