Older Android devices can be had for a song, and in many cases are
still packing considerable computational power. With built in
networking, a battery, and a big touch screen, they could easily take
the place of a Raspberry Pi and external display in many applications.
As it so happens, Google has made it very easy to develop your own
Android software. There’s only one problem: you’ve got to do it in Java.
Looking to get away from all that bloat and overhead, [CNLohr] set out to see what it would take to get 100% C code running on an Android device.
After collecting information and resources from the deepest and darkest
corners of the Internet, he found out that the process actually wasn’t
that bad. He’s crafted a makefile which can be used to get your own C
program up and running in seconds.
We mean that literally. As demonstrated in the video after the break,
[CNLohr] is able to compile, upload, and run a C Android program in
less than two seconds with a single command. This rapid development
cycle allows you to spend more time on actually getting work done, as
you can iterate through versions of your code almost as quickly as if
you were running them on your local machine.
[CNLohr] says you’ll still need to have Google’s Android Studio
installed, so it’s not as if this is some clean room implementation. But
once it’s installed, you can just call everything from his makefile and
never have to interact with it directly. Even if you don’t have any
problem with the official Android development tools, there’s certainly
something to be said for being able to write a “Hello World” that doesn’t clock in at multiple-megabytes.
https://hackaday.com/2020/05/13/writing-android-apps-in-c-no-java-required/
Kamis, 14 Mei 2020
Writing Android Apps In C, No Java Required
Kamis, 24 Desember 2015
lwan
| Hello, World! (C) | 100B file | ||
| Hello, World! (LuaJIT) | 32KiB file |
With its low disk and memory footprints, it's suitable to be used from embedded devices to robust servers. Both static and dynamic content can be served, as it can also be used as a library. Dynamic content can be generated by code written in either C or Lua.
(Read More..)
Sabtu, 14 November 2015
clibs : package manager for c
Rabu, 01 Januari 2014
HID API for Linux, Mac OS X, and Windows
HIDAPI is a multi-platform library which allows an application to interface
with USB and Bluetooth HID-Class devices on Windows, Linux, and Mac OS X.
While it can be used to communicate with standard HID devices like
keyboards, mice, and Joysticks, it is most useful when used with custom
(Vendor-Defined) HID devices. Many devices do this
in order to not require a custom driver to be written for each platform.
HIDAPI is easy to integrate with the client application, just
requiring a single source file to be dropped into the application. On
Windows, HIDAPI can optionally be built into a DLL.
http://www.signal11.us/oss/hidapi/
Minggu, 15 September 2013
Sabtu, 24 Agustus 2013
JavaScript + Other Languages Alon Zakai (Mozilla)
Minggu, 18 Agustus 2013
Sabtu, 10 Agustus 2013
Deep C (and C++)
Programming is hard. Programming correct C and C++ is particularly
hard. Indeed, both in C and certainly in C++, it is uncommon to see a
screenful containing only well defined and conforming code. Why do
professional programmers write code like this? Because most programmers
do not have a deep understanding of the language they are using. While
they sometimes know that certain things are undefined or unspecified,
they often do not know why it is so. In these slides we will study small
code snippets in C and C++, and use them to discuss the fundamental
building blocks, limitations and underlying design philosophies of these
wonderful but dangerous programming languages.
Jon Jagger and I just released a slide deck to discuss the fundamentals of C and C++ (slideshare, pdf).
http://olvemaudal.wordpress.com/2011/10/10/deep-c/
Minggu, 21 Juli 2013
Sabtu, 06 Juli 2013
LINUX TCP FAST OPEN [GEEK]
http://www.admin-magazine.com/Articles/TCP-Fast-Open