-
🤖 How to Use Wasm to Add UDFs to the Database
By arcosx, a senior software engineer in charge of Machine Learning platform at Baidu. Introduction UDF (User-defined function) is the type of function users can customize. In databases, UDF represents a mechanism for extending the capabilities of a database service by adding a function. Wasm (WebAssembly) is a new format that is portable, small, fast loading, and compatible with the Web. In recent years, Wasm has not only been widely used on the front-end, but has also played an increasingly important role on the server-side.…
-
⚙️ Machine Learning: K-means clustering and visualization
Machine learning uses statistics to find patterns in data, and then applies those patterns to act on new data. It is the driving force behind many Internet services. For example, machine learning could figure out the kind of food you like based on your personal history, and then recommend related restaurants to you. Machine learning is both computationally intensive and time sensitive, performance matters. The lingua franca of machine learning is Python.…
RustWebAssemblyNode.jshow-touse-casemachine-learningrust-function-in-nodejs
-
🔐 Encryption and decryption
One of the frequently performed computing tasks is public key encryption and decryption. Rust and C++ code vastly outperforms JavaScript code in these tasks. In this tutorial, let's use pure Rust implementation of the RSA algorithm as an example to show how to perform public key encryption and decryption in a Node.js web service. In the getting started with Rust functions in Node.js, we showed you how to compile high performance Rust functions into WebAssembly, and call them from Node.…
RustWebAssemblyNode.jshow-touse-casecryptographyrust-function-in-nodejs
-
🤖 Image recognition in Node.js
Deep learning is one of the most important advances in computer science in the last decade. Using trained deep neural networks, artificial intelligence (AI) inference algorithms can perform a variety of very useful tasks, such as image, speech, and facial recognition, natural language processing, image and video search, at unprecedented accuracy. While inference can be done on the edge device, such as mobile phones or IoT sensors, it is suggested that cloud-based inference is much faster and energy efficient in our always-connected world.…
RustWebAssemblyNode.jsTensorflowhow-touse-caseai-as-a-serviceimage-recognitionrust-function-in-nodejs