Code Monkey home page Code Monkey logo

cexception's Introduction

CException CI

This Documentation Is Released Under a Creative Commons 3.0 Attribution Share-Alike License

CException is simple exception handling in C. It is significantly faster than full-blown C++ exception handling but loses some flexibility. It is portable to any platform supporting setjmp/longjmp.

Getting Started

The simplest way to get started is to just grab the code and pull it into your project:

git clone https://github.com/throwtheswitch/cexception.git

If you want to contribute to this project, you'll also need to have Ruby and Ceedling installed to run the unit tests.

Usage

So what's it good for?

Mostly error handling. Passing errors down a long chain of function calls gets ugly. Sometimes really ugly. So what if you could just specify certain places where you want to handle errors, and all your errors were transferred there? Let's try a lame example:

CException uses C standard library functions setjmp and longjmp to operate. As long as the target system has these two functions defined, this library should be useable with very little configuration. It even supports environments where multiple program flows are in use, such as real-time operating systems... we started this project for use in embedded systems... but it obviously can be used for larger systems too.

Error Handling with CException:

void functionC(void) {
  //do some stuff
  if (there_was_a_problem)
    Throw(ERR_BAD_BREATH);
  //this stuff never gets called because of error
}

There are about a gajillion exception frameworks using a similar setjmp/longjmp method out there... and there will probably be more in the future. Unfortunately, when we started our last embedded project, all those that existed either (a) did not support multiple tasks (therefore multiple stacks) or (b) were way more complex than we really wanted. CException was born.

Why?

It's ANSI C

...and it beats passing error codes around.

You want something simple...

CException throws a single id. You can define those ID's to be whatever you like. You might even choose which type that number is for your project. But that's as far as it goes. We weren't interested in passing objects or structs or strings... just simple error codes. Fast. Easy to Use. Easy to Understand.

Performance...

CException can be configured for single tasking or multitasking. In single tasking, there is very little overhead past the setjmp/longjmp calls (which are already fast). In multitasking, your only additional overhead is the time it takes you to determine a unique task id (0 to num_tasks).

How?

Code that is to be protected are wrapped in Try { } blocks. The code inside the Try block is protected, meaning that if any Throws occur, program control is directly transferred to the start of the Catch block. The Catch block immediately follows the Try block. It's ignored if no errors have occurred.

A numerical exception ID is included with Throw, and is passed into the Catch block. This allows you to handle errors differently or to report which error has occurred... or maybe it just makes debugging easier so you know where the problem was Thrown.

Throws can occur from anywhere inside the Try block, directly in the function you're testing or even within function calls (nested as deeply as you like). There can be as many Throws as you like, just remember that execution of the guts of your Try block ends as soon as the first Throw is triggered. Once you throw, you're transferred to the Catch block. A silly example:

void SillyExampleWhichPrintsZeroThroughFive(void) {
  volatile CEXCEPTION_T e;
  int i;
  while (i = 0; i < 6; i++) {
    Try {
      Throw(i);
      //This spot is never reached
    } 
    Catch(e) {
      printf(“%i “, e);
    }
  }
}

Limitations

This library was made to be as fast as possible, and provide basic exception handling. It is not a full-blown exception library like C++. Because of this, there are a few limitations that should be observed in order to successfully utilize this library:

Return & Goto

Do not directly return from within a Try block, nor goto into or out of a Try block. The Try macro allocates some local memory and alters a global pointer. These are cleaned up at the top of the Catch macro. Gotos and returns would bypass some of these steps, resulting in memory leaks or unpredictable behavior.

Local Variables

If (a) you change local (stack) variables within your Try block, and (b) wish to make use of the updated values after an exception is thrown, those variables should be made volatile.

Note that this is ONLY for locals and ONLY when you need access to them after a Throw.

Compilers optimize (and thank goodness they do). There is no way to guarantee that the actual memory location was updated and not just a register unless the variable is marked volatile.

Memory Management

Memory which is malloc'd within a Try block is not automatically released when an error is thrown. This will sometimes be desirable, and other times may not. It will be the responsibility of the code you put in the Catch block to perform this kind of cleanup.

There's just no easy way to track malloc'd memory, etc., without replacing or wrapping malloc calls or something like that. This is a lightweight framework, so these options were not desirable.

CException API

Try { ... }

