Dragon slaying in Java: how to modify syntax tree

stay Lombok is often used, but do you know how it works? , and Lombok is often used, but do you know how it works? (two) In the two articles, the underlying principle of Lombok is introduced. In fact, it is summed up as a sentence that is realized by changing the abstract syntax tree during compilation. The above two articles have talked about ...

Posted by lemming_ie on Thu, 26 Mar 2020 01:00:48 -0700

sentinel of grpc circuit breaker

background In order to prevent the downstream service avalanche, the use of circuit breakers is considered here Technology selection Due to the spring boot service and the integration of istio, three solutions are considered here istio hystrix sentinel Here are the comparison of these schemes Implementation of microservice circuit breaker mod ...

Posted by EagleAmerican on Tue, 24 Mar 2020 08:02:37 -0700

Common use cases of Transformers Library

By hugging face Compile |VK Source: Github This chapter describes the most common use cases when using the Transformers library. The available models allow for many different configurations and are highly generic in use cases. This paper introduces the simplest method and shows the usage of tasks such as question answering, sequence classific ...

Posted by rel on Mon, 23 Mar 2020 23:54:18 -0700

JavaScript Modular Development

What is modular development? In front-end development, it can achieve some basic interaction effect as long as several dozens or hundreds of lines of code are embedded in script tags at first. Then js is valued and widely used. The help of jQuery, Ajax, Node.Js, MVC, MVVM, etc. also makes front-end development important and makes front-end pro ...

Posted by pmjm1 on Mon, 23 Mar 2020 10:53:05 -0700

[NLP] Text Classification and Generalization (rnn, cnn, word2vec, TfidfVectorizer)

1. Emotional Analysis of Chinese Comments (keras+rnn) 1.1 Required Libraries 1.2 Pre-training Word Vector 1.3 Word Vector Model 1.4 Training corpus (dataset) 1.5 participle and tokenize 1.6 Index Length Standardization 1.7 Reverse tokenize 1.8 Building an embedding matrix 1.9 padding and truncatin ...

Posted by d3vilr3d on Sun, 22 Mar 2020 19:07:16 -0700

LeetCode 945. Make the array the only minimum increment

My LeetCode brush Title source [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 945. Make the array the only minimum increment subject Given an array of integers A, any A[i] is selected and incremented by 1 for each move operation. Returns the minimum number of operations that make each value in A unique. Example 1: Input: [1,2,2] ...

Posted by tomato on Sun, 22 Mar 2020 10:52:55 -0700

Message Queue NSQ with You to Get Started

I've seen NSQ before and haven't seen it yet.Just when I have time today, I set up a simple try to get the message queue NSQ in this Go Language, which I'll briefly record here. In fact, NSQ is used relatively little in China. I think I know such a thing here. Just look at the source code a little and learn something. Introduction to NSQ NSQ i ...

Posted by CentralOGN on Sun, 22 Mar 2020 10:30:03 -0700

Java serialization 100 character reading and writing with buffer, decorator mode

1, BufferedWriter 1. Test with character reading and writing with buffer   package com.bjpowernode.java_learning; import java.io.*; ​ public class D100_1_BufferedWriter { public static void main(String[] args) throws Exception{ //Create character output stream with buffer String address = "C:\\\\Users\\\\lenovo1\\\\Workspaces\\ ...

Posted by blckspder on Sat, 21 Mar 2020 08:48:50 -0700

React Hook + TS shopping cart practice (performance optimization, closure trap, custom hook) - Zhihu

Preface This article is based on a basic shopping cart demand, step by step, to give you a deep understanding of the pit and Optimization in React Hook You can learn from this article: A kind of Practice of writing business components with React Hook + TypeScript A kind of How to use React.memo to optimize performance A kind of ...

Posted by Karamja on Fri, 20 Mar 2020 13:28:36 -0700

ios advanced tutorial 2-large map loading of runloop optimization

1 why to optimize large image loading When rendering large pictures, it takes a lot of time We use RUNLOOP to optimize: Ideas: 1. Every time RUNLOOP loads only one small object, put the picture task into the array, and load from the array loop. This can make the project smooth 2. Load only the picture tasks in the cur ...

Posted by uproa on Fri, 20 Mar 2020 09:35:17 -0700