Skip to content

Instantly share code, notes, and snippets.

View qiaohaijun's full-sized avatar
🎯
Focusing

qiao hai-jun qiaohaijun

🎯
Focusing
  • Beijing,China
View GitHub Profile
@qiaohaijun
qiaohaijun / protobuf3.spec
Created January 4, 2018 03:35 — forked from apeyser/protobuf3.spec
RPM spec file for building protobuf version 3.0.0-beta-1 into /opt in parallel to old, old versions of protobuf
#
%global srcvers 3.0.0-beta-1
%global srcname protobuf-%{srcvers}
%global _prefix /opt/%{srcname}
#
Summary: Protocol Buffers Google''s data interchange format
Name: protobuf3
warning: core file may not match specified executable file.
[New LWP 15712]
[New LWP 15799]
[New LWP 15713]
[New LWP 15801]
[New LWP 15802]
[New LWP 15711]
[New LWP 15800]
[New LWP 15691]
[Thread debugging using libthread_db enabled]
(gdb) bt
#0 0x00007fcec8f181d7 in raise () from /lib64/libc.so.6
#1 0x00007fcec8f198c8 in abort () from /lib64/libc.so.6
#2 0x00007fcec981c9d5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3 0x00007fcec981a946 in ?? () from /lib64/libstdc++.so.6
#4 0x00007fcec981a973 in std::terminate() () from /lib64/libstdc++.so.6
#5 0x00007fcec981ab93 in __cxa_throw () from /lib64/libstdc++.so.6
#6 0x00007fcec986fa17 in std::__throw_out_of_range(char const*) () from /lib64/libstdc++.so.6
#7 0x0000000000412fd9 in std::vector<int, std::allocator<int> >::_M_range_check (this=0x14e7940, __n=1) at /usr/include/c++/4.8.2/bits/stl_vector.h:794
#8 0x0000000000412c57 in std::vector<int, std::allocator<int> >::at (this=0x14e7940, __n=1) at /usr/include/c++/4.8.2/bits/stl_vector.h:830

这个很平常的代码其实本身还是有些技术含量的

凸优化以及非线性机器学习算法的胜利

非线性不可求解

  1. 这个宇宙是非线性的宇宙,我们人类在其中也不过是一个非线性的存在
  2. 时间局部性,空间局部性可以用线性来拟合。

世界本身是复杂的

  1. 混沌是正常的
  2. 蝴蝶效应是一个例子

语言律师

  1. 把c++标准倒背如流
  2. 人肉编译器

本末倒置

  1. 本是创造价值
  2. 末是成为人肉编译器
  3. 完成需求,实现价值才是

熟练掌握c++和完成需求之间的关系

/* Copyright (C) 1997,1998,1999,2000,2001,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of

angel是tencent开源的ps架构系统

  1. 好的架构师演化还是设计出来的?
  2. 为什么这个问题如此复杂

简单举个例子(可能也不是很形象)select/poll饭店服务员(内核)告诉饭店老板(用户程序):”现在有客人结账“但是这个服务员没人明确告诉老板,哪几桌的客人结帐。老板得自儿一个一个桌子去问:请问是你要结帐?epoll饭店服务员(内核)告诉饭店老板(用户程序):”1,2,5号客人结账“老板就可以直接去1,2,5号桌收钱了

作者:方杨 链接:https://www.zhihu.com/question/21233763/answer/23837166 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。