Try is a macro which starts a protected block. It MUST be followed by a pair of braces or a single protected line (similar to an 'if'), enclosing the data that is to be protected. It MUST be followed by a Catch block (don't worry, you'll get compiler errors to let you know if you mess any of that up).

The Try block is your protected block. It contains your main program flow, where you can ignore errors (other than a quick Throw call). You may nest multiple Try blocks if you want to handle errors at multiple levels, and you can even rethrow an error from within a nested Catch.

Catch(e) { }

Catch is a macro which ends the Try block and starts the error handling block. The Catch block is executed if and only if an exception was thrown while within the Try block. This error was thrown by a Throw call somewhere within Try (or within a function called within Try, or a function called by a function called within Try... you get the idea.).

Catch receives a single id of type CEXCEPTION_T which you can ignore or use to handle the error in some way. You may throw errors from within Catches, but they will be caught by a Try wrapping the Catch, not the one immediately preceeding.

Throw(e)

Throw is the method used to throw an error. Throws should only occur from within a protected (Try...Catch) block, though it may easily be nested many function calls deep without an impact on performance or functionality. Throw takes a single argument, which is an exception id which will be passed to Catch as the reason for the error. If you wish to re-throw an error, this can be done by calling Throw(e) with the error code you just caught. It IS valid to throw from a Catch block.

ExitTry()

ExitTry is a method used to immediately exit your current Try block but NOT treat this as an error. Don't run the Catch. Just start executing from after the Catch as if nothing had happened.

Configuration

CException is a mostly portable library. It has one universal dependency, plus some macros which are required if working in a multi-tasking environment.

The standard C library setjmp must be available. Since this is part of the standard library, it's all good.

If working in a multitasking environment, you need a stack frame for each task. Therefore, you must define methods for obtaining an index into an array of frames and to get the overall number of id's are required. If the OS supports a method to retrieve task ID's, and those tasks are number 0, 1, 2... you are in an ideal situation. Otherwise, a more creative mapping function may be required. Note that this function is likely to be called twice for each protected block and once during a throw. This is the only added overhead in the system.

You have options for configuring the library, if the defaults aren't good enough for you. You can add defines at the command prompt directly. You can always include a configuration file before including CException.h. You can make sure CEXCEPTION_USE_CONFIG_FILE is defined, which will force make CException look for CExceptionConfig.h, where you can define whatever you like. However you do it, you can override any or all of the following:

CEXCEPTION_T

Set this to the type you want your exception id's to be. Defaults to an 'unsigned int'.

CEXCEPTION_NONE

Set this to a number which will never be an exception id in your system. Defaults to 0x5a5a5a5a.

CEXCEPTION_GET_ID

If in a multi-tasking environment, this should be set to be a call to the function described in #2 above. It defaults to just return 0 all the time (good for single tasking environments, not so good otherwise).

CEXCEPTION_NUM_ID

If in a multi-tasking environment, this should be set to the number of ID's required (usually the number of tasks in the system). Defaults to 1 (good for single tasking environments or systems where you will only use this from one task).

CEXCEPTION_NO_CATCH_HANDLER (id)

This macro can be optionally specified. It allows you to specify code to be called when a Throw is made outside of Try...Catch protection. Consider this the emergency fallback plan for when something has gone terribly wrong.

And More!

You may also want to include any header files which will commonly be needed by the rest of your application where it uses exception handling here. For example, OS header files or exception codes would be useful.

Finally, there are some hook macros which you can implement to inject your own target-specific code in particular places. It is a rare instance where you will need these, but they are here if you need them:

  • CEXCEPTION_HOOK_START_TRY - called immediately before the Try block
  • CEXCEPTION_HOOK_HAPPY_TRY - called immediately after the Try block if no exception was thrown
  • CEXCEPTION_HOOK_AFTER_TRY - called immediately after the Try block OR before an exception is caught
  • CEXCEPTION_HOOK_START_CATCH - called immediately before the catch

Testing

If you want to validate that CException works with your tools or that it works with your custom configuration, you may want to run the included test suite. This is the test suite (along with real projects we've used it on) that we use to make sure that things actually work the way we claim. The test suite makes use of Ceedling, which uses the Unity Test Framework. It will require a native C compiler. The example makefile and rakefile both use gcc.

cexception's People

Contributors

austinbes avatar barneywilliams avatar chris-dekimo avatar dependabot[bot] avatar dmorrill10 avatar dreamer-coding-555 avatar jvranish avatar krithikbes avatar mvandervoord avatar steinheselmans avatar sw17ch avatar timgates42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cexception's Issues

CException is missing a license file

All other ThrowTheSwitch projects have a dedicate license file

The license for CException is only stated at the end of the README file of the project.

Would it be possible to add a license file to the repository? I think it make sense as it makes the information better accessible and in a more common way.

Add new test result: ERROR

Sometimes it would be useful to indicate that a test failed before even reaching its test focus. JUnit-like test framework have a dedicated test result for this: ERROR.

Would it be possible to add this to Unity? Something like "TEST_ERROR()" and "TEST_ERROR_MESSAGE()".

Microchip XC16: some tests fail

Hi! I'm trying to use your library on some test project to learn something new, but with a simple "main" that only does this:

int main(void)
{
CEXCEPTION_T e = CEXCEPTION_NONE;
    Try{
        SYSTEM_Initialize();
    }

    Catch(e)
    {
        /*Initialization error*/
        LED_RED2_SetHigh();
        while (1);
    };
return 0;
}

with SYSTEM_Initialize() that has

if (0)
    Throw(E_ERROR_INITIALIZING);

it continuously goes into the catch, with or without "e" initialized and with or without the throw commented out (that shouldn't be called, anyway).

I tried also to debug it from MPLABX v5.35, XC16 V1.50 and after i get out from System_Initialize() i still have e=CEXCEPTION_NONE, when initialized, or e=0xFFFF when not initialized but I don't understand why it goes into the catch anyway.

I then tried to run your test (the one included with your library), and luckily it fails in the same way (at least, I have some correlation):

-------------------
FAILED TEST SUMMARY
-------------------
[test_CException.c]
  Test: test_BasicTryDoesNothingIfNoThrow
  At line (28): "Should Not Enter Catch If Not Thrown"

  Test: test_BasicThrowAndCatch_WithMiniSyntax
  At line (72): "I shouldn't be caught because there was no throw"

  Test: test_ThrowAndCatchFromASubFunctionAndNoRethrowToCatchInRootFunc
  At line (178): "Should Not Have Re-thrown Error (it should have already been caught)"

  Test: test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside
  At line (275): "Should Have Been Caught By Inside Catch"

  Test: test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside
  At line (295): "Should Not Be Caught Here"

  Test: test_AThrowWithoutATryCatchWillUseDefaultHandlerIfSpecified
  At line (317): "Expected FALSE Was TRUE"

  Test: test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch
  At line (340): "Expected FALSE Was TRUE"

  Test: test_AbilityToExitTryWithoutThrowingAnError
  At line (358): "Should Not Have Been Caught"

  Test: test_AbilityToExitTryWillOnlyExitOneLevel
  At line (380): "Should Not Have Been Caught By Inside"

The first test does exactly what my main does, therefore I expected this behavior.
For reference, I'm using ceedling (locally initialized with its libraries, CException included) with this project yaml:

# Notes:
# Trying to use ceedling with XC16 and DSPIC33ck

:project:
  :use_exceptions: TRUE
  :use_test_preprocessor: TRUE
  :use_auxiliary_dependencies: TRUE
  :build_root: build
  :release_build: TRUE
  :test_file_prefix: test_

:release_build:
 :output: upx_brain.out
 :use_assembly: FALSE

:environment:

:extension:
  :executable: .out

:paths:
  :test:
    - +:test/**
    - -:test/support
  :source:
    - src/**
    - -:src/build/**
    - -:src/dist/**
    - -:src/nbproject/**
    - -:src/debug/*
  :support:
    - test/support

:defines:
  # in order to add common defines:
  #  1) remove the trailing [] from the :common: section
  #  2) add entries to the :common: section (e.g. :test: has TEST defined)
  :commmon: &common_defines
    - __dsPIC33CK64MP103__
    - UNITY_INT_WIDTH=16
    - UNITY_POINTER_WIDTH=16
    - CMOCK_MEM_INDEX_TYPE=uint16_t
    - CMOCK_MEM_PTR_AS_INT=uint16_t
    - CMOCK_MEM_ALIGN=1
    - CMOCK_MEM_SIZE=4096
  :test:
    - *common_defines
    - TEST
  :test_preprocess:
    - *common_defines
    - TEST

:cmock:
  :mock_prefix: mock_
  :when_no_prototypes: :warn
  :enforce_strict_ordering: TRUE
  :plugins:
    - :ignore
    - :callback
  :treat_as:
    uint8:    HEX8
    uint16:   HEX16
    uint32:   UINT32
    int8:     INT8
    bool:     UINT8

:tools:
  :test_compiler:
    :executable: xc16-gcc
    :arguments:
      - -mcpu=33CK64MP103
      - -x c
      - -c
      - "${1}"
      - -o "${2}"
      - -D$: COLLECTION_DEFINES_TEST_AND_VENDOR
      - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
      - -Wall
      #- -Werror  # We can't keep this on during test becuase of a CMock pointer issue
      - -O0
      - -mlarge-code
      - -mlarge-arrays
  :test_linker:
    :executable: xc16-gcc
    :arguments:
      - -mcpu=33CK64MP103
      - ${1}
      - -O0
      - -o "./build/release/TestBuild.out"
      - -Wl,-Tp33CK64MP103.gld,-Map=./build/release/TestOutput.map,--report-mem
  :test_fixture:
    :executable: ruby
    :name: "Microchip simulator test fixture"
    :stderr_redirect: :unix #inform Ceedling what model of $stderr capture to use
    :arguments:
      - test/simulation/start_sim.rb #Chiama il simulatore con le impostazioni per il dspic memorizzate nel .txt nella stessa cartella

  :release_compiler:
    :executable: xc16-gcc
    :arguments:
      - -mcpu=33CK64MP103
      - -x c
      - -c
      - "${1}"
      - -o "${2}"
      - -I"$": COLLECTION_PATHS_SOURCE_INCLUDE_VENDOR
      - -I"$": COLLECTION_PATHS_RELEASE_TOOLCHAIN_INCLUDE
      - -D$: COLLECTION_DEFINES_RELEASE_AND_VENDOR
      - -Wall
      - -Werror
      - -O0
      - -mlarge-code
      - -mlarge-arrays
  :release_linker:
    :executable: xc16-gcc
    :arguments:
      - -mcpu=33CK64MP103
      - ${1}
      - -o "${2}"
      - -Wl,-Tp33CK64MP103.gld,-Map=./build/release/MyPicApp.map,--report-mem

:module_generator:
        :project_root: ./
        :source_root: src/
        :test_root: test/
        :naming: "camel"

:plugins:
  :load_paths:
    - vendor/ceedling/plugins
  :enabled:
    - stdout_pretty_tests_report
    - module_generator
...

and calling the MDB simulator with this code:

OUT_FILE = "build/release/out.txt"
File.delete OUT_FILE if File.exists? OUT_FILE 
response = `mdb ./test/simulation/simulator_dspic.txt`
if File.exists? OUT_FILE 
    file_contents = File.read OUT_FILE
    file_contents.gsub!("\r\n", "\n")
    STDOUT.print file_contents
else
    puts "Cannot find file #{OUT_FILE}"
end

That calls these commands:

Device dsPIC33CK64MP103
Hwtool SIM
set oscillator.frequency 8
set oscillator.frequencyunit Mega
set oscillator.rcfrequency 250
set oscillator.rcfrequencyunit Kilo
Set uart1io.uartioenabled true
Set uart1io.output file
Set uart1io.outputfile "./build/release/out.txt"
Program "./build/release/TestBuild.out"
Reset
Sleep 500
Run
Wait 120000
Quit

Any help is appreciated, I'd love to use your libraries in my projects :)

EDIT:
I initially had "use exceptions: FALSE" with the manually added path for tests pointing to the "vendor" folder (see edit history). By changing "use exceptions" true and erasing the path to "vendor" the test worsened the result:

-------------------
FAILED TEST SUMMARY
-------------------
[test_CException.c]
  Test: test_BasicTryDoesNothingIfNoThrow
  At line (28): "Should Not Enter Catch If Not Thrown"

  Test: test_BasicThrowAndCatch
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_BasicThrowAndCatch_WithMiniSyntax
  At line (72): "I shouldn't be caught because there was no throw"

  Test: test_VerifyVolatilesSurviveThrowAndCatch
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_ThrowFromASubFunctionAndCatchInRootFunc
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_ThrowAndCatchFromASubFunctionAndRethrowToCatchInRootFunc
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_ThrowAndCatchFromASubFunctionAndNoRethrowToCatchInRootFunc
  At line (178): "Should Not Have Re-thrown Error (it should have already been caught)"

  Test: test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThisDoesntCorruptExceptionId
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThatEachExceptionIdIndependent
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_CanHaveMultipleTryBlocksInASingleFunction
  At line (84): "Expected 0x5A5A5A5A Was 0x00008B97. Unhandled Exception!"

  Test: test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside
  At line (275): "Should Have Been Caught By Inside Catch"

  Test: test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside
  At line (295): "Should Not Be Caught Here"

  Test: test_AThrowWithoutATryCatchWillUseDefaultHandlerIfSpecified
  At line (317): "Expected FALSE Was TRUE"

  Test: test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch
  At line (340): "Expected FALSE Was TRUE"

  Test: test_AbilityToExitTryWithoutThrowingAnError
  At line (358): "Should Not Have Been Caught"

  Test: test_AbilityToExitTryWillOnlyExitOneLevel
  At line (380): "Should Not Have Been Caught By Inside"

Regarding release cycle of this project

I was wondering if there is a plan to have more releases of the CException project or is 1.3.1 the only release available? Simply asking because I would like to add this to the Dragon WrapDB service and am just wondering if I should subscribe to this repository for any potential releases.

https://dragon-wrap.github.io/

Clarify conditions under which to use volatile

In the README.md the rule:

If (a) you change local (stack) variables within your Try block, and (b) wish to make use of the updated values after an exception is thrown, those variables should be made volatile.

Is a little cryptic without an example for context. It seems to assume slightly more intimate knowledge of setjmp and longjmp.

More specifically, when you refer to stack variables, do you mean stack variables declared anywhere that make their way into a Try block. Does this include stack-allocated variables up the call tree?

Take for example:

void func(int *a)
{
  // ...
  int b = 0;
  Try {
    *a += 2;
    b = *a;
    Throw(MY_EX);
  } Catch(e) {
    // ...
  }
  printf("%d ?= %d", a, b);
}
void main()
{
  int x = 1;
  func(&x);
  printf("%d", x);
}

Are both a and b at risk here? Is x (the stack memory a points to) at risk?

Static analysis companion tool?

Since there are rules for how to use this properly, it would be nice to have a static analysis tool that can warn the programmer when they are potentially misusing it.

fails compilation on MSVC

[1/2] "cl" "-Isubprojects\CException-1.3.3\lib\libcexception.a.p" "-Isubprojects\CException-1.3.3\lib" "-I..\subprojects\CException-1.3.3\lib" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/WX" "/Od" "/Zi" "/Fdsubprojects\CException-1.3.3\lib\libcexception.a.p\CException.c.pdb" /Fosubprojects/CException-1.3.3/lib/libcexception.a.p/CException.c.obj "/c" ../subprojects/CException-1.3.3/lib/CException.c
FAILED: subprojects/CException-1.3.3/lib/libcexception.a.p/CException.c.obj 
"cl" "-Isubprojects\CException-1.3.3\lib\libcexception.a.p" "-Isubprojects\CException-1.3.3\lib" "-I..\subprojects\CException-1.3.3\lib" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/WX" "/Od" "/Zi" "/Fdsubprojects\CException-1.3.3\lib\libcexception.a.p\CException.c.pdb" /Fosubprojects/CException-1.3.3/lib/libcexception.a.p/CException.c.obj "/c" ../subprojects/CException-1.3.3/lib/CException.c
../subprojects/CException-1.3.3/lib/CException.c(3): error C2220: the following warning is treated as an error
../subprojects/CException-1.3.3/lib/CException.c(3): warning C4068: unknown pragma 'GCC'
../subprojects/CException-1.3.3/lib/CException.c(4): warning C4068: unknown pragma 'GCC'
../subprojects/CException-1.3.3/lib/CException.c(6): warning C4068: unknown pragma 'GCC'
ninja: build stopped: subcommand failed.

Is there a safe procedure for C++ interaction

Is there a safe way of wrapping frameworks using CException with C++? I realize C jumps subvert stack unwinding, causing undefined behaviour. Still, the project I'm working on will most certainly be wrapped in C++ by users.

What I'm interested in is if there's a pattern that ensures safe integration with C++. Ideally, there could be some conversion from CExceptions to C++ exceptions.

I imagine no C++ class instances would be allowed to instantiate or destruct themselves in a Try block. I also imagine it would be absolutely necessary to ensure no CExceptions escape upwards into C++ land, which means there would need to be very tightly scoped wrapping. I also imagine it would be illegal to leverage CException at the C++ level as a stand-in for C++ exceptions. Am I on the right track with this line of thought?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